File tree 3 files changed +39
-1
lines changed
3 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 39
39
- run : uv run bash scripts/generate-client.sh
40
40
env :
41
41
VIRTUAL_ENV : backend/.venv
42
- ENVIRONMENT : production
43
42
SECRET_KEY : just-for-generating-client
44
43
POSTGRES_PASSWORD : just-for-generating-client
45
44
FIRST_SUPERUSER_PASSWORD : just-for-generating-client
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import type {
23
23
LoginResetPasswordResponse ,
24
24
LoginRecoverPasswordHtmlContentData ,
25
25
LoginRecoverPasswordHtmlContentResponse ,
26
+ PrivateCreateUserData ,
27
+ PrivateCreateUserResponse ,
26
28
UsersReadUsersData ,
27
29
UsersReadUsersResponse ,
28
30
UsersCreateUserData ,
@@ -272,6 +274,30 @@ export class LoginService {
272
274
}
273
275
}
274
276
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
+
275
301
export class UsersService {
276
302
/**
277
303
* Read Users
Original file line number Diff line number Diff line change @@ -44,6 +44,13 @@ export type NewPassword = {
44
44
new_password : string
45
45
}
46
46
47
+ export type PrivateUserCreate = {
48
+ email : string
49
+ password : string
50
+ full_name : string
51
+ is_verified ?: boolean
52
+ }
53
+
47
54
export type Token = {
48
55
access_token : string
49
56
token_type ?: string
@@ -158,6 +165,12 @@ export type LoginRecoverPasswordHtmlContentData = {
158
165
159
166
export type LoginRecoverPasswordHtmlContentResponse = string
160
167
168
+ export type PrivateCreateUserData = {
169
+ requestBody : PrivateUserCreate
170
+ }
171
+
172
+ export type PrivateCreateUserResponse = UserPublic
173
+
161
174
export type UsersReadUsersData = {
162
175
limit ?: number
163
176
skip ?: number
You canβt perform that action at this time.
0 commit comments