@authticon/client 0.0.0-beta3 → 0.0.0-beta5

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 (46) 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.map +1 -1
  6. package/dist/Auth.js +1 -1
  7. package/dist/Auth.js.map +1 -1
  8. package/dist/Authticon.d.ts +34 -4
  9. package/dist/Authticon.d.ts.map +1 -1
  10. package/dist/Authticon.js +5 -2
  11. package/dist/Authticon.js.map +1 -1
  12. package/dist/TokenManager.d.ts +2 -2
  13. package/dist/TokenManager.d.ts.map +1 -1
  14. package/dist/TokenManager.js.map +1 -1
  15. package/dist/TokenVerifier.d.ts +2 -2
  16. package/dist/TokenVerifier.d.ts.map +1 -1
  17. package/dist/TokenVerifier.js.map +1 -1
  18. package/dist/TwoFa.d.ts +12 -5
  19. package/dist/TwoFa.d.ts.map +1 -1
  20. package/dist/TwoFa.js +35 -16
  21. package/dist/TwoFa.js.map +1 -1
  22. package/dist/User.d.ts +16 -9
  23. package/dist/User.d.ts.map +1 -1
  24. package/dist/User.js +15 -3
  25. package/dist/User.js.map +1 -1
  26. package/dist/Users.d.ts +3 -3
  27. package/dist/Users.d.ts.map +1 -1
  28. package/dist/Users.js +7 -6
  29. package/dist/Users.js.map +1 -1
  30. package/dist/generated/index.d.ts +2 -2
  31. package/dist/generated/index.d.ts.map +1 -1
  32. package/dist/generated/index.js +1 -1
  33. package/dist/generated/index.js.map +1 -1
  34. package/dist/generated/sdk.gen.d.ts +4 -13
  35. package/dist/generated/sdk.gen.d.ts.map +1 -1
  36. package/dist/generated/sdk.gen.js +23 -88
  37. package/dist/generated/sdk.gen.js.map +1 -1
  38. package/dist/generated/types.gen.d.ts +80 -429
  39. package/dist/generated/types.gen.d.ts.map +1 -1
  40. package/dist/types.d.ts +1 -1
  41. package/dist/types.d.ts.map +1 -1
  42. package/dist/user.d.ts +33 -0
  43. package/dist/user.d.ts.map +1 -0
  44. package/dist/user.js +25 -0
  45. package/dist/user.js.map +1 -0
  46. package/package.json +1 -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;
@@ -966,7 +882,7 @@ export type DeleteApiV1InvitationsInvitationByIdResponses = {
966
882
  };
967
883
  };
968
884
  export type DeleteApiV1InvitationsInvitationByIdResponse = DeleteApiV1InvitationsInvitationByIdResponses[keyof DeleteApiV1InvitationsInvitationByIdResponses];
