@authticon/client 0.0.0-beta4 → 0.0.0-beta6

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.
@@ -13,74 +13,6 @@ export type GetApiV1HealthzResponses = {
13
13
  */
14
14
  200: unknown;
15
15
  };
16
- export type DeleteApiV1AuthTwoFaData = {
17
- body: {
18
- userId: string;
19
- token: string;
20
- };
21
- path?: never;
22
- query?: never;
23
- url: '/api/v1/auth/two-fa';
24
- };
25
- export type DeleteApiV1AuthTwoFaErrors = {
26
- /**
27
- * Default Response
28
- */
29
- 401: {
30
- statusCode: number;
31
- error: string;
32
- message: string;
33
- };
34
- };
35
- export type DeleteApiV1AuthTwoFaError = DeleteApiV1AuthTwoFaErrors[keyof DeleteApiV1AuthTwoFaErrors];
36
- export type DeleteApiV1AuthTwoFaResponses = {
37
- /**
38
- * Default Response
39
- */
40
- 200: {
41
- success: boolean;
42
- };
43
- };
44
- export type DeleteApiV1AuthTwoFaResponse = DeleteApiV1AuthTwoFaResponses[keyof DeleteApiV1AuthTwoFaResponses];
45
- export type PostApiV1AuthTwoFaData = {
46
- body: {
47
- secret: string;
48
- token?: string;
49
- type?: 'APP' | 'EMAIL' | 'PHONE';
50
- userId: string;
51
- };
52
- path?: never;
53
- query?: never;
54
- url: '/api/v1/auth/two-fa';
55
- };
56
- export type PostApiV1AuthTwoFaErrors = {
57
- /**
58
- * Default Response
59
- */
60
- 400: {
61
- statusCode: number;
62
- error: string;
63
- message: string;
64
- };
65
- /**
66
- * Default Response
67
- */
68
- 401: {
69
- statusCode: number;
70
- error: string;
71
- message: string;
72
- };
73
- };
74
- export type PostApiV1AuthTwoFaError = PostApiV1AuthTwoFaErrors[keyof PostApiV1AuthTwoFaErrors];
75
- export type PostApiV1AuthTwoFaResponses = {
76
- /**
77
- * Default Response
78
- */
79
- 200: {
80
- success: boolean;
81
- };
82
- };
83
- export type PostApiV1AuthTwoFaResponse = PostApiV1AuthTwoFaResponses[keyof PostApiV1AuthTwoFaResponses];
84
16
  export type PostApiV1AuthEmailChangeData = {
85
17
  body: {
86
18
  userId: string;
@@ -254,25 +186,6 @@ export type PostApiV1AuthTwoFaRecoveryCodesResponses = {
254
186
  };
255
187
  };
256
188
  export type PostApiV1AuthTwoFaRecoveryCodesResponse = PostApiV1AuthTwoFaRecoveryCodesResponses[keyof PostApiV1AuthTwoFaRecoveryCodesResponses];
257
- export type PostApiV1AuthTwoFaSecretData = {
258
- body: {
259
- issuer: string;
260
- email?: string;
261
- };
262
- path?: never;
263
- query?: never;
264
- url: '/api/v1/auth/two-fa/secret';
265
- };
266
- export type PostApiV1AuthTwoFaSecretResponses = {
267
- /**
268
- * Default Response
269
- */
270
- 200: {
271
- secret: string;
272
- uri: string;
273
- };
274
- };
275
- export type PostApiV1AuthTwoFaSecretResponse = PostApiV1AuthTwoFaSecretResponses[keyof PostApiV1AuthTwoFaSecretResponses];
276
189
  export type PostApiV1AuthEmailCheckData = {
277
190
  body: {
278
191
  email: string;
@@ -969,7 +882,7 @@ export type DeleteApiV1InvitationsInvitationByIdResponses = {
969
882
  };
970
883
  };
971
884
  export type DeleteApiV1InvitationsInvitationByIdResponse = DeleteApiV1InvitationsInvitationByIdResponses[keyof DeleteApiV1InvitationsInvitationByIdResponses];
972
- export type GetApiV1UserData = {
885
+ export type GetApiV1UsersData = {
973
886
  body?: never;
974
887
  path?: never;
975
888
  query?: {
@@ -977,9 +890,9 @@ export type GetApiV1UserData = {
977
890
  offset?: number;
978
891
  search?: string;
979
892
  };
980
- url: '/api/v1/user/';
893
+ url: '/api/v1/users/';
981
894
  };
982
- export type GetApiV1UserResponses = {
895
+ export type GetApiV1UsersResponses = {
983
896
  /**
984
897
  * Default Response
985
898
  */
@@ -1002,8 +915,8 @@ export type GetApiV1UserResponses = {
1002
915
  total: number;
1003
916
  };
1004
917
  };
1005
- export type GetApiV1UserResponse = GetApiV1UserResponses[keyof GetApiV1UserResponses];
1006
- export type PostApiV1UserData = {
918
+ export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
919
+ export type PostApiV1UsersData = {
1007
920
  body: {
1008
921
  email: string;
1009
922
  username: string;
@@ -1022,9 +935,9 @@ export type PostApiV1UserData = {
1022
935
  };
1023
936
  path?: never;
1024
937
  query?: never;
1025
- url: '/api/v1/user/';
938
+ url: '/api/v1/users/';
1026
939
  };
1027
- export type PostApiV1UserErrors = {
940
+ export type PostApiV1UsersErrors = {
1028
941
  /**
1029
942
  * Default Response
1030
943
  */
@@ -1042,8 +955,8 @@ export type PostApiV1UserErrors = {
1042
955
  message: string;
1043
956
  };
1044
957
  };
1045
- export type PostApiV1UserError = PostApiV1UserErrors[keyof PostApiV1UserErrors];
1046
- export type PostApiV1UserResponses = {
958
+ export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
959
+ export type PostApiV1UsersResponses = {
1047
960
  /**
1048
961
  * Default Response
1049
962
  */
@@ -1053,16 +966,16 @@ export type PostApiV1UserResponses = {
1053
966
  isGuest: boolean;
1054
967
  };
1055
968
  };
1056
- export type PostApiV1UserResponse = PostApiV1UserResponses[keyof PostApiV1UserResponses];
1057
- export type GetApiV1UserByUserIdRolesData = {
969
+ export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
970
+ export type GetApiV1UsersByUserIdRolesData = {
1058
971
  body?: never;
1059
972
  path: {
1060
973
  userId: string;
1061
974
  };
1062
975
  query?: never;
1063
- url: '/api/v1/user/{userId}/roles';
976
+ url: '/api/v1/users/{userId}/roles';
1064
977
  };
1065
- export type GetApiV1UserByUserIdRolesErrors = {
978
+ export type GetApiV1UsersByUserIdRolesErrors = {
1066
979
  /**
1067
980
  * Default Response
1068
981
  */
@@ -1072,8 +985,8 @@ export type GetApiV1UserByUserIdRolesErrors = {
1072
985
  message: string;
1073
986
  };
1074
987
  };
1075
- export type GetApiV1UserByUserIdRolesError = GetApiV1UserByUserIdRolesErrors[keyof GetApiV1UserByUserIdRolesErrors];
1076
- export type GetApiV1UserByUserIdRolesResponses = {
988
+ export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
989
+ export type GetApiV1UsersByUserIdRolesResponses = {
1077
990
  /**
1078
991
  * Default Response
1079
992
  */
@@ -1084,8 +997,8 @@ export type GetApiV1UserByUserIdRolesResponses = {
1084
997
  createdAt: string;
1085
998
  }>;
1086
999
  };
1087
- export type GetApiV1UserByUserIdRolesResponse = GetApiV1UserByUserIdRolesResponses[keyof GetApiV1UserByUserIdRolesResponses];
1088
- export type PostApiV1UserByUserIdRolesData = {
1000
+ export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
1001
+ export type PostApiV1UsersByUserIdRolesData = {
1089
1002
  body: {
1090
1003
  role: string;
1091
1004
  group: string;
@@ -1094,9 +1007,9 @@ export type PostApiV1UserByUserIdRolesData = {
1094
1007
  userId: string;
1095
1008
  };
1096
1009
  query?: never;
1097
- url: '/api/v1/user/{userId}/roles';
1010
+ url: '/api/v1/users/{userId}/roles';
1098
1011
  };
1099
- export type PostApiV1UserByUserIdRolesErrors = {
1012
+ export type PostApiV1UsersByUserIdRolesErrors = {
1100
1013
  /**
1101
1014
  * Default Response
1102
1015
  */
@@ -1114,8 +1027,8 @@ export type PostApiV1UserByUserIdRolesErrors = {
1114
1027
  message: string;
1115
1028
  };
1116
1029
  };
1117
- export type PostApiV1UserByUserIdRolesError = PostApiV1UserByUserIdRolesErrors[keyof PostApiV1UserByUserIdRolesErrors];
1118
- export type PostApiV1UserByUserIdRolesResponses = {
1030
+ export type PostApiV1UsersByUserIdRolesError = PostApiV1UsersByUserIdRolesErrors[keyof PostApiV1UsersByUserIdRolesErrors];
1031
+ export type PostApiV1UsersByUserIdRolesResponses = {
1119
1032
  /**
1120
1033
  * Default Response
1121
1034
  */
@@ -1127,16 +1040,16 @@ export type PostApiV1UserByUserIdRolesResponses = {
1127
1040
  createdAt: string;
1128
1041
  };
1129
1042
  };
1130
- export type PostApiV1UserByUserIdRolesResponse = PostApiV1UserByUserIdRolesResponses[keyof PostApiV1UserByUserIdRolesResponses];
1131
- export type DeleteApiV1UserByIdData = {
1043
+ export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
1044
+ export type DeleteApiV1UsersByIdData = {
1132
1045
  body?: never;
1133
1046
  path: {
1134
1047
  id: string;
1135
1048
  };
1136
1049
  query?: never;
1137
- url: '/api/v1/user/{id}';
1050
+ url: '/api/v1/users/{id}';
1138
1051
  };
1139
- export type DeleteApiV1UserByIdErrors = {
1052
+ export type DeleteApiV1UsersByIdErrors = {
1140
1053
  /**
1141
1054
  * Default Response
1142
1055
  */
@@ -1146,8 +1059,8 @@ export type DeleteApiV1UserByIdErrors = {
1146
1059
  message: string;
1147
1060
  };
1148
1061
  };
1149
- export type DeleteApiV1UserByIdError = DeleteApiV1UserByIdErrors[keyof DeleteApiV1UserByIdErrors];
1150
- export type DeleteApiV1UserByIdResponses = {
1062
+ export type DeleteApiV1UsersByIdError = DeleteApiV1UsersByIdErrors[keyof DeleteApiV1UsersByIdErrors];
1063
+ export type DeleteApiV1UsersByIdResponses = {
1151
1064
  /**
1152
1065
  * Default Response
1153
1066
  */
@@ -1155,16 +1068,16 @@ export type DeleteApiV1UserByIdResponses = {
1155
1068
  id: string;
1156
1069
  };
1157
1070
  };
1158
- export type DeleteApiV1UserByIdResponse = DeleteApiV1UserByIdResponses[keyof DeleteApiV1UserByIdResponses];
1159
- export type GetApiV1UserByIdData = {
1071
+ export type DeleteApiV1UsersByIdResponse = DeleteApiV1UsersByIdResponses[keyof DeleteApiV1UsersByIdResponses];
1072
+ export type GetApiV1UsersByIdData = {
1160
1073
  body?: never;
1161
1074
  path: {
1162
1075
  id: string;
1163
1076
  };
1164
1077
  query?: never;
1165
- url: '/api/v1/user/{id}';
1078
+ url: '/api/v1/users/{id}';
1166
1079
  };
1167
- export type GetApiV1UserByIdErrors = {
1080
+ export type GetApiV1UsersByIdErrors = {
1168
1081
  /**
1169
1082
  * Default Response
1170
1083
  */
@@ -1174,8 +1087,8 @@ export type GetApiV1UserByIdErrors = {
1174
1087
  message: string;
1175
1088
  };
1176
1089
  };
1177
- export type GetApiV1UserByIdError = GetApiV1UserByIdErrors[keyof GetApiV1UserByIdErrors];
1178
- export type GetApiV1UserByIdResponses = {
1090
+ export type GetApiV1UsersByIdError = GetApiV1UsersByIdErrors[keyof GetApiV1UsersByIdErrors];
1091
+ export type GetApiV1UsersByIdResponses = {
1179
1092
  /**
1180
1093
  * Default Response
1181
1094
  */
@@ -1201,8 +1114,8 @@ export type GetApiV1UserByIdResponses = {
1201
1114
  updatedAt: string;
1202
1115
  };
1203
1116
  };
1204
- export type GetApiV1UserByIdResponse = GetApiV1UserByIdResponses[keyof GetApiV1UserByIdResponses];
1205
- export type PatchApiV1UserByIdData = {
1117
+ export type GetApiV1UsersByIdResponse = GetApiV1UsersByIdResponses[keyof GetApiV1UsersByIdResponses];
1118
+ export type PatchApiV1UsersByIdData = {
1206
1119
  body: {
1207
1120
  email?: string;
1208
1121
  emailVerified?: boolean;
@@ -1218,9 +1131,9 @@ export type PatchApiV1UserByIdData = {
1218
1131
  id: string;
1219
1132
  };
1220
1133
  query?: never;
1221
- url: '/api/v1/user/{id}';
1134
+ url: '/api/v1/users/{id}';
1222
1135
  };
1223
- export type PatchApiV1UserByIdErrors = {
1136
+ export type PatchApiV1UsersByIdErrors = {
1224
1137
  /**
1225
1138
  * Default Response
1226
1139
  */
@@ -1238,8 +1151,8 @@ export type PatchApiV1UserByIdErrors = {
1238
1151
  message: string;
1239
1152
  };
1240
1153
  };
1241
- export type PatchApiV1UserByIdError = PatchApiV1UserByIdErrors[keyof PatchApiV1UserByIdErrors];
1242
- export type PatchApiV1UserByIdResponses = {
1154
+ export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
1155
+ export type PatchApiV1UsersByIdResponses = {
1243
1156
  /**
1244
1157
  * Default Response
1245
1158
  */
@@ -1247,17 +1160,17 @@ export type PatchApiV1UserByIdResponses = {
1247
1160
  id: string;
1248
1161
  };
1249
1162
  };
1250
- export type PatchApiV1UserByIdResponse = PatchApiV1UserByIdResponses[keyof PatchApiV1UserByIdResponses];
1251
- export type DeleteApiV1UserByUserIdRolesByRoleIdData = {
1163
+ export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
1164
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdData = {
1252
1165
  body?: never;
1253
1166
  path: {
1254
1167
  userId: string;
1255
1168
  roleId: string;
1256
1169
  };
1257
1170
  query?: never;
1258
- url: '/api/v1/user/{userId}/roles/{roleId}';
1171
+ url: '/api/v1/users/{userId}/roles/{roleId}';
1259
1172
  };
1260
- export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
1173
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
1261
1174
  /**
1262
1175
  * Default Response
1263
1176
  */
@@ -1267,8 +1180,8 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
1267
1180
  message: string;
1268
1181
  };
1269
1182
  };
1270
- export type DeleteApiV1UserByUserIdRolesByRoleIdError = DeleteApiV1UserByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UserByUserIdRolesByRoleIdErrors];
1271
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1183
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesByRoleIdErrors];
1184
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
1272
1185
  /**
1273
1186
  * Default Response
1274
1187
  */
@@ -1276,8 +1189,8 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1276
1189
  id: string;
1277
1190
  };
1278
1191
  };
1279
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponse = DeleteApiV1UserByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UserByUserIdRolesByRoleIdResponses];
1280
- export type PatchApiV1UserByUserIdRolesByRoleIdData = {
1192
+ export type DeleteApiV1UsersByUserIdRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesByRoleIdResponses];
1193
+ export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1281
1194
  body: {
1282
1195
  role?: string;
1283
1196
  group?: string;
@@ -1287,9 +1200,9 @@ export type PatchApiV1UserByUserIdRolesByRoleIdData = {
1287
1200
  roleId: string;
1288
1201
  };
1289
1202
  query?: never;
1290
- url: '/api/v1/user/{userId}/roles/{roleId}';
1203
+ url: '/api/v1/users/{userId}/roles/{roleId}';
1291
1204
  };
1292
- export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1205
+ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1293
1206
  /**
1294
1207
  * Default Response
1295
1208
  */
@@ -1307,8 +1220,8 @@ export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1307
1220
  message: string;
1308
1221
  };
1309
1222
  };
1310
- export type PatchApiV1UserByUserIdRolesByRoleIdError = PatchApiV1UserByUserIdRolesByRoleIdErrors[keyof PatchApiV1UserByUserIdRolesByRoleIdErrors];
1311
- export type PatchApiV1UserByUserIdRolesByRoleIdResponses = {
1223
+ export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1224
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1312
1225
  /**
1313
1226
  * Default Response
1314
1227
  */
@@ -1320,259 +1233,49 @@ export type PatchApiV1UserByUserIdRolesByRoleIdResponses = {
1320
1233
  createdAt: string;
1321
1234
  };
1322
1235
  };
1323
- export type PatchApiV1UserByUserIdRolesByRoleIdResponse = PatchApiV1UserByUserIdRolesByRoleIdResponses[keyof PatchApiV1UserByUserIdRolesByRoleIdResponses];
1324
- export type GetApiV1UsersData = {
1325
- body?: never;
1326
- path?: never;
1327
- query?: {
1328
- limit?: number;
1329
- offset?: number;
1330
- search?: string;
1331
- };
1332
- url: '/api/v1/users/';
1333
- };
1334
- export type GetApiV1UsersResponses = {
1335
- /**
1336
- * Default Response
1337
- */
1338
- 200: {
1339
- data: Array<{
1340
- id: string;
1341
- email: string;
1342
- firstName: string | null;
1343
- lastName: string | null;
1344
- username: string;
1345
- role: string;
1346
- emailVerified: boolean;
1347
- phone: string | null;
1348
- phoneVerified: boolean;
1349
- isBlocked: boolean;
1350
- isGuest: boolean;
1351
- locale: string;
1352
- createdAt: string;
1353
- }>;
1354
- total: number;
1355
- };
1356
- };
1357
- export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
1358
- export type PostApiV1UsersData = {
1359
- body: {
1360
- email: string;
1361
- username: string;
1362
- password?: string;
1363
- firstName?: string | null;
1364
- lastName?: string | null;
1365
- phone?: string | null;
1366
- locale?: string;
1367
- role?: string;
1368
- claims?: {
1369
- [key: string]: unknown;
1370
- };
1371
- marketingConsent?: boolean;
1372
- isGuest?: boolean;
1373
- emailVerified?: boolean;
1374
- };
1375
- path?: never;
1376
- query?: never;
1377
- url: '/api/v1/users/';
1378
- };
1379
- export type PostApiV1UsersErrors = {
1380
- /**
1381
- * Default Response
1382
- */
1383
- 400: {
1384
- statusCode: number;
1385
- error: string;
1386
- message: string;
1387
- };
1388
- /**
1389
- * Default Response
1390
- */
1391
- 409: {
1392
- statusCode: number;
1393
- error: string;
1394
- message: string;
1395
- };
1396
- };
1397
- export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
1398
- export type PostApiV1UsersResponses = {
1399
- /**
1400
- * Default Response
1401
- */
1402
- 201: {
1403
- id: string;
1404
- email: string;
1405
- isGuest: boolean;
1406
- };
1407
- };
1408
- export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
1409
- export type GetApiV1UsersByUserIdRolesData = {
1410
- body?: never;
1411
- path: {
1412
- userId: string;
1413
- };
1414
- query?: never;
1415
- url: '/api/v1/users/{userId}/roles';
1416
- };
1417
- export type GetApiV1UsersByUserIdRolesErrors = {
1418
- /**
1419
- * Default Response
1420
- */
1421
- 404: {
1422
- statusCode: number;
1423
- error: string;
1424
- message: string;
1425
- };
1426
- };
1427
- export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
1428
- export type GetApiV1UsersByUserIdRolesResponses = {
1429
- /**
1430
- * Default Response
1431
- */
1432
- 200: Array<{
1433
- id: string;
1434
- role: string;
1435
- group: string;
1436
- createdAt: string;
1437
- }>;
1438
- };
1439
- export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
1440
- export type PostApiV1UsersByUserIdRolesData = {
1236
+ export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1237
+ export type DeleteApiV1UsersByUserIdTwoFaData = {
1441
1238
  body: {
1442
- role: string;
1443
- group: string;
1239
+ token: string;
1444
1240
  };
1445
1241
  path: {
1446
1242
  userId: string;
1447
1243
  };
1448
1244
  query?: never;
1449
- url: '/api/v1/users/{userId}/roles';
1450
- };
1451
- export type PostApiV1UsersByUserIdRolesErrors = {
1452
- /**
1453
- * Default Response
1454
- */
1455
- 404: {
1456
- statusCode: number;
1457
- error: string;
1458
- message: string;
1459
- };
1460
- /**
1461
- * Default Response
1462
- */
1463
- 409: {
1464
- statusCode: number;
1465
- error: string;
1466
- message: string;
1467
- };
1468
- };
1469
- export type PostApiV1UsersByUserIdRolesError = PostApiV1UsersByUserIdRolesErrors[keyof PostApiV1UsersByUserIdRolesErrors];
1470
- export type PostApiV1UsersByUserIdRolesResponses = {
1471
- /**
1472
- * Default Response
1473
- */
1474
- 201: {
1475
- id: string;
1476
- userId: string;
1477
- role: string;
1478
- group: string;
1479
- createdAt: string;
1480
- };
1481
- };
1482
- export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
1483
- export type DeleteApiV1UsersByIdData = {
1484
- body?: never;
1485
- path: {
1486
- id: string;
1487
- };
1488
- query?: never;
1489
- url: '/api/v1/users/{id}';
1245
+ url: '/api/v1/users/{userId}/two-fa';
1490
1246
  };
1491
- export type DeleteApiV1UsersByIdErrors = {
1247
+ export type DeleteApiV1UsersByUserIdTwoFaErrors = {
1492
1248
  /**
1493
1249
  * Default Response
1494
1250
  */
1495
- 404: {
1496
- statusCode: number;
1497
- error: string;
1498
- message: string;
1499
- };
1500
- };
1501
- export type DeleteApiV1UsersByIdError = DeleteApiV1UsersByIdErrors[keyof DeleteApiV1UsersByIdErrors];
1502
- export type DeleteApiV1UsersByIdResponses = {
1503
- /**
1504
- * Default Response
1505
- */
1506
- 200: {
1507
- id: string;
1508
- };
1509
- };
1510
- export type DeleteApiV1UsersByIdResponse = DeleteApiV1UsersByIdResponses[keyof DeleteApiV1UsersByIdResponses];
1511
- export type GetApiV1UsersByIdData = {
1512
- body?: never;
1513
- path: {
1514
- id: string;
1515
- };
1516
- query?: never;
1517
- url: '/api/v1/users/{id}';
1518
- };
1519
- export type GetApiV1UsersByIdErrors = {
1520
- /**
1521
- * Default Response
1522
- */
1523
- 404: {
1251
+ 401: {
1524
1252
  statusCode: number;
1525
1253
  error: string;
1526
1254
  message: string;
1527
1255
  };
1528
1256
  };
1529
- export type GetApiV1UsersByIdError = GetApiV1UsersByIdErrors[keyof GetApiV1UsersByIdErrors];
1530
- export type GetApiV1UsersByIdResponses = {
1257
+ export type DeleteApiV1UsersByUserIdTwoFaError = DeleteApiV1UsersByUserIdTwoFaErrors[keyof DeleteApiV1UsersByUserIdTwoFaErrors];
1258
+ export type DeleteApiV1UsersByUserIdTwoFaResponses = {
1531
1259
  /**
1532
1260
  * Default Response
1533
1261
  */
1534
1262
  200: {
1535
- id: string;
1536
- email: string;
1537
- firstName: string | null;
1538
- lastName: string | null;
1539
- username: string;
1540
- role: string;
1541
- emailVerified: boolean;
1542
- phone: string | null;
1543
- phoneVerified: boolean;
1544
- isBlocked: boolean;
1545
- isBlockedUntil: string | null;
1546
- isGuest: boolean;
1547
- locale: string;
1548
- claims: unknown;
1549
- marketingConsent: boolean;
1550
- twoFaEnabled: boolean;
1551
- twoFaType: string | null;
1552
- createdAt: string;
1553
- updatedAt: string;
1263
+ success: boolean;
1554
1264
  };
1555
1265
  };
1556
- export type GetApiV1UsersByIdResponse = GetApiV1UsersByIdResponses[keyof GetApiV1UsersByIdResponses];
1557
- export type PatchApiV1UsersByIdData = {
1266
+ export type DeleteApiV1UsersByUserIdTwoFaResponse = DeleteApiV1UsersByUserIdTwoFaResponses[keyof DeleteApiV1UsersByUserIdTwoFaResponses];
1267
+ export type PostApiV1UsersByUserIdTwoFaData = {
1558
1268
  body: {
1559
- email?: string;
1560
- emailVerified?: boolean;
1561
- phone?: string;
1562
- phoneVerified?: boolean;
1563
- isBlocked?: boolean;
1564
- isBlockedUntil?: string | null;
1565
- twoFaEnabled?: boolean;
1566
- twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1567
- loginAttempts?: number;
1269
+ token?: string;
1270
+ type?: 'APP' | 'EMAIL' | 'PHONE';
1568
1271
  };
1569
1272
  path: {
1570
- id: string;
1273
+ userId: string;
1571
1274
  };
1572
1275
  query?: never;
1573
- url: '/api/v1/users/{id}';
1276
+ url: '/api/v1/users/{userId}/two-fa';
1574
1277
  };
1575
- export type PatchApiV1UsersByIdErrors = {
1278
+ export type PostApiV1UsersByUserIdTwoFaErrors = {
1576
1279
  /**
1577
1280
  * Default Response
1578
1281
  */
@@ -1584,93 +1287,38 @@ export type PatchApiV1UsersByIdErrors = {
1584
1287
  /**
1585
1288
  * Default Response
1586
1289
  */
1587
- 404: {
1290
+ 401: {
1588
1291
  statusCode: number;
1589
1292
  error: string;
1590
1293
  message: string;
1591
1294
  };
1592
1295
  };
1593
- export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
1594
- export type PatchApiV1UsersByIdResponses = {
1296
+ export type PostApiV1UsersByUserIdTwoFaError = PostApiV1UsersByUserIdTwoFaErrors[keyof PostApiV1UsersByUserIdTwoFaErrors];
1297
+ export type PostApiV1UsersByUserIdTwoFaResponses = {
1595
1298
  /**
1596
1299
  * Default Response
1597
1300
  */
1598
1301
  200: {
1599
- id: string;
1302
+ success: boolean;
1600
1303
  };
1601
1304
  };
1602
- export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
1603
- export type DeleteApiV1UsersByUserIdRolesByRoleIdData = {
1305
+ export type PostApiV1UsersByUserIdTwoFaResponse = PostApiV1UsersByUserIdTwoFaResponses[keyof PostApiV1UsersByUserIdTwoFaResponses];
1306
+ export type GetApiV1UsersByUserIdTwoFaSecretData = {
1604
1307
  body?: never;
1605
1308
  path: {
1606
1309
  userId: string;
1607
- roleId: string;
1608
1310
  };
1609
1311
  query?: never;
1610
- url: '/api/v1/users/{userId}/roles/{roleId}';
1312
+ url: '/api/v1/users/{userId}/two-fa/secret';
1611
1313
  };
1612
- export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
1613
- /**
1614
- * Default Response
1615
- */
1616
- 404: {
1617
- statusCode: number;
1618
- error: string;
1619
- message: string;
1620
- };
1621
- };
1622
- export type DeleteApiV1UsersByUserIdRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesByRoleIdErrors];
1623
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
1624
- /**
1625
- * Default Response
1626
- */
1627
- 200: {
1628
- id: string;
1629
- };
1630
- };
1631
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesByRoleIdResponses];
1632
- export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1633
- body: {
1634
- role?: string;
1635
- group?: string;
1636
- };
1637
- path: {
1638
- userId: string;
1639
- roleId: string;
1640
- };
1641
- query?: never;
1642
- url: '/api/v1/users/{userId}/roles/{roleId}';
1643
- };
1644
- export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1645
- /**
1646
- * Default Response
1647
- */
1648
- 400: {
1649
- statusCode: number;
1650
- error: string;
1651
- message: string;
1652
- };
1653
- /**
1654
- * Default Response
1655
- */
1656
- 404: {
1657
- statusCode: number;
1658
- error: string;
1659
- message: string;
1660
- };
1661
- };
1662
- export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1663
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1314
+ export type GetApiV1UsersByUserIdTwoFaSecretResponses = {
1664
1315
  /**
1665
1316
  * Default Response
1666
1317
  */
1667
1318
  200: {
1668
- id: string;
1669
- userId: string;
1670
- role: string;
1671
- group: string;
1672
- createdAt: string;
1319
+ secret: string;
1320
+ uri: string;
1673
1321
  };
1674
1322
  };
1675
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1323
+ export type GetApiV1UsersByUserIdTwoFaSecretResponse = GetApiV1UsersByUserIdTwoFaSecretResponses[keyof GetApiV1UsersByUserIdTwoFaSecretResponses];
1676
1324
  //# sourceMappingURL=types.gen.d.ts.map