@authticon/client 0.0.0-beta3 → 0.0.0-beta31

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 +292 -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,182 @@ 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;
850
+ twoFaEnabled?: boolean;
851
+ twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1160
852
  };
853
+ url: '/api/v1/users/';
854
+ };
855
+ export type GetApiV1UsersResponses = {
856
+ /**
857
+ * Default Response
858
+ */
859
+ 200: {
860
+ data: Array<{
861
+ id: string;
862
+ email: string;
863
+ firstName: string | null;
864
+ lastName: string | null;
865
+ username: string;
866
+ role: string;
867
+ emailVerified: boolean;
868
+ phone: string | null;
869
+ phoneVerified: boolean;
870
+ isBlocked: boolean;
871
+ isGuest: boolean;
872
+ locale: string;
873
+ createdAt: string;
874
+ roles: Array<{
875
+ role: string;
876
+ group: string;
877
+ createdAt: string;
878
+ }>;
879
+ }>;
880
+ total: number;
881
+ };
882
+ };
883
+ export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
884
+ export type PostApiV1UsersData = {
885
+ body: {
886
+ email: string;
887
+ username: string;
888
+ password?: string;
889
+ firstName?: string | null;
890
+ lastName?: string | null;
891
+ phone?: string | null;
892
+ locale?: string;
893
+ role?: string;
894
+ claims?: {
895
+ [key: string]: unknown;
896
+ };
897
+ marketingConsent?: boolean;
898
+ isGuest?: boolean;
899
+ emailVerified?: boolean;
900
+ };
901
+ path?: never;
1161
902
  query?: never;
1162
- url: '/api/v1/user/{id}';
903
+ url: '/api/v1/users/';
1163
904
  };
1164
- export type GetApiV1UserByIdErrors = {
905
+ export type PostApiV1UsersErrors = {
1165
906
  /**
1166
907
  * Default Response
1167
908
  */
1168
- 404: {
909
+ 400: {
910
+ statusCode: number;
911
+ error: string;
912
+ message: string;
913
+ };
914
+ /**
915
+ * Default Response
916
+ */
917
+ 409: {
1169
918
  statusCode: number;
1170
919
  error: string;
1171
920
  message: string;
1172
921
  };
1173
922
  };
1174
- export type GetApiV1UserByIdError = GetApiV1UserByIdErrors[keyof GetApiV1UserByIdErrors];
1175
- export type GetApiV1UserByIdResponses = {
923
+ export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
924
+ export type PostApiV1UsersResponses = {
1176
925
  /**
1177
926
  * Default Response
1178
927
  */
1179
- 200: {
928
+ 201: {
1180
929
  id: string;
1181
930
  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
931
  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
932
  };
1200
933
  };
1201
- export type GetApiV1UserByIdResponse = GetApiV1UserByIdResponses[keyof GetApiV1UserByIdResponses];
1202
- export type PatchApiV1UserByIdData = {
934
+ export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
935
+ export type PatchApiV1UsersByIdData = {
1203
936
  body: {
1204
- email?: string;
937
+ firstName?: string;
938
+ lastName?: string;
1205
939
  emailVerified?: boolean;
1206
- phone?: string;
1207
940
  phoneVerified?: boolean;
1208
941
  isBlocked?: boolean;
1209
942
  isBlockedUntil?: string | null;
1210
943
  twoFaEnabled?: boolean;
1211
944
  twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1212
945
  loginAttempts?: number;
946
+ phone?: string;
947
+ email?: string;
1213
948
  };
1214
949
  path: {
1215
950
  id: string;
1216
951
  };
1217
952
  query?: never;
1218
- url: '/api/v1/user/{id}';
953
+ url: '/api/v1/users/{id}';
1219
954
  };
1220
- export type PatchApiV1UserByIdErrors = {
955
+ export type PatchApiV1UsersByIdErrors = {
1221
956
  /**
1222
957
  * Default Response
1223
958
  */
@@ -1235,8 +970,8 @@ export type PatchApiV1UserByIdErrors = {
1235
970
  message: string;
1236
971
  };
1237
972
  };
1238
- export type PatchApiV1UserByIdError = PatchApiV1UserByIdErrors[keyof PatchApiV1UserByIdErrors];
1239
- export type PatchApiV1UserByIdResponses = {
973
+ export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
974
+ export type PatchApiV1UsersByIdResponses = {
1240
975
  /**
1241
976
  * Default Response
1242
977
  */
@@ -1244,17 +979,16 @@ export type PatchApiV1UserByIdResponses = {
1244
979
  id: string;
1245
980
  };
1246
981
  };
1247
- export type PatchApiV1UserByIdResponse = PatchApiV1UserByIdResponses[keyof PatchApiV1UserByIdResponses];
1248
- export type DeleteApiV1UserByUserIdRolesByRoleIdData = {
982
+ export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
983
+ export type DeleteApiV1UsersByUserIdData = {
1249
984
  body?: never;
1250
985
  path: {
1251
- userId: string;
1252
- roleId: string;
986
+ id: string;
1253
987
  };
1254
988
  query?: never;
1255
- url: '/api/v1/user/{userId}/roles/{roleId}';
989
+ url: '/api/v1/users/{userId}/';
1256
990
  };
1257
- export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
991
+ export type DeleteApiV1UsersByUserIdErrors = {
1258
992
  /**
1259
993
  * Default Response
1260
994
  */
@@ -1264,8 +998,8 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
1264
998
  message: string;
1265
999
  };
1266
1000
  };
1267
- export type DeleteApiV1UserByUserIdRolesByRoleIdError = DeleteApiV1UserByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UserByUserIdRolesByRoleIdErrors];
1268
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1001
+ export type DeleteApiV1UsersByUserIdError = DeleteApiV1UsersByUserIdErrors[keyof DeleteApiV1UsersByUserIdErrors];
1002
+ export type DeleteApiV1UsersByUserIdResponses = {
1269
1003
  /**
1270
1004
  * Default Response
1271
1005
  */
@@ -1273,28 +1007,16 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1273
1007
  id: string;
1274
1008
  };
1275
1009
  };
1276
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponse = DeleteApiV1UserByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UserByUserIdRolesByRoleIdResponses];
1277
- export type PatchApiV1UserByUserIdRolesByRoleIdData = {
1278
- body: {
1279
- role?: string;
1280
- group?: string;
1281
- };
1010
+ export type DeleteApiV1UsersByUserIdResponse = DeleteApiV1UsersByUserIdResponses[keyof DeleteApiV1UsersByUserIdResponses];
1011
+ export type GetApiV1UsersByUserIdData = {
1012
+ body?: never;
1282
1013
  path: {
1283
- userId: string;
1284
- roleId: string;
1014
+ id: string;
1285
1015
  };
1286
1016
  query?: never;
1287
- url: '/api/v1/user/{userId}/roles/{roleId}';
1017
+ url: '/api/v1/users/{userId}';
1288
1018
  };
1289
- export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1290
- /**
1291
- * Default Response
1292
- */
1293
- 400: {
1294
- statusCode: number;
1295
- error: string;
1296
- message: string;
1297
- };
1019
+ export type GetApiV1UsersByUserIdErrors = {
1298
1020
  /**
1299
1021
  * Default Response
1300
1022
  */
@@ -1304,80 +1026,50 @@ export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1304
1026
  message: string;
1305
1027
  };
1306
1028
  };
1307
- export type PatchApiV1UserByUserIdRolesByRoleIdError = PatchApiV1UserByUserIdRolesByRoleIdErrors[keyof PatchApiV1UserByUserIdRolesByRoleIdErrors];
1308
- export type PatchApiV1UserByUserIdRolesByRoleIdResponses = {
1029
+ export type GetApiV1UsersByUserIdError = GetApiV1UsersByUserIdErrors[keyof GetApiV1UsersByUserIdErrors];
1030
+ export type GetApiV1UsersByUserIdResponses = {
1309
1031
  /**
1310
1032
  * Default Response
1311
1033
  */
1312
1034
  200: {
1313
1035
  id: string;
1314
- userId: string;
1036
+ email: string;
1037
+ firstName: string | null;
1038
+ lastName: string | null;
1039
+ username: string;
1315
1040
  role: string;
1316
- group: string;
1041
+ emailVerified: boolean;
1042
+ phone: string | null;
1043
+ phoneVerified: boolean;
1044
+ isBlocked: boolean;
1045
+ isBlockedUntil: string | null;
1046
+ isGuest: boolean;
1047
+ locale: string;
1048
+ claims: unknown;
1049
+ marketingConsent: boolean;
1050
+ twoFaEnabled: boolean;
1051
+ twoFaType: string | null;
1317
1052
  createdAt: string;
1053
+ updatedAt: string;
1318
1054
  };
1319
1055
  };
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 = {
1056
+ export type GetApiV1UsersByUserIdResponse = GetApiV1UsersByUserIdResponses[keyof GetApiV1UsersByUserIdResponses];
1057
+ export type PatchApiV1UsersByUserIdChallangePhoneData = {
1356
1058
  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;
1059
+ phone: string;
1060
+ code: string;
1061
+ };
1062
+ path: {
1063
+ userId: string;
1371
1064
  };
1372
- path?: never;
1373
1065
  query?: never;
1374
- url: '/api/v1/users/';
1066
+ url: '/api/v1/users/{userId}/challange/phone';
1375
1067
  };
1376
- export type PostApiV1UsersErrors = {
1068
+ export type PatchApiV1UsersByUserIdChallangePhoneErrors = {
1377
1069
  /**
1378
1070
  * Default Response
1379
1071
  */
1380
- 400: {
1072
+ 401: {
1381
1073
  statusCode: number;
1382
1074
  error: string;
1383
1075
  message: string;
@@ -1385,33 +1077,31 @@ export type PostApiV1UsersErrors = {
1385
1077
  /**
1386
1078
  * Default Response
1387
1079
  */
1388
- 409: {
1080
+ 404: {
1389
1081
  statusCode: number;
1390
1082
  error: string;
1391
1083
  message: string;
1392
1084
  };
1393
1085
  };
1394
- export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
1395
- export type PostApiV1UsersResponses = {
1086
+ export type PatchApiV1UsersByUserIdChallangePhoneError = PatchApiV1UsersByUserIdChallangePhoneErrors[keyof PatchApiV1UsersByUserIdChallangePhoneErrors];
1087
+ export type PatchApiV1UsersByUserIdChallangePhoneResponses = {
1396
1088
  /**
1397
1089
  * Default Response
1398
1090
  */
1399
- 201: {
1400
- id: string;
1401
- email: string;
1402
- isGuest: boolean;
1403
- };
1091
+ 201: null;
1404
1092
  };
1405
- export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
1406
- export type GetApiV1UsersByUserIdRolesData = {
1407
- body?: never;
1093
+ export type PatchApiV1UsersByUserIdChallangePhoneResponse = PatchApiV1UsersByUserIdChallangePhoneResponses[keyof PatchApiV1UsersByUserIdChallangePhoneResponses];
1094
+ export type PostApiV1UsersByUserIdChallangePhoneData = {
1095
+ body: {
1096
+ phone: string;
1097
+ };
1408
1098
  path: {
1409
1099
  userId: string;
1410
1100
  };
1411
1101
  query?: never;
1412
- url: '/api/v1/users/{userId}/roles';
1102
+ url: '/api/v1/users/{userId}/challange/phone';
1413
1103
  };
1414
- export type GetApiV1UsersByUserIdRolesErrors = {
1104
+ export type PostApiV1UsersByUserIdChallangePhoneErrors = {
1415
1105
  /**
1416
1106
  * Default Response
1417
1107
  */
@@ -1420,20 +1110,23 @@ export type GetApiV1UsersByUserIdRolesErrors = {
1420
1110
  error: string;
1421
1111
  message: string;
1422
1112
  };
1113
+ /**
1114
+ * Default Response
1115
+ */
1116
+ 409: {
1117
+ statusCode: number;
1118
+ error: string;
1119
+ message: string;
1120
+ };
1423
1121
  };
1424
- export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
1425
- export type GetApiV1UsersByUserIdRolesResponses = {
1122
+ export type PostApiV1UsersByUserIdChallangePhoneError = PostApiV1UsersByUserIdChallangePhoneErrors[keyof PostApiV1UsersByUserIdChallangePhoneErrors];
1123
+ export type PostApiV1UsersByUserIdChallangePhoneResponses = {
1426
1124
  /**
1427
1125
  * Default Response
1428
1126
  */
1429
- 200: Array<{
1430
- id: string;
1431
- role: string;
1432
- group: string;
1433
- createdAt: string;
1434
- }>;
1127
+ 200: null;
1435
1128
  };
1436
- export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
1129
+ export type PostApiV1UsersByUserIdChallangePhoneResponse = PostApiV1UsersByUserIdChallangePhoneResponses[keyof PostApiV1UsersByUserIdChallangePhoneResponses];
1437
1130
  export type PostApiV1UsersByUserIdRolesData = {
1438
1131
  body: {
1439
1132
  role: string;
@@ -1477,15 +1170,16 @@ export type PostApiV1UsersByUserIdRolesResponses = {
1477
1170
  };
1478
1171
  };
1479
1172
  export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
1480
- export type DeleteApiV1UsersByIdData = {
1173
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdData = {
1481
1174
  body?: never;
1482
1175
  path: {
1483
- id: string;
1176
+ userId: string;
1177
+ roleId: string;
1484
1178
  };
1485
1179
  query?: never;
1486
- url: '/api/v1/users/{id}';
1180
+ url: '/api/v1/users/{userId}/roles/roles/{roleId}';
1487
1181
  };
1488
- export type DeleteApiV1UsersByIdErrors = {
1182
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors = {
1489
1183
  /**
1490
1184
  * Default Response
1491
1185
  */
@@ -1495,8 +1189,8 @@ export type DeleteApiV1UsersByIdErrors = {
1495
1189
  message: string;
1496
1190
  };
1497
1191
  };
1498
- export type DeleteApiV1UsersByIdError = DeleteApiV1UsersByIdErrors[keyof DeleteApiV1UsersByIdErrors];
1499
- export type DeleteApiV1UsersByIdResponses = {
1192
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors];
1193
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses = {
1500
1194
  /**
1501
1195
  * Default Response
1502
1196
  */
@@ -1504,16 +1198,16 @@ export type DeleteApiV1UsersByIdResponses = {
1504
1198
  id: string;
1505
1199
  };
1506
1200
  };
1507
- export type DeleteApiV1UsersByIdResponse = DeleteApiV1UsersByIdResponses[keyof DeleteApiV1UsersByIdResponses];
1508
- export type GetApiV1UsersByIdData = {
1201
+ export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses];
1202
+ export type GetApiV1UsersByUserIdRolesRolesData = {
1509
1203
  body?: never;
1510
1204
  path: {
1511
- id: string;
1205
+ userId: string;
1512
1206
  };
1513
1207
  query?: never;
1514
- url: '/api/v1/users/{id}';
1208
+ url: '/api/v1/users/{userId}/roles/roles';
1515
1209
  };
1516
- export type GetApiV1UsersByIdErrors = {
1210
+ export type GetApiV1UsersByUserIdRolesRolesErrors = {
1517
1211
  /**
1518
1212
  * Default Response
1519
1213
  */
@@ -1523,53 +1217,32 @@ export type GetApiV1UsersByIdErrors = {
1523
1217
  message: string;
1524
1218
  };
1525
1219
  };
1526
- export type GetApiV1UsersByIdError = GetApiV1UsersByIdErrors[keyof GetApiV1UsersByIdErrors];
1527
- export type GetApiV1UsersByIdResponses = {
1220
+ export type GetApiV1UsersByUserIdRolesRolesError = GetApiV1UsersByUserIdRolesRolesErrors[keyof GetApiV1UsersByUserIdRolesRolesErrors];
1221
+ export type GetApiV1UsersByUserIdRolesRolesResponses = {
1528
1222
  /**
1529
1223
  * Default Response
1530
1224
  */
1531
- 200: {
1225
+ 200: Array<{
1532
1226
  id: string;
1533
- email: string;
1534
- firstName: string | null;
1535
- lastName: string | null;
1536
- username: string;
1537
1227
  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;
1228
+ group: string;
1549
1229
  createdAt: string;
1550
- updatedAt: string;
1551
- };
1230
+ }>;
1552
1231
  };
1553
- export type GetApiV1UsersByIdResponse = GetApiV1UsersByIdResponses[keyof GetApiV1UsersByIdResponses];
1554
- export type PatchApiV1UsersByIdData = {
1232
+ export type GetApiV1UsersByUserIdRolesRolesResponse = GetApiV1UsersByUserIdRolesRolesResponses[keyof GetApiV1UsersByUserIdRolesRolesResponses];
1233
+ export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1555
1234
  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;
1235
+ role?: string;
1236
+ group?: string;
1565
1237
  };
1566
1238
  path: {
1567
- id: string;
1239
+ userId: string;
1240
+ roleId: string;
1568
1241
  };
1569
1242
  query?: never;
1570
- url: '/api/v1/users/{id}';
1243
+ url: '/api/v1/users/{userId}/roles/{roleId}';
1571
1244
  };
1572
- export type PatchApiV1UsersByIdErrors = {
1245
+ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1573
1246
  /**
1574
1247
  * Default Response
1575
1248
  */
@@ -1587,58 +1260,62 @@ export type PatchApiV1UsersByIdErrors = {
1587
1260
  message: string;
1588
1261
  };
1589
1262
  };
1590
- export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
1591
- export type PatchApiV1UsersByIdResponses = {
1263
+ export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1264
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1592
1265
  /**
1593
1266
  * Default Response
1594
1267
  */
1595
1268
  200: {
1596
1269
  id: string;
1270
+ userId: string;
1271
+ role: string;
1272
+ group: string;
1273
+ createdAt: string;
1597
1274
  };
1598
1275
  };
1599
- export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
1600
- export type DeleteApiV1UsersByUserIdRolesByRoleIdData = {
1601
- body?: never;
1276
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1277
+ export type DeleteApiV1UsersByUserIdTwoFaData = {
1278
+ body: {
1279
+ code: string;
1280
+ };
1602
1281
  path: {
1603
1282
  userId: string;
1604
- roleId: string;
1605
1283
  };
1606
1284
  query?: never;
1607
- url: '/api/v1/users/{userId}/roles/{roleId}';
1285
+ url: '/api/v1/users/{userId}/two-fa';
1608
1286
  };
1609
- export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
1287
+ export type DeleteApiV1UsersByUserIdTwoFaErrors = {
1610
1288
  /**
1611
1289
  * Default Response
1612
1290
  */
1613
- 404: {
1291
+ 401: {
1614
1292
  statusCode: number;
1615
1293
  error: string;
1616
1294
  message: string;
1617
1295
  };
1618
1296
  };
1619
- export type DeleteApiV1UsersByUserIdRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesByRoleIdErrors];
1620
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
1297
+ export type DeleteApiV1UsersByUserIdTwoFaError = DeleteApiV1UsersByUserIdTwoFaErrors[keyof DeleteApiV1UsersByUserIdTwoFaErrors];
1298
+ export type DeleteApiV1UsersByUserIdTwoFaResponses = {
1621
1299
  /**
1622
1300
  * Default Response
1623
1301
  */
1624
1302
  200: {
1625
- id: string;
1303
+ success: boolean;
1626
1304
  };
1627
1305
  };
1628
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesByRoleIdResponses];
1629
- export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1306
+ export type DeleteApiV1UsersByUserIdTwoFaResponse = DeleteApiV1UsersByUserIdTwoFaResponses[keyof DeleteApiV1UsersByUserIdTwoFaResponses];
1307
+ export type PostApiV1UsersByUserIdTwoFaData = {
1630
1308
  body: {
1631
- role?: string;
1632
- group?: string;
1309
+ code?: string;
1310
+ type?: 'APP' | 'EMAIL' | 'PHONE';
1633
1311
  };
1634
1312
  path: {
1635
1313
  userId: string;
1636
- roleId: string;
1637
1314
  };
1638
1315
  query?: never;
1639
- url: '/api/v1/users/{userId}/roles/{roleId}';
1316
+ url: '/api/v1/users/{userId}/two-fa';
1640
1317
  };
1641
- export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1318
+ export type PostApiV1UsersByUserIdTwoFaErrors = {
1642
1319
  /**
1643
1320
  * Default Response
1644
1321
  */
@@ -1650,24 +1327,38 @@ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1650
1327
  /**
1651
1328
  * Default Response
1652
1329
  */
1653
- 404: {
1330
+ 401: {
1654
1331
  statusCode: number;
1655
1332
  error: string;
1656
1333
  message: string;
1657
1334
  };
1658
1335
  };
1659
- export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1660
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1336
+ export type PostApiV1UsersByUserIdTwoFaError = PostApiV1UsersByUserIdTwoFaErrors[keyof PostApiV1UsersByUserIdTwoFaErrors];
1337
+ export type PostApiV1UsersByUserIdTwoFaResponses = {
1661
1338
  /**
1662
1339
  * Default Response
1663
1340
  */
1664
1341
  200: {
1665
- id: string;
1342
+ success: boolean;
1343
+ };
1344
+ };
1345
+ export type PostApiV1UsersByUserIdTwoFaResponse = PostApiV1UsersByUserIdTwoFaResponses[keyof PostApiV1UsersByUserIdTwoFaResponses];
1346
+ export type GetApiV1UsersByUserIdTwoFaSecretData = {
1347
+ body?: never;
1348
+ path: {
1666
1349
  userId: string;
1667
- role: string;
1668
- group: string;
1669
- createdAt: string;
1670
1350
  };
1351
+ query?: never;
1352
+ url: '/api/v1/users/{userId}/two-fa/secret';
1671
1353
  };
1672
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1354
+ export type GetApiV1UsersByUserIdTwoFaSecretResponses = {
1355
+ /**
1356
+ * Default Response
1357
+ */
1358
+ 200: {
1359
+ secret: string;
1360
+ uri: string;
1361
+ };
1362
+ };
1363
+ export type GetApiV1UsersByUserIdTwoFaSecretResponse = GetApiV1UsersByUserIdTwoFaSecretResponses[keyof GetApiV1UsersByUserIdTwoFaSecretResponses];
1673
1364
  //# sourceMappingURL=types.gen.d.ts.map