File tree Expand file tree Collapse file tree 3 files changed +39
-1
lines changed Expand file tree Collapse file tree 3 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 3939 - run : uv run bash scripts/generate-client.sh
4040 env :
4141 VIRTUAL_ENV : backend/.venv
42- ENVIRONMENT : production
4342 SECRET_KEY : just-for-generating-client
4443 POSTGRES_PASSWORD : just-for-generating-client
4544 FIRST_SUPERUSER_PASSWORD : just-for-generating-client
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import type {
2323 LoginResetPasswordResponse ,
2424 LoginRecoverPasswordHtmlContentData ,
2525 LoginRecoverPasswordHtmlContentResponse ,
26+ PrivateCreateUserData ,
27+ PrivateCreateUserResponse ,
2628 UsersReadUsersData ,
2729 UsersReadUsersResponse ,
2830 UsersCreateUserData ,
@@ -272,6 +274,30 @@ export class LoginService {
272274 }
273275}
274276
277+ export class PrivateService {
278+ /**
279+ * Create User
280+ * Create a new user.
281+ * @param data The data for the request.
282+ * @param data.requestBody
283+ * @returns UserPublic Successful Response
284+ * @throws ApiError
285+ */
286+ public static createUser (
287+ data : PrivateCreateUserData ,
288+ ) : CancelablePromise < PrivateCreateUserResponse > {
289+ return __request ( OpenAPI , {
290+ method : "POST" ,
291+ url : "/api/v1/private/users/" ,
292+ body : data . requestBody ,
293+ mediaType : "application/json" ,
294+ errors : {
295+ 422 : "Validation Error" ,
296+ } ,
297+ } )
298+ }
299+ }
300+
275301export class UsersService {
276302 /**
277303 * Read Users
Original file line number Diff line number Diff line change @@ -44,6 +44,13 @@ export type NewPassword = {
4444 new_password : string
4545}
4646
47+ export type PrivateUserCreate = {
48+ email : string
49+ password : string
50+ full_name : string
51+ is_verified ?: boolean
52+ }
53+
4754export type Token = {
4855 access_token : string
4956 token_type ?: string
@@ -158,6 +165,12 @@ export type LoginRecoverPasswordHtmlContentData = {
158165
159166export type LoginRecoverPasswordHtmlContentResponse = string
160167
168+ export type PrivateCreateUserData = {
169+ requestBody : PrivateUserCreate
170+ }
171+
172+ export type PrivateCreateUserResponse = UserPublic
173+
161174export type UsersReadUsersData = {
162175 limit ?: number
163176 skip ?: number
You canβt perform that action at this time.
0 commit comments