File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ export type NewPassword = {
42
42
new_password : string
43
43
}
44
44
45
+ export type PrivateCreateUser = {
46
+ email : string
47
+ password : string
48
+ full_name : string
49
+ is_verified ?: boolean
50
+ }
51
+
45
52
export type Token = {
46
53
access_token : string
47
54
token_type ?: string
Original file line number Diff line number Diff line change @@ -186,6 +186,27 @@ export const $NewPassword = {
186
186
} ,
187
187
} as const
188
188
189
+ export const $PrivateCreateUser = {
190
+ properties : {
191
+ email : {
192
+ type : "string" ,
193
+ isRequired : true ,
194
+ } ,
195
+ password : {
196
+ type : "string" ,
197
+ isRequired : true ,
198
+ } ,
199
+ full_name : {
200
+ type : "string" ,
201
+ isRequired : true ,
202
+ } ,
203
+ is_verified : {
204
+ type : "boolean" ,
205
+ default : false ,
206
+ } ,
207
+ } ,
208
+ } as const
209
+
189
210
export const $Token = {
190
211
properties : {
191
212
access_token : {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import type {
18
18
ItemPublic ,
19
19
ItemsPublic ,
20
20
ItemUpdate ,
21
+ PrivateCreateUser ,
21
22
} from "./models"
22
23
23
24
export type TDataLoginAccessToken = {
@@ -527,3 +528,30 @@ export class ItemsService {
527
528
} )
528
529
}
529
530
}
531
+
532
+ export type TDataCreateUser = {
533
+ requestBody : PrivateCreateUser
534
+ }
535
+
536
+ export class PrivateService {
537
+ /**
538
+ * Create User
539
+ * Create a new user.
540
+ * @returns UserPublic Successful Response
541
+ * @throws ApiError
542
+ */
543
+ public static createUser (
544
+ data : TDataCreateUser ,
545
+ ) : CancelablePromise < UserPublic > {
546
+ const { requestBody } = data
547
+ return __request ( OpenAPI , {
548
+ method : "POST" ,
549
+ url : "/api/v1/private/users/" ,
550
+ body : requestBody ,
551
+ mediaType : "application/json" ,
552
+ errors : {
553
+ 422 : `Validation Error` ,
554
+ } ,
555
+ } )
556
+ }
557
+ }
You can’t perform that action at this time.
0 commit comments