969
- export type GetApiV1UserData = {
885
+ export type GetApiV1UsersData = {
970
886
  body?: never;
971
887
  path?: never;
972
888
  query?: {
@@ -974,9 +890,9 @@ export type GetApiV1UserData = {
974
890
  offset?: number;
975
891
  search?: string;
976
892
  };
977
- url: '/api/v1/user/';
893
+ url: '/api/v1/users/';
978
894
  };
979
- export type GetApiV1UserResponses = {
895
+ export type GetApiV1UsersResponses = {
980
896
  /**
981
897
  * Default Response
982
898
  */
@@ -999,8 +915,8 @@ export type GetApiV1UserResponses = {
999
915
  total: number;
1000
916
  };
1001
917
  };
1002
- export type GetApiV1UserResponse = GetApiV1UserResponses[keyof GetApiV1UserResponses];
1003
- export type PostApiV1UserData = {
918
+ export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
919
+ export type PostApiV1UsersData = {
1004
920
  body: {
1005
921
  email: string;
1006
922
  username: string;
@@ -1019,9 +935,9 @@ export type PostApiV1UserData = {
1019
935
  };
1020
936
  path?: never;
1021
937
  query?: never;
1022
- url: '/api/v1/user/';
938
+ url: '/api/v1/users/';
1023
939
  };
1024
- export type PostApiV1UserErrors = {
940
+ export type PostApiV1UsersErrors = {
1025
941
  /**
1026
942
  * Default Response
1027
943
  */
@@ -1039,8 +955,8 @@ export type PostApiV1UserErrors = {
1039
955
  message: string;
1040
956
  };
1041
957
  };
1042
- export type PostApiV1UserError = PostApiV1UserErrors[keyof PostApiV1UserErrors];
1043
- export type PostApiV1UserResponses = {
958
+ export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
959
+ export type PostApiV1UsersResponses = {
1044
960
  /**
1045
961
  * Default Response
1046
962
  */
@@ -1050,16 +966,16 @@ export type PostApiV1UserResponses = {
1050
966
  isGuest: boolean;
1051
967
  };
1052
968
  };
1053
- export type PostApiV1UserResponse = PostApiV1UserResponses[keyof PostApiV1UserResponses];
1054
- export type GetApiV1UserByUserIdRolesData = {
969
+ export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
970
+ export type GetApiV1UsersByUserIdRolesData = {
1055
971
  body?: never;
1056
972
  path: {
1057
973
  userId: string;
1058
974
  };
1059
975
  query?: never;
1060
- url: '/api/v1/user/{userId}/roles';
976
+ url: '/api/v1/users/{userId}/roles';
1061
977
  };
1062
- export type GetApiV1UserByUserIdRolesErrors = {
978
+ export type GetApiV1UsersByUserIdRolesErrors = {
1063
979
  /**
1064
980
  * Default Response
1065
981
  */
@@ -1069,8 +985,8 @@ export type GetApiV1UserByUserIdRolesErrors = {
1069
985
  message: string;
1070
986
  };
1071
987
  };
1072
- export type GetApiV1UserByUserIdRolesError = GetApiV1UserByUserIdRolesErrors[keyof GetApiV1UserByUserIdRolesErrors];
1073
- export type GetApiV1UserByUserIdRolesResponses = {
988
+ export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
989
+ export type GetApiV1UsersByUserIdRolesResponses = {
1074
990
  /**
1075
991
  * Default Response
1076
992
  */
@@ -1081,8 +997,8 @@ export type GetApiV1UserByUserIdRolesResponses = {
1081
997
  createdAt: string;
1082
998
  }>;
1083
999
  };
1084
- export type GetApiV1UserByUserIdRolesResponse = GetApiV1UserByUserIdRolesResponses[keyof GetApiV1UserByUserIdRolesResponses];
1085
- export type PostApiV1UserByUserIdRolesData = {
1000
+ export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
1001
+ export type PostApiV1UsersByUserIdRolesData = {
1086
1002
  body: {
1087
1003
  role: string;
1088
1004
  group: string;
@@ -1091,9 +1007,9 @@ export type PostApiV1UserByUserIdRolesData = {
1091
1007
  userId: string;
1092
1008
  };
1093
1009
  query?: never;
1094
- url: '/api/v1/user/{userId}/roles';
1010
+ url: '/api/v1/users/{userId}/roles';
1095
1011
  };
1096
- export type PostApiV1UserByUserIdRolesErrors = {
1012
+ export type PostApiV1UsersByUserIdRolesErrors = {
1097
1013
  /**
1098
1014
  * Default Response
1099
1015
  */
@@ -1111,8 +1027,8 @@ export type PostApiV1UserByUserIdRolesErrors = {
1111
1027
  message: string;
1112
1028
  };
1113
1029
  };
1114
- export type PostApiV1UserByUserIdRolesError = PostApiV1UserByUserIdRolesErrors[keyof PostApiV1UserByUserIdRolesErrors];
1115
- export type PostApiV1UserByUserIdRolesResponses = {
1030
+ export type PostApiV1UsersByUserIdRolesError = PostApiV1UsersByUserIdRolesErrors[keyof PostApiV1UsersByUserIdRolesErrors];
1031
+ export type PostApiV1UsersByUserIdRolesResponses = {
1116
1032
  /**
1117
1033
  * Default Response
1118
1034
  */
@@ -1124,16 +1040,16 @@ export type PostApiV1UserByUserIdRolesResponses = {
1124
1040
  createdAt: string;
1125
1041
  };
1126
1042
  };
1127
- export type PostApiV1UserByUserIdRolesResponse = PostApiV1UserByUserIdRolesResponses[keyof PostApiV1UserByUserIdRolesResponses];
1128
- export type DeleteApiV1UserByIdData = {
1043
+ export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
1044
+ export type DeleteApiV1UsersByIdData = {
1129
1045
  body?: never;
1130
1046
  path: {
1131
1047
  id: string;
1132
1048
  };
1133
1049
  query?: never;
1134
- url: '/api/v1/user/{id}';
1050
+ url: '/api/v1/users/{id}';
1135
1051
  };
1136
- export type DeleteApiV1UserByIdErrors = {
1052
+ export type DeleteApiV1UsersByIdErrors = {
1137
1053
  /**
1138
1054
  * Default Response
1139
1055
  */
@@ -1143,8 +1059,8 @@ export type DeleteApiV1UserByIdErrors = {
1143
1059
  message: string;
1144
1060
  };
1145
1061
  };
1146
- export type DeleteApiV1UserByIdError = DeleteApiV1UserByIdErrors[keyof DeleteApiV1UserByIdErrors];
1147
- export type DeleteApiV1UserByIdResponses = {
1062
+ export type DeleteApiV1UsersByIdError = DeleteApiV1UsersByIdErrors[keyof DeleteApiV1UsersByIdErrors];
1063
+ export type DeleteApiV1UsersByIdResponses = {
1148
1064
  /**
1149
1065
  * Default Response
1150
1066
  */
@@ -1152,16 +1068,16 @@ export type DeleteApiV1UserByIdResponses = {
1152
1068
  id: string;
1153
1069
  };
1154
1070
  };
1155
- export type DeleteApiV1UserByIdResponse = DeleteApiV1UserByIdResponses[keyof DeleteApiV1UserByIdResponses];
1156
- export type GetApiV1UserByIdData = {
1071
+ export type DeleteApiV1UsersByIdResponse = DeleteApiV1UsersByIdResponses[keyof DeleteApiV1UsersByIdResponses];
1072
+ export type GetApiV1UsersByIdData = {
1157
1073
  body?: never;
1158
1074
  path: {
1159
1075
  id: string;
1160
1076
  };
1161
1077
  query?: never;
1162
- url: '/api/v1/user/{id}';
1078
+ url: '/api/v1/users/{id}';
1163
1079
  };
1164
- export type GetApiV1UserByIdErrors = {
1080
+ export type GetApiV1UsersByIdErrors = {
1165
1081
  /**
1166
1082
  * Default Response
1167
1083
  */
@@ -1171,8 +1087,8 @@ export type GetApiV1UserByIdErrors = {
1171
1087
  message: string;
1172
1088
  };
1173
1089
  };
1174
- export type GetApiV1UserByIdError = GetApiV1UserByIdErrors[keyof GetApiV1UserByIdErrors];
1175
- export type GetApiV1UserByIdResponses = {
1090
+ export type GetApiV1UsersByIdError = GetApiV1UsersByIdErrors[keyof GetApiV1UsersByIdErrors];
1091
+ export type GetApiV1UsersByIdResponses = {
1176
1092
  /**
1177
1093
  * Default Response
1178
1094
  */
@@ -1198,8 +1114,8 @@ export type GetApiV1UserByIdResponses = {
1198
1114
  updatedAt: string;
1199
1115
  };
1200
1116
  };
1201
- export type GetApiV1UserByIdResponse = GetApiV1UserByIdResponses[keyof GetApiV1UserByIdResponses];
1202
- export type PatchApiV1UserByIdData = {
1117
+ export type GetApiV1UsersByIdResponse = GetApiV1UsersByIdResponses[keyof GetApiV1UsersByIdResponses];
1118
+ export type PatchApiV1UsersByIdData = {
1203
1119
  body: {
1204
1120
  email?: string;
1205
1121
  emailVerified?: boolean;
@@ -1215,9 +1131,9 @@ export type PatchApiV1UserByIdData = {
1215
1131
  id: string;
1216
1132
  };
1217
1133
  query?: never;
1218
- url: '/api/v1/user/{id}';
1134
+ url: '/api/v1/users/{id}';
1219
1135
  };
1220
- export type PatchApiV1UserByIdErrors = {
1136
+ export type PatchApiV1UsersByIdErrors = {
1221
1137
  /**
1222
1138
  * Default Response
1223
1139
  */
@@ -1235,8 +1151,8 @@ export type PatchApiV1UserByIdErrors = {
1235
1151
  message: string;
1236
1152
  };
1237
1153
  };
1238
- export type PatchApiV1UserByIdError = PatchApiV1UserByIdErrors[keyof PatchApiV1UserByIdErrors];
1239
- export type PatchApiV1UserByIdResponses = {
1154
+ export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
1155
+ export type PatchApiV1UsersByIdResponses = {
1240
1156
  /**
1241
1157
  * Default Response
1242
1158
  */
@@ -1244,17 +1160,17 @@ export type PatchApiV1UserByIdResponses = {
1244
1160
  id: string;
1245
1161
  };
1246
1162
  };
1247
- export type PatchApiV1UserByIdResponse = PatchApiV1UserByIdResponses[keyof PatchApiV1UserByIdResponses];
1248
- export type DeleteApiV1UserByUserIdRolesByRoleIdData = {
1163
+ export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
1164
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdData = {
1249
1165
  body?: never;
1250
1166
  path: {
1251
1167
  userId: string;
1252
1168
  roleId: string;
1253
1169
  };
1254
1170
  query?: never;
1255
- url: '/api/v1/user/{userId}/roles/{roleId}';
1171
+ url: '/api/v1/users/{userId}/roles/{roleId}';
1256
1172
  };
1257
- export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
1173
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
1258
1174
  /**
1259
1175
  * Default Response
1260
1176
  */
@@ -1264,8 +1180,8 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
1264
1180
  message: string;
1265
1181
  };
1266
1182
  };
1267
- export type DeleteApiV1UserByUserIdRolesByRoleIdError = DeleteApiV1UserByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UserByUserIdRolesByRoleIdErrors];
1268
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1183
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesByRoleIdErrors];
1184
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
1269
1185
  /**
1270
1186
  * Default Response
1271
1187
  */
@@ -1273,8 +1189,8 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1273
1189
  id: string;
1274
1190
  };
1275
1191
  };
1276
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponse = DeleteApiV1UserByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UserByUserIdRolesByRoleIdResponses];
1277
- export type PatchApiV1UserByUserIdRolesByRoleIdData = {
1192
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesByRoleIdResponses];
1193
+ export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1278
1194
  body: {
1279
1195
  role?: string;
1280
1196
  group?: string;
@@ -1284,9 +1200,9 @@ export type PatchApiV1UserByUserIdRolesByRoleIdData = {
1284
1200
  roleId: string;
1285
1201
  };
1286
1202
  query?: never;
1287
- url: '/api/v1/user/{userId}/roles/{roleId}';
1203
+ url: '/api/v1/users/{userId}/roles/{roleId}';
1288
1204
  };
1289
- export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1205
+ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1290
1206
  /**
1291
1207
  * Default Response
1292
1208
  */
@@ -1304,8 +1220,8 @@ export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1304
1220
  message: string;
1305
1221
  };
1306
1222
  };
1307
- export type PatchApiV1UserByUserIdRolesByRoleIdError = PatchApiV1UserByUserIdRolesByRoleIdErrors[keyof PatchApiV1UserByUserIdRolesByRoleIdErrors];
1308
- export type PatchApiV1UserByUserIdRolesByRoleIdResponses = {
1223
+ export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1224
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1309
1225
  /**
1310
1226
  * Default Response
1311
1227
  */
@@ -1317,259 +1233,49 @@ export type PatchApiV1UserByUserIdRolesByRoleIdResponses = {
1317
1233
  createdAt: string;
1318
1234
  };
1319
1235
  };
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 = {
1356
- 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;
1371
- };
1372
- path?: never;
1373
- query?: never;
1374
- url: '/api/v1/users/';
1375
- };
1376
- export type PostApiV1UsersErrors = {
1377
- /**
1378
- * Default Response
1379
- */
1380
- 400: {
1381
- statusCode: number;
1382
- error: string;
1383
- message: string;
1384
- };
1385
- /**
1386
- * Default Response
1387
- */
1388
- 409: {
1389
- statusCode: number;
1390
- error: string;
1391
- message: string;
1392
- };
1393
- };
1394
- export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
1395
- export type PostApiV1UsersResponses = {
1396
- /**
1397
- * Default Response
1398
- */
1399
- 201: {
1400
- id: string;
1401
- email: string;
1402
- isGuest: boolean;
1403
- };
1404
- };
1405
- export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
1406
- export type GetApiV1UsersByUserIdRolesData = {
1407
- body?: never;
1408
- path: {
1409
- userId: string;
1410
- };
1411
- query?: never;
1412
- url: '/api/v1/users/{userId}/roles';
1413
- };
1414
- export type GetApiV1UsersByUserIdRolesErrors = {
1415
- /**
1416
- * Default Response
1417
- */
1418
- 404: {
1419
- statusCode: number;
1420
- error: string;
1421
- message: string;
1422
- };
1423
- };
1424
- export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
1425
- export type GetApiV1UsersByUserIdRolesResponses = {
1426
- /**
1427
- * Default Response
1428
- */
1429
- 200: Array<{
1430
- id: string;
1431
- role: string;
1432
- group: string;
1433
- createdAt: string;
1434
- }>;
1435
- };
1436
- export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
1437
- export type PostApiV1UsersByUserIdRolesData = {
1236
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1237
+ export type DeleteApiV1UsersByUserIdTwoFaData = {
1438
1238
  body: {
1439
- role: string;
1440
- group: string;
1239
+ token: string;
1441
1240
  };
1442
1241
  path: {
1443
1242
  userId: string;
1444
1243
  };
1445
1244
  query?: never;
1446
- url: '/api/v1/users/{userId}/roles';
1447
- };
1448
- export type PostApiV1UsersByUserIdRolesErrors = {
1449
- /**
1450
- * Default Response
1451
- */
1452
- 404: {
1453
- statusCode: number;
1454
- error: string;
1455
- message: string;
1456
- };
1457
- /**
1458
- * Default Response
1459
- */
1460
- 409: {
1461
- statusCode: number;
1462
- error: string;
1463
- message: string;
1464
- };
1465
- };
1466
- export type PostApiV1UsersByUserIdRolesError = PostApiV1UsersByUserIdRolesErrors[keyof PostApiV1UsersByUserIdRolesErrors];
1467
- export type PostApiV1UsersByUserIdRolesResponses = {
1468
- /**
1469
- * Default Response
1470
- */
1471
- 201: {
1472
- id: string;
1473
- userId: string;
1474
- role: string;
1475
- group: string;
1476
- createdAt: string;
1477
- };
1478
- };
1479
- export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
1480
- export type DeleteApiV1UsersByIdData = {
1481
- body?: never;
1482
- path: {
1483
- id: string;
1484
- };
1485
- query?: never;
1486
- url: '/api/v1/users/{id}';
1245
+ url: '/api/v1/users/{userId}/two-fa';
1487
1246
  };
1488
- export type DeleteApiV1UsersByIdErrors = {
1247
+ export type DeleteApiV1UsersByUserIdTwoFaErrors = {
1489
1248
  /**
1490
1249
  * Default Response
1491
1250
  */
1492
- 404: {
1493
- statusCode: number;
1494
- error: string;
1495
- message: string;
1496
- };
1497
- };
1498
- export type DeleteApiV1UsersByIdError = DeleteApiV1UsersByIdErrors[keyof DeleteApiV1UsersByIdErrors];
1499
- export type DeleteApiV1UsersByIdResponses = {
1500
- /**
1501
- * Default Response
1502
- */
1503
- 200: {
1504
- id: string;
1505
- };
1506
- };
1507
- export type DeleteApiV1UsersByIdResponse = DeleteApiV1UsersByIdResponses[keyof DeleteApiV1UsersByIdResponses];
1508
- export type GetApiV1UsersByIdData = {
1509
- body?: never;
1510
- path: {
1511
- id: string;
1512
- };
1513
- query?: never;
1514
- url: '/api/v1/users/{id}';
1515
- };
1516
- export type GetApiV1UsersByIdErrors = {
1517
- /**
1518
- * Default Response
1519
- */
1520
- 404: {
1251
+ 401: {
1521
1252
  statusCode: number;
1522
1253
  error: string;
1523
1254
  message: string;
1524
1255
  };
1525
1256
  };
1526
- export type GetApiV1UsersByIdError = GetApiV1UsersByIdErrors[keyof GetApiV1UsersByIdErrors];
1527
- export type GetApiV1UsersByIdResponses = {
1257
+ export type DeleteApiV1UsersByUserIdTwoFaError = DeleteApiV1UsersByUserIdTwoFaErrors[keyof DeleteApiV1UsersByUserIdTwoFaErrors];
1258
+ export type DeleteApiV1UsersByUserIdTwoFaResponses = {
1528
1259
  /**
1529
1260
  * Default Response
1530
1261
  */
1531
1262
  200: {
1532
- id: string;
1533
- email: string;
1534
- firstName: string | null;
1535
- lastName: string | null;
1536
- username: string;
1537
- 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;
1549
- createdAt: string;
1550
- updatedAt: string;
1263
+ success: boolean;
1551
1264
  };
1552
1265
  };
1553
- export type GetApiV1UsersByIdResponse = GetApiV1UsersByIdResponses[keyof GetApiV1UsersByIdResponses];
1554
- export type PatchApiV1UsersByIdData = {
1266
+ export type DeleteApiV1UsersByUserIdTwoFaResponse = DeleteApiV1UsersByUserIdTwoFaResponses[keyof DeleteApiV1UsersByUserIdTwoFaResponses];
1267
+ export type PostApiV1UsersByUserIdTwoFaData = {
1555
1268
  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;
1269
+ token?: string;
1270
+ type?: 'APP' | 'EMAIL' | 'PHONE';
1565
1271
  };
1566
1272
  path: {
1567
- id: string;
1273
+ userId: string;
1568
1274
  };
1569
1275
  query?: never;
1570
- url: '/api/v1/users/{id}';
1276
+ url: '/api/v1/users/{userId}/two-fa';
1571
1277
  };
1572
- export type PatchApiV1UsersByIdErrors = {
1278
+ export type PostApiV1UsersByUserIdTwoFaErrors = {
1573
1279
  /**
1574
1280
  * Default Response
1575
1281
  */
@@ -1581,93 +1287,38 @@ export type PatchApiV1UsersByIdErrors = {
1581
1287
  /**
1582
1288
  * Default Response
1583
1289
  */
1584
- 404: {
1290
+ 401: {
1585
1291
  statusCode: number;
1586
1292
  error: string;
1587
1293
  message: string;
1588
1294
  };
1589
1295
  };
1590
- export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
1591
- export type PatchApiV1UsersByIdResponses = {
1296
+ export type PostApiV1UsersByUserIdTwoFaError = PostApiV1UsersByUserIdTwoFaErrors[keyof PostApiV1UsersByUserIdTwoFaErrors];
1297
+ export type PostApiV1UsersByUserIdTwoFaResponses = {
1592
1298
  /**
1593
1299
  * Default Response
1594
1300
  */
1595
1301
  200: {
1596
- id: string;
1302
+ success: boolean;
1597
1303
  };
1598
1304
  };
1599
- export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
1600
- export type DeleteApiV1UsersByUserIdRolesByRoleIdData = {
1305
+ export type PostApiV1UsersByUserIdTwoFaResponse = PostApiV1UsersByUserIdTwoFaResponses[keyof PostApiV1UsersByUserIdTwoFaResponses];
1306
+ export type GetApiV1UsersByUserIdTwoFaSecretData = {
1601
1307
  body?: never;
1602
1308
  path: {
1603
1309
  userId: string;
1604
- roleId: string;
1605
- };
1606
- query?: never;
1607
- url: '/api/v1/users/{userId}/roles/{roleId}';
1608
- };
1609
- export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
1610
- /**
1611
- * Default Response
1612
- */
1613
- 404: {
1614
- statusCode: number;
1615
- error: string;
1616
- message: string;
1617
- };
1618
- };
1619
- export type DeleteApiV1UsersByUserIdRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesByRoleIdErrors];
1620
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
1621
- /**
1622
- * Default Response
1623
- */
1624
- 200: {
1625
- id: string;
1626
- };
1627
- };
1628
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesByRoleIdResponses];
1629
- export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1630
- body: {
1631
- role?: string;
1632
- group?: string;
1633
- };
1634
- path: {
1635
- userId: string;
1636
- roleId: string;
1637
1310
  };
1638
1311
  query?: never;
1639
- url: '/api/v1/users/{userId}/roles/{roleId}';
1312
+ url: '/api/v1/users/{userId}/two-fa/secret';
1640
1313
  };
1641
- export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1642
- /**
1643
- * Default Response
1644
- */
1645
- 400: {
1646
- statusCode: number;
1647
- error: string;
1648
- message: string;
1649
- };
1650
- /**
1651
- * Default Response
1652
- */
1653
- 404: {
1654
- statusCode: number;
1655
- error: string;
1656
- message: string;
1657
- };
1658
- };
1659
- export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1660
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1314
+ export type GetApiV1UsersByUserIdTwoFaSecretResponses = {
1661
1315
  /**
1662
1316
  * Default Response
1663
1317
  */
1664
1318
  200: {
1665
- id: string;
1666
- userId: string;
1667
- role: string;
1668
- group: string;
1669
- createdAt: string;
1319
+ secret: string;
1320
+ uri: string;
1670
1321
  };
1671
1322
  };
1672
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1323
+ export type GetApiV1UsersByUserIdTwoFaSecretResponse = GetApiV1UsersByUserIdTwoFaSecretResponses[keyof GetApiV1UsersByUserIdTwoFaSecretResponses];
1673
1324
  //# sourceMappingURL=types.gen.d.ts.map