@authticon/client 0.0.0-beta3 → 0.0.0-beta30

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 (95) hide show
  1. package/dist/Acccount.d.ts +9 -0
  2. package/dist/Acccount.d.ts.map +1 -0
  3. package/dist/Acccount.js +22 -0
  4. package/dist/Acccount.js.map +1 -0
  5. package/dist/Auth.d.ts +16 -6
  6. package/dist/Auth.d.ts.map +1 -1
  7. package/dist/Auth.js +28 -5
  8. package/dist/Auth.js.map +1 -1
  9. package/dist/Authticon.d.ts +195 -13
  10. package/dist/Authticon.d.ts.map +1 -1
  11. package/dist/Authticon.js +93 -5
  12. package/dist/Authticon.js.map +1 -1
  13. package/dist/Challange.d.ts +8 -0
  14. package/dist/Challange.d.ts.map +1 -0
  15. package/dist/Challange.js +24 -0
  16. package/dist/Challange.js.map +1 -0
  17. package/dist/CookieStorageAdapter.d.ts +15 -0
  18. package/dist/CookieStorageAdapter.d.ts.map +1 -0
  19. package/dist/CookieStorageAdapter.js +54 -0
  20. package/dist/CookieStorageAdapter.js.map +1 -0
  21. package/dist/CookieStorageAdapter.test.d.ts +2 -0
  22. package/dist/CookieStorageAdapter.test.d.ts.map +1 -0
  23. package/dist/CookieStorageAdapter.test.js +137 -0
  24. package/dist/CookieStorageAdapter.test.js.map +1 -0
  25. package/dist/InMemoryCacheAdapter.d.ts +3 -0
  26. package/dist/InMemoryCacheAdapter.d.ts.map +1 -0
  27. package/dist/InMemoryCacheAdapter.js +13 -0
  28. package/dist/InMemoryCacheAdapter.js.map +1 -0
  29. package/dist/InMemoryCacheAdapter.test.d.ts +2 -0
  30. package/dist/InMemoryCacheAdapter.test.d.ts.map +1 -0
  31. package/dist/InMemoryCacheAdapter.test.js +38 -0
  32. package/dist/InMemoryCacheAdapter.test.js.map +1 -0
  33. package/dist/Session.d.ts +10 -0
  34. package/dist/Session.d.ts.map +1 -0
  35. package/dist/Session.js +16 -0
  36. package/dist/Session.js.map +1 -0
  37. package/dist/TokenManager.d.ts +18 -8
  38. package/dist/TokenManager.d.ts.map +1 -1
  39. package/dist/TokenManager.js +25 -21
  40. package/dist/TokenManager.js.map +1 -1
  41. package/dist/TokenManager.test.js +27 -25
  42. package/dist/TokenManager.test.js.map +1 -1
  43. package/dist/TokenStorage.d.ts +18 -2
  44. package/dist/TokenStorage.d.ts.map +1 -1
  45. package/dist/TokenStorage.js +96 -11
  46. package/dist/TokenStorage.js.map +1 -1
  47. package/dist/TokenStorage.test.js +143 -4
  48. package/dist/TokenStorage.test.js.map +1 -1
  49. package/dist/TokenVerifier.d.ts +7 -5
  50. package/dist/TokenVerifier.d.ts.map +1 -1
  51. package/dist/TokenVerifier.js +36 -15
  52. package/dist/TokenVerifier.js.map +1 -1
  53. package/dist/TokenVerifier.test.js +22 -0
  54. package/dist/TokenVerifier.test.js.map +1 -1
  55. package/dist/TwoFa.d.ts +12 -5
  56. package/dist/TwoFa.d.ts.map +1 -1
  57. package/dist/TwoFa.js +38 -19
  58. package/dist/TwoFa.js.map +1 -1
  59. package/dist/User.d.ts +16 -9
  60. package/dist/User.d.ts.map +1 -1
  61. package/dist/User.js +15 -3
  62. package/dist/User.js.map +1 -1
  63. package/dist/Users.d.ts +13 -4
  64. package/dist/Users.d.ts.map +1 -1
  65. package/dist/Users.js +29 -19
  66. package/dist/Users.js.map +1 -1
  67. package/dist/errors.d.ts +22 -0
  68. package/dist/errors.d.ts.map +1 -0
  69. package/dist/errors.js +40 -0
  70. package/dist/errors.js.map +1 -0
  71. package/dist/errors.test.d.ts +2 -0
  72. package/dist/errors.test.d.ts.map +1 -0
  73. package/dist/errors.test.js +99 -0
  74. package/dist/errors.test.js.map +1 -0
  75. package/dist/generated/index.d.ts +2 -2
  76. package/dist/generated/index.d.ts.map +1 -1
  77. package/dist/generated/index.js +1 -1
  78. package/dist/generated/index.js.map +1 -1
  79. package/dist/generated/sdk.gen.d.ts +15 -24
  80. package/dist/generated/sdk.gen.d.ts.map +1 -1
  81. package/dist/generated/sdk.gen.js +56 -121
  82. package/dist/generated/sdk.gen.js.map +1 -1
  83. package/dist/generated/types.gen.d.ts +290 -601
  84. package/dist/generated/types.gen.d.ts.map +1 -1
  85. package/dist/index.d.ts +5 -1
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +4 -1
  88. package/dist/index.js.map +1 -1
  89. package/dist/types.d.ts +19 -6
  90. package/dist/types.d.ts.map +1 -1
  91. package/dist/user.d.ts +117 -0
  92. package/dist/user.d.ts.map +1 -0
  93. package/dist/user.js +83 -0
  94. package/dist/user.js.map +1 -0
  95. package/package.json +4 -1
@@ -13,75 +13,9 @@ export type GetApiV1HealthzResponses = {
13
13
  */
14
14
  200: unknown;
15
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
- userId: string;
50
- };
51
- path?: never;
52
- query?: never;
53
- url: '/api/v1/auth/two-fa';
54
- };
55
- export type PostApiV1AuthTwoFaErrors = {
56
- /**
57
- * Default Response
58
- */
59
- 400: {
60
- statusCode: number;
61
- error: string;
62
- message: string;
63
- };
64
- /**
65
- * Default Response
66
- */
67
- 401: {
68
- statusCode: number;
69
- error: string;
70
- message: string;
71
- };
72
- };
73
- export type PostApiV1AuthTwoFaError = PostApiV1AuthTwoFaErrors[keyof PostApiV1AuthTwoFaErrors];
74
- export type PostApiV1AuthTwoFaResponses = {
75
- /**
76
- * Default Response
77
- */
78
- 200: {
79
- success: boolean;
80
- };
81
- };
82
- export type PostApiV1AuthTwoFaResponse = PostApiV1AuthTwoFaResponses[keyof PostApiV1AuthTwoFaResponses];
83
16
  export type PostApiV1AuthEmailChangeData = {
84
17
  body: {
18
+ userId: string;
85
19
  newEmail: string;
86
20
  };
87
21
  path?: never;
@@ -118,6 +52,7 @@ export type PostApiV1AuthPasswordChangeData = {
118
52
  body: {
119
53
  oldPassword: string;
120
54
  newPassword: string;
55
+ userId: string;
121
56
  };
122
57
  path?: never;
123
58
  query?: never;
@@ -251,25 +186,6 @@ export type PostApiV1AuthTwoFaRecoveryCodesResponses = {
251
186
  };
252
187
  };
253
188
  export type PostApiV1AuthTwoFaRecoveryCodesResponse = PostApiV1AuthTwoFaRecoveryCodesResponses[keyof PostApiV1AuthTwoFaRecoveryCodesResponses];
254
- export type PostApiV1AuthTwoFaSecretData = {
255
- body: {
256
- issuer: string;
257
- email?: string;
258
- };
259
- path?: never;
260
- query?: never;
261
- url: '/api/v1/auth/two-fa/secret';
262
- };
263
- export type PostApiV1AuthTwoFaSecretResponses = {
264
- /**
265
- * Default Response
266
- */
267
- 200: {
268
- secret: string;
269
- uri: string;
270
- };
271
- };
272
- export type PostApiV1AuthTwoFaSecretResponse = PostApiV1AuthTwoFaSecretResponses[keyof PostApiV1AuthTwoFaSecretResponses];
273
189
  export type PostApiV1AuthEmailCheckData = {
274
190
  body: {
275
191
  email: string;
@@ -312,7 +228,7 @@ export type PostApiV1AuthLoginData = {
312
228
  ip?: string;
313
229
  twoFaCode?: string;
314
230
  userAgent: string;
315
- rememberToken: string | null;
231
+ rememberToken?: string;
316
232
  };
317
233
  path?: never;
318
234
  query?: never;
@@ -337,16 +253,16 @@ export type PostApiV1AuthLoginResponses = {
337
253
  accessToken: string;
338
254
  refreshToken: string;
339
255
  deviceId: string;
340
- } | {
341
- twoFaType: 'email' | 'sms' | 'app';
342
- twoFaToken: string;
343
- deviceId: string;
256
+ challanges: Array<'verifyTwoFa' | 'setTwoFa' | 'resetPassword' | 'setPassword'>;
257
+ sessionId: string;
344
258
  };
345
259
  };
346
260
  export type PostApiV1AuthLoginResponse = PostApiV1AuthLoginResponses[keyof PostApiV1AuthLoginResponses];
347
261
  export type PostApiV1AuthLoginAsData = {
348
262
  body: {
349
263
  userId: string;
264
+ deviceId: string;
265
+ targetUserId: string;
350
266
  };
351
267
  path?: never;
352
268
  query?: never;
@@ -378,6 +294,8 @@ export type PostApiV1AuthLoginAsResponses = {
378
294
  200: {
379
295
  accessToken: string;
380
296
  refreshToken: string;
297
+ deviceId: string;
298
+ sessionId: string;
381
299
  };
382
300
  };
383
301
  export type PostApiV1AuthLoginAsResponse = PostApiV1AuthLoginAsResponses[keyof PostApiV1AuthLoginAsResponses];
@@ -548,90 +466,6 @@ export type PostApiV1AuthMagicLinkSendResponses = {
548
466
  };
549
467
  };
550
468
  export type PostApiV1AuthMagicLinkSendResponse = PostApiV1AuthMagicLinkSendResponses[keyof PostApiV1AuthMagicLinkSendResponses];
551
- export type PostApiV1AuthPhoneSendCodeData = {
552
- body: {
553
- phone: string;
554
- };
555
- path?: never;
556
- query?: never;
557
- url: '/api/v1/auth/phone/send-code';
558
- };
559
- export type PostApiV1AuthPhoneSendCodeErrors = {
560
- /**
561
- * Default Response
562
- */
563
- 409: {
564
- statusCode: number;
565
- error: string;
566
- message: string;
567
- };
568
- };
569
- export type PostApiV1AuthPhoneSendCodeError = PostApiV1AuthPhoneSendCodeErrors[keyof PostApiV1AuthPhoneSendCodeErrors];
570
- export type PostApiV1AuthPhoneSendCodeResponses = {
571
- /**
572
- * Default Response
573
- */
574
- 200: {
575
- success: boolean;
576
- };
577
- };
578
- export type PostApiV1AuthPhoneSendCodeResponse = PostApiV1AuthPhoneSendCodeResponses[keyof PostApiV1AuthPhoneSendCodeResponses];
579
- export type PostApiV1AuthSmsSendCodeData = {
580
- body: {
581
- [key: string]: unknown;
582
- };
583
- path?: never;
584
- query?: never;
585
- url: '/api/v1/auth/sms/send-code';
586
- };
587
- export type PostApiV1AuthSmsSendCodeErrors = {
588
- /**
589
- * Default Response
590
- */
591
- 400: {
592
- statusCode: number;
593
- error: string;
594
- message: string;
595
- };
596
- /**
597
- * Default Response
598
- */
599
- 401: {
600
- statusCode: number;
601
- error: string;
602
- message: string;
603
- };
604
- };
605
- export type PostApiV1AuthSmsSendCodeError = PostApiV1AuthSmsSendCodeErrors[keyof PostApiV1AuthSmsSendCodeErrors];
606
- export type PostApiV1AuthSmsSendCodeResponses = {
607
- /**
608
- * Default Response
609
- */
610
- 200: {
611
- success: boolean;
612
- };
613
- };
614
- export type PostApiV1AuthSmsSendCodeResponse = PostApiV1AuthSmsSendCodeResponses[keyof PostApiV1AuthSmsSendCodeResponses];
615
- export type PostApiV1AuthTestEmailData = {
616
- body: {
617
- email: string;
618
- projectId: string;
619
- template: string;
620
- locale?: string;
621
- };
622
- path?: never;
623
- query?: never;
624
- url: '/api/v1/auth/test-email';
625
- };
626
- export type PostApiV1AuthTestEmailResponses = {
627
- /**
628
- * Default Response
629
- */
630
- 200: {
631
- success: boolean;
632
- };
633
- };
634
- export type PostApiV1AuthTestEmailResponse = PostApiV1AuthTestEmailResponses[keyof PostApiV1AuthTestEmailResponses];
635
469
  export type PostApiV1AuthPasswordSetData = {
636
470
  body: {
637
471
  password: string;
@@ -722,45 +556,6 @@ export type PostApiV1AuthTwoFaRecoveryResponses = {
722
556
  };
723
557
  };
724
558
  export type PostApiV1AuthTwoFaRecoveryResponse = PostApiV1AuthTwoFaRecoveryResponses[keyof PostApiV1AuthTwoFaRecoveryResponses];
725
- export type PostApiV1AuthTwoFaVerifyData = {
726
- body: {
727
- twoFaToken: string;
728
- code: string;
729
- };
730
- path?: never;
731
- query?: never;
732
- url: '/api/v1/auth/two-fa/verify';
733
- };
734
- export type PostApiV1AuthTwoFaVerifyErrors = {
735
- /**
736
- * Default Response
737
- */
738
- 400: {
739
- statusCode: number;
740
- error: string;
741
- message: string;
742
- };
743
- /**
744
- * Default Response
745
- */
746
- 401: {
747
- statusCode: number;
748
- error: string;
749
- message: string;
750
- };
751
- };
752
- export type PostApiV1AuthTwoFaVerifyError = PostApiV1AuthTwoFaVerifyErrors[keyof PostApiV1AuthTwoFaVerifyErrors];
753
- export type PostApiV1AuthTwoFaVerifyResponses = {
754
- /**
755
- * Default Response
756
- */
757
- 200: {
758
- accessToken: string;
759
- refreshToken: string;
760
- rememberToken: string;
761
- };
762
- };
763
- export type PostApiV1AuthTwoFaVerifyResponse = PostApiV1AuthTwoFaVerifyResponses[keyof PostApiV1AuthTwoFaVerifyResponses];
764
559
  export type PostApiV1AuthMagicLinkVerifyData = {
765
560
  body: {
766
561
  token: string;
@@ -801,71 +596,6 @@ export type PostApiV1AuthMagicLinkVerifyResponses = {
801
596
  };
802
597
  };
803
598
  export type PostApiV1AuthMagicLinkVerifyResponse = PostApiV1AuthMagicLinkVerifyResponses[keyof PostApiV1AuthMagicLinkVerifyResponses];
804
- export type PostApiV1AuthPhoneVerifyData = {
805
- body: {
806
- phone: string;
807
- code: string;
808
- };
809
- path?: never;
810
- query?: never;
811
- url: '/api/v1/auth/phone/verify';
812
- };
813
- export type PostApiV1AuthPhoneVerifyErrors = {
814
- /**
815
- * Default Response
816
- */
817
- 401: {
818
- statusCode: number;
819
- error: string;
820
- message: string;
821
- };
822
- };
823
- export type PostApiV1AuthPhoneVerifyError = PostApiV1AuthPhoneVerifyErrors[keyof PostApiV1AuthPhoneVerifyErrors];
824
- export type PostApiV1AuthPhoneVerifyResponses = {
825
- /**
826
- * Default Response
827
- */
828
- 200: {
829
- success: boolean;
830
- };
831
- };
832
- export type PostApiV1AuthPhoneVerifyResponse = PostApiV1AuthPhoneVerifyResponses[keyof PostApiV1AuthPhoneVerifyResponses];
833
- export type PostApiV1AuthSmsVerifyData = {
834
- body: {
835
- code: string;
836
- };
837
- path?: never;
838
- query?: never;
839
- url: '/api/v1/auth/sms/verify';
840
- };
841
- export type PostApiV1AuthSmsVerifyErrors = {
842
- /**
843
- * Default Response
844
- */
845
- 400: {
846
- statusCode: number;
847
- error: string;
848
- message: string;
849
- };
850
- /**
851
- * Default Response
852
- */
853
- 401: {
854
- statusCode: number;
855
- error: string;
856
- message: string;
857
- };
858
- };
859
- export type PostApiV1AuthSmsVerifyError = PostApiV1AuthSmsVerifyErrors[keyof PostApiV1AuthSmsVerifyErrors];
860
- export type PostApiV1AuthSmsVerifyResponses = {
861
- /**
862
- * Default Response
863
- */
864
- 200: {
865
- verify: boolean;
866
- };
867
- };
868
- export type PostApiV1AuthSmsVerifyResponse = PostApiV1AuthSmsVerifyResponses[keyof PostApiV1AuthSmsVerifyResponses];
869
599
  export type PostApiV1InvitationsInvitationAcceptData = {
870
600
  body: {
871
601
  token: string;
@@ -966,62 +696,17 @@ export type DeleteApiV1InvitationsInvitationByIdResponses = {
966
696
  };
967
697
  };
968
698
  export type DeleteApiV1InvitationsInvitationByIdResponse = DeleteApiV1InvitationsInvitationByIdResponses[keyof DeleteApiV1InvitationsInvitationByIdResponses];
969
- export type GetApiV1UserData = {
970
- body?: never;
971
- path?: never;
972
- query?: {
973
- limit?: number;
974
- offset?: number;
975
- search?: string;
699
+ export type PostApiV1SessionsBySessionIdChallangesTwoFaData = {
700
+ body: {
701
+ code: string;
702
+ };
703
+ path: {
704
+ sessionId: string;
976
705
  };
977
- url: '/api/v1/user/';
706
+ query?: never;
707
+ url: '/api/v1/sessions/{sessionId}/challanges/two-fa';
978
708
  };
979
- export type GetApiV1UserResponses = {
980
- /**
981
- * Default Response
982
- */
983
- 200: {
984
- data: Array<{
985
- id: string;
986
- email: string;
987
- firstName: string | null;
988
- lastName: string | null;
989
- username: string;
990
- role: string;
991
- emailVerified: boolean;
992
- phone: string | null;
993
- phoneVerified: boolean;
994
- isBlocked: boolean;
995
- isGuest: boolean;
996
- locale: string;
997
- createdAt: string;
998
- }>;
999
- total: number;
1000
- };
1001
- };
1002
- export type GetApiV1UserResponse = GetApiV1UserResponses[keyof GetApiV1UserResponses];
1003
- export type PostApiV1UserData = {
1004
- body: {
1005
- email: string;
1006
- username: string;
1007
- password?: string;
1008
- firstName?: string | null;
1009
- lastName?: string | null;
1010
- phone?: string | null;
1011
- locale?: string;
1012
- role?: string;
1013
- claims?: {
1014
- [key: string]: unknown;
1015
- };
1016
- marketingConsent?: boolean;
1017
- isGuest?: boolean;
1018
- emailVerified?: boolean;
1019
- };
1020
- path?: never;
1021
- query?: never;
1022
- url: '/api/v1/user/';
1023
- };
1024
- export type PostApiV1UserErrors = {
709
+ export type PostApiV1SessionsBySessionIdChallangesTwoFaErrors = {
1025
710
  /**
1026
711
  * Default Response
1027
712
  */
@@ -1033,71 +718,58 @@ export type PostApiV1UserErrors = {
1033
718
  /**
1034
719
  * Default Response
1035
720
  */
1036
- 409: {
721
+ 401: {
1037
722
  statusCode: number;
1038
723
  error: string;
1039
724
  message: string;
1040
725
  };
1041
726
  };
1042
- export type PostApiV1UserError = PostApiV1UserErrors[keyof PostApiV1UserErrors];
1043
- export type PostApiV1UserResponses = {
727
+ export type PostApiV1SessionsBySessionIdChallangesTwoFaError = PostApiV1SessionsBySessionIdChallangesTwoFaErrors[keyof PostApiV1SessionsBySessionIdChallangesTwoFaErrors];
728
+ export type PostApiV1SessionsBySessionIdChallangesTwoFaResponses = {
1044
729
  /**
1045
730
  * Default Response
1046
731
  */
1047
- 201: {
1048
- id: string;
1049
- email: string;
1050
- isGuest: boolean;
732
+ 200: {
733
+ accessToken: string;
734
+ rememberToken: string;
1051
735
  };
1052
736
  };
1053
- export type PostApiV1UserResponse = PostApiV1UserResponses[keyof PostApiV1UserResponses];
1054
- export type GetApiV1UserByUserIdRolesData = {
1055
- body?: never;
1056
- path: {
1057
- userId: string;
737
+ export type PostApiV1SessionsBySessionIdChallangesTwoFaResponse = PostApiV1SessionsBySessionIdChallangesTwoFaResponses[keyof PostApiV1SessionsBySessionIdChallangesTwoFaResponses];
738
+ export type PostApiV1ToolsTestEmailData = {
739
+ body: {
740
+ email: string;
741
+ projectId: string;
742
+ template: string;
743
+ locale?: string;
1058
744
  };
745
+ path?: never;
1059
746
  query?: never;
1060
- url: '/api/v1/user/{userId}/roles';
747
+ url: '/api/v1/tools/test-email';
1061
748
  };
1062
- export type GetApiV1UserByUserIdRolesErrors = {
749
+ export type PostApiV1ToolsTestEmailResponses = {
1063
750
  /**
1064
751
  * Default Response
1065
752
  */
1066
- 404: {
1067
- statusCode: number;
1068
- error: string;
1069
- message: string;
753
+ 200: {
754
+ success: boolean;
1070
755
  };
1071
756
  };
1072
- export type GetApiV1UserByUserIdRolesError = GetApiV1UserByUserIdRolesErrors[keyof GetApiV1UserByUserIdRolesErrors];
1073
- export type GetApiV1UserByUserIdRolesResponses = {
1074
- /**
1075
- * Default Response
1076
- */
1077
- 200: Array<{
1078
- id: string;
1079
- role: string;
1080
- group: string;
1081
- createdAt: string;
1082
- }>;
1083
- };
1084
- export type GetApiV1UserByUserIdRolesResponse = GetApiV1UserByUserIdRolesResponses[keyof GetApiV1UserByUserIdRolesResponses];
1085
- export type PostApiV1UserByUserIdRolesData = {
757
+ export type PostApiV1ToolsTestEmailResponse = PostApiV1ToolsTestEmailResponses[keyof PostApiV1ToolsTestEmailResponses];
758
+ export type PatchApiV1ToolsSmsData = {
1086
759
  body: {
1087
- role: string;
1088
- group: string;
760
+ code: string;
1089
761
  };
1090
762
  path: {
1091
763
  userId: string;
1092
764
  };
1093
765
  query?: never;
1094
- url: '/api/v1/user/{userId}/roles';
766
+ url: '/api/v1/tools/sms';
1095
767
  };
1096
- export type PostApiV1UserByUserIdRolesErrors = {
768
+ export type PatchApiV1ToolsSmsErrors = {
1097
769
  /**
1098
770
  * Default Response
1099
771
  */
1100
- 404: {
772
+ 400: {
1101
773
  statusCode: number;
1102
774
  error: string;
1103
775
  message: string;
@@ -1105,119 +777,180 @@ export type PostApiV1UserByUserIdRolesErrors = {
1105
777
  /**
1106
778
  * Default Response
1107
779
  */
1108
- 409: {
780
+ 401: {
1109
781
  statusCode: number;
1110
782
  error: string;
1111
783
  message: string;
1112
784
  };
1113
785
  };
1114
- export type PostApiV1UserByUserIdRolesError = PostApiV1UserByUserIdRolesErrors[keyof PostApiV1UserByUserIdRolesErrors];
1115
- export type PostApiV1UserByUserIdRolesResponses = {
786
+ export type PatchApiV1ToolsSmsError = PatchApiV1ToolsSmsErrors[keyof PatchApiV1ToolsSmsErrors];
787
+ export type PatchApiV1ToolsSmsResponses = {
1116
788
  /**
1117
789
  * Default Response
1118
790
  */
1119
- 201: {
1120
- id: string;
1121
- userId: string;
1122
- role: string;
1123
- group: string;
1124
- createdAt: string;
791
+ 200: {
792
+ verify: boolean;
1125
793
  };
1126
794
  };
1127
- export type PostApiV1UserByUserIdRolesResponse = PostApiV1UserByUserIdRolesResponses[keyof PostApiV1UserByUserIdRolesResponses];
1128
- export type DeleteApiV1UserByIdData = {
1129
- body?: never;
795
+ export type PatchApiV1ToolsSmsResponse = PatchApiV1ToolsSmsResponses[keyof PatchApiV1ToolsSmsResponses];
796
+ export type PostApiV1ToolsSmsData = {
797
+ body: {
798
+ [key: string]: unknown;
799
+ };
1130
800
  path: {
1131
- id: string;
801
+ userId: string;
1132
802
  };
1133
803
  query?: never;
1134
- url: '/api/v1/user/{id}';
804
+ url: '/api/v1/tools/sms';
1135
805
  };
1136
- export type DeleteApiV1UserByIdErrors = {
806
+ export type PostApiV1ToolsSmsErrors = {
1137
807
  /**
1138
808
  * Default Response
1139
809
  */
1140
- 404: {
810
+ 400: {
811
+ statusCode: number;
812
+ error: string;
813
+ message: string;
814
+ };
815
+ /**
816
+ * Default Response
817
+ */
818
+ 401: {
1141
819
  statusCode: number;
1142
820
  error: string;
1143
821
  message: string;
1144
822
  };
1145
823
  };
1146
- export type DeleteApiV1UserByIdError = DeleteApiV1UserByIdErrors[keyof DeleteApiV1UserByIdErrors];
1147
- export type DeleteApiV1UserByIdResponses = {
824
+ export type PostApiV1ToolsSmsError = PostApiV1ToolsSmsErrors[keyof PostApiV1ToolsSmsErrors];
825
+ export type PostApiV1ToolsSmsResponses = {
1148
826
  /**
1149
827
  * Default Response
1150
828
  */
1151
829
  200: {
1152
- id: string;
830
+ success: boolean;
1153
831
  };
1154
832
  };
1155
- export type DeleteApiV1UserByIdResponse = DeleteApiV1UserByIdResponses[keyof DeleteApiV1UserByIdResponses];
1156
- export type GetApiV1UserByIdData = {
833
+ export type PostApiV1ToolsSmsResponse = PostApiV1ToolsSmsResponses[keyof PostApiV1ToolsSmsResponses];
834
+ export type GetApiV1UsersData = {
1157
835
  body?: never;
1158
- path: {
1159
- id: string;
836
+ path?: never;
837
+ query?: {
838
+ limit?: number;
839
+ offset?: number;
840
+ search?: string;
841
+ firstName?: string;
842
+ lastName?: string;
843
+ email?: string;
844
+ phone?: string;
845
+ role?: string;
846
+ emailVerified?: boolean;
847
+ phoneVerified?: boolean;
848
+ isBlocked?: boolean;
849
+ isGuest?: boolean;
1160
850
  };
851
+ url: '/api/v1/users/';
852
+ };
853
+ export type GetApiV1UsersResponses = {
854
+ /**
855
+ * Default Response
856
+ */
857
+ 200: {
858
+ data: Array<{
859
+ id: string;
860
+ email: string;
861
+ firstName: string | null;
862
+ lastName: string | null;
863
+ username: string;
864
+ role: string;
865
+ emailVerified: boolean;
866
+ phone: string | null;
867
+ phoneVerified: boolean;
868
+ isBlocked: boolean;
869
+ isGuest: boolean;
870
+ locale: string;
871
+ createdAt: string;
872
+ roles: Array<{
873
+ role: string;
874
+ group: string;
875
+ createdAt: string;
876
+ }>;
877
+ }>;
878
+ total: number;
879
+ };
880
+ };
881
+ export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
882
+ export type PostApiV1UsersData = {
883
+ body: {
884
+ email: string;
885
+ username: string;
886
+ password?: string;
887
+ firstName?: string | null;
888
+ lastName?: string | null;
889
+ phone?: string | null;
890
+ locale?: string;
891
+ role?: string;
892
+ claims?: {
893
+ [key: string]: unknown;
894
+ };
895
+ marketingConsent?: boolean;
896
+ isGuest?: boolean;
897
+ emailVerified?: boolean;
898
+ };
899
+ path?: never;
1161
900
  query?: never;
1162
- url: '/api/v1/user/{id}';
901
+ url: '/api/v1/users/';
1163
902
  };
1164
- export type GetApiV1UserByIdErrors = {
903
+ export type PostApiV1UsersErrors = {
1165
904
  /**
1166
905
  * Default Response
1167
906
  */
1168
- 404: {
907
+ 400: {
908
+ statusCode: number;
909
+ error: string;
910
+ message: string;
911
+ };
912
+ /**
913
+ * Default Response
914
+ */
915
+ 409: {
1169
916
  statusCode: number;
1170
917
  error: string;
1171
918
  message: string;
1172
919
  };
1173
920
  };
1174
- export type GetApiV1UserByIdError = GetApiV1UserByIdErrors[keyof GetApiV1UserByIdErrors];
1175
- export type GetApiV1UserByIdResponses = {
921
+ export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
922
+ export type PostApiV1UsersResponses = {
1176
923
  /**
1177
924
  * Default Response
1178
925
  */
1179
- 200: {
926
+ 201: {
1180
927
  id: string;
1181
928
  email: string;
1182
- firstName: string | null;
1183
- lastName: string | null;
1184
- username: string;
1185
- role: string;
1186
- emailVerified: boolean;
1187
- phone: string | null;
1188
- phoneVerified: boolean;
1189
- isBlocked: boolean;
1190
- isBlockedUntil: string | null;
1191
929
  isGuest: boolean;
1192
- locale: string;
1193
- claims: unknown;
1194
- marketingConsent: boolean;
1195
- twoFaEnabled: boolean;
1196
- twoFaType: string | null;
1197
- createdAt: string;
1198
- updatedAt: string;
1199
930
  };
1200
931
  };
1201
- export type GetApiV1UserByIdResponse = GetApiV1UserByIdResponses[keyof GetApiV1UserByIdResponses];
1202
- export type PatchApiV1UserByIdData = {
932
+ export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
933
+ export type PatchApiV1UsersByIdData = {
1203
934
  body: {
1204
- email?: string;
935
+ firstName?: string;
936
+ lastName?: string;
1205
937
  emailVerified?: boolean;
1206
- phone?: string;
1207
938
  phoneVerified?: boolean;
1208
939
  isBlocked?: boolean;
1209
940
  isBlockedUntil?: string | null;
1210
941
  twoFaEnabled?: boolean;
1211
942
  twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1212
943
  loginAttempts?: number;
944
+ phone?: string;
945
+ email?: string;
1213
946
  };
1214
947
  path: {
1215
948
  id: string;
1216
949
  };
1217
950
  query?: never;
1218
- url: '/api/v1/user/{id}';
951
+ url: '/api/v1/users/{id}';
1219
952
  };
1220
- export type PatchApiV1UserByIdErrors = {
953
+ export type PatchApiV1UsersByIdErrors = {
1221
954
  /**
1222
955
  * Default Response
1223
956
  */
@@ -1235,8 +968,8 @@ export type PatchApiV1UserByIdErrors = {
1235
968
  message: string;
1236
969
  };
1237
970
  };
1238
- export type PatchApiV1UserByIdError = PatchApiV1UserByIdErrors[keyof PatchApiV1UserByIdErrors];
1239
- export type PatchApiV1UserByIdResponses = {
971
+ export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
972
+ export type PatchApiV1UsersByIdResponses = {
1240
973
  /**
1241
974
  * Default Response
1242
975
  */
@@ -1244,17 +977,16 @@ export type PatchApiV1UserByIdResponses = {
1244
977
  id: string;
1245
978
  };
1246
979
  };
1247
- export type PatchApiV1UserByIdResponse = PatchApiV1UserByIdResponses[keyof PatchApiV1UserByIdResponses];
1248
- export type DeleteApiV1UserByUserIdRolesByRoleIdData = {
980
+ export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
981
+ export type DeleteApiV1UsersByUserIdData = {
1249
982
  body?: never;
1250
983
  path: {
1251
- userId: string;
1252
- roleId: string;
984
+ id: string;
1253
985
  };
1254
986
  query?: never;
1255
- url: '/api/v1/user/{userId}/roles/{roleId}';
987
+ url: '/api/v1/users/{userId}/';
1256
988
  };
1257
- export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
989
+ export type DeleteApiV1UsersByUserIdErrors = {
1258
990
  /**
1259
991
  * Default Response
1260
992
  */
@@ -1264,8 +996,8 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
1264
996
  message: string;
1265
997
  };
1266
998
  };
1267
- export type DeleteApiV1UserByUserIdRolesByRoleIdError = DeleteApiV1UserByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UserByUserIdRolesByRoleIdErrors];
1268
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
999
+ export type DeleteApiV1UsersByUserIdError = DeleteApiV1UsersByUserIdErrors[keyof DeleteApiV1UsersByUserIdErrors];
1000
+ export type DeleteApiV1UsersByUserIdResponses = {
1269
1001
  /**
1270
1002
  * Default Response
1271
1003
  */
@@ -1273,28 +1005,16 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1273
1005
  id: string;
1274
1006
  };
1275
1007
  };
1276
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponse = DeleteApiV1UserByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UserByUserIdRolesByRoleIdResponses];
1277
- export type PatchApiV1UserByUserIdRolesByRoleIdData = {
1278
- body: {
1279
- role?: string;
1280
- group?: string;
1281
- };
1008
+ export type DeleteApiV1UsersByUserIdResponse = DeleteApiV1UsersByUserIdResponses[keyof DeleteApiV1UsersByUserIdResponses];
1009
+ export type GetApiV1UsersByUserIdData = {
1010
+ body?: never;
1282
1011
  path: {
1283
- userId: string;
1284
- roleId: string;
1012
+ id: string;
1285
1013
  };
1286
1014
  query?: never;
1287
- url: '/api/v1/user/{userId}/roles/{roleId}';
1015
+ url: '/api/v1/users/{userId}';
1288
1016
  };
1289
- export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1290
- /**
1291
- * Default Response
1292
- */
1293
- 400: {
1294
- statusCode: number;
1295
- error: string;
1296
- message: string;
1297
- };
1017
+ export type GetApiV1UsersByUserIdErrors = {
1298
1018
  /**
1299
1019
  * Default Response
1300
1020
  */
@@ -1304,80 +1024,50 @@ export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1304
1024
  message: string;
1305
1025
  };
1306
1026
  };
1307
- export type PatchApiV1UserByUserIdRolesByRoleIdError = PatchApiV1UserByUserIdRolesByRoleIdErrors[keyof PatchApiV1UserByUserIdRolesByRoleIdErrors];
1308
- export type PatchApiV1UserByUserIdRolesByRoleIdResponses = {
1027
+ export type GetApiV1UsersByUserIdError = GetApiV1UsersByUserIdErrors[keyof GetApiV1UsersByUserIdErrors];
1028
+ export type GetApiV1UsersByUserIdResponses = {
1309
1029
  /**
1310
1030
  * Default Response
1311
1031
  */
1312
1032
  200: {
1313
1033
  id: string;
1314
- userId: string;
1034
+ email: string;
1035
+ firstName: string | null;
1036
+ lastName: string | null;
1037
+ username: string;
1315
1038
  role: string;
1316
- group: string;
1039
+ emailVerified: boolean;
1040
+ phone: string | null;
1041
+ phoneVerified: boolean;
1042
+ isBlocked: boolean;
1043
+ isBlockedUntil: string | null;
1044
+ isGuest: boolean;
1045
+ locale: string;
1046
+ claims: unknown;
1047
+ marketingConsent: boolean;
1048
+ twoFaEnabled: boolean;
1049
+ twoFaType: string | null;
1317
1050
  createdAt: string;
1051
+ updatedAt: string;
1318
1052
  };
1319
1053
  };
1320
- export type PatchApiV1UserByUserIdRolesByRoleIdResponse = PatchApiV1UserByUserIdRolesByRoleIdResponses[keyof PatchApiV1UserByUserIdRolesByRoleIdResponses];
1321
- export type GetApiV1UsersData = {
1322
- body?: never;
1323
- path?: never;
1324
- query?: {
1325
- limit?: number;
1326
- offset?: number;
1327
- search?: string;
1328
- };
1329
- url: '/api/v1/users/';
1330
- };
1331
- export type GetApiV1UsersResponses = {
1332
- /**
1333
- * Default Response
1334
- */
1335
- 200: {
1336
- data: Array<{
1337
- id: string;
1338
- email: string;
1339
- firstName: string | null;
1340
- lastName: string | null;
1341
- username: string;
1342
- role: string;
1343
- emailVerified: boolean;
1344
- phone: string | null;
1345
- phoneVerified: boolean;
1346
- isBlocked: boolean;
1347
- isGuest: boolean;
1348
- locale: string;
1349
- createdAt: string;
1350
- }>;
1351
- total: number;
1352
- };
1353
- };
1354
- export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
1355
- export type PostApiV1UsersData = {
1054
+ export type GetApiV1UsersByUserIdResponse = GetApiV1UsersByUserIdResponses[keyof GetApiV1UsersByUserIdResponses];
1055
+ export type PatchApiV1UsersByUserIdChallangePhoneData = {
1356
1056
  body: {
1357
- email: string;
1358
- username: string;
1359
- password?: string;
1360
- firstName?: string | null;
1361
- lastName?: string | null;
1362
- phone?: string | null;
1363
- locale?: string;
1364
- role?: string;
1365
- claims?: {
1366
- [key: string]: unknown;
1367
- };
1368
- marketingConsent?: boolean;
1369
- isGuest?: boolean;
1370
- emailVerified?: boolean;
1057
+ phone: string;
1058
+ code: string;
1059
+ };
1060
+ path: {
1061
+ userId: string;
1371
1062
  };
1372
- path?: never;
1373
1063
  query?: never;
1374
- url: '/api/v1/users/';
1064
+ url: '/api/v1/users/{userId}/challange/phone';
1375
1065
  };
1376
- export type PostApiV1UsersErrors = {
1066
+ export type PatchApiV1UsersByUserIdChallangePhoneErrors = {
1377
1067
  /**
1378
1068
  * Default Response
1379
1069
  */
1380
- 400: {
1070
+ 401: {
1381
1071
  statusCode: number;
1382
1072
  error: string;
1383
1073
  message: string;
@@ -1385,33 +1075,31 @@ export type PostApiV1UsersErrors = {
1385
1075
  /**
1386
1076
  * Default Response
1387
1077
  */
1388
- 409: {
1078
+ 404: {
1389
1079
  statusCode: number;
1390
1080
  error: string;
1391
1081
  message: string;
1392
1082
  };
1393
1083
  };
1394
- export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
1395
- export type PostApiV1UsersResponses = {
1084
+ export type PatchApiV1UsersByUserIdChallangePhoneError = PatchApiV1UsersByUserIdChallangePhoneErrors[keyof PatchApiV1UsersByUserIdChallangePhoneErrors];
1085
+ export type PatchApiV1UsersByUserIdChallangePhoneResponses = {
1396
1086
  /**
1397
1087
  * Default Response
1398
1088
  */
1399
- 201: {
1400
- id: string;
1401
- email: string;
1402
- isGuest: boolean;
1403
- };
1089
+ 201: null;
1404
1090
  };
1405
- export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
1406
- export type GetApiV1UsersByUserIdRolesData = {
1407
- body?: never;
1091
+ export type PatchApiV1UsersByUserIdChallangePhoneResponse = PatchApiV1UsersByUserIdChallangePhoneResponses[keyof PatchApiV1UsersByUserIdChallangePhoneResponses];
1092
+ export type PostApiV1UsersByUserIdChallangePhoneData = {
1093
+ body: {
1094
+ phone: string;
1095
+ };
1408
1096
  path: {
1409
1097
  userId: string;
1410
1098
  };
1411
1099
  query?: never;
1412
- url: '/api/v1/users/{userId}/roles';
1100
+ url: '/api/v1/users/{userId}/challange/phone';
1413
1101
  };
1414
- export type GetApiV1UsersByUserIdRolesErrors = {
1102
+ export type PostApiV1UsersByUserIdChallangePhoneErrors = {
1415
1103
  /**
1416
1104
  * Default Response
1417
1105
  */
@@ -1420,20 +1108,23 @@ export type GetApiV1UsersByUserIdRolesErrors = {
1420
1108
  error: string;
1421
1109
  message: string;
1422
1110
  };
1111
+ /**
1112
+ * Default Response
1113
+ */
1114
+ 409: {
1115
+ statusCode: number;
1116
+ error: string;
1117
+ message: string;
1118
+ };
1423
1119
  };
1424
- export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
1425
- export type GetApiV1UsersByUserIdRolesResponses = {
1120
+ export type PostApiV1UsersByUserIdChallangePhoneError = PostApiV1UsersByUserIdChallangePhoneErrors[keyof PostApiV1UsersByUserIdChallangePhoneErrors];
1121
+ export type PostApiV1UsersByUserIdChallangePhoneResponses = {
1426
1122
  /**
1427
1123
  * Default Response
1428
1124
  */
1429
- 200: Array<{
1430
- id: string;
1431
- role: string;
1432
- group: string;
1433
- createdAt: string;
1434
- }>;
1125
+ 200: null;
1435
1126
  };
1436
- export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
1127
+ export type PostApiV1UsersByUserIdChallangePhoneResponse = PostApiV1UsersByUserIdChallangePhoneResponses[keyof PostApiV1UsersByUserIdChallangePhoneResponses];
1437
1128
  export type PostApiV1UsersByUserIdRolesData = {
1438
1129
  body: {
1439
1130
  role: string;
@@ -1477,15 +1168,16 @@ export type PostApiV1UsersByUserIdRolesResponses = {
1477
1168
  };
1478
1169
  };
1479
1170
  export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
1480
- export type DeleteApiV1UsersByIdData = {
1171
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdData = {
1481
1172
  body?: never;
1482
1173
  path: {
1483
- id: string;
1174
+ userId: string;
1175
+ roleId: string;
1484
1176
  };
1485
1177
  query?: never;
1486
- url: '/api/v1/users/{id}';
1178
+ url: '/api/v1/users/{userId}/roles/roles/{roleId}';
1487
1179
  };
1488
- export type DeleteApiV1UsersByIdErrors = {
1180
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors = {
1489
1181
  /**
1490
1182
  * Default Response
1491
1183
  */
@@ -1495,8 +1187,8 @@ export type DeleteApiV1UsersByIdErrors = {
1495
1187
  message: string;
1496
1188
  };
1497
1189
  };
1498
- export type DeleteApiV1UsersByIdError = DeleteApiV1UsersByIdErrors[keyof DeleteApiV1UsersByIdErrors];
1499
- export type DeleteApiV1UsersByIdResponses = {
1190
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors];
1191
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses = {
1500
1192
  /**
1501
1193
  * Default Response
1502
1194
  */
@@ -1504,16 +1196,16 @@ export type DeleteApiV1UsersByIdResponses = {
1504
1196
  id: string;
1505
1197
  };
1506
1198
  };
1507
- export type DeleteApiV1UsersByIdResponse = DeleteApiV1UsersByIdResponses[keyof DeleteApiV1UsersByIdResponses];
1508
- export type GetApiV1UsersByIdData = {
1199
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses];
1200
+ export type GetApiV1UsersByUserIdRolesRolesData = {
1509
1201
  body?: never;
1510
1202
  path: {
1511
- id: string;
1203
+ userId: string;
1512
1204
  };
1513
1205
  query?: never;
1514
- url: '/api/v1/users/{id}';
1206
+ url: '/api/v1/users/{userId}/roles/roles';
1515
1207
  };
1516
- export type GetApiV1UsersByIdErrors = {
1208
+ export type GetApiV1UsersByUserIdRolesRolesErrors = {
1517
1209
  /**
1518
1210
  * Default Response
1519
1211
  */
@@ -1523,53 +1215,32 @@ export type GetApiV1UsersByIdErrors = {
1523
1215
  message: string;
1524
1216
  };
1525
1217
  };
1526
- export type GetApiV1UsersByIdError = GetApiV1UsersByIdErrors[keyof GetApiV1UsersByIdErrors];
1527
- export type GetApiV1UsersByIdResponses = {
1218
+ export type GetApiV1UsersByUserIdRolesRolesError = GetApiV1UsersByUserIdRolesRolesErrors[keyof GetApiV1UsersByUserIdRolesRolesErrors];
1219
+ export type GetApiV1UsersByUserIdRolesRolesResponses = {
1528
1220
  /**
1529
1221
  * Default Response
1530
1222
  */
1531
- 200: {
1223
+ 200: Array<{
1532
1224
  id: string;
1533
- email: string;
1534
- firstName: string | null;
1535
- lastName: string | null;
1536
- username: string;
1537
1225
  role: string;
1538
- emailVerified: boolean;
1539
- phone: string | null;
1540
- phoneVerified: boolean;
1541
- isBlocked: boolean;
1542
- isBlockedUntil: string | null;
1543
- isGuest: boolean;
1544
- locale: string;
1545
- claims: unknown;
1546
- marketingConsent: boolean;
1547
- twoFaEnabled: boolean;
1548
- twoFaType: string | null;
1226
+ group: string;
1549
1227
  createdAt: string;
1550
- updatedAt: string;
1551
- };
1228
+ }>;
1552
1229
  };
1553
- export type GetApiV1UsersByIdResponse = GetApiV1UsersByIdResponses[keyof GetApiV1UsersByIdResponses];
1554
- export type PatchApiV1UsersByIdData = {
1230
+ export type GetApiV1UsersByUserIdRolesRolesResponse = GetApiV1UsersByUserIdRolesRolesResponses[keyof GetApiV1UsersByUserIdRolesRolesResponses];
1231
+ export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1555
1232
  body: {
1556
- email?: string;
1557
- emailVerified?: boolean;
1558
- phone?: string;
1559
- phoneVerified?: boolean;
1560
- isBlocked?: boolean;
1561
- isBlockedUntil?: string | null;
1562
- twoFaEnabled?: boolean;
1563
- twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1564
- loginAttempts?: number;
1233
+ role?: string;
1234
+ group?: string;
1565
1235
  };
1566
1236
  path: {
1567
- id: string;
1237
+ userId: string;
1238
+ roleId: string;
1568
1239
  };
1569
1240
  query?: never;
1570
- url: '/api/v1/users/{id}';
1241
+ url: '/api/v1/users/{userId}/roles/{roleId}';
1571
1242
  };
1572
- export type PatchApiV1UsersByIdErrors = {
1243
+ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1573
1244
  /**
1574
1245
  * Default Response
1575
1246
  */
@@ -1587,58 +1258,62 @@ export type PatchApiV1UsersByIdErrors = {
1587
1258
  message: string;
1588
1259
  };
1589
1260
  };
1590
- export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
1591
- export type PatchApiV1UsersByIdResponses = {
1261
+ export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1262
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1592
1263
  /**
1593
1264
  * Default Response
1594
1265
  */
1595
1266
  200: {
1596
1267
  id: string;
1268
+ userId: string;
1269
+ role: string;
1270
+ group: string;
1271
+ createdAt: string;
1597
1272
  };
1598
1273
  };
1599
- export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
1600
- export type DeleteApiV1UsersByUserIdRolesByRoleIdData = {
1601
- body?: never;
1274
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1275
+ export type DeleteApiV1UsersByUserIdTwoFaData = {
1276
+ body: {
1277
+ code: string;
1278
+ };
1602
1279
  path: {
1603
1280
  userId: string;
1604
- roleId: string;
1605
1281
  };
1606
1282
  query?: never;
1607
- url: '/api/v1/users/{userId}/roles/{roleId}';
1283
+ url: '/api/v1/users/{userId}/two-fa';
1608
1284
  };
1609
- export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
1285
+ export type DeleteApiV1UsersByUserIdTwoFaErrors = {
1610
1286
  /**
1611
1287
  * Default Response
1612
1288
  */
1613
- 404: {
1289
+ 401: {
1614
1290
  statusCode: number;
1615
1291
  error: string;
1616
1292
  message: string;
1617
1293
  };
1618
1294
  };
1619
- export type DeleteApiV1UsersByUserIdRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesByRoleIdErrors];
1620
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
1295
+ export type DeleteApiV1UsersByUserIdTwoFaError = DeleteApiV1UsersByUserIdTwoFaErrors[keyof DeleteApiV1UsersByUserIdTwoFaErrors];
1296
+ export type DeleteApiV1UsersByUserIdTwoFaResponses = {
1621
1297
  /**
1622
1298
  * Default Response
1623
1299
  */
1624
1300
  200: {
1625
- id: string;
1301
+ success: boolean;
1626
1302
  };
1627
1303
  };
1628
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesByRoleIdResponses];
1629
- export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1304
+ export type DeleteApiV1UsersByUserIdTwoFaResponse = DeleteApiV1UsersByUserIdTwoFaResponses[keyof DeleteApiV1UsersByUserIdTwoFaResponses];
1305
+ export type PostApiV1UsersByUserIdTwoFaData = {
1630
1306
  body: {
1631
- role?: string;
1632
- group?: string;
1307
+ code?: string;
1308
+ type?: 'APP' | 'EMAIL' | 'PHONE';
1633
1309
  };
1634
1310
  path: {
1635
1311
  userId: string;
1636
- roleId: string;
1637
1312
  };
1638
1313
  query?: never;
1639
- url: '/api/v1/users/{userId}/roles/{roleId}';
1314
+ url: '/api/v1/users/{userId}/two-fa';
1640
1315
  };
1641
- export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1316
+ export type PostApiV1UsersByUserIdTwoFaErrors = {
1642
1317
  /**
1643
1318
  * Default Response
1644
1319
  */
@@ -1650,24 +1325,38 @@ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1650
1325
  /**
1651
1326
  * Default Response
1652
1327
  */
1653
- 404: {
1328
+ 401: {
1654
1329
  statusCode: number;
1655
1330
  error: string;
1656
1331
  message: string;
1657
1332
  };
1658
1333
  };
1659
- export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1660
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1334
+ export type PostApiV1UsersByUserIdTwoFaError = PostApiV1UsersByUserIdTwoFaErrors[keyof PostApiV1UsersByUserIdTwoFaErrors];
1335
+ export type PostApiV1UsersByUserIdTwoFaResponses = {
1661
1336
  /**
1662
1337
  * Default Response
1663
1338
  */
1664
1339
  200: {
1665
- id: string;
1340
+ success: boolean;
1341
+ };
1342
+ };
1343
+ export type PostApiV1UsersByUserIdTwoFaResponse = PostApiV1UsersByUserIdTwoFaResponses[keyof PostApiV1UsersByUserIdTwoFaResponses];
1344
+ export type GetApiV1UsersByUserIdTwoFaSecretData = {
1345
+ body?: never;
1346
+ path: {
1666
1347
  userId: string;
1667
- role: string;
1668
- group: string;
1669
- createdAt: string;
1670
1348
  };
1349
+ query?: never;
1350
+ url: '/api/v1/users/{userId}/two-fa/secret';
1671
1351
  };
1672
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1352
+ export type GetApiV1UsersByUserIdTwoFaSecretResponses = {
1353
+ /**
1354
+ * Default Response
1355
+ */
1356
+ 200: {
1357
+ secret: string;
1358
+ uri: string;
1359
+ };
1360
+ };
1361
+ export type GetApiV1UsersByUserIdTwoFaSecretResponse = GetApiV1UsersByUserIdTwoFaSecretResponses[keyof GetApiV1UsersByUserIdTwoFaSecretResponses];
1673
1362
  //# sourceMappingURL=types.gen.d.ts.map