@faable/auth-sdk 1.3.5 → 1.3.7

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.
@@ -188,10 +188,11 @@ export interface paths {
188
188
  domain: string;
189
189
  slug: string;
190
190
  logo_src?: string | null;
191
+ icon_src?: string | null;
191
192
  callback_hostnames: string[];
192
193
  token_signature: string;
193
194
  default_connection?: components["schemas"]["Connection"] | string | unknown;
194
- default_locale: string;
195
+ enabled_locales: string[];
195
196
  team?: string | null;
196
197
  /** @description AuthAccount creation date */
197
198
  createdAt: string;
@@ -260,10 +261,11 @@ export interface paths {
260
261
  domain: string;
261
262
  slug: string;
262
263
  logo_src?: string | null;
264
+ icon_src?: string | null;
263
265
  callback_hostnames: string[];
264
266
  token_signature: string;
265
267
  default_connection?: components["schemas"]["Connection"] | string | unknown;
266
- default_locale: string;
268
+ enabled_locales: string[];
267
269
  team?: string | null;
268
270
  /** @description AuthAccount creation date */
269
271
  createdAt: string;
@@ -825,54 +827,6 @@ export interface paths {
825
827
  patch?: never;
826
828
  trace?: never;
827
829
  };
828
- "/webhook": {
829
- parameters: {
830
- query?: never;
831
- header?: never;
832
- path?: never;
833
- cookie?: never;
834
- };
835
- /**
836
- * List Webhooks in Account
837
- * @description List Webhooks in Account
838
- */
839
- get: operations["webhook/list"];
840
- put?: never;
841
- /**
842
- * Create Webhook in Account
843
- * @description Create Webhook in Account
844
- */
845
- post: operations["webhook/create"];
846
- delete?: never;
847
- options?: never;
848
- head?: never;
849
- patch?: never;
850
- trace?: never;
851
- };
852
- "/webhook/{webhook_id}": {
853
- parameters: {
854
- query?: never;
855
- header?: never;
856
- path?: never;
857
- cookie?: never;
858
- };
859
- /**
860
- * Get Webhook in Account
861
- * @description Get Webhook in Account
862
- */
863
- get: operations["webhook/get"];
864
- put?: never;
865
- post?: never;
866
- /**
867
- * Delete Webhook in Account
868
- * @description Delete Webhook in Account
869
- */
870
- delete: operations["webhook/remove"];
871
- options?: never;
872
- head?: never;
873
- patch?: never;
874
- trace?: never;
875
- };
876
830
  "/api": {
877
831
  parameters: {
878
832
  query?: never;
@@ -962,15 +916,118 @@ export interface paths {
962
916
  patch?: never;
963
917
  trace?: never;
964
918
  };
965
- "/passwordless/magic": {
919
+ "/action": {
920
+ parameters: {
921
+ query?: never;
922
+ header?: never;
923
+ path?: never;
924
+ cookie?: never;
925
+ };
926
+ /**
927
+ * List Actions in Account
928
+ * @description List Actions in Account
929
+ */
930
+ get: operations["action/list"];
931
+ put?: never;
932
+ /**
933
+ * Create Action in Account
934
+ * @description Create Action in Account
935
+ */
936
+ post: operations["action/create"];
937
+ delete?: never;
938
+ options?: never;
939
+ head?: never;
940
+ patch?: never;
941
+ trace?: never;
942
+ };
943
+ "/action/{action_id}": {
944
+ parameters: {
945
+ query?: never;
946
+ header?: never;
947
+ path?: never;
948
+ cookie?: never;
949
+ };
950
+ /**
951
+ * Get Action in Account
952
+ * @description Get Action in Account
953
+ */
954
+ get: operations["action/get"];
955
+ put?: never;
956
+ post?: never;
957
+ /**
958
+ * Delete Action in Account
959
+ * @description Delete Action in Account
960
+ */
961
+ delete: operations["action/remove"];
962
+ options?: never;
963
+ head?: never;
964
+ patch?: never;
965
+ trace?: never;
966
+ };
967
+ "/notificationsubscription": {
968
+ parameters: {
969
+ query?: never;
970
+ header?: never;
971
+ path?: never;
972
+ cookie?: never;
973
+ };
974
+ /**
975
+ * List Notificationsubscriptions in Account
976
+ * @description List Notificationsubscriptions in Account
977
+ */
978
+ get: operations["notificationsubscription/list"];
979
+ put?: never;
980
+ /**
981
+ * Create Notificationsubscription in Account
982
+ * @description Create Notificationsubscription in Account
983
+ */
984
+ post: operations["notificationsubscription/create"];
985
+ delete?: never;
986
+ options?: never;
987
+ head?: never;
988
+ patch?: never;
989
+ trace?: never;
990
+ };
991
+ "/notificationsubscription/{notificationsubscription_id}": {
992
+ parameters: {
993
+ query?: never;
994
+ header?: never;
995
+ path?: never;
996
+ cookie?: never;
997
+ };
998
+ /**
999
+ * Get Notificationsubscription in Account
1000
+ * @description Get Notificationsubscription in Account
1001
+ */
1002
+ get: operations["notificationsubscription/get"];
1003
+ put?: never;
1004
+ /**
1005
+ * Update Notificationsubscriptions in Account
1006
+ * @description Update Notificationsubscriptions in Account
1007
+ */
1008
+ post: operations["notificationsubscription/update"];
1009
+ /**
1010
+ * Delete Notificationsubscription in Account
1011
+ * @description Delete Notificationsubscription in Account
1012
+ */
1013
+ delete: operations["notificationsubscription/remove"];
1014
+ options?: never;
1015
+ head?: never;
1016
+ patch?: never;
1017
+ trace?: never;
1018
+ };
1019
+ "/passwordless/verify_redirect": {
966
1020
  parameters: {
967
1021
  query?: never;
968
1022
  header?: never;
969
1023
  path?: never;
970
1024
  cookie?: never;
971
1025
  };
972
- /** @description Receive a passwordless token and convert it to a valid session */
973
- get: operations["passwordless/login"];
1026
+ /**
1027
+ * Receive a passwordless token via email link and convert it to a valid session
1028
+ * @description Receive a passwordless token and convert it to a valid session
1029
+ */
1030
+ get: operations["passwordless/verify_redirect"];
974
1031
  put?: never;
975
1032
  post?: never;
976
1033
  delete?: never;
@@ -1113,13 +1170,19 @@ export interface paths {
1113
1170
  parameters: {
1114
1171
  query?: {
1115
1172
  /** @description Grant Type. https://oauth.net/2/grant-types/ */
1116
- grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password";
1173
+ grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
1117
1174
  client_id?: string;
1118
1175
  client_secret?: string;
1119
1176
  scope?: string;
1120
1177
  code?: string;
1121
1178
  code_verifier?: string;
1179
+ username?: string;
1180
+ otp?: string;
1122
1181
  refresh_token?: string;
1182
+ subject_token?: string;
1183
+ subject_token_type?: string;
1184
+ /** @description The device code returned by the authorization server. */
1185
+ device_code?: string;
1123
1186
  };
1124
1187
  header?: never;
1125
1188
  path?: never;
@@ -1154,13 +1217,19 @@ export interface paths {
1154
1217
  parameters: {
1155
1218
  query?: {
1156
1219
  /** @description Grant Type. https://oauth.net/2/grant-types/ */
1157
- grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password";
1220
+ grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
1158
1221
  client_id?: string;
1159
1222
  client_secret?: string;
1160
1223
  scope?: string;
1161
1224
  code?: string;
1162
1225
  code_verifier?: string;
1226
+ username?: string;
1227
+ otp?: string;
1163
1228
  refresh_token?: string;
1229
+ subject_token?: string;
1230
+ subject_token_type?: string;
1231
+ /** @description The device code returned by the authorization server. */
1232
+ device_code?: string;
1164
1233
  };
1165
1234
  header?: never;
1166
1235
  path?: never;
@@ -1168,7 +1237,24 @@ export interface paths {
1168
1237
  };
1169
1238
  requestBody?: {
1170
1239
  content: {
1171
- "application/json": components["schemas"]["OAuthTokenParams"];
1240
+ "application/json": {
1241
+ /** @description Grant Type. https://oauth.net/2/grant-types/ */
1242
+ grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
1243
+ client_id?: string;
1244
+ client_secret?: string;
1245
+ scope?: string;
1246
+ code?: string;
1247
+ code_verifier?: string;
1248
+ username?: string;
1249
+ otp?: string;
1250
+ refresh_token?: string;
1251
+ subject_token?: string;
1252
+ subject_token_type?: string;
1253
+ /** @description The device code returned by the authorization server. */
1254
+ device_code?: string;
1255
+ } & {
1256
+ [key: string]: unknown;
1257
+ };
1172
1258
  };
1173
1259
  };
1174
1260
  responses: {
@@ -1196,6 +1282,202 @@ export interface paths {
1196
1282
  patch?: never;
1197
1283
  trace?: never;
1198
1284
  };
1285
+ "/oauth/device/code": {
1286
+ parameters: {
1287
+ query?: never;
1288
+ header?: never;
1289
+ path?: never;
1290
+ cookie?: never;
1291
+ };
1292
+ get?: never;
1293
+ put?: never;
1294
+ /**
1295
+ * Device authorization request
1296
+ * @description The device authorization endpoint is used by the device to request a device code and a user code from the authorization server.
1297
+ */
1298
+ post: operations["device-authorize"];
1299
+ delete?: never;
1300
+ options?: never;
1301
+ head?: never;
1302
+ patch?: never;
1303
+ trace?: never;
1304
+ };
1305
+ "/activate": {
1306
+ parameters: {
1307
+ query?: never;
1308
+ header?: never;
1309
+ path?: never;
1310
+ cookie?: never;
1311
+ };
1312
+ /**
1313
+ * Activate device
1314
+ * @description Redirects to the external device activation page.
1315
+ */
1316
+ get: {
1317
+ parameters: {
1318
+ query?: {
1319
+ user_code?: string;
1320
+ };
1321
+ header?: never;
1322
+ path?: never;
1323
+ cookie?: never;
1324
+ };
1325
+ requestBody?: never;
1326
+ responses: {
1327
+ /** @description Default Response */
1328
+ 200: {
1329
+ headers: {
1330
+ [name: string]: unknown;
1331
+ };
1332
+ content?: never;
1333
+ };
1334
+ };
1335
+ };
1336
+ put?: never;
1337
+ post?: never;
1338
+ delete?: never;
1339
+ options?: never;
1340
+ head?: never;
1341
+ patch?: never;
1342
+ trace?: never;
1343
+ };
1344
+ "/confirm": {
1345
+ parameters: {
1346
+ query?: never;
1347
+ header?: never;
1348
+ path?: never;
1349
+ cookie?: never;
1350
+ };
1351
+ /**
1352
+ * Confirm device authorization
1353
+ * @description Redirects to the external device confirmation page.
1354
+ */
1355
+ get: {
1356
+ parameters: {
1357
+ query?: {
1358
+ user_code?: string;
1359
+ };
1360
+ header?: never;
1361
+ path?: never;
1362
+ cookie?: never;
1363
+ };
1364
+ requestBody?: never;
1365
+ responses: {
1366
+ /** @description Default Response */
1367
+ 200: {
1368
+ headers: {
1369
+ [name: string]: unknown;
1370
+ };
1371
+ content?: never;
1372
+ };
1373
+ };
1374
+ };
1375
+ put?: never;
1376
+ post?: never;
1377
+ delete?: never;
1378
+ options?: never;
1379
+ head?: never;
1380
+ patch?: never;
1381
+ trace?: never;
1382
+ };
1383
+ "/oauth/device/verify": {
1384
+ parameters: {
1385
+ query?: never;
1386
+ header?: never;
1387
+ path?: never;
1388
+ cookie?: never;
1389
+ };
1390
+ get?: never;
1391
+ put?: never;
1392
+ /**
1393
+ * Verify user code
1394
+ * @description API endpoint for the external UI to validate a user code and retrieve client information.
1395
+ */
1396
+ post: {
1397
+ parameters: {
1398
+ query?: never;
1399
+ header?: never;
1400
+ path?: never;
1401
+ cookie?: never;
1402
+ };
1403
+ requestBody: {
1404
+ content: {
1405
+ "application/json": {
1406
+ user_code: string;
1407
+ };
1408
+ };
1409
+ };
1410
+ responses: {
1411
+ /** @description Default Response */
1412
+ 200: {
1413
+ headers: {
1414
+ [name: string]: unknown;
1415
+ };
1416
+ content: {
1417
+ "application/json": {
1418
+ device_code: string;
1419
+ client: {
1420
+ name?: string;
1421
+ client_id?: string;
1422
+ };
1423
+ };
1424
+ };
1425
+ };
1426
+ };
1427
+ };
1428
+ delete?: never;
1429
+ options?: never;
1430
+ head?: never;
1431
+ patch?: never;
1432
+ trace?: never;
1433
+ };
1434
+ "/oauth/device/authorize": {
1435
+ parameters: {
1436
+ query?: never;
1437
+ header?: never;
1438
+ path?: never;
1439
+ cookie?: never;
1440
+ };
1441
+ get?: never;
1442
+ put?: never;
1443
+ /**
1444
+ * Authorize device
1445
+ * @description API endpoint for the external UI to authorize the device request for the current authenticated user.
1446
+ */
1447
+ post: {
1448
+ parameters: {
1449
+ query?: never;
1450
+ header?: never;
1451
+ path?: never;
1452
+ cookie?: never;
1453
+ };
1454
+ requestBody: {
1455
+ content: {
1456
+ "application/json": {
1457
+ device_code: string;
1458
+ };
1459
+ };
1460
+ };
1461
+ responses: {
1462
+ /** @description Default Response */
1463
+ 200: {
1464
+ headers: {
1465
+ [name: string]: unknown;
1466
+ };
1467
+ content: {
1468
+ "application/json": {
1469
+ success: boolean;
1470
+ };
1471
+ };
1472
+ };
1473
+ };
1474
+ };
1475
+ delete?: never;
1476
+ options?: never;
1477
+ head?: never;
1478
+ patch?: never;
1479
+ trace?: never;
1480
+ };
1199
1481
  "/callback": {
1200
1482
  parameters: {
1201
1483
  query?: never;
@@ -1216,6 +1498,26 @@ export interface paths {
1216
1498
  patch?: never;
1217
1499
  trace?: never;
1218
1500
  };
1501
+ "/continue": {
1502
+ parameters: {
1503
+ query?: never;
1504
+ header?: never;
1505
+ path?: never;
1506
+ cookie?: never;
1507
+ };
1508
+ /**
1509
+ * OAuth2 Resume URL
1510
+ * @description Resume OAuth flow after a progressive profiling action
1511
+ */
1512
+ get: operations["oauth_continue"];
1513
+ put?: never;
1514
+ post?: never;
1515
+ delete?: never;
1516
+ options?: never;
1517
+ head?: never;
1518
+ patch?: never;
1519
+ trace?: never;
1520
+ };
1219
1521
  "/.well-known/openid-configuration": {
1220
1522
  parameters: {
1221
1523
  query?: never;
@@ -1436,10 +1738,11 @@ export interface components {
1436
1738
  domain: string;
1437
1739
  slug: string;
1438
1740
  logo_src?: string | null;
1741
+ icon_src?: string | null;
1439
1742
  callback_hostnames: string[];
1440
1743
  token_signature: string;
1441
1744
  default_connection?: components["schemas"]["Connection"] | string | unknown;
1442
- default_locale: string;
1745
+ enabled_locales: string[];
1443
1746
  team?: string | null;
1444
1747
  /** @description AuthAccount creation date */
1445
1748
  createdAt: string;
@@ -1463,7 +1766,14 @@ export interface components {
1463
1766
  /** @default null */
1464
1767
  client_secret: string;
1465
1768
  /** @default null */
1769
+ issuer: string;
1770
+ /** @default null */
1771
+ jwks_url: string;
1772
+ /** @default null */
1466
1773
  response_type: string;
1774
+ enabled: boolean;
1775
+ /** @default null */
1776
+ enabled_clients: string[] | null;
1467
1777
  /** @default [] */
1468
1778
  scope: string[];
1469
1779
  /**
@@ -1497,11 +1807,17 @@ export interface components {
1497
1807
  /** @description ConnectionCreate */
1498
1808
  ConnectionCreate: {
1499
1809
  connection_name: string;
1500
- connection_type: "database" | "custom" | "github" | "figma" | "google_oauth2";
1810
+ connection_type: "database" | "custom" | "github" | "figma" | "google_oauth2" | "oidc";
1501
1811
  authorize_url?: string;
1502
1812
  client_id?: string;
1503
1813
  client_secret?: string;
1814
+ issuer?: string;
1815
+ jwks_url?: string;
1504
1816
  scope?: string[];
1817
+ enabled?: boolean;
1818
+ claims_mapping?: {
1819
+ [key: string]: string;
1820
+ };
1505
1821
  /**
1506
1822
  * @description Authorize params
1507
1823
  * @default {}
@@ -1905,106 +2221,399 @@ export interface components {
1905
2221
  metadata: {
1906
2222
  [key: string]: unknown;
1907
2223
  };
1908
- /** @description TeamMember creation date */
2224
+ /** @description TeamMember creation date */
2225
+ createdAt: string;
2226
+ /** @description TeamMember updated date */
2227
+ updatedAt?: string;
2228
+ };
2229
+ /**
2230
+ * @description TeamMemberMetadata
2231
+ * @default {}
2232
+ */
2233
+ TeamMemberMetadata: {
2234
+ [key: string]: unknown;
2235
+ };
2236
+ TeamMemberCreate: {
2237
+ users: string[];
2238
+ };
2239
+ Permission: {
2240
+ value: string;
2241
+ description?: string;
2242
+ };
2243
+ PermissionCreate: {
2244
+ value: string;
2245
+ description?: string;
2246
+ };
2247
+ /** @description Api */
2248
+ Api: {
2249
+ /** @description Api ID */
2250
+ id: string;
2251
+ name: string;
2252
+ description?: string;
2253
+ permissions: components["schemas"]["Permission"][];
2254
+ /** @description Object is related with this account */
2255
+ account: string;
2256
+ /**
2257
+ * @description ApiMetadata
2258
+ * @default {}
2259
+ */
2260
+ metadata: {
2261
+ [key: string]: unknown;
2262
+ };
2263
+ /** @description Api creation date */
2264
+ createdAt: string;
2265
+ /** @description Api updated date */
2266
+ updatedAt?: string;
2267
+ };
2268
+ /**
2269
+ * @description ApiMetadata
2270
+ * @default {}
2271
+ */
2272
+ ApiMetadata: {
2273
+ [key: string]: unknown;
2274
+ };
2275
+ ApiCreate: {
2276
+ name: string;
2277
+ description?: string;
2278
+ permissions: components["schemas"]["PermissionCreate"][];
2279
+ };
2280
+ /** @description Action */
2281
+ Action: {
2282
+ /** @description Action ID */
2283
+ id: string;
2284
+ /** @description Action Name */
2285
+ name: string;
2286
+ /** @description Trigger event name (e.g., post-login) */
2287
+ trigger: string;
2288
+ /** @description JavaScript Code to execute */
2289
+ code: string;
2290
+ /**
2291
+ * @description Is this action active?
2292
+ * @default true
2293
+ */
2294
+ enabled: boolean;
2295
+ /**
2296
+ * @description Execution order
2297
+ * @default 0
2298
+ */
2299
+ order: number;
2300
+ /** @description Object is related with this account */
2301
+ account: string;
2302
+ /**
2303
+ * @description ActionMetadata
2304
+ * @default {}
2305
+ */
2306
+ metadata: {
2307
+ [key: string]: unknown;
2308
+ };
2309
+ /** @description Action creation date */
2310
+ createdAt: string;
2311
+ /** @description Action updated date */
2312
+ updatedAt?: string;
2313
+ };
2314
+ /**
2315
+ * @description ActionMetadata
2316
+ * @default {}
2317
+ */
2318
+ ActionMetadata: {
2319
+ [key: string]: unknown;
2320
+ };
2321
+ ActionCreate: {
2322
+ /** @description Action Name */
2323
+ name: string;
2324
+ /** @description Trigger event name (e.g., post-login) */
2325
+ trigger: string;
2326
+ /** @description JavaScript Code to execute */
2327
+ code?: string;
2328
+ /**
2329
+ * @description Is this action active?
2330
+ * @default true
2331
+ */
2332
+ enabled: boolean;
2333
+ /**
2334
+ * @description Execution order
2335
+ * @default 0
2336
+ */
2337
+ order: number;
2338
+ };
2339
+ /** @description NotificationSubscription */
2340
+ NotificationSubscription: {
2341
+ /** @description NotificationSubscriptionEmail ID */
2342
+ id: string;
2343
+ events: string[];
2344
+ /** @enum {string} */
2345
+ channel: "email";
2346
+ /** @description Whether the subscription is active */
2347
+ active: boolean;
2348
+ config: {
2349
+ recipients: string[];
2350
+ };
2351
+ /** @description Object is related with this account */
2352
+ account: string;
2353
+ /**
2354
+ * @description NotificationSubscriptionEmailMetadata
2355
+ * @default {}
2356
+ */
2357
+ metadata: {
2358
+ [key: string]: unknown;
2359
+ };
2360
+ /** @description NotificationSubscriptionEmail creation date */
2361
+ createdAt: string;
2362
+ /** @description NotificationSubscriptionEmail updated date */
2363
+ updatedAt?: string;
2364
+ } | {
2365
+ /** @description NotificationSubscriptionWebhook ID */
2366
+ id: string;
2367
+ events: string[];
2368
+ /** @enum {string} */
2369
+ channel: "webhook";
2370
+ /** @description Whether the subscription is active */
2371
+ active: boolean;
2372
+ config: {
2373
+ /**
2374
+ * Format: uri
2375
+ * @description Webhook URL
2376
+ */
2377
+ url: string;
2378
+ /** @description Secret used to sign the webhook payload */
2379
+ secret: string;
2380
+ };
2381
+ /** @description Object is related with this account */
2382
+ account: string;
2383
+ /**
2384
+ * @description NotificationSubscriptionWebhookMetadata
2385
+ * @default {}
2386
+ */
2387
+ metadata: {
2388
+ [key: string]: unknown;
2389
+ };
2390
+ /** @description NotificationSubscriptionWebhook creation date */
2391
+ createdAt: string;
2392
+ /** @description NotificationSubscriptionWebhook updated date */
2393
+ updatedAt?: string;
2394
+ };
2395
+ /** @description NotificationSubscriptionEmail */
2396
+ NotificationSubscriptionEmail: {
2397
+ /** @description NotificationSubscriptionEmail ID */
2398
+ id: string;
2399
+ events: string[];
2400
+ /** @enum {string} */
2401
+ channel: "email";
2402
+ /** @description Whether the subscription is active */
2403
+ active: boolean;
2404
+ config: {
2405
+ recipients: string[];
2406
+ };
2407
+ /** @description Object is related with this account */
2408
+ account: string;
2409
+ /**
2410
+ * @description NotificationSubscriptionEmailMetadata
2411
+ * @default {}
2412
+ */
2413
+ metadata: {
2414
+ [key: string]: unknown;
2415
+ };
2416
+ /** @description NotificationSubscriptionEmail creation date */
1909
2417
  createdAt: string;
1910
- /** @description TeamMember updated date */
2418
+ /** @description NotificationSubscriptionEmail updated date */
1911
2419
  updatedAt?: string;
1912
2420
  };
2421
+ NotificationSubscriptionEmailConfig: {
2422
+ recipients: string[];
2423
+ };
1913
2424
  /**
1914
- * @description TeamMemberMetadata
2425
+ * @description NotificationSubscriptionEmailMetadata
1915
2426
  * @default {}
1916
2427
  */
1917
- TeamMemberMetadata: {
2428
+ NotificationSubscriptionEmailMetadata: {
1918
2429
  [key: string]: unknown;
1919
2430
  };
1920
- TeamMemberCreate: {
1921
- users: string[];
1922
- };
1923
- /** @description Webhook */
1924
- Webhook: {
1925
- /** @description Webhook ID */
2431
+ /** @description NotificationSubscriptionWebhook */
2432
+ NotificationSubscriptionWebhook: {
2433
+ /** @description NotificationSubscriptionWebhook ID */
1926
2434
  id: string;
1927
- name: string;
2435
+ events: string[];
2436
+ /** @enum {string} */
2437
+ channel: "webhook";
2438
+ /** @description Whether the subscription is active */
2439
+ active: boolean;
2440
+ config: {
2441
+ /**
2442
+ * Format: uri
2443
+ * @description Webhook URL
2444
+ */
2445
+ url: string;
2446
+ /** @description Secret used to sign the webhook payload */
2447
+ secret: string;
2448
+ };
1928
2449
  /** @description Object is related with this account */
1929
2450
  account: string;
1930
2451
  /**
1931
- * @description WebhookMetadata
2452
+ * @description NotificationSubscriptionWebhookMetadata
1932
2453
  * @default {}
1933
2454
  */
1934
2455
  metadata: {
1935
2456
  [key: string]: unknown;
1936
2457
  };
1937
- /** @description Webhook creation date */
2458
+ /** @description NotificationSubscriptionWebhook creation date */
1938
2459
  createdAt: string;
1939
- /** @description Webhook updated date */
2460
+ /** @description NotificationSubscriptionWebhook updated date */
1940
2461
  updatedAt?: string;
1941
2462
  };
2463
+ NotificationSubscriptionWebhookConfig: {
2464
+ /**
2465
+ * Format: uri
2466
+ * @description Webhook URL
2467
+ */
2468
+ url: string;
2469
+ /** @description Secret used to sign the webhook payload */
2470
+ secret: string;
2471
+ };
1942
2472
  /**
1943
- * @description WebhookMetadata
2473
+ * @description NotificationSubscriptionWebhookMetadata
1944
2474
  * @default {}
1945
2475
  */
1946
- WebhookMetadata: {
2476
+ NotificationSubscriptionWebhookMetadata: {
1947
2477
  [key: string]: unknown;
1948
2478
  };
1949
- /** @description WebhookCreate */
1950
- WebhookCreate: {
1951
- name: string;
1952
- url: string;
2479
+ /** @description NotificationSubscriptionCreate */
2480
+ NotificationSubscriptionCreate: {
2481
+ events: string[];
2482
+ /** @enum {string} */
2483
+ channel: "email";
2484
+ /** @description Whether the subscription is active */
2485
+ active?: boolean;
2486
+ config: {
2487
+ recipients: string[];
2488
+ };
2489
+ /** @description Add Metadata */
2490
+ metadata?: {
2491
+ [key: string]: unknown;
2492
+ };
2493
+ } | {
2494
+ events: string[];
2495
+ /** @enum {string} */
2496
+ channel: "webhook";
2497
+ /** @description Whether the subscription is active */
2498
+ active?: boolean;
2499
+ config: {
2500
+ /**
2501
+ * Format: uri
2502
+ * @description Webhook URL
2503
+ */
2504
+ url: string;
2505
+ /** @description Secret used to sign the webhook payload */
2506
+ secret: string;
2507
+ };
2508
+ /** @description Add Metadata */
2509
+ metadata?: {
2510
+ [key: string]: unknown;
2511
+ };
2512
+ };
2513
+ /** @description NotificationSubscriptionEmailCreate */
2514
+ NotificationSubscriptionEmailCreate: {
2515
+ events: string[];
2516
+ /** @enum {string} */
2517
+ channel: "email";
2518
+ /** @description Whether the subscription is active */
2519
+ active?: boolean;
2520
+ config: {
2521
+ recipients: string[];
2522
+ };
1953
2523
  /** @description Add Metadata */
1954
2524
  metadata?: {
1955
2525
  [key: string]: unknown;
1956
2526
  };
1957
2527
  };
2528
+ NotificationSubscriptionEmailConfigCreate: {
2529
+ recipients: string[];
2530
+ };
1958
2531
  /** @description Add Metadata */
1959
- WebhookMetadataCreate: {
2532
+ NotificationSubscriptionEmailMetadataCreate: {
1960
2533
  [key: string]: unknown;
1961
2534
  };
1962
- Permission: {
1963
- value: string;
1964
- description?: string;
1965
- };
1966
- PermissionCreate: {
1967
- value: string;
1968
- description?: string;
2535
+ /** @description NotificationSubscriptionWebhookCreate */
2536
+ NotificationSubscriptionWebhookCreate: {
2537
+ events: string[];
2538
+ /** @enum {string} */
2539
+ channel: "webhook";
2540
+ /** @description Whether the subscription is active */
2541
+ active?: boolean;
2542
+ config: {
2543
+ /**
2544
+ * Format: uri
2545
+ * @description Webhook URL
2546
+ */
2547
+ url: string;
2548
+ /** @description Secret used to sign the webhook payload */
2549
+ secret: string;
2550
+ };
2551
+ /** @description Add Metadata */
2552
+ metadata?: {
2553
+ [key: string]: unknown;
2554
+ };
1969
2555
  };
1970
- /** @description Api */
1971
- Api: {
1972
- /** @description Api ID */
1973
- id: string;
1974
- name: string;
1975
- description?: string;
1976
- permissions: components["schemas"]["Permission"][];
1977
- /** @description Object is related with this account */
1978
- account: string;
2556
+ NotificationSubscriptionWebhookConfigCreate: {
1979
2557
  /**
1980
- * @description ApiMetadata
1981
- * @default {}
2558
+ * Format: uri
2559
+ * @description Webhook URL
1982
2560
  */
1983
- metadata: {
2561
+ url: string;
2562
+ /** @description Secret used to sign the webhook payload */
2563
+ secret: string;
2564
+ };
2565
+ /** @description Add Metadata */
2566
+ NotificationSubscriptionWebhookMetadataCreate: {
2567
+ [key: string]: unknown;
2568
+ };
2569
+ /** @description NotificationSubscriptionUpdate */
2570
+ NotificationSubscriptionUpdate: {
2571
+ events?: string[];
2572
+ /** @enum {string} */
2573
+ channel?: "email";
2574
+ /** @description Whether the subscription is active */
2575
+ active?: boolean;
2576
+ config?: {
2577
+ recipients?: string[];
2578
+ };
2579
+ /** @description Metadata update */
2580
+ metadata?: {
2581
+ [key: string]: unknown;
2582
+ };
2583
+ } | {
2584
+ events?: string[];
2585
+ /** @enum {string} */
2586
+ channel?: "webhook";
2587
+ /** @description Whether the subscription is active */
2588
+ active?: boolean;
2589
+ config?: {
2590
+ /**
2591
+ * Format: uri
2592
+ * @description Webhook URL
2593
+ */
2594
+ url?: string;
2595
+ /** @description Secret used to sign the webhook payload */
2596
+ secret?: string;
2597
+ };
2598
+ /** @description Metadata update */
2599
+ metadata?: {
1984
2600
  [key: string]: unknown;
1985
2601
  };
1986
- /** @description Api creation date */
1987
- createdAt: string;
1988
- /** @description Api updated date */
1989
- updatedAt?: string;
1990
2602
  };
1991
- /**
1992
- * @description ApiMetadata
1993
- * @default {}
1994
- */
1995
- ApiMetadata: {
2603
+ /** @description Metadata update */
2604
+ NotificationSubscriptionEmailMetadataUpdate: {
1996
2605
  [key: string]: unknown;
1997
2606
  };
1998
- ApiCreate: {
1999
- name: string;
2000
- description?: string;
2001
- permissions: components["schemas"]["PermissionCreate"][];
2607
+ /** @description Metadata update */
2608
+ NotificationSubscriptionWebhookMetadataUpdate: {
2609
+ [key: string]: unknown;
2002
2610
  };
2003
2611
  /** @description AuthAccountCreate */
2004
2612
  AuthAccountCreate: {
2005
2613
  name: string;
2006
2614
  team: string;
2007
2615
  logo_src?: string;
2616
+ icon_src?: string;
2008
2617
  callback_hostnames?: string[];
2009
2618
  default_connection?: string;
2010
2619
  /** @description Add Metadata */
@@ -2018,16 +2627,24 @@ export interface components {
2018
2627
  };
2019
2628
  OAuthTokenParams: {
2020
2629
  /** @description Grant Type. https://oauth.net/2/grant-types/ */
2021
- grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password";
2630
+ grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
2022
2631
  client_id?: string;
2023
2632
  client_secret?: string;
2024
2633
  scope?: string;
2025
2634
  code?: string;
2026
2635
  code_verifier?: string;
2636
+ username?: string;
2637
+ otp?: string;
2027
2638
  refresh_token?: string;
2639
+ subject_token?: string;
2640
+ subject_token_type?: string;
2641
+ /** @description The device code returned by the authorization server. */
2642
+ device_code?: string;
2028
2643
  } & {
2029
2644
  [key: string]: unknown;
2030
2645
  };
2646
+ /** @description Grant Type. https://oauth.net/2/grant-types/ */
2647
+ OAuthGrantType: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
2031
2648
  /** @description UsernamepasswordLoginBody */
2032
2649
  UsernamepasswordLoginBody: {
2033
2650
  username: string;
@@ -2954,7 +3571,7 @@ export interface operations {
2954
3571
  };
2955
3572
  };
2956
3573
  };
2957
- "webhook/list": {
3574
+ "api/list": {
2958
3575
  parameters: {
2959
3576
  query?: {
2960
3577
  /** @description Start from this cursor */
@@ -2983,13 +3600,13 @@ export interface operations {
2983
3600
  /** @description next cursor */
2984
3601
  next: string | null;
2985
3602
  /** @description List of results */
2986
- results: components["schemas"]["Webhook"][];
3603
+ results: components["schemas"]["Api"][];
2987
3604
  };
2988
3605
  };
2989
3606
  };
2990
3607
  };
2991
3608
  };
2992
- "webhook/create": {
3609
+ "api/create": {
2993
3610
  parameters: {
2994
3611
  query?: never;
2995
3612
  header?: never;
@@ -2998,49 +3615,49 @@ export interface operations {
2998
3615
  };
2999
3616
  requestBody?: {
3000
3617
  content: {
3001
- "application/json": components["schemas"]["WebhookCreate"];
3618
+ "application/json": components["schemas"]["ApiCreate"];
3002
3619
  };
3003
3620
  };
3004
3621
  responses: {
3005
- /** @description Webhook */
3622
+ /** @description Api */
3006
3623
  200: {
3007
3624
  headers: {
3008
3625
  [name: string]: unknown;
3009
3626
  };
3010
3627
  content: {
3011
- "application/json": components["schemas"]["Webhook"];
3628
+ "application/json": components["schemas"]["Api"];
3012
3629
  };
3013
3630
  };
3014
3631
  };
3015
3632
  };
3016
- "webhook/get": {
3633
+ "api/get": {
3017
3634
  parameters: {
3018
3635
  query?: never;
3019
3636
  header?: never;
3020
3637
  path: {
3021
- webhook_id: string;
3638
+ api_id: string;
3022
3639
  };
3023
3640
  cookie?: never;
3024
3641
  };
3025
3642
  requestBody?: never;
3026
3643
  responses: {
3027
- /** @description Webhook */
3644
+ /** @description Api */
3028
3645
  200: {
3029
3646
  headers: {
3030
3647
  [name: string]: unknown;
3031
3648
  };
3032
3649
  content: {
3033
- "application/json": components["schemas"]["Webhook"];
3650
+ "application/json": components["schemas"]["Api"];
3034
3651
  };
3035
3652
  };
3036
3653
  };
3037
3654
  };
3038
- "webhook/remove": {
3655
+ "api/remove": {
3039
3656
  parameters: {
3040
3657
  query?: never;
3041
3658
  header?: never;
3042
3659
  path: {
3043
- webhook_id: string;
3660
+ api_id: string;
3044
3661
  };
3045
3662
  cookie?: never;
3046
3663
  };
@@ -3055,7 +3672,7 @@ export interface operations {
3055
3672
  };
3056
3673
  };
3057
3674
  };
3058
- "api/list": {
3675
+ "action/list": {
3059
3676
  parameters: {
3060
3677
  query?: {
3061
3678
  /** @description Start from this cursor */
@@ -3084,13 +3701,13 @@ export interface operations {
3084
3701
  /** @description next cursor */
3085
3702
  next: string | null;
3086
3703
  /** @description List of results */
3087
- results: components["schemas"]["Api"][];
3704
+ results: components["schemas"]["Action"][];
3088
3705
  };
3089
3706
  };
3090
3707
  };
3091
3708
  };
3092
3709
  };
3093
- "api/create": {
3710
+ "action/create": {
3094
3711
  parameters: {
3095
3712
  query?: never;
3096
3713
  header?: never;
@@ -3099,49 +3716,49 @@ export interface operations {
3099
3716
  };
3100
3717
  requestBody?: {
3101
3718
  content: {
3102
- "application/json": components["schemas"]["ApiCreate"];
3719
+ "application/json": components["schemas"]["ActionCreate"];
3103
3720
  };
3104
3721
  };
3105
3722
  responses: {
3106
- /** @description Api */
3723
+ /** @description Action */
3107
3724
  200: {
3108
3725
  headers: {
3109
3726
  [name: string]: unknown;
3110
3727
  };
3111
3728
  content: {
3112
- "application/json": components["schemas"]["Api"];
3729
+ "application/json": components["schemas"]["Action"];
3113
3730
  };
3114
3731
  };
3115
3732
  };
3116
3733
  };
3117
- "api/get": {
3734
+ "action/get": {
3118
3735
  parameters: {
3119
3736
  query?: never;
3120
3737
  header?: never;
3121
3738
  path: {
3122
- api_id: string;
3739
+ action_id: string;
3123
3740
  };
3124
3741
  cookie?: never;
3125
3742
  };
3126
3743
  requestBody?: never;
3127
3744
  responses: {
3128
- /** @description Api */
3745
+ /** @description Action */
3129
3746
  200: {
3130
3747
  headers: {
3131
3748
  [name: string]: unknown;
3132
3749
  };
3133
3750
  content: {
3134
- "application/json": components["schemas"]["Api"];
3751
+ "application/json": components["schemas"]["Action"];
3135
3752
  };
3136
3753
  };
3137
3754
  };
3138
3755
  };
3139
- "api/remove": {
3756
+ "action/remove": {
3140
3757
  parameters: {
3141
3758
  query?: never;
3142
3759
  header?: never;
3143
3760
  path: {
3144
- api_id: string;
3761
+ action_id: string;
3145
3762
  };
3146
3763
  cookie?: never;
3147
3764
  };
@@ -3156,10 +3773,139 @@ export interface operations {
3156
3773
  };
3157
3774
  };
3158
3775
  };
3159
- "passwordless/login": {
3776
+ "notificationsubscription/list": {
3777
+ parameters: {
3778
+ query?: {
3779
+ /** @description Start from this cursor */
3780
+ cursor?: string;
3781
+ /** @description Start from this cursor */
3782
+ next?: string;
3783
+ /** @description Size of the results array */
3784
+ pageSize?: number;
3785
+ /** @description Filter using a FaableQL query */
3786
+ query?: string;
3787
+ expand?: string[];
3788
+ };
3789
+ header?: never;
3790
+ path?: never;
3791
+ cookie?: never;
3792
+ };
3793
+ requestBody?: never;
3794
+ responses: {
3795
+ /** @description PaginatedResponse */
3796
+ 200: {
3797
+ headers: {
3798
+ [name: string]: unknown;
3799
+ };
3800
+ content: {
3801
+ "application/json": {
3802
+ /** @description next cursor */
3803
+ next: string | null;
3804
+ /** @description List of results */
3805
+ results: components["schemas"]["NotificationSubscription"][];
3806
+ };
3807
+ };
3808
+ };
3809
+ };
3810
+ };
3811
+ "notificationsubscription/create": {
3812
+ parameters: {
3813
+ query?: never;
3814
+ header?: never;
3815
+ path?: never;
3816
+ cookie?: never;
3817
+ };
3818
+ requestBody?: {
3819
+ content: {
3820
+ "application/json": components["schemas"]["NotificationSubscriptionCreate"];
3821
+ };
3822
+ };
3823
+ responses: {
3824
+ /** @description NotificationSubscription */
3825
+ 200: {
3826
+ headers: {
3827
+ [name: string]: unknown;
3828
+ };
3829
+ content: {
3830
+ "application/json": components["schemas"]["NotificationSubscription"];
3831
+ };
3832
+ };
3833
+ };
3834
+ };
3835
+ "notificationsubscription/get": {
3836
+ parameters: {
3837
+ query?: never;
3838
+ header?: never;
3839
+ path: {
3840
+ notificationsubscription_id: string;
3841
+ };
3842
+ cookie?: never;
3843
+ };
3844
+ requestBody?: never;
3845
+ responses: {
3846
+ /** @description NotificationSubscription */
3847
+ 200: {
3848
+ headers: {
3849
+ [name: string]: unknown;
3850
+ };
3851
+ content: {
3852
+ "application/json": components["schemas"]["NotificationSubscription"];
3853
+ };
3854
+ };
3855
+ };
3856
+ };
3857
+ "notificationsubscription/update": {
3858
+ parameters: {
3859
+ query?: never;
3860
+ header?: never;
3861
+ path: {
3862
+ notificationsubscription_id: string;
3863
+ };
3864
+ cookie?: never;
3865
+ };
3866
+ requestBody?: {
3867
+ content: {
3868
+ "application/json": components["schemas"]["NotificationSubscriptionUpdate"];
3869
+ };
3870
+ };
3871
+ responses: {
3872
+ /** @description NotificationSubscription */
3873
+ 200: {
3874
+ headers: {
3875
+ [name: string]: unknown;
3876
+ };
3877
+ content: {
3878
+ "application/json": components["schemas"]["NotificationSubscription"];
3879
+ };
3880
+ };
3881
+ };
3882
+ };
3883
+ "notificationsubscription/remove": {
3160
3884
  parameters: {
3161
3885
  query?: never;
3162
3886
  header?: never;
3887
+ path: {
3888
+ notificationsubscription_id: string;
3889
+ };
3890
+ cookie?: never;
3891
+ };
3892
+ requestBody?: never;
3893
+ responses: {
3894
+ /** @description Default Response */
3895
+ 200: {
3896
+ headers: {
3897
+ [name: string]: unknown;
3898
+ };
3899
+ content?: never;
3900
+ };
3901
+ };
3902
+ };
3903
+ "passwordless/verify_redirect": {
3904
+ parameters: {
3905
+ query: {
3906
+ token: string;
3907
+ };
3908
+ header?: never;
3163
3909
  path?: never;
3164
3910
  cookie?: never;
3165
3911
  };
@@ -3184,8 +3930,13 @@ export interface operations {
3184
3930
  requestBody: {
3185
3931
  content: {
3186
3932
  "application/json": {
3933
+ client_id: string;
3187
3934
  email: string;
3188
- returnTo: string;
3935
+ /** @default link */
3936
+ send: string;
3937
+ auth_params?: {
3938
+ [key: string]: string;
3939
+ };
3189
3940
  };
3190
3941
  };
3191
3942
  };
@@ -3234,6 +3985,42 @@ export interface operations {
3234
3985
  };
3235
3986
  };
3236
3987
  };
3988
+ "device-authorize": {
3989
+ parameters: {
3990
+ query?: never;
3991
+ header?: never;
3992
+ path?: never;
3993
+ cookie?: never;
3994
+ };
3995
+ requestBody: {
3996
+ content: {
3997
+ "application/json": {
3998
+ /** @description The client ID of the application. */
3999
+ client_id: string;
4000
+ /** @description The scope of the access request. */
4001
+ scope?: string;
4002
+ };
4003
+ };
4004
+ };
4005
+ responses: {
4006
+ /** @description Default Response */
4007
+ 200: {
4008
+ headers: {
4009
+ [name: string]: unknown;
4010
+ };
4011
+ content: {
4012
+ "application/json": {
4013
+ device_code: string;
4014
+ user_code: string;
4015
+ verification_uri: string;
4016
+ verification_uri_complete: string;
4017
+ expires_in: number;
4018
+ interval: number;
4019
+ };
4020
+ };
4021
+ };
4022
+ };
4023
+ };
3237
4024
  callback: {
3238
4025
  parameters: {
3239
4026
  query?: {
@@ -3258,6 +4045,26 @@ export interface operations {
3258
4045
  };
3259
4046
  };
3260
4047
  };
4048
+ oauth_continue: {
4049
+ parameters: {
4050
+ query: {
4051
+ state: string;
4052
+ };
4053
+ header?: never;
4054
+ path?: never;
4055
+ cookie?: never;
4056
+ };
4057
+ requestBody?: never;
4058
+ responses: {
4059
+ /** @description Default Response */
4060
+ 200: {
4061
+ headers: {
4062
+ [name: string]: unknown;
4063
+ };
4064
+ content?: never;
4065
+ };
4066
+ };
4067
+ };
3261
4068
  change_password: {
3262
4069
  parameters: {
3263
4070
  query?: never;