mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 20:36:27 +00:00
Generate client (types.gen.ts step 1)
This commit is contained in:
+201
-113
@@ -1,12 +1,16 @@
|
|||||||
// This file is auto-generated by @hey-api/openapi-ts
|
// This file is auto-generated by @hey-api/openapi-ts
|
||||||
|
|
||||||
|
export type ClientOptions = {
|
||||||
|
baseURL: `${string}://${string}` | (string & {});
|
||||||
|
};
|
||||||
|
|
||||||
export type Body_login_login_access_token = {
|
export type Body_login_login_access_token = {
|
||||||
grant_type?: (string | null);
|
grant_type?: string | null;
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
scope?: string;
|
scope?: string;
|
||||||
client_id?: (string | null);
|
client_id?: string | null;
|
||||||
client_secret?: (string | null);
|
client_secret?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type HTTPValidationError = {
|
export type HTTPValidationError = {
|
||||||
@@ -15,15 +19,15 @@ export type HTTPValidationError = {
|
|||||||
|
|
||||||
export type ItemCreate = {
|
export type ItemCreate = {
|
||||||
title: string;
|
title: string;
|
||||||
description?: (string | null);
|
description?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ItemPublic = {
|
export type ItemPublic = {
|
||||||
title: string;
|
title: string;
|
||||||
description?: (string | null);
|
description?: string | null;
|
||||||
id: string;
|
id: string;
|
||||||
owner_id: string;
|
owner_id: string;
|
||||||
created_at?: (string | null);
|
created_at?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ItemsPublic = {
|
export type ItemsPublic = {
|
||||||
@@ -32,8 +36,8 @@ export type ItemsPublic = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type ItemUpdate = {
|
export type ItemUpdate = {
|
||||||
title?: (string | null);
|
title?: string | null;
|
||||||
description?: (string | null);
|
description?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Message = {
|
export type Message = {
|
||||||
@@ -66,7 +70,7 @@ export type UserCreate = {
|
|||||||
email: string;
|
email: string;
|
||||||
is_active?: boolean;
|
is_active?: boolean;
|
||||||
is_superuser?: boolean;
|
is_superuser?: boolean;
|
||||||
full_name?: (string | null);
|
full_name?: string | null;
|
||||||
password: string;
|
password: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -74,15 +78,15 @@ export type UserPublic = {
|
|||||||
email: string;
|
email: string;
|
||||||
is_active?: boolean;
|
is_active?: boolean;
|
||||||
is_superuser?: boolean;
|
is_superuser?: boolean;
|
||||||
full_name?: (string | null);
|
full_name?: string | null;
|
||||||
id: string;
|
id: string;
|
||||||
created_at?: (string | null);
|
created_at?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserRegister = {
|
export type UserRegister = {
|
||||||
email: string;
|
email: string;
|
||||||
password: string;
|
password: string;
|
||||||
full_name?: (string | null);
|
full_name?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersPublic = {
|
export type UsersPublic = {
|
||||||
@@ -91,20 +95,20 @@ export type UsersPublic = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type UserUpdate = {
|
export type UserUpdate = {
|
||||||
email?: (string | null);
|
email?: string | null;
|
||||||
is_active?: (boolean | null);
|
is_active?: boolean | null;
|
||||||
is_superuser?: (boolean | null);
|
is_superuser?: boolean | null;
|
||||||
full_name?: (string | null);
|
full_name?: string | null;
|
||||||
password?: (string | null);
|
password?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserUpdateMe = {
|
export type UserUpdateMe = {
|
||||||
full_name?: (string | null);
|
full_name?: string | null;
|
||||||
email?: (string | null);
|
email?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ValidationError = {
|
export type ValidationError = {
|
||||||
loc: Array<(string | number)>;
|
loc: Array<string | number>;
|
||||||
msg: string;
|
msg: string;
|
||||||
type: string;
|
type: string;
|
||||||
input?: unknown;
|
input?: unknown;
|
||||||
@@ -113,128 +117,212 @@ export type ValidationError = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ItemsReadItemsData = {
|
export type itemsReadItemsData = {
|
||||||
limit?: number;
|
body?: never;
|
||||||
|
path?: never;
|
||||||
|
query?: {
|
||||||
skip?: number;
|
skip?: number;
|
||||||
};
|
|
||||||
|
|
||||||
export type ItemsReadItemsResponse = (ItemsPublic);
|
|
||||||
|
|
||||||
export type ItemsCreateItemData = {
|
|
||||||
requestBody: ItemCreate;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ItemsCreateItemResponse = (ItemPublic);
|
|
||||||
|
|
||||||
export type ItemsReadItemData = {
|
|
||||||
id: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ItemsReadItemResponse = (ItemPublic);
|
|
||||||
|
|
||||||
export type ItemsUpdateItemData = {
|
|
||||||
id: string;
|
|
||||||
requestBody: ItemUpdate;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ItemsUpdateItemResponse = (ItemPublic);
|
|
||||||
|
|
||||||
export type ItemsDeleteItemData = {
|
|
||||||
id: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ItemsDeleteItemResponse = (Message);
|
|
||||||
|
|
||||||
export type LoginLoginAccessTokenData = {
|
|
||||||
formData: Body_login_login_access_token;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type LoginLoginAccessTokenResponse = (Token);
|
|
||||||
|
|
||||||
export type LoginTestTokenResponse = (UserPublic);
|
|
||||||
|
|
||||||
export type LoginRecoverPasswordData = {
|
|
||||||
email: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type LoginRecoverPasswordResponse = (Message);
|
|
||||||
|
|
||||||
export type LoginResetPasswordData = {
|
|
||||||
requestBody: NewPassword;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type LoginResetPasswordResponse = (Message);
|
|
||||||
|
|
||||||
export type LoginRecoverPasswordHtmlContentData = {
|
|
||||||
email: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type LoginRecoverPasswordHtmlContentResponse = (string);
|
|
||||||
|
|
||||||
export type PrivateCreateUserData = {
|
|
||||||
requestBody: PrivateUserCreate;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PrivateCreateUserResponse = (UserPublic);
|
|
||||||
|
|
||||||
export type UsersReadUsersData = {
|
|
||||||
limit?: number;
|
limit?: number;
|
||||||
|
};
|
||||||
|
url: '/api/v1/items/';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type itemsReadItemsResponse = itemsReadItemsResponses[keyof itemsReadItemsResponses];
|
||||||
|
|
||||||
|
export type itemsCreateItemData = {
|
||||||
|
body: ItemCreate;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/items/';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type itemsCreateItemResponse = itemsCreateItemResponses[keyof itemsCreateItemResponses];
|
||||||
|
|
||||||
|
export type itemsReadItemData = {
|
||||||
|
body?: never;
|
||||||
|
path: {
|
||||||
|
id: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/items/{id}';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type itemsReadItemResponse = itemsReadItemResponses[keyof itemsReadItemResponses];
|
||||||
|
|
||||||
|
export type itemsUpdateItemData = {
|
||||||
|
body: ItemUpdate;
|
||||||
|
path: {
|
||||||
|
id: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/items/{id}';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type itemsUpdateItemResponse = itemsUpdateItemResponses[keyof itemsUpdateItemResponses];
|
||||||
|
|
||||||
|
export type itemsDeleteItemData = {
|
||||||
|
body?: never;
|
||||||
|
path: {
|
||||||
|
id: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/items/{id}';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type itemsDeleteItemResponse = itemsDeleteItemResponses[keyof itemsDeleteItemResponses];
|
||||||
|
|
||||||
|
export type loginLoginAccessTokenData = {
|
||||||
|
body: Body_login_login_access_token;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/login/access-token';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type loginLoginAccessTokenResponse = loginLoginAccessTokenResponses[keyof loginLoginAccessTokenResponses];
|
||||||
|
|
||||||
|
export type loginTestTokenResponse = loginTestTokenResponses[keyof loginTestTokenResponses];
|
||||||
|
|
||||||
|
export type loginRecoverPasswordData = {
|
||||||
|
body?: never;
|
||||||
|
path: {
|
||||||
|
email: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/password-recovery/{email}';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type loginRecoverPasswordResponse = loginRecoverPasswordResponses[keyof loginRecoverPasswordResponses];
|
||||||
|
|
||||||
|
export type loginResetPasswordData = {
|
||||||
|
body: NewPassword;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/reset-password/';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type loginResetPasswordResponse = loginResetPasswordResponses[keyof loginResetPasswordResponses];
|
||||||
|
|
||||||
|
export type loginRecoverPasswordHtmlContentData = {
|
||||||
|
body?: never;
|
||||||
|
path: {
|
||||||
|
email: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/password-recovery-html-content/{email}';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type loginRecoverPasswordHtmlContentResponse = loginRecoverPasswordHtmlContentResponses[keyof loginRecoverPasswordHtmlContentResponses];
|
||||||
|
|
||||||
|
export type loginTestTokenData = {
|
||||||
|
body?: never;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/login/test-token';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type privateCreateUserData = {
|
||||||
|
body: PrivateUserCreate;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/private/users/';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type privateCreateUserResponse = privateCreateUserResponses[keyof privateCreateUserResponses];
|
||||||
|
|
||||||
|
export type usersReadUsersData = {
|
||||||
|
body?: never;
|
||||||
|
path?: never;
|
||||||
|
query?: {
|
||||||
skip?: number;
|
skip?: number;
|
||||||
|
limit?: number;
|
||||||
|
};
|
||||||
|
url: '/api/v1/users/';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersReadUsersResponse = (UsersPublic);
|
export type usersReadUsersResponse = usersReadUsersResponses[keyof usersReadUsersResponses];
|
||||||
|
|
||||||
export type UsersCreateUserData = {
|
export type usersCreateUserData = {
|
||||||
requestBody: UserCreate;
|
body: UserCreate;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/users/';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersCreateUserResponse = (UserPublic);
|
export type usersCreateUserResponse = usersCreateUserResponses[keyof usersCreateUserResponses];
|
||||||
|
|
||||||
export type UsersReadUserMeResponse = (UserPublic);
|
export type usersReadUserMeResponse = usersReadUserMeResponses[keyof usersReadUserMeResponses];
|
||||||
|
|
||||||
export type UsersDeleteUserMeResponse = (Message);
|
export type usersDeleteUserMeResponse = usersDeleteUserMeResponses[keyof usersDeleteUserMeResponses];
|
||||||
|
|
||||||
export type UsersUpdateUserMeData = {
|
export type usersUpdateUserMeData = {
|
||||||
requestBody: UserUpdateMe;
|
body: UserUpdateMe;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/users/me';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersUpdateUserMeResponse = (UserPublic);
|
export type usersUpdateUserMeResponse = usersUpdateUserMeResponses[keyof usersUpdateUserMeResponses];
|
||||||
|
|
||||||
export type UsersUpdatePasswordMeData = {
|
export type usersUpdatePasswordMeData = {
|
||||||
requestBody: UpdatePassword;
|
body: UpdatePassword;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/users/me/password';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersUpdatePasswordMeResponse = (Message);
|
export type usersUpdatePasswordMeResponse = usersUpdatePasswordMeResponses[keyof usersUpdatePasswordMeResponses];
|
||||||
|
|
||||||
export type UsersRegisterUserData = {
|
export type usersRegisterUserData = {
|
||||||
requestBody: UserRegister;
|
body: UserRegister;
|
||||||
|
path?: never;
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/users/signup';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersRegisterUserResponse = (UserPublic);
|
export type usersRegisterUserResponse = usersRegisterUserResponses[keyof usersRegisterUserResponses];
|
||||||
|
|
||||||
export type UsersReadUserByIdData = {
|
export type usersReadUserByIdData = {
|
||||||
userId: string;
|
body?: never;
|
||||||
|
path: {
|
||||||
|
user_id: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/users/{user_id}';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersReadUserByIdResponse = (UserPublic);
|
export type usersReadUserByIdResponse = usersReadUserByIdResponses[keyof usersReadUserByIdResponses];
|
||||||
|
|
||||||
export type UsersUpdateUserData = {
|
export type usersUpdateUserData = {
|
||||||
requestBody: UserUpdate;
|
body: UserUpdate;
|
||||||
userId: string;
|
path: {
|
||||||
|
user_id: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/users/{user_id}';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersUpdateUserResponse = (UserPublic);
|
export type usersUpdateUserResponse = usersUpdateUserResponses[keyof usersUpdateUserResponses];
|
||||||
|
|
||||||
export type UsersDeleteUserData = {
|
export type usersDeleteUserData = {
|
||||||
userId: string;
|
body?: never;
|
||||||
|
path: {
|
||||||
|
user_id: string;
|
||||||
|
};
|
||||||
|
query?: never;
|
||||||
|
url: '/api/v1/users/{user_id}';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UsersDeleteUserResponse = (Message);
|
export type usersDeleteUserResponse = usersDeleteUserResponses[keyof usersDeleteUserResponses];
|
||||||
|
|
||||||
export type UtilsTestEmailData = {
|
export type utilsTestEmailData = {
|
||||||
emailTo: string;
|
body?: never;
|
||||||
|
path?: never;
|
||||||
|
query: {
|
||||||
|
email_to: string;
|
||||||
|
};
|
||||||
|
url: '/api/v1/utils/test-email/';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UtilsTestEmailResponse = (Message);
|
export type utilsTestEmailResponse = utilsTestEmailResponses[keyof utilsTestEmailResponses];
|
||||||
|
|
||||||
export type UtilsHealthCheckResponse = (boolean);
|
export type utilsHealthCheckResponse = utilsHealthCheckResponses[keyof utilsHealthCheckResponses];
|
||||||
|
|||||||
Reference in New Issue
Block a user