← full-stack-fastapi-template / frontend/src/client/types.gen.ts
| 1 | // This file is auto-generated by @hey-api/openapi-ts |
| 2 | |
| 3 | export type Body_login_login_access_token = { |
| 4 | grant_type?: (string | null); |
| 5 | username: string; |
| 6 | password: string; |
| 7 | scope?: string; |
| 8 | client_id?: (string | null); |
| 9 | client_secret?: (string | null); |
| 10 | }; |
| 11 | |
| 12 | export type HTTPValidationError = { |
| 13 | detail?: Array<ValidationError>; |
| 14 | }; |
| 15 | |
| 16 | export type ItemCreate = { |
| 17 | title: string; |
| 18 | description?: (string | null); |
| 19 | }; |
| 20 | |
| 21 | export type ItemPublic = { |
| 22 | title: string; |
| 23 | description?: (string | null); |
| 24 | id: string; |
| 25 | owner_id: string; |
| 26 | created_at?: (string | null); |
| 27 | }; |
| 28 | |
| 29 | export type ItemsPublic = { |
| 30 | data: Array<ItemPublic>; |
| 31 | count: number; |
| 32 | }; |
| 33 | |
| 34 | export type ItemUpdate = { |
| 35 | title?: (string | null); |
| 36 | description?: (string | null); |
| 37 | }; |
| 38 | |
| 39 | export type Message = { |
| 40 | message: string; |
| 41 | }; |
| 42 | |
| 43 | export type NewPassword = { |
| 44 | token: string; |
| 45 | new_password: string; |
| 46 | }; |
| 47 | |
| 48 | export type PrivateUserCreate = { |
| 49 | email: string; |
| 50 | password: string; |
| 51 | full_name: string; |
| 52 | is_verified?: boolean; |
| 53 | }; |
| 54 | |
| 55 | export type Token = { |
| 56 | access_token: string; |
| 57 | token_type?: string; |
| 58 | }; |
| 59 | |
| 60 | export type UpdatePassword = { |
| 61 | current_password: string; |
| 62 | new_password: string; |
| 63 | }; |
| 64 | |
| 65 | export type UserCreate = { |
| 66 | email: string; |
| 67 | is_active?: boolean; |
| 68 | is_superuser?: boolean; |
| 69 | full_name?: (string | null); |
| 70 | password: string; |
| 71 | }; |
| 72 | |
| 73 | export type UserPublic = { |
| 74 | email: string; |
| 75 | is_active?: boolean; |
| 76 | is_superuser?: boolean; |
| 77 | full_name?: (string | null); |
| 78 | id: string; |
| 79 | created_at?: (string | null); |
| 80 | }; |
| 81 | |
| 82 | export type UserRegister = { |
| 83 | email: string; |
| 84 | password: string; |
| 85 | full_name?: (string | null); |
| 86 | }; |
| 87 | |
| 88 | export type UsersPublic = { |
| 89 | data: Array<UserPublic>; |
| 90 | count: number; |
| 91 | }; |
| 92 | |
| 93 | export type UserUpdate = { |
| 94 | email?: (string | null); |
| 95 | is_active?: boolean; |
| 96 | is_superuser?: boolean; |
| 97 | full_name?: (string | null); |
| 98 | password?: (string | null); |
| 99 | }; |
| 100 | |
| 101 | export type UserUpdateMe = { |
| 102 | full_name?: (string | null); |
| 103 | email?: (string | null); |
| 104 | }; |
| 105 | |
| 106 | export type ValidationError = { |
| 107 | loc: Array<(string | number)>; |
| 108 | msg: string; |
| 109 | type: string; |
| 110 | input?: unknown; |
| 111 | ctx?: { |
| 112 | [key: string]: unknown; |
| 113 | }; |
| 114 | }; |
| 115 | |
| 116 | export type ItemsReadItemsData = { |
| 117 | limit?: number; |
| 118 | skip?: number; |
| 119 | }; |
| 120 | |
| 121 | export type ItemsReadItemsResponse = (ItemsPublic); |
| 122 | |
| 123 | export type ItemsCreateItemData = { |
| 124 | requestBody: ItemCreate; |
| 125 | }; |
| 126 | |
| 127 | export type ItemsCreateItemResponse = (ItemPublic); |
| 128 | |
| 129 | export type ItemsReadItemData = { |
| 130 | id: string; |
| 131 | }; |
| 132 | |
| 133 | export type ItemsReadItemResponse = (ItemPublic); |
| 134 | |
| 135 | export type ItemsUpdateItemData = { |
| 136 | id: string; |
| 137 | requestBody: ItemUpdate; |
| 138 | }; |
| 139 | |
| 140 | export type ItemsUpdateItemResponse = (ItemPublic); |
| 141 | |
| 142 | export type ItemsDeleteItemData = { |
| 143 | id: string; |
| 144 | }; |
| 145 | |
| 146 | export type ItemsDeleteItemResponse = (Message); |
| 147 | |
| 148 | export type LoginLoginAccessTokenData = { |
| 149 | formData: Body_login_login_access_token; |
| 150 | }; |
| 151 | |
| 152 | export type LoginLoginAccessTokenResponse = (Token); |
| 153 | |
| 154 | export type LoginTestTokenResponse = (UserPublic); |
| 155 | |
| 156 | export type LoginRecoverPasswordData = { |
| 157 | email: string; |
| 158 | }; |
| 159 | |
| 160 | export type LoginRecoverPasswordResponse = (Message); |
| 161 | |
| 162 | export type LoginResetPasswordData = { |
| 163 | requestBody: NewPassword; |
| 164 | }; |
| 165 | |
| 166 | export type LoginResetPasswordResponse = (Message); |
| 167 | |
| 168 | export type LoginRecoverPasswordHtmlContentData = { |
| 169 | email: string; |
| 170 | }; |
| 171 | |
| 172 | export type LoginRecoverPasswordHtmlContentResponse = (string); |
| 173 | |
| 174 | export type PrivateCreateUserData = { |
| 175 | requestBody: PrivateUserCreate; |
| 176 | }; |
| 177 | |
| 178 | export type PrivateCreateUserResponse = (UserPublic); |
| 179 | |
| 180 | export type UsersReadUsersData = { |
| 181 | limit?: number; |
| 182 | skip?: number; |
| 183 | }; |
| 184 | |
| 185 | export type UsersReadUsersResponse = (UsersPublic); |
| 186 | |
| 187 | export type UsersCreateUserData = { |
| 188 | requestBody: UserCreate; |
| 189 | }; |
| 190 | |
| 191 | export type UsersCreateUserResponse = (UserPublic); |
| 192 | |
| 193 | export type UsersReadUserMeResponse = (UserPublic); |
| 194 | |
| 195 | export type UsersDeleteUserMeResponse = (Message); |
| 196 | |
| 197 | export type UsersUpdateUserMeData = { |
| 198 | requestBody: UserUpdateMe; |
| 199 | }; |
| 200 | |
| 201 | export type UsersUpdateUserMeResponse = (UserPublic); |
| 202 | |
| 203 | export type UsersUpdatePasswordMeData = { |
| 204 | requestBody: UpdatePassword; |
| 205 | }; |
| 206 | |
| 207 | export type UsersUpdatePasswordMeResponse = (Message); |
| 208 | |
| 209 | export type UsersRegisterUserData = { |
| 210 | requestBody: UserRegister; |
| 211 | }; |
| 212 | |
| 213 | export type UsersRegisterUserResponse = (UserPublic); |
| 214 | |
| 215 | export type UsersReadUserByIdData = { |
| 216 | userId: string; |
| 217 | }; |
| 218 | |
| 219 | export type UsersReadUserByIdResponse = (UserPublic); |
| 220 | |
| 221 | export type UsersUpdateUserData = { |
| 222 | requestBody: UserUpdate; |
| 223 | userId: string; |
| 224 | }; |
| 225 | |
| 226 | export type UsersUpdateUserResponse = (UserPublic); |
| 227 | |
| 228 | export type UsersDeleteUserData = { |
| 229 | userId: string; |
| 230 | }; |
| 231 | |
| 232 | export type UsersDeleteUserResponse = (Message); |
| 233 | |
| 234 | export type UtilsTestEmailData = { |
| 235 | emailTo: string; |
| 236 | }; |
| 237 | |
| 238 | export type UtilsTestEmailResponse = (Message); |
| 239 | |
| 240 | export type UtilsHealthCheckResponse = (boolean); |