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