Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/generate-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- run: uv run bash scripts/generate-client.sh
env:
VIRTUAL_ENV: backend/.venv
ENVIRONMENT: production
SECRET_KEY: just-for-generating-client
POSTGRES_PASSWORD: just-for-generating-client
FIRST_SUPERUSER_PASSWORD: just-for-generating-client
Expand Down
26 changes: 26 additions & 0 deletions frontend/src/client/sdk.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import type {
LoginResetPasswordResponse,
LoginRecoverPasswordHtmlContentData,
LoginRecoverPasswordHtmlContentResponse,
PrivateCreateUserData,
PrivateCreateUserResponse,
UsersReadUsersData,
UsersReadUsersResponse,
UsersCreateUserData,
Expand Down Expand Up @@ -272,6 +274,30 @@ export class LoginService {
}
}

export class PrivateService {
/**
* Create User
* Create a new user.
* @param data The data for the request.
* @param data.requestBody
* @returns UserPublic Successful Response
* @throws ApiError
*/
public static createUser(
data: PrivateCreateUserData,
): CancelablePromise<PrivateCreateUserResponse> {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/private/users/",
body: data.requestBody,
mediaType: "application/json",
errors: {
422: "Validation Error",
},
})
}
}

export class UsersService {
/**
* Read Users
Expand Down
13 changes: 13 additions & 0 deletions frontend/src/client/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export type NewPassword = {
new_password: string
}

export type PrivateUserCreate = {
email: string
password: string
full_name: string
is_verified?: boolean
}

export type Token = {
access_token: string
token_type?: string
Expand Down Expand Up @@ -158,6 +165,12 @@ export type LoginRecoverPasswordHtmlContentData = {

export type LoginRecoverPasswordHtmlContentResponse = string

export type PrivateCreateUserData = {
requestBody: PrivateUserCreate
}

export type PrivateCreateUserResponse = UserPublic

export type UsersReadUsersData = {
limit?: number
skip?: number
Expand Down
Loading