👷🏻‍♀️ Update CI for client generation (#1573)

This commit is contained in:
Alejandra
2025-04-27 13:22:51 +02:00
committed by GitHub
parent 399bd5b4e1
commit 893f5ff3ce
3 changed files with 39 additions and 1 deletions

View File

@@ -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

View File

@@ -23,6 +23,8 @@ import type {
LoginResetPasswordResponse,
LoginRecoverPasswordHtmlContentData,
LoginRecoverPasswordHtmlContentResponse,
PrivateCreateUserData,
PrivateCreateUserResponse,
UsersReadUsersData,
UsersReadUsersResponse,
UsersCreateUserData,
@@ -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

View File

@@ -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
@@ -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