@authticon/client 0.0.0-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/Auth.d.ts +19 -0
  2. package/dist/Auth.d.ts.map +1 -0
  3. package/dist/Auth.js +24 -0
  4. package/dist/Auth.js.map +1 -0
  5. package/dist/Authticon.d.ts +21 -0
  6. package/dist/Authticon.d.ts.map +1 -0
  7. package/dist/Authticon.js +30 -0
  8. package/dist/Authticon.js.map +1 -0
  9. package/dist/BrowserCookieAdapter.d.ts +13 -0
  10. package/dist/BrowserCookieAdapter.d.ts.map +1 -0
  11. package/dist/BrowserCookieAdapter.js +18 -0
  12. package/dist/BrowserCookieAdapter.js.map +1 -0
  13. package/dist/BrowserCookieAdapter.test.d.ts +2 -0
  14. package/dist/BrowserCookieAdapter.test.d.ts.map +1 -0
  15. package/dist/BrowserCookieAdapter.test.js +145 -0
  16. package/dist/BrowserCookieAdapter.test.js.map +1 -0
  17. package/dist/RemixCookieAdapter.d.ts +12 -0
  18. package/dist/RemixCookieAdapter.d.ts.map +1 -0
  19. package/dist/RemixCookieAdapter.js +25 -0
  20. package/dist/RemixCookieAdapter.js.map +1 -0
  21. package/dist/RemixCookieAdapter.test.d.ts +2 -0
  22. package/dist/RemixCookieAdapter.test.d.ts.map +1 -0
  23. package/dist/RemixCookieAdapter.test.js +136 -0
  24. package/dist/RemixCookieAdapter.test.js.map +1 -0
  25. package/dist/TokenManager.d.ts +22 -0
  26. package/dist/TokenManager.d.ts.map +1 -0
  27. package/dist/TokenManager.js +45 -0
  28. package/dist/TokenManager.js.map +1 -0
  29. package/dist/TokenManager.test.d.ts +2 -0
  30. package/dist/TokenManager.test.d.ts.map +1 -0
  31. package/dist/TokenManager.test.js +118 -0
  32. package/dist/TokenManager.test.js.map +1 -0
  33. package/dist/TokenStorage.d.ts +17 -0
  34. package/dist/TokenStorage.d.ts.map +1 -0
  35. package/dist/TokenStorage.js +68 -0
  36. package/dist/TokenStorage.js.map +1 -0
  37. package/dist/TokenStorage.test.d.ts +2 -0
  38. package/dist/TokenStorage.test.d.ts.map +1 -0
  39. package/dist/TokenStorage.test.js +179 -0
  40. package/dist/TokenStorage.test.js.map +1 -0
  41. package/dist/TokenVerifier.d.ts +13 -0
  42. package/dist/TokenVerifier.d.ts.map +1 -0
  43. package/dist/TokenVerifier.js +61 -0
  44. package/dist/TokenVerifier.js.map +1 -0
  45. package/dist/TokenVerifier.test.d.ts +2 -0
  46. package/dist/TokenVerifier.test.d.ts.map +1 -0
  47. package/dist/TokenVerifier.test.js +117 -0
  48. package/dist/TokenVerifier.test.js.map +1 -0
  49. package/dist/Users.d.ts +57 -0
  50. package/dist/Users.d.ts.map +1 -0
  51. package/dist/Users.js +54 -0
  52. package/dist/Users.js.map +1 -0
  53. package/dist/cookie-utils.d.ts +5 -0
  54. package/dist/cookie-utils.d.ts.map +1 -0
  55. package/dist/cookie-utils.js +33 -0
  56. package/dist/cookie-utils.js.map +1 -0
  57. package/dist/generated/client/client.gen.d.ts +3 -0
  58. package/dist/generated/client/client.gen.d.ts.map +1 -0
  59. package/dist/generated/client/client.gen.js +135 -0
  60. package/dist/generated/client/client.gen.js.map +1 -0
  61. package/dist/generated/client/index.d.ts +9 -0
  62. package/dist/generated/client/index.d.ts.map +1 -0
  63. package/dist/generated/client/index.js +7 -0
  64. package/dist/generated/client/index.js.map +1 -0
  65. package/dist/generated/client/types.gen.d.ts +89 -0
  66. package/dist/generated/client/types.gen.d.ts.map +1 -0
  67. package/dist/generated/client/types.gen.js +3 -0
  68. package/dist/generated/client/types.gen.js.map +1 -0
  69. package/dist/generated/client/utils.gen.d.ts +15 -0
  70. package/dist/generated/client/utils.gen.d.ts.map +1 -0
  71. package/dist/generated/client/utils.gen.js +169 -0
  72. package/dist/generated/client/utils.gen.js.map +1 -0
  73. package/dist/generated/client.gen.d.ts +13 -0
  74. package/dist/generated/client.gen.d.ts.map +1 -0
  75. package/dist/generated/client.gen.js +4 -0
  76. package/dist/generated/client.gen.js.map +1 -0
  77. package/dist/generated/core/auth.gen.d.ts +19 -0
  78. package/dist/generated/core/auth.gen.d.ts.map +1 -0
  79. package/dist/generated/core/auth.gen.js +15 -0
  80. package/dist/generated/core/auth.gen.js.map +1 -0
  81. package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
  82. package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
  83. package/dist/generated/core/bodySerializer.gen.js +58 -0
  84. package/dist/generated/core/bodySerializer.gen.js.map +1 -0
  85. package/dist/generated/core/params.gen.d.ts +44 -0
  86. package/dist/generated/core/params.gen.d.ts.map +1 -0
  87. package/dist/generated/core/params.gen.js +101 -0
  88. package/dist/generated/core/params.gen.js.map +1 -0
  89. package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
  90. package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
  91. package/dist/generated/core/pathSerializer.gen.js +107 -0
  92. package/dist/generated/core/pathSerializer.gen.js.map +1 -0
  93. package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
  94. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
  95. package/dist/generated/core/queryKeySerializer.gen.js +93 -0
  96. package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
  97. package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
  98. package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  99. package/dist/generated/core/serverSentEvents.gen.js +134 -0
  100. package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
  101. package/dist/generated/core/types.gen.d.ts +79 -0
  102. package/dist/generated/core/types.gen.d.ts.map +1 -0
  103. package/dist/generated/core/types.gen.js +3 -0
  104. package/dist/generated/core/types.gen.js.map +1 -0
  105. package/dist/generated/core/utils.gen.d.ts +20 -0
  106. package/dist/generated/core/utils.gen.d.ts.map +1 -0
  107. package/dist/generated/core/utils.gen.js +88 -0
  108. package/dist/generated/core/utils.gen.js.map +1 -0
  109. package/dist/generated/index.d.ts +3 -0
  110. package/dist/generated/index.d.ts.map +1 -0
  111. package/dist/generated/index.js +3 -0
  112. package/dist/generated/index.js.map +1 -0
  113. package/dist/generated/sdk.gen.d.ts +67 -0
  114. package/dist/generated/sdk.gen.d.ts.map +1 -0
  115. package/dist/generated/sdk.gen.js +402 -0
  116. package/dist/generated/sdk.gen.js.map +1 -0
  117. package/dist/generated/types.gen.d.ts +1672 -0
  118. package/dist/generated/types.gen.d.ts.map +1 -0
  119. package/dist/generated/types.gen.js +3 -0
  120. package/dist/generated/types.gen.js.map +1 -0
  121. package/dist/index.d.ts +8 -0
  122. package/dist/index.d.ts.map +1 -0
  123. package/dist/index.js +7 -0
  124. package/dist/index.js.map +1 -0
  125. package/dist/types.d.ts +43 -0
  126. package/dist/types.d.ts.map +1 -0
  127. package/dist/types.js +2 -0
  128. package/dist/types.js.map +1 -0
  129. package/package.json +56 -0
@@ -0,0 +1,1672 @@
1
+ export type ClientOptions = {
2
+ baseURL: 'https://authticon.com' | (string & {});
3
+ };
4
+ export type GetApiV1HealthzData = {
5
+ body?: never;
6
+ path?: never;
7
+ query?: never;
8
+ url: '/api/v1/healthz';
9
+ };
10
+ export type GetApiV1HealthzResponses = {
11
+ /**
12
+ * Default Response
13
+ */
14
+ 200: unknown;
15
+ };
16
+ export type DeleteApiV1AuthTwoFaData = {
17
+ body: {
18
+ token: string;
19
+ };
20
+ path?: never;
21
+ query?: never;
22
+ url: '/api/v1/auth/two-fa';
23
+ };
24
+ export type DeleteApiV1AuthTwoFaErrors = {
25
+ /**
26
+ * Default Response
27
+ */
28
+ 401: {
29
+ statusCode: number;
30
+ error: string;
31
+ message: string;
32
+ };
33
+ };
34
+ export type DeleteApiV1AuthTwoFaError = DeleteApiV1AuthTwoFaErrors[keyof DeleteApiV1AuthTwoFaErrors];
35
+ export type DeleteApiV1AuthTwoFaResponses = {
36
+ /**
37
+ * Default Response
38
+ */
39
+ 200: {
40
+ success: boolean;
41
+ };
42
+ };
43
+ export type DeleteApiV1AuthTwoFaResponse = DeleteApiV1AuthTwoFaResponses[keyof DeleteApiV1AuthTwoFaResponses];
44
+ export type PostApiV1AuthTwoFaData = {
45
+ body: {
46
+ secret: string;
47
+ token?: string;
48
+ type?: 'APP' | 'EMAIL' | 'PHONE';
49
+ };
50
+ path?: never;
51
+ query?: never;
52
+ url: '/api/v1/auth/two-fa';
53
+ };
54
+ export type PostApiV1AuthTwoFaErrors = {
55
+ /**
56
+ * Default Response
57
+ */
58
+ 400: {
59
+ statusCode: number;
60
+ error: string;
61
+ message: string;
62
+ };
63
+ /**
64
+ * Default Response
65
+ */
66
+ 401: {
67
+ statusCode: number;
68
+ error: string;
69
+ message: string;
70
+ };
71
+ };
72
+ export type PostApiV1AuthTwoFaError = PostApiV1AuthTwoFaErrors[keyof PostApiV1AuthTwoFaErrors];
73
+ export type PostApiV1AuthTwoFaResponses = {
74
+ /**
75
+ * Default Response
76
+ */
77
+ 200: {
78
+ success: boolean;
79
+ };
80
+ };
81
+ export type PostApiV1AuthTwoFaResponse = PostApiV1AuthTwoFaResponses[keyof PostApiV1AuthTwoFaResponses];
82
+ export type PostApiV1AuthEmailChangeData = {
83
+ body: {
84
+ newEmail: string;
85
+ };
86
+ path?: never;
87
+ query?: never;
88
+ url: '/api/v1/auth/email/change';
89
+ };
90
+ export type PostApiV1AuthEmailChangeErrors = {
91
+ /**
92
+ * Default Response
93
+ */
94
+ 401: {
95
+ statusCode: number;
96
+ error: string;
97
+ message: string;
98
+ };
99
+ /**
100
+ * Default Response
101
+ */
102
+ 409: {
103
+ statusCode: number;
104
+ error: string;
105
+ message: string;
106
+ };
107
+ };
108
+ export type PostApiV1AuthEmailChangeError = PostApiV1AuthEmailChangeErrors[keyof PostApiV1AuthEmailChangeErrors];
109
+ export type PostApiV1AuthEmailChangeResponses = {
110
+ /**
111
+ * Default Response
112
+ */
113
+ 201: null;
114
+ };
115
+ export type PostApiV1AuthEmailChangeResponse = PostApiV1AuthEmailChangeResponses[keyof PostApiV1AuthEmailChangeResponses];
116
+ export type PostApiV1AuthPasswordChangeData = {
117
+ body: {
118
+ oldPassword: string;
119
+ newPassword: string;
120
+ };
121
+ path?: never;
122
+ query?: never;
123
+ url: '/api/v1/auth/password/change';
124
+ };
125
+ export type PostApiV1AuthPasswordChangeErrors = {
126
+ /**
127
+ * Default Response
128
+ */
129
+ 400: {
130
+ statusCode: number;
131
+ error: string;
132
+ message: string;
133
+ };
134
+ /**
135
+ * Default Response
136
+ */
137
+ 401: {
138
+ statusCode: number;
139
+ error: string;
140
+ message: string;
141
+ };
142
+ };
143
+ export type PostApiV1AuthPasswordChangeError = PostApiV1AuthPasswordChangeErrors[keyof PostApiV1AuthPasswordChangeErrors];
144
+ export type PostApiV1AuthPasswordChangeResponses = {
145
+ /**
146
+ * Default Response
147
+ */
148
+ 201: null;
149
+ };
150
+ export type PostApiV1AuthPasswordChangeResponse = PostApiV1AuthPasswordChangeResponses[keyof PostApiV1AuthPasswordChangeResponses];
151
+ export type PostApiV1AuthGuestData = {
152
+ body: {
153
+ email: string;
154
+ firstName?: string;
155
+ lastName?: string;
156
+ phone?: string;
157
+ };
158
+ path?: never;
159
+ query?: never;
160
+ url: '/api/v1/auth/guest';
161
+ };
162
+ export type PostApiV1AuthGuestErrors = {
163
+ /**
164
+ * Default Response
165
+ */
166
+ 409: {
167
+ statusCode: number;
168
+ error: string;
169
+ message: string;
170
+ };
171
+ };
172
+ export type PostApiV1AuthGuestError = PostApiV1AuthGuestErrors[keyof PostApiV1AuthGuestErrors];
173
+ export type PostApiV1AuthGuestResponses = {
174
+ /**
175
+ * Default Response
176
+ */
177
+ 200: {
178
+ token: string;
179
+ };
180
+ };
181
+ export type PostApiV1AuthGuestResponse = PostApiV1AuthGuestResponses[keyof PostApiV1AuthGuestResponses];
182
+ export type PostApiV1AuthPasswordForgotData = {
183
+ body: {
184
+ email: string;
185
+ };
186
+ path?: never;
187
+ query?: never;
188
+ url: '/api/v1/auth/password/forgot';
189
+ };
190
+ export type PostApiV1AuthPasswordForgotResponses = {
191
+ /**
192
+ * Default Response
193
+ */
194
+ 200: {
195
+ success: boolean;
196
+ };
197
+ };
198
+ export type PostApiV1AuthPasswordForgotResponse = PostApiV1AuthPasswordForgotResponses[keyof PostApiV1AuthPasswordForgotResponses];
199
+ export type GetApiV1AuthTwoFaRecoveryCodesData = {
200
+ body?: never;
201
+ path?: never;
202
+ query?: never;
203
+ url: '/api/v1/auth/two-fa/recovery-codes';
204
+ };
205
+ export type GetApiV1AuthTwoFaRecoveryCodesErrors = {
206
+ /**
207
+ * Default Response
208
+ */
209
+ 401: {
210
+ statusCode: number;
211
+ error: string;
212
+ message: string;
213
+ };
214
+ };
215
+ export type GetApiV1AuthTwoFaRecoveryCodesError = GetApiV1AuthTwoFaRecoveryCodesErrors[keyof GetApiV1AuthTwoFaRecoveryCodesErrors];
216
+ export type GetApiV1AuthTwoFaRecoveryCodesResponses = {
217
+ /**
218
+ * Default Response
219
+ */
220
+ 200: {
221
+ recoveryCodes: Array<string>;
222
+ };
223
+ };
224
+ export type GetApiV1AuthTwoFaRecoveryCodesResponse = GetApiV1AuthTwoFaRecoveryCodesResponses[keyof GetApiV1AuthTwoFaRecoveryCodesResponses];
225
+ export type PostApiV1AuthTwoFaRecoveryCodesData = {
226
+ body: {
227
+ token: string;
228
+ };
229
+ path?: never;
230
+ query?: never;
231
+ url: '/api/v1/auth/two-fa/recovery-codes';
232
+ };
233
+ export type PostApiV1AuthTwoFaRecoveryCodesErrors = {
234
+ /**
235
+ * Default Response
236
+ */
237
+ 401: {
238
+ statusCode: number;
239
+ error: string;
240
+ message: string;
241
+ };
242
+ };
243
+ export type PostApiV1AuthTwoFaRecoveryCodesError = PostApiV1AuthTwoFaRecoveryCodesErrors[keyof PostApiV1AuthTwoFaRecoveryCodesErrors];
244
+ export type PostApiV1AuthTwoFaRecoveryCodesResponses = {
245
+ /**
246
+ * Default Response
247
+ */
248
+ 200: {
249
+ recoveryCodes: Array<string>;
250
+ };
251
+ };
252
+ export type PostApiV1AuthTwoFaRecoveryCodesResponse = PostApiV1AuthTwoFaRecoveryCodesResponses[keyof PostApiV1AuthTwoFaRecoveryCodesResponses];
253
+ export type PostApiV1AuthTwoFaSecretData = {
254
+ body: {
255
+ issuer: string;
256
+ email?: string;
257
+ };
258
+ path?: never;
259
+ query?: never;
260
+ url: '/api/v1/auth/two-fa/secret';
261
+ };
262
+ export type PostApiV1AuthTwoFaSecretResponses = {
263
+ /**
264
+ * Default Response
265
+ */
266
+ 200: {
267
+ secret: string;
268
+ uri: string;
269
+ };
270
+ };
271
+ export type PostApiV1AuthTwoFaSecretResponse = PostApiV1AuthTwoFaSecretResponses[keyof PostApiV1AuthTwoFaSecretResponses];
272
+ export type PostApiV1AuthEmailCheckData = {
273
+ body: {
274
+ email: string;
275
+ };
276
+ path?: never;
277
+ query?: never;
278
+ url: '/api/v1/auth/email/check';
279
+ };
280
+ export type PostApiV1AuthEmailCheckResponses = {
281
+ /**
282
+ * Default Response
283
+ */
284
+ 200: {
285
+ isFree: boolean;
286
+ };
287
+ };
288
+ export type PostApiV1AuthEmailCheckResponse = PostApiV1AuthEmailCheckResponses[keyof PostApiV1AuthEmailCheckResponses];
289
+ export type PostApiV1AuthPhoneCheckData = {
290
+ body: {
291
+ phone: string;
292
+ };
293
+ path?: never;
294
+ query?: never;
295
+ url: '/api/v1/auth/phone/check';
296
+ };
297
+ export type PostApiV1AuthPhoneCheckResponses = {
298
+ /**
299
+ * Default Response
300
+ */
301
+ 200: {
302
+ isFree: boolean;
303
+ };
304
+ };
305
+ export type PostApiV1AuthPhoneCheckResponse = PostApiV1AuthPhoneCheckResponses[keyof PostApiV1AuthPhoneCheckResponses];
306
+ export type PostApiV1AuthLoginData = {
307
+ body: {
308
+ email: string;
309
+ password: string;
310
+ deviceId?: string;
311
+ ip?: string;
312
+ twoFaCode?: string;
313
+ userAgent: string;
314
+ rememberToken?: string;
315
+ };
316
+ path?: never;
317
+ query?: never;
318
+ url: '/api/v1/auth/login';
319
+ };
320
+ export type PostApiV1AuthLoginErrors = {
321
+ /**
322
+ * Default Response
323
+ */
324
+ 401: {
325
+ statusCode: number;
326
+ error: string;
327
+ message: string;
328
+ };
329
+ };
330
+ export type PostApiV1AuthLoginError = PostApiV1AuthLoginErrors[keyof PostApiV1AuthLoginErrors];
331
+ export type PostApiV1AuthLoginResponses = {
332
+ /**
333
+ * Default Response
334
+ */
335
+ 200: {
336
+ accessToken: string;
337
+ refreshToken: string;
338
+ deviceId: string;
339
+ } | {
340
+ twoFaType: 'email' | 'sms' | 'app';
341
+ twoFaToken: string;
342
+ deviceId: string;
343
+ };
344
+ };
345
+ export type PostApiV1AuthLoginResponse = PostApiV1AuthLoginResponses[keyof PostApiV1AuthLoginResponses];
346
+ export type PostApiV1AuthLoginAsData = {
347
+ body: {
348
+ userId: string;
349
+ };
350
+ path?: never;
351
+ query?: never;
352
+ url: '/api/v1/auth/login-as';
353
+ };
354
+ export type PostApiV1AuthLoginAsErrors = {
355
+ /**
356
+ * Default Response
357
+ */
358
+ 401: {
359
+ statusCode: number;
360
+ error: string;
361
+ message: string;
362
+ };
363
+ /**
364
+ * Default Response
365
+ */
366
+ 404: {
367
+ statusCode: number;
368
+ error: string;
369
+ message: string;
370
+ };
371
+ };
372
+ export type PostApiV1AuthLoginAsError = PostApiV1AuthLoginAsErrors[keyof PostApiV1AuthLoginAsErrors];
373
+ export type PostApiV1AuthLoginAsResponses = {
374
+ /**
375
+ * Default Response
376
+ */
377
+ 200: {
378
+ accessToken: string;
379
+ refreshToken: string;
380
+ };
381
+ };
382
+ export type PostApiV1AuthLoginAsResponse = PostApiV1AuthLoginAsResponses[keyof PostApiV1AuthLoginAsResponses];
383
+ export type PostApiV1AuthLogoutData = {
384
+ body: {
385
+ refreshToken: string;
386
+ };
387
+ path?: never;
388
+ query?: never;
389
+ url: '/api/v1/auth/logout';
390
+ };
391
+ export type PostApiV1AuthLogoutResponses = {
392
+ /**
393
+ * Default Response
394
+ */
395
+ 200: {
396
+ success: boolean;
397
+ };
398
+ };
399
+ export type PostApiV1AuthLogoutResponse = PostApiV1AuthLogoutResponses[keyof PostApiV1AuthLogoutResponses];
400
+ export type GetApiV1AuthMeData = {
401
+ body?: never;
402
+ path?: never;
403
+ query?: never;
404
+ url: '/api/v1/auth/me';
405
+ };
406
+ export type GetApiV1AuthMeErrors = {
407
+ /**
408
+ * Default Response
409
+ */
410
+ 401: {
411
+ statusCode: number;
412
+ error: string;
413
+ message: string;
414
+ };
415
+ };
416
+ export type GetApiV1AuthMeError = GetApiV1AuthMeErrors[keyof GetApiV1AuthMeErrors];
417
+ export type GetApiV1AuthMeResponses = {
418
+ /**
419
+ * Default Response
420
+ */
421
+ 200: {
422
+ userId: string;
423
+ };
424
+ };
425
+ export type GetApiV1AuthMeResponse = GetApiV1AuthMeResponses[keyof GetApiV1AuthMeResponses];
426
+ export type PostApiV1AuthTokenRefreshData = {
427
+ body: {
428
+ refreshToken: string;
429
+ };
430
+ path?: never;
431
+ query?: never;
432
+ url: '/api/v1/auth/token/refresh';
433
+ };
434
+ export type PostApiV1AuthTokenRefreshErrors = {
435
+ /**
436
+ * Default Response
437
+ */
438
+ 401: {
439
+ statusCode: number;
440
+ error: string;
441
+ message: string;
442
+ };
443
+ };
444
+ export type PostApiV1AuthTokenRefreshError = PostApiV1AuthTokenRefreshErrors[keyof PostApiV1AuthTokenRefreshErrors];
445
+ export type PostApiV1AuthTokenRefreshResponses = {
446
+ /**
447
+ * Default Response
448
+ */
449
+ 200: {
450
+ accessToken: string;
451
+ };
452
+ };
453
+ export type PostApiV1AuthTokenRefreshResponse = PostApiV1AuthTokenRefreshResponses[keyof PostApiV1AuthTokenRefreshResponses];
454
+ export type PostApiV1AuthRegisterData = {
455
+ body: {
456
+ email: string;
457
+ password: string;
458
+ firstName?: string;
459
+ lastName?: string;
460
+ marketingConsent?: boolean;
461
+ };
462
+ path?: never;
463
+ query?: never;
464
+ url: '/api/v1/auth/register';
465
+ };
466
+ export type PostApiV1AuthRegisterErrors = {
467
+ /**
468
+ * Default Response
469
+ */
470
+ 409: {
471
+ statusCode: number;
472
+ error: string;
473
+ message: string;
474
+ };
475
+ };
476
+ export type PostApiV1AuthRegisterError = PostApiV1AuthRegisterErrors[keyof PostApiV1AuthRegisterErrors];
477
+ export type PostApiV1AuthRegisterResponses = {
478
+ /**
479
+ * Default Response
480
+ */
481
+ 200: {
482
+ userId: string;
483
+ };
484
+ };
485
+ export type PostApiV1AuthRegisterResponse = PostApiV1AuthRegisterResponses[keyof PostApiV1AuthRegisterResponses];
486
+ export type PostApiV1AuthEmailResendConfirmationData = {
487
+ body: {
488
+ email: string;
489
+ };
490
+ path?: never;
491
+ query?: never;
492
+ url: '/api/v1/auth/email/resend-confirmation';
493
+ };
494
+ export type PostApiV1AuthEmailResendConfirmationErrors = {
495
+ /**
496
+ * Default Response
497
+ */
498
+ 400: {
499
+ statusCode: number;
500
+ error: string;
501
+ message: string;
502
+ };
503
+ };
504
+ export type PostApiV1AuthEmailResendConfirmationError = PostApiV1AuthEmailResendConfirmationErrors[keyof PostApiV1AuthEmailResendConfirmationErrors];
505
+ export type PostApiV1AuthEmailResendConfirmationResponses = {
506
+ /**
507
+ * Default Response
508
+ */
509
+ 200: {
510
+ success: boolean;
511
+ };
512
+ };
513
+ export type PostApiV1AuthEmailResendConfirmationResponse = PostApiV1AuthEmailResendConfirmationResponses[keyof PostApiV1AuthEmailResendConfirmationResponses];
514
+ export type PostApiV1AuthMagicLinkSendData = {
515
+ body: {
516
+ email: string;
517
+ };
518
+ path?: never;
519
+ query?: never;
520
+ url: '/api/v1/auth/magic-link/send';
521
+ };
522
+ export type PostApiV1AuthMagicLinkSendErrors = {
523
+ /**
524
+ * Default Response
525
+ */
526
+ 400: {
527
+ statusCode: number;
528
+ error: string;
529
+ message: string;
530
+ };
531
+ /**
532
+ * Default Response
533
+ */
534
+ 401: {
535
+ statusCode: number;
536
+ error: string;
537
+ message: string;
538
+ };
539
+ };
540
+ export type PostApiV1AuthMagicLinkSendError = PostApiV1AuthMagicLinkSendErrors[keyof PostApiV1AuthMagicLinkSendErrors];
541
+ export type PostApiV1AuthMagicLinkSendResponses = {
542
+ /**
543
+ * Default Response
544
+ */
545
+ 200: {
546
+ success: boolean;
547
+ };
548
+ };
549
+ export type PostApiV1AuthMagicLinkSendResponse = PostApiV1AuthMagicLinkSendResponses[keyof PostApiV1AuthMagicLinkSendResponses];
550
+ export type PostApiV1AuthPhoneSendCodeData = {
551
+ body: {
552
+ phone: string;
553
+ };
554
+ path?: never;
555
+ query?: never;
556
+ url: '/api/v1/auth/phone/send-code';
557
+ };
558
+ export type PostApiV1AuthPhoneSendCodeErrors = {
559
+ /**
560
+ * Default Response
561
+ */
562
+ 409: {
563
+ statusCode: number;
564
+ error: string;
565
+ message: string;
566
+ };
567
+ };
568
+ export type PostApiV1AuthPhoneSendCodeError = PostApiV1AuthPhoneSendCodeErrors[keyof PostApiV1AuthPhoneSendCodeErrors];
569
+ export type PostApiV1AuthPhoneSendCodeResponses = {
570
+ /**
571
+ * Default Response
572
+ */
573
+ 200: {
574
+ success: boolean;
575
+ };
576
+ };
577
+ export type PostApiV1AuthPhoneSendCodeResponse = PostApiV1AuthPhoneSendCodeResponses[keyof PostApiV1AuthPhoneSendCodeResponses];
578
+ export type PostApiV1AuthSmsSendCodeData = {
579
+ body: {
580
+ [key: string]: unknown;
581
+ };
582
+ path?: never;
583
+ query?: never;
584
+ url: '/api/v1/auth/sms/send-code';
585
+ };
586
+ export type PostApiV1AuthSmsSendCodeErrors = {
587
+ /**
588
+ * Default Response
589
+ */
590
+ 400: {
591
+ statusCode: number;
592
+ error: string;
593
+ message: string;
594
+ };
595
+ /**
596
+ * Default Response
597
+ */
598
+ 401: {
599
+ statusCode: number;
600
+ error: string;
601
+ message: string;
602
+ };
603
+ };
604
+ export type PostApiV1AuthSmsSendCodeError = PostApiV1AuthSmsSendCodeErrors[keyof PostApiV1AuthSmsSendCodeErrors];
605
+ export type PostApiV1AuthSmsSendCodeResponses = {
606
+ /**
607
+ * Default Response
608
+ */
609
+ 200: {
610
+ success: boolean;
611
+ };
612
+ };
613
+ export type PostApiV1AuthSmsSendCodeResponse = PostApiV1AuthSmsSendCodeResponses[keyof PostApiV1AuthSmsSendCodeResponses];
614
+ export type PostApiV1AuthTestEmailData = {
615
+ body: {
616
+ email: string;
617
+ projectId: string;
618
+ template: string;
619
+ locale?: string;
620
+ };
621
+ path?: never;
622
+ query?: never;
623
+ url: '/api/v1/auth/test-email';
624
+ };
625
+ export type PostApiV1AuthTestEmailResponses = {
626
+ /**
627
+ * Default Response
628
+ */
629
+ 200: {
630
+ success: boolean;
631
+ };
632
+ };
633
+ export type PostApiV1AuthTestEmailResponse = PostApiV1AuthTestEmailResponses[keyof PostApiV1AuthTestEmailResponses];
634
+ export type PostApiV1AuthPasswordSetData = {
635
+ body: {
636
+ password: string;
637
+ token?: string;
638
+ };
639
+ path?: never;
640
+ query?: never;
641
+ url: '/api/v1/auth/password/set';
642
+ };
643
+ export type PostApiV1AuthPasswordSetErrors = {
644
+ /**
645
+ * Default Response
646
+ */
647
+ 400: {
648
+ statusCode: number;
649
+ error: string;
650
+ message: string;
651
+ };
652
+ /**
653
+ * Default Response
654
+ */
655
+ 401: {
656
+ statusCode: number;
657
+ error: string;
658
+ message: string;
659
+ };
660
+ };
661
+ export type PostApiV1AuthPasswordSetError = PostApiV1AuthPasswordSetErrors[keyof PostApiV1AuthPasswordSetErrors];
662
+ export type PostApiV1AuthPasswordSetResponses = {
663
+ /**
664
+ * Default Response
665
+ */
666
+ 201: null;
667
+ };
668
+ export type PostApiV1AuthPasswordSetResponse = PostApiV1AuthPasswordSetResponses[keyof PostApiV1AuthPasswordSetResponses];
669
+ export type PostApiV1AuthEmailVerifyData = {
670
+ body: {
671
+ token: string;
672
+ };
673
+ path?: never;
674
+ query?: never;
675
+ url: '/api/v1/auth/email/verify';
676
+ };
677
+ export type PostApiV1AuthEmailVerifyResponses = {
678
+ /**
679
+ * Default Response
680
+ */
681
+ 200: {
682
+ success: boolean;
683
+ };
684
+ };
685
+ export type PostApiV1AuthEmailVerifyResponse = PostApiV1AuthEmailVerifyResponses[keyof PostApiV1AuthEmailVerifyResponses];
686
+ export type PostApiV1AuthTwoFaRecoveryData = {
687
+ body: {
688
+ twoFaToken: string;
689
+ code: string;
690
+ };
691
+ path?: never;
692
+ query?: never;
693
+ url: '/api/v1/auth/two-fa/recovery';
694
+ };
695
+ export type PostApiV1AuthTwoFaRecoveryErrors = {
696
+ /**
697
+ * Default Response
698
+ */
699
+ 400: {
700
+ statusCode: number;
701
+ error: string;
702
+ message: string;
703
+ };
704
+ /**
705
+ * Default Response
706
+ */
707
+ 401: {
708
+ statusCode: number;
709
+ error: string;
710
+ message: string;
711
+ };
712
+ };
713
+ export type PostApiV1AuthTwoFaRecoveryError = PostApiV1AuthTwoFaRecoveryErrors[keyof PostApiV1AuthTwoFaRecoveryErrors];
714
+ export type PostApiV1AuthTwoFaRecoveryResponses = {
715
+ /**
716
+ * Default Response
717
+ */
718
+ 200: {
719
+ accessToken: string;
720
+ refreshToken: string;
721
+ };
722
+ };
723
+ export type PostApiV1AuthTwoFaRecoveryResponse = PostApiV1AuthTwoFaRecoveryResponses[keyof PostApiV1AuthTwoFaRecoveryResponses];
724
+ export type PostApiV1AuthTwoFaVerifyData = {
725
+ body: {
726
+ twoFaToken: string;
727
+ code: string;
728
+ };
729
+ path?: never;
730
+ query?: never;
731
+ url: '/api/v1/auth/two-fa/verify';
732
+ };
733
+ export type PostApiV1AuthTwoFaVerifyErrors = {
734
+ /**
735
+ * Default Response
736
+ */
737
+ 400: {
738
+ statusCode: number;
739
+ error: string;
740
+ message: string;
741
+ };
742
+ /**
743
+ * Default Response
744
+ */
745
+ 401: {
746
+ statusCode: number;
747
+ error: string;
748
+ message: string;
749
+ };
750
+ };
751
+ export type PostApiV1AuthTwoFaVerifyError = PostApiV1AuthTwoFaVerifyErrors[keyof PostApiV1AuthTwoFaVerifyErrors];
752
+ export type PostApiV1AuthTwoFaVerifyResponses = {
753
+ /**
754
+ * Default Response
755
+ */
756
+ 200: {
757
+ accessToken: string;
758
+ refreshToken: string;
759
+ rememberToken: string;
760
+ };
761
+ };
762
+ export type PostApiV1AuthTwoFaVerifyResponse = PostApiV1AuthTwoFaVerifyResponses[keyof PostApiV1AuthTwoFaVerifyResponses];
763
+ export type PostApiV1AuthMagicLinkVerifyData = {
764
+ body: {
765
+ token: string;
766
+ };
767
+ path?: never;
768
+ query?: never;
769
+ url: '/api/v1/auth/magic-link/verify';
770
+ };
771
+ export type PostApiV1AuthMagicLinkVerifyErrors = {
772
+ /**
773
+ * Default Response
774
+ */
775
+ 400: {
776
+ statusCode: number;
777
+ error: string;
778
+ message: string;
779
+ };
780
+ /**
781
+ * Default Response
782
+ */
783
+ 401: {
784
+ statusCode: number;
785
+ error: string;
786
+ message: string;
787
+ };
788
+ };
789
+ export type PostApiV1AuthMagicLinkVerifyError = PostApiV1AuthMagicLinkVerifyErrors[keyof PostApiV1AuthMagicLinkVerifyErrors];
790
+ export type PostApiV1AuthMagicLinkVerifyResponses = {
791
+ /**
792
+ * Default Response
793
+ */
794
+ 200: {
795
+ accessToken: string;
796
+ refreshToken: string;
797
+ } | {
798
+ twoFaType: 'email' | 'sms' | 'app';
799
+ twoFaToken: string;
800
+ };
801
+ };
802
+ export type PostApiV1AuthMagicLinkVerifyResponse = PostApiV1AuthMagicLinkVerifyResponses[keyof PostApiV1AuthMagicLinkVerifyResponses];
803
+ export type PostApiV1AuthPhoneVerifyData = {
804
+ body: {
805
+ phone: string;
806
+ code: string;
807
+ };
808
+ path?: never;
809
+ query?: never;
810
+ url: '/api/v1/auth/phone/verify';
811
+ };
812
+ export type PostApiV1AuthPhoneVerifyErrors = {
813
+ /**
814
+ * Default Response
815
+ */
816
+ 401: {
817
+ statusCode: number;
818
+ error: string;
819
+ message: string;
820
+ };
821
+ };
822
+ export type PostApiV1AuthPhoneVerifyError = PostApiV1AuthPhoneVerifyErrors[keyof PostApiV1AuthPhoneVerifyErrors];
823
+ export type PostApiV1AuthPhoneVerifyResponses = {
824
+ /**
825
+ * Default Response
826
+ */
827
+ 200: {
828
+ success: boolean;
829
+ };
830
+ };
831
+ export type PostApiV1AuthPhoneVerifyResponse = PostApiV1AuthPhoneVerifyResponses[keyof PostApiV1AuthPhoneVerifyResponses];
832
+ export type PostApiV1AuthSmsVerifyData = {
833
+ body: {
834
+ code: string;
835
+ };
836
+ path?: never;
837
+ query?: never;
838
+ url: '/api/v1/auth/sms/verify';
839
+ };
840
+ export type PostApiV1AuthSmsVerifyErrors = {
841
+ /**
842
+ * Default Response
843
+ */
844
+ 400: {
845
+ statusCode: number;
846
+ error: string;
847
+ message: string;
848
+ };
849
+ /**
850
+ * Default Response
851
+ */
852
+ 401: {
853
+ statusCode: number;
854
+ error: string;
855
+ message: string;
856
+ };
857
+ };
858
+ export type PostApiV1AuthSmsVerifyError = PostApiV1AuthSmsVerifyErrors[keyof PostApiV1AuthSmsVerifyErrors];
859
+ export type PostApiV1AuthSmsVerifyResponses = {
860
+ /**
861
+ * Default Response
862
+ */
863
+ 200: {
864
+ verify: boolean;
865
+ };
866
+ };
867
+ export type PostApiV1AuthSmsVerifyResponse = PostApiV1AuthSmsVerifyResponses[keyof PostApiV1AuthSmsVerifyResponses];
868
+ export type PostApiV1InvitationsInvitationAcceptData = {
869
+ body: {
870
+ token: string;
871
+ password?: string;
872
+ userAgent: string;
873
+ };
874
+ path?: never;
875
+ query?: never;
876
+ url: '/api/v1/invitations/invitation/accept';
877
+ };
878
+ export type PostApiV1InvitationsInvitationAcceptErrors = {
879
+ /**
880
+ * Default Response
881
+ */
882
+ 400: {
883
+ statusCode: number;
884
+ error: string;
885
+ message: string;
886
+ };
887
+ };
888
+ export type PostApiV1InvitationsInvitationAcceptError = PostApiV1InvitationsInvitationAcceptErrors[keyof PostApiV1InvitationsInvitationAcceptErrors];
889
+ export type PostApiV1InvitationsInvitationAcceptResponses = {
890
+ /**
891
+ * Default Response
892
+ */
893
+ 200: {
894
+ accessToken: string;
895
+ refreshToken: string;
896
+ };
897
+ };
898
+ export type PostApiV1InvitationsInvitationAcceptResponse = PostApiV1InvitationsInvitationAcceptResponses[keyof PostApiV1InvitationsInvitationAcceptResponses];
899
+ export type PostApiV1InvitationsInvitationData = {
900
+ body: {
901
+ email: string;
902
+ userData?: {
903
+ [key: string]: unknown;
904
+ };
905
+ role?: string;
906
+ group?: string;
907
+ returnUrl?: string;
908
+ invitedById?: string;
909
+ };
910
+ path?: never;
911
+ query?: never;
912
+ url: '/api/v1/invitations/invitation';
913
+ };
914
+ export type PostApiV1InvitationsInvitationErrors = {
915
+ /**
916
+ * Default Response
917
+ */
918
+ 409: {
919
+ statusCode: number;
920
+ error: string;
921
+ message: string;
922
+ };
923
+ };
924
+ export type PostApiV1InvitationsInvitationError = PostApiV1InvitationsInvitationErrors[keyof PostApiV1InvitationsInvitationErrors];
925
+ export type PostApiV1InvitationsInvitationResponses = {
926
+ /**
927
+ * Default Response
928
+ */
929
+ 200: {
930
+ id: string;
931
+ email: string;
932
+ token: string;
933
+ validTo: string;
934
+ role: string | null;
935
+ group: string | null;
936
+ returnUrl: string | null;
937
+ };
938
+ };
939
+ export type PostApiV1InvitationsInvitationResponse = PostApiV1InvitationsInvitationResponses[keyof PostApiV1InvitationsInvitationResponses];
940
+ export type DeleteApiV1InvitationsInvitationByIdData = {
941
+ body?: never;
942
+ path: {
943
+ id: string;
944
+ };
945
+ query?: never;
946
+ url: '/api/v1/invitations/invitation/{id}';
947
+ };
948
+ export type DeleteApiV1InvitationsInvitationByIdErrors = {
949
+ /**
950
+ * Default Response
951
+ */
952
+ 404: {
953
+ statusCode: number;
954
+ error: string;
955
+ message: string;
956
+ };
957
+ };
958
+ export type DeleteApiV1InvitationsInvitationByIdError = DeleteApiV1InvitationsInvitationByIdErrors[keyof DeleteApiV1InvitationsInvitationByIdErrors];
959
+ export type DeleteApiV1InvitationsInvitationByIdResponses = {
960
+ /**
961
+ * Default Response
962
+ */
963
+ 200: {
964
+ id: string;
965
+ };
966
+ };
967
+ export type DeleteApiV1InvitationsInvitationByIdResponse = DeleteApiV1InvitationsInvitationByIdResponses[keyof DeleteApiV1InvitationsInvitationByIdResponses];
968
+ export type GetApiV1UserData = {
969
+ body?: never;
970
+ path?: never;
971
+ query?: {
972
+ limit?: number;
973
+ offset?: number;
974
+ search?: string;
975
+ };
976
+ url: '/api/v1/user/';
977
+ };
978
+ export type GetApiV1UserResponses = {
979
+ /**
980
+ * Default Response
981
+ */
982
+ 200: {
983
+ data: Array<{
984
+ id: string;
985
+ email: string;
986
+ firstName: string | null;
987
+ lastName: string | null;
988
+ username: string;
989
+ role: string;
990
+ emailVerified: boolean;
991
+ phone: string | null;
992
+ phoneVerified: boolean;
993
+ isBlocked: boolean;
994
+ isGuest: boolean;
995
+ locale: string;
996
+ createdAt: string;
997
+ }>;
998
+ total: number;
999
+ };
1000
+ };
1001
+ export type GetApiV1UserResponse = GetApiV1UserResponses[keyof GetApiV1UserResponses];
1002
+ export type PostApiV1UserData = {
1003
+ body: {
1004
+ email: string;
1005
+ username: string;
1006
+ password?: string;
1007
+ firstName?: string | null;
1008
+ lastName?: string | null;
1009
+ phone?: string | null;
1010
+ locale?: string;
1011
+ role?: string;
1012
+ claims?: {
1013
+ [key: string]: unknown;
1014
+ };
1015
+ marketingConsent?: boolean;
1016
+ isGuest?: boolean;
1017
+ emailVerified?: boolean;
1018
+ };
1019
+ path?: never;
1020
+ query?: never;
1021
+ url: '/api/v1/user/';
1022
+ };
1023
+ export type PostApiV1UserErrors = {
1024
+ /**
1025
+ * Default Response
1026
+ */
1027
+ 400: {
1028
+ statusCode: number;
1029
+ error: string;
1030
+ message: string;
1031
+ };
1032
+ /**
1033
+ * Default Response
1034
+ */
1035
+ 409: {
1036
+ statusCode: number;
1037
+ error: string;
1038
+ message: string;
1039
+ };
1040
+ };
1041
+ export type PostApiV1UserError = PostApiV1UserErrors[keyof PostApiV1UserErrors];
1042
+ export type PostApiV1UserResponses = {
1043
+ /**
1044
+ * Default Response
1045
+ */
1046
+ 201: {
1047
+ id: string;
1048
+ email: string;
1049
+ isGuest: boolean;
1050
+ };
1051
+ };
1052
+ export type PostApiV1UserResponse = PostApiV1UserResponses[keyof PostApiV1UserResponses];
1053
+ export type GetApiV1UserByUserIdRolesData = {
1054
+ body?: never;
1055
+ path: {
1056
+ userId: string;
1057
+ };
1058
+ query?: never;
1059
+ url: '/api/v1/user/{userId}/roles';
1060
+ };
1061
+ export type GetApiV1UserByUserIdRolesErrors = {
1062
+ /**
1063
+ * Default Response
1064
+ */
1065
+ 404: {
1066
+ statusCode: number;
1067
+ error: string;
1068
+ message: string;
1069
+ };
1070
+ };
1071
+ export type GetApiV1UserByUserIdRolesError = GetApiV1UserByUserIdRolesErrors[keyof GetApiV1UserByUserIdRolesErrors];
1072
+ export type GetApiV1UserByUserIdRolesResponses = {
1073
+ /**
1074
+ * Default Response
1075
+ */
1076
+ 200: Array<{
1077
+ id: string;
1078
+ role: string;
1079
+ group: string;
1080
+ createdAt: string;
1081
+ }>;
1082
+ };
1083
+ export type GetApiV1UserByUserIdRolesResponse = GetApiV1UserByUserIdRolesResponses[keyof GetApiV1UserByUserIdRolesResponses];
1084
+ export type PostApiV1UserByUserIdRolesData = {
1085
+ body: {
1086
+ role: string;
1087
+ group: string;
1088
+ };
1089
+ path: {
1090
+ userId: string;
1091
+ };
1092
+ query?: never;
1093
+ url: '/api/v1/user/{userId}/roles';
1094
+ };
1095
+ export type PostApiV1UserByUserIdRolesErrors = {
1096
+ /**
1097
+ * Default Response
1098
+ */
1099
+ 404: {
1100
+ statusCode: number;
1101
+ error: string;
1102
+ message: string;
1103
+ };
1104
+ /**
1105
+ * Default Response
1106
+ */
1107
+ 409: {
1108
+ statusCode: number;
1109
+ error: string;
1110
+ message: string;
1111
+ };
1112
+ };
1113
+ export type PostApiV1UserByUserIdRolesError = PostApiV1UserByUserIdRolesErrors[keyof PostApiV1UserByUserIdRolesErrors];
1114
+ export type PostApiV1UserByUserIdRolesResponses = {
1115
+ /**
1116
+ * Default Response
1117
+ */
1118
+ 201: {
1119
+ id: string;
1120
+ userId: string;
1121
+ role: string;
1122
+ group: string;
1123
+ createdAt: string;
1124
+ };
1125
+ };
1126
+ export type PostApiV1UserByUserIdRolesResponse = PostApiV1UserByUserIdRolesResponses[keyof PostApiV1UserByUserIdRolesResponses];
1127
+ export type DeleteApiV1UserByIdData = {
1128
+ body?: never;
1129
+ path: {
1130
+ id: string;
1131
+ };
1132
+ query?: never;
1133
+ url: '/api/v1/user/{id}';
1134
+ };
1135
+ export type DeleteApiV1UserByIdErrors = {
1136
+ /**
1137
+ * Default Response
1138
+ */
1139
+ 404: {
1140
+ statusCode: number;
1141
+ error: string;
1142
+ message: string;
1143
+ };
1144
+ };
1145
+ export type DeleteApiV1UserByIdError = DeleteApiV1UserByIdErrors[keyof DeleteApiV1UserByIdErrors];
1146
+ export type DeleteApiV1UserByIdResponses = {
1147
+ /**
1148
+ * Default Response
1149
+ */
1150
+ 200: {
1151
+ id: string;
1152
+ };
1153
+ };
1154
+ export type DeleteApiV1UserByIdResponse = DeleteApiV1UserByIdResponses[keyof DeleteApiV1UserByIdResponses];
1155
+ export type GetApiV1UserByIdData = {
1156
+ body?: never;
1157
+ path: {
1158
+ id: string;
1159
+ };
1160
+ query?: never;
1161
+ url: '/api/v1/user/{id}';
1162
+ };
1163
+ export type GetApiV1UserByIdErrors = {
1164
+ /**
1165
+ * Default Response
1166
+ */
1167
+ 404: {
1168
+ statusCode: number;
1169
+ error: string;
1170
+ message: string;
1171
+ };
1172
+ };
1173
+ export type GetApiV1UserByIdError = GetApiV1UserByIdErrors[keyof GetApiV1UserByIdErrors];
1174
+ export type GetApiV1UserByIdResponses = {
1175
+ /**
1176
+ * Default Response
1177
+ */
1178
+ 200: {
1179
+ id: string;
1180
+ email: string;
1181
+ firstName: string | null;
1182
+ lastName: string | null;
1183
+ username: string;
1184
+ role: string;
1185
+ emailVerified: boolean;
1186
+ phone: string | null;
1187
+ phoneVerified: boolean;
1188
+ isBlocked: boolean;
1189
+ isBlockedUntil: string | null;
1190
+ isGuest: boolean;
1191
+ locale: string;
1192
+ claims: unknown;
1193
+ marketingConsent: boolean;
1194
+ twoFaEnabled: boolean;
1195
+ twoFaType: string | null;
1196
+ createdAt: string;
1197
+ updatedAt: string;
1198
+ };
1199
+ };
1200
+ export type GetApiV1UserByIdResponse = GetApiV1UserByIdResponses[keyof GetApiV1UserByIdResponses];
1201
+ export type PatchApiV1UserByIdData = {
1202
+ body: {
1203
+ email?: string;
1204
+ emailVerified?: boolean;
1205
+ phone?: string;
1206
+ phoneVerified?: boolean;
1207
+ isBlocked?: boolean;
1208
+ isBlockedUntil?: string | null;
1209
+ twoFaEnabled?: boolean;
1210
+ twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1211
+ loginAttempts?: number;
1212
+ };
1213
+ path: {
1214
+ id: string;
1215
+ };
1216
+ query?: never;
1217
+ url: '/api/v1/user/{id}';
1218
+ };
1219
+ export type PatchApiV1UserByIdErrors = {
1220
+ /**
1221
+ * Default Response
1222
+ */
1223
+ 400: {
1224
+ statusCode: number;
1225
+ error: string;
1226
+ message: string;
1227
+ };
1228
+ /**
1229
+ * Default Response
1230
+ */
1231
+ 404: {
1232
+ statusCode: number;
1233
+ error: string;
1234
+ message: string;
1235
+ };
1236
+ };
1237
+ export type PatchApiV1UserByIdError = PatchApiV1UserByIdErrors[keyof PatchApiV1UserByIdErrors];
1238
+ export type PatchApiV1UserByIdResponses = {
1239
+ /**
1240
+ * Default Response
1241
+ */
1242
+ 200: {
1243
+ id: string;
1244
+ };
1245
+ };
1246
+ export type PatchApiV1UserByIdResponse = PatchApiV1UserByIdResponses[keyof PatchApiV1UserByIdResponses];
1247
+ export type DeleteApiV1UserByUserIdRolesByRoleIdData = {
1248
+ body?: never;
1249
+ path: {
1250
+ userId: string;
1251
+ roleId: string;
1252
+ };
1253
+ query?: never;
1254
+ url: '/api/v1/user/{userId}/roles/{roleId}';
1255
+ };
1256
+ export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
1257
+ /**
1258
+ * Default Response
1259
+ */
1260
+ 404: {
1261
+ statusCode: number;
1262
+ error: string;
1263
+ message: string;
1264
+ };
1265
+ };
1266
+ export type DeleteApiV1UserByUserIdRolesByRoleIdError = DeleteApiV1UserByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UserByUserIdRolesByRoleIdErrors];
1267
+ export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1268
+ /**
1269
+ * Default Response
1270
+ */
1271
+ 200: {
1272
+ id: string;
1273
+ };
1274
+ };
1275
+ export type DeleteApiV1UserByUserIdRolesByRoleIdResponse = DeleteApiV1UserByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UserByUserIdRolesByRoleIdResponses];
1276
+ export type PatchApiV1UserByUserIdRolesByRoleIdData = {
1277
+ body: {
1278
+ role?: string;
1279
+ group?: string;
1280
+ };
1281
+ path: {
1282
+ userId: string;
1283
+ roleId: string;
1284
+ };
1285
+ query?: never;
1286
+ url: '/api/v1/user/{userId}/roles/{roleId}';
1287
+ };
1288
+ export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1289
+ /**
1290
+ * Default Response
1291
+ */
1292
+ 400: {
1293
+ statusCode: number;
1294
+ error: string;
1295
+ message: string;
1296
+ };
1297
+ /**
1298
+ * Default Response
1299
+ */
1300
+ 404: {
1301
+ statusCode: number;
1302
+ error: string;
1303
+ message: string;
1304
+ };
1305
+ };
1306
+ export type PatchApiV1UserByUserIdRolesByRoleIdError = PatchApiV1UserByUserIdRolesByRoleIdErrors[keyof PatchApiV1UserByUserIdRolesByRoleIdErrors];
1307
+ export type PatchApiV1UserByUserIdRolesByRoleIdResponses = {
1308
+ /**
1309
+ * Default Response
1310
+ */
1311
+ 200: {
1312
+ id: string;
1313
+ userId: string;
1314
+ role: string;
1315
+ group: string;
1316
+ createdAt: string;
1317
+ };
1318
+ };
1319
+ export type PatchApiV1UserByUserIdRolesByRoleIdResponse = PatchApiV1UserByUserIdRolesByRoleIdResponses[keyof PatchApiV1UserByUserIdRolesByRoleIdResponses];
1320
+ export type GetApiV1UsersData = {
1321
+ body?: never;
1322
+ path?: never;
1323
+ query?: {
1324
+ limit?: number;
1325
+ offset?: number;
1326
+ search?: string;
1327
+ };
1328
+ url: '/api/v1/users/';
1329
+ };
1330
+ export type GetApiV1UsersResponses = {
1331
+ /**
1332
+ * Default Response
1333
+ */
1334
+ 200: {
1335
+ data: Array<{
1336
+ id: string;
1337
+ email: string;
1338
+ firstName: string | null;
1339
+ lastName: string | null;
1340
+ username: string;
1341
+ role: string;
1342
+ emailVerified: boolean;
1343
+ phone: string | null;
1344
+ phoneVerified: boolean;
1345
+ isBlocked: boolean;
1346
+ isGuest: boolean;
1347
+ locale: string;
1348
+ createdAt: string;
1349
+ }>;
1350
+ total: number;
1351
+ };
1352
+ };
1353
+ export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
1354
+ export type PostApiV1UsersData = {
1355
+ body: {
1356
+ email: string;
1357
+ username: string;
1358
+ password?: string;
1359
+ firstName?: string | null;
1360
+ lastName?: string | null;
1361
+ phone?: string | null;
1362
+ locale?: string;
1363
+ role?: string;
1364
+ claims?: {
1365
+ [key: string]: unknown;
1366
+ };
1367
+ marketingConsent?: boolean;
1368
+ isGuest?: boolean;
1369
+ emailVerified?: boolean;
1370
+ };
1371
+ path?: never;
1372
+ query?: never;
1373
+ url: '/api/v1/users/';
1374
+ };
1375
+ export type PostApiV1UsersErrors = {
1376
+ /**
1377
+ * Default Response
1378
+ */
1379
+ 400: {
1380
+ statusCode: number;
1381
+ error: string;
1382
+ message: string;
1383
+ };
1384
+ /**
1385
+ * Default Response
1386
+ */
1387
+ 409: {
1388
+ statusCode: number;
1389
+ error: string;
1390
+ message: string;
1391
+ };
1392
+ };
1393
+ export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
1394
+ export type PostApiV1UsersResponses = {
1395
+ /**
1396
+ * Default Response
1397
+ */
1398
+ 201: {
1399
+ id: string;
1400
+ email: string;
1401
+ isGuest: boolean;
1402
+ };
1403
+ };
1404
+ export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
1405
+ export type GetApiV1UsersByUserIdRolesData = {
1406
+ body?: never;
1407
+ path: {
1408
+ userId: string;
1409
+ };
1410
+ query?: never;
1411
+ url: '/api/v1/users/{userId}/roles';
1412
+ };
1413
+ export type GetApiV1UsersByUserIdRolesErrors = {
1414
+ /**
1415
+ * Default Response
1416
+ */
1417
+ 404: {
1418
+ statusCode: number;
1419
+ error: string;
1420
+ message: string;
1421
+ };
1422
+ };
1423
+ export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
1424
+ export type GetApiV1UsersByUserIdRolesResponses = {
1425
+ /**
1426
+ * Default Response
1427
+ */
1428
+ 200: Array<{
1429
+ id: string;
1430
+ role: string;
1431
+ group: string;
1432
+ createdAt: string;
1433
+ }>;
1434
+ };
1435
+ export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
1436
+ export type PostApiV1UsersByUserIdRolesData = {
1437
+ body: {
1438
+ role: string;
1439
+ group: string;
1440
+ };
1441
+ path: {
1442
+ userId: string;
1443
+ };
1444
+ query?: never;
1445
+ url: '/api/v1/users/{userId}/roles';
1446
+ };
1447
+ export type PostApiV1UsersByUserIdRolesErrors = {
1448
+ /**
1449
+ * Default Response
1450
+ */
1451
+ 404: {
1452
+ statusCode: number;
1453
+ error: string;
1454
+ message: string;
1455
+ };
1456
+ /**
1457
+ * Default Response
1458
+ */
1459
+ 409: {
1460
+ statusCode: number;
1461
+ error: string;
1462
+ message: string;
1463
+ };
1464
+ };
1465
+ export type PostApiV1UsersByUserIdRolesError = PostApiV1UsersByUserIdRolesErrors[keyof PostApiV1UsersByUserIdRolesErrors];
1466
+ export type PostApiV1UsersByUserIdRolesResponses = {
1467
+ /**
1468
+ * Default Response
1469
+ */
1470
+ 201: {
1471
+ id: string;
1472
+ userId: string;
1473
+ role: string;
1474
+ group: string;
1475
+ createdAt: string;
1476
+ };
1477
+ };
1478
+ export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
1479
+ export type DeleteApiV1UsersByIdData = {
1480
+ body?: never;
1481
+ path: {
1482
+ id: string;
1483
+ };
1484
+ query?: never;
1485
+ url: '/api/v1/users/{id}';
1486
+ };
1487
+ export type DeleteApiV1UsersByIdErrors = {
1488
+ /**
1489
+ * Default Response
1490
+ */
1491
+ 404: {
1492
+ statusCode: number;
1493
+ error: string;
1494
+ message: string;
1495
+ };
1496
+ };
1497
+ export type DeleteApiV1UsersByIdError = DeleteApiV1UsersByIdErrors[keyof DeleteApiV1UsersByIdErrors];
1498
+ export type DeleteApiV1UsersByIdResponses = {
1499
+ /**
1500
+ * Default Response
1501
+ */
1502
+ 200: {
1503
+ id: string;
1504
+ };
1505
+ };
1506
+ export type DeleteApiV1UsersByIdResponse = DeleteApiV1UsersByIdResponses[keyof DeleteApiV1UsersByIdResponses];
1507
+ export type GetApiV1UsersByIdData = {
1508
+ body?: never;
1509
+ path: {
1510
+ id: string;
1511
+ };
1512
+ query?: never;
1513
+ url: '/api/v1/users/{id}';
1514
+ };
1515
+ export type GetApiV1UsersByIdErrors = {
1516
+ /**
1517
+ * Default Response
1518
+ */
1519
+ 404: {
1520
+ statusCode: number;
1521
+ error: string;
1522
+ message: string;
1523
+ };
1524
+ };
1525
+ export type GetApiV1UsersByIdError = GetApiV1UsersByIdErrors[keyof GetApiV1UsersByIdErrors];
1526
+ export type GetApiV1UsersByIdResponses = {
1527
+ /**
1528
+ * Default Response
1529
+ */
1530
+ 200: {
1531
+ id: string;
1532
+ email: string;
1533
+ firstName: string | null;
1534
+ lastName: string | null;
1535
+ username: string;
1536
+ role: string;
1537
+ emailVerified: boolean;
1538
+ phone: string | null;
1539
+ phoneVerified: boolean;
1540
+ isBlocked: boolean;
1541
+ isBlockedUntil: string | null;
1542
+ isGuest: boolean;
1543
+ locale: string;
1544
+ claims: unknown;
1545
+ marketingConsent: boolean;
1546
+ twoFaEnabled: boolean;
1547
+ twoFaType: string | null;
1548
+ createdAt: string;
1549
+ updatedAt: string;
1550
+ };
1551
+ };
1552
+ export type GetApiV1UsersByIdResponse = GetApiV1UsersByIdResponses[keyof GetApiV1UsersByIdResponses];
1553
+ export type PatchApiV1UsersByIdData = {
1554
+ body: {
1555
+ email?: string;
1556
+ emailVerified?: boolean;
1557
+ phone?: string;
1558
+ phoneVerified?: boolean;
1559
+ isBlocked?: boolean;
1560
+ isBlockedUntil?: string | null;
1561
+ twoFaEnabled?: boolean;
1562
+ twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1563
+ loginAttempts?: number;
1564
+ };
1565
+ path: {
1566
+ id: string;
1567
+ };
1568
+ query?: never;
1569
+ url: '/api/v1/users/{id}';
1570
+ };
1571
+ export type PatchApiV1UsersByIdErrors = {
1572
+ /**
1573
+ * Default Response
1574
+ */
1575
+ 400: {
1576
+ statusCode: number;
1577
+ error: string;
1578
+ message: string;
1579
+ };
1580
+ /**
1581
+ * Default Response
1582
+ */
1583
+ 404: {
1584
+ statusCode: number;
1585
+ error: string;
1586
+ message: string;
1587
+ };
1588
+ };
1589
+ export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
1590
+ export type PatchApiV1UsersByIdResponses = {
1591
+ /**
1592
+ * Default Response
1593
+ */
1594
+ 200: {
1595
+ id: string;
1596
+ };
1597
+ };
1598
+ export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
1599
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdData = {
1600
+ body?: never;
1601
+ path: {
1602
+ userId: string;
1603
+ roleId: string;
1604
+ };
1605
+ query?: never;
1606
+ url: '/api/v1/users/{userId}/roles/{roleId}';
1607
+ };
1608
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
1609
+ /**
1610
+ * Default Response
1611
+ */
1612
+ 404: {
1613
+ statusCode: number;
1614
+ error: string;
1615
+ message: string;
1616
+ };
1617
+ };
1618
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesByRoleIdErrors];
1619
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
1620
+ /**
1621
+ * Default Response
1622
+ */
1623
+ 200: {
1624
+ id: string;
1625
+ };
1626
+ };
1627
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesByRoleIdResponses];
1628
+ export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1629
+ body: {
1630
+ role?: string;
1631
+ group?: string;
1632
+ };
1633
+ path: {
1634
+ userId: string;
1635
+ roleId: string;
1636
+ };
1637
+ query?: never;
1638
+ url: '/api/v1/users/{userId}/roles/{roleId}';
1639
+ };
1640
+ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1641
+ /**
1642
+ * Default Response
1643
+ */
1644
+ 400: {
1645
+ statusCode: number;
1646
+ error: string;
1647
+ message: string;
1648
+ };
1649
+ /**
1650
+ * Default Response
1651
+ */
1652
+ 404: {
1653
+ statusCode: number;
1654
+ error: string;
1655
+ message: string;
1656
+ };
1657
+ };
1658
+ export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1659
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1660
+ /**
1661
+ * Default Response
1662
+ */
1663
+ 200: {
1664
+ id: string;
1665
+ userId: string;
1666
+ role: string;
1667
+ group: string;
1668
+ createdAt: string;
1669
+ };
1670
+ };
1671
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1672
+ //# sourceMappingURL=types.gen.d.ts.map