@authhero/adapter-interfaces 0.14.0 → 0.15.0

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.
@@ -609,6 +609,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
609
609
  allowed_origins: z.ZodArray<z.ZodString, "many">;
610
610
  web_origins: z.ZodArray<z.ZodString, "many">;
611
611
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
612
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
612
613
  addons: z.ZodOptional<z.ZodObject<{
613
614
  samlp: z.ZodOptional<z.ZodObject<{
614
615
  audience: z.ZodOptional<z.ZodString>;
@@ -715,6 +716,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
715
716
  allowed_origins: string[];
716
717
  web_origins: string[];
717
718
  allowed_logout_urls: string[];
719
+ allowed_clients: string[];
718
720
  email_validation: "enabled" | "disabled" | "enforced";
719
721
  client_secret: string;
720
722
  disable_sign_ups: boolean;
@@ -745,6 +747,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
745
747
  allowed_origins: string[];
746
748
  web_origins: string[];
747
749
  allowed_logout_urls: string[];
750
+ allowed_clients: string[];
748
751
  addons?: {
749
752
  samlp?: {
750
753
  audience?: string | undefined;
@@ -777,6 +780,7 @@ export declare const applicationSchema: z.ZodObject<{
777
780
  allowed_origins: z.ZodArray<z.ZodString, "many">;
778
781
  web_origins: z.ZodArray<z.ZodString, "many">;
779
782
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
783
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
780
784
  addons: z.ZodOptional<z.ZodObject<{
781
785
  samlp: z.ZodOptional<z.ZodObject<{
782
786
  audience: z.ZodOptional<z.ZodString>;
@@ -887,6 +891,7 @@ export declare const applicationSchema: z.ZodObject<{
887
891
  allowed_origins: string[];
888
892
  web_origins: string[];
889
893
  allowed_logout_urls: string[];
894
+ allowed_clients: string[];
890
895
  email_validation: "enabled" | "disabled" | "enforced";
891
896
  client_secret: string;
892
897
  disable_sign_ups: boolean;
@@ -919,6 +924,7 @@ export declare const applicationSchema: z.ZodObject<{
919
924
  allowed_origins: string[];
920
925
  web_origins: string[];
921
926
  allowed_logout_urls: string[];
927
+ allowed_clients: string[];
922
928
  addons?: {
923
929
  samlp?: {
924
930
  audience?: string | undefined;
@@ -1148,11 +1154,44 @@ declare const ClientSchema: z.ZodObject<{
1148
1154
  }, {
1149
1155
  id: z.ZodOptional<z.ZodString>;
1150
1156
  name: z.ZodString;
1151
- client_id: z.ZodOptional<z.ZodString>;
1152
- client_secret: z.ZodOptional<z.ZodString>;
1157
+ strategy: z.ZodOptional<z.ZodEnum<[
1158
+ "google-oauth2",
1159
+ "facebook",
1160
+ "vipps",
1161
+ "apple",
1162
+ "email"
1163
+ ]>>;
1164
+ options: z.ZodObject<{
1165
+ kid: z.ZodOptional<z.ZodString>;
1166
+ team_id: z.ZodOptional<z.ZodString>;
1167
+ realms: z.ZodOptional<z.ZodString>;
1168
+ client_id: z.ZodOptional<z.ZodString>;
1169
+ client_secret: z.ZodOptional<z.ZodString>;
1170
+ app_secret: z.ZodOptional<z.ZodString>;
1171
+ scope: z.ZodOptional<z.ZodString>;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ client_secret?: string | undefined;
1174
+ client_id?: string | undefined;
1175
+ scope?: string | undefined;
1176
+ kid?: string | undefined;
1177
+ team_id?: string | undefined;
1178
+ realms?: string | undefined;
1179
+ app_secret?: string | undefined;
1180
+ }, {
1181
+ client_secret?: string | undefined;
1182
+ client_id?: string | undefined;
1183
+ scope?: string | undefined;
1184
+ kid?: string | undefined;
1185
+ team_id?: string | undefined;
1186
+ realms?: string | undefined;
1187
+ app_secret?: string | undefined;
1188
+ }>;
1189
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1153
1190
  authorization_endpoint: z.ZodOptional<z.ZodString>;
1154
1191
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1155
1192
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1193
+ client_id: z.ZodOptional<z.ZodString>;
1194
+ client_secret: z.ZodOptional<z.ZodString>;
1156
1195
  private_key: z.ZodOptional<z.ZodString>;
1157
1196
  kid: z.ZodOptional<z.ZodString>;
1158
1197
  team_id: z.ZodOptional<z.ZodString>;
@@ -1161,6 +1200,15 @@ declare const ClientSchema: z.ZodObject<{
1161
1200
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
1162
1201
  scope: z.ZodOptional<z.ZodString>;
1163
1202
  }>, "strip", z.ZodTypeAny, {
1203
+ options: {
1204
+ client_secret?: string | undefined;
1205
+ client_id?: string | undefined;
1206
+ scope?: string | undefined;
1207
+ kid?: string | undefined;
1208
+ team_id?: string | undefined;
1209
+ realms?: string | undefined;
1210
+ app_secret?: string | undefined;
1211
+ };
1164
1212
  created_at: string;
1165
1213
  updated_at: string;
1166
1214
  name: string;
@@ -1170,14 +1218,25 @@ declare const ClientSchema: z.ZodObject<{
1170
1218
  response_type?: AuthorizationResponseType | undefined;
1171
1219
  response_mode?: AuthorizationResponseMode | undefined;
1172
1220
  scope?: string | undefined;
1173
- authorization_endpoint?: string | undefined;
1174
- private_key?: string | undefined;
1221
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1175
1222
  kid?: string | undefined;
1176
1223
  team_id?: string | undefined;
1224
+ enabled_clients?: string[] | undefined;
1225
+ authorization_endpoint?: string | undefined;
1226
+ private_key?: string | undefined;
1177
1227
  token_endpoint?: string | undefined;
1178
1228
  token_exchange_basic_auth?: boolean | undefined;
1179
1229
  userinfo_endpoint?: string | undefined;
1180
1230
  }, {
1231
+ options: {
1232
+ client_secret?: string | undefined;
1233
+ client_id?: string | undefined;
1234
+ scope?: string | undefined;
1235
+ kid?: string | undefined;
1236
+ team_id?: string | undefined;
1237
+ realms?: string | undefined;
1238
+ app_secret?: string | undefined;
1239
+ };
1181
1240
  created_at: string;
1182
1241
  updated_at: string;
1183
1242
  name: string;
@@ -1187,10 +1246,12 @@ declare const ClientSchema: z.ZodObject<{
1187
1246
  response_type?: AuthorizationResponseType | undefined;
1188
1247
  response_mode?: AuthorizationResponseMode | undefined;
1189
1248
  scope?: string | undefined;
1190
- authorization_endpoint?: string | undefined;
1191
- private_key?: string | undefined;
1249
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1192
1250
  kid?: string | undefined;
1193
1251
  team_id?: string | undefined;
1252
+ enabled_clients?: string[] | undefined;
1253
+ authorization_endpoint?: string | undefined;
1254
+ private_key?: string | undefined;
1194
1255
  token_endpoint?: string | undefined;
1195
1256
  token_exchange_basic_auth?: boolean | undefined;
1196
1257
  userinfo_endpoint?: string | undefined;
@@ -1201,6 +1262,7 @@ declare const ClientSchema: z.ZodObject<{
1201
1262
  allowed_origins: z.ZodArray<z.ZodString, "many">;
1202
1263
  web_origins: z.ZodArray<z.ZodString, "many">;
1203
1264
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
1265
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
1204
1266
  addons: z.ZodOptional<z.ZodObject<{
1205
1267
  samlp: z.ZodOptional<z.ZodObject<{
1206
1268
  audience: z.ZodOptional<z.ZodString>;
@@ -1311,6 +1373,7 @@ declare const ClientSchema: z.ZodObject<{
1311
1373
  allowed_origins: string[];
1312
1374
  web_origins: string[];
1313
1375
  allowed_logout_urls: string[];
1376
+ allowed_clients: string[];
1314
1377
  email_validation: "enabled" | "disabled" | "enforced";
1315
1378
  client_secret: string;
1316
1379
  disable_sign_ups: boolean;
@@ -1336,6 +1399,15 @@ declare const ClientSchema: z.ZodObject<{
1336
1399
  language?: string | undefined;
1337
1400
  };
1338
1401
  connections: {
1402
+ options: {
1403
+ client_secret?: string | undefined;
1404
+ client_id?: string | undefined;
1405
+ scope?: string | undefined;
1406
+ kid?: string | undefined;
1407
+ team_id?: string | undefined;
1408
+ realms?: string | undefined;
1409
+ app_secret?: string | undefined;
1410
+ };
1339
1411
  created_at: string;
1340
1412
  updated_at: string;
1341
1413
  name: string;
@@ -1345,10 +1417,12 @@ declare const ClientSchema: z.ZodObject<{
1345
1417
  response_type?: AuthorizationResponseType | undefined;
1346
1418
  response_mode?: AuthorizationResponseMode | undefined;
1347
1419
  scope?: string | undefined;
1348
- authorization_endpoint?: string | undefined;
1349
- private_key?: string | undefined;
1420
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1350
1421
  kid?: string | undefined;
1351
1422
  team_id?: string | undefined;
1423
+ enabled_clients?: string[] | undefined;
1424
+ authorization_endpoint?: string | undefined;
1425
+ private_key?: string | undefined;
1352
1426
  token_endpoint?: string | undefined;
1353
1427
  token_exchange_basic_auth?: boolean | undefined;
1354
1428
  userinfo_endpoint?: string | undefined;
@@ -1382,6 +1456,7 @@ declare const ClientSchema: z.ZodObject<{
1382
1456
  allowed_origins: string[];
1383
1457
  web_origins: string[];
1384
1458
  allowed_logout_urls: string[];
1459
+ allowed_clients: string[];
1385
1460
  domains: {
1386
1461
  domain: string;
1387
1462
  dkim_private_key?: string | undefined;
@@ -1404,6 +1479,15 @@ declare const ClientSchema: z.ZodObject<{
1404
1479
  language?: string | undefined;
1405
1480
  };
1406
1481
  connections: {
1482
+ options: {
1483
+ client_secret?: string | undefined;
1484
+ client_id?: string | undefined;
1485
+ scope?: string | undefined;
1486
+ kid?: string | undefined;
1487
+ team_id?: string | undefined;
1488
+ realms?: string | undefined;
1489
+ app_secret?: string | undefined;
1490
+ };
1407
1491
  created_at: string;
1408
1492
  updated_at: string;
1409
1493
  name: string;
@@ -1413,10 +1497,12 @@ declare const ClientSchema: z.ZodObject<{
1413
1497
  response_type?: AuthorizationResponseType | undefined;
1414
1498
  response_mode?: AuthorizationResponseMode | undefined;
1415
1499
  scope?: string | undefined;
1416
- authorization_endpoint?: string | undefined;
1417
- private_key?: string | undefined;
1500
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1418
1501
  kid?: string | undefined;
1419
1502
  team_id?: string | undefined;
1503
+ enabled_clients?: string[] | undefined;
1504
+ authorization_endpoint?: string | undefined;
1505
+ private_key?: string | undefined;
1420
1506
  token_endpoint?: string | undefined;
1421
1507
  token_exchange_basic_auth?: boolean | undefined;
1422
1508
  userinfo_endpoint?: string | undefined;
@@ -1527,11 +1613,44 @@ export type Code = z.infer<typeof codeSchema>;
1527
1613
  export declare const connectionInsertSchema: z.ZodObject<{
1528
1614
  id: z.ZodOptional<z.ZodString>;
1529
1615
  name: z.ZodString;
1530
- client_id: z.ZodOptional<z.ZodString>;
1531
- client_secret: z.ZodOptional<z.ZodString>;
1616
+ strategy: z.ZodOptional<z.ZodEnum<[
1617
+ "google-oauth2",
1618
+ "facebook",
1619
+ "vipps",
1620
+ "apple",
1621
+ "email"
1622
+ ]>>;
1623
+ options: z.ZodObject<{
1624
+ kid: z.ZodOptional<z.ZodString>;
1625
+ team_id: z.ZodOptional<z.ZodString>;
1626
+ realms: z.ZodOptional<z.ZodString>;
1627
+ client_id: z.ZodOptional<z.ZodString>;
1628
+ client_secret: z.ZodOptional<z.ZodString>;
1629
+ app_secret: z.ZodOptional<z.ZodString>;
1630
+ scope: z.ZodOptional<z.ZodString>;
1631
+ }, "strip", z.ZodTypeAny, {
1632
+ client_secret?: string | undefined;
1633
+ client_id?: string | undefined;
1634
+ scope?: string | undefined;
1635
+ kid?: string | undefined;
1636
+ team_id?: string | undefined;
1637
+ realms?: string | undefined;
1638
+ app_secret?: string | undefined;
1639
+ }, {
1640
+ client_secret?: string | undefined;
1641
+ client_id?: string | undefined;
1642
+ scope?: string | undefined;
1643
+ kid?: string | undefined;
1644
+ team_id?: string | undefined;
1645
+ realms?: string | undefined;
1646
+ app_secret?: string | undefined;
1647
+ }>;
1648
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1532
1649
  authorization_endpoint: z.ZodOptional<z.ZodString>;
1533
1650
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1534
1651
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1652
+ client_id: z.ZodOptional<z.ZodString>;
1653
+ client_secret: z.ZodOptional<z.ZodString>;
1535
1654
  private_key: z.ZodOptional<z.ZodString>;
1536
1655
  kid: z.ZodOptional<z.ZodString>;
1537
1656
  team_id: z.ZodOptional<z.ZodString>;
@@ -1540,6 +1659,15 @@ export declare const connectionInsertSchema: z.ZodObject<{
1540
1659
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
1541
1660
  scope: z.ZodOptional<z.ZodString>;
1542
1661
  }, "strip", z.ZodTypeAny, {
1662
+ options: {
1663
+ client_secret?: string | undefined;
1664
+ client_id?: string | undefined;
1665
+ scope?: string | undefined;
1666
+ kid?: string | undefined;
1667
+ team_id?: string | undefined;
1668
+ realms?: string | undefined;
1669
+ app_secret?: string | undefined;
1670
+ };
1543
1671
  name: string;
1544
1672
  id?: string | undefined;
1545
1673
  client_secret?: string | undefined;
@@ -1547,14 +1675,25 @@ export declare const connectionInsertSchema: z.ZodObject<{
1547
1675
  response_type?: AuthorizationResponseType | undefined;
1548
1676
  response_mode?: AuthorizationResponseMode | undefined;
1549
1677
  scope?: string | undefined;
1550
- authorization_endpoint?: string | undefined;
1551
- private_key?: string | undefined;
1678
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1552
1679
  kid?: string | undefined;
1553
1680
  team_id?: string | undefined;
1681
+ enabled_clients?: string[] | undefined;
1682
+ authorization_endpoint?: string | undefined;
1683
+ private_key?: string | undefined;
1554
1684
  token_endpoint?: string | undefined;
1555
1685
  token_exchange_basic_auth?: boolean | undefined;
1556
1686
  userinfo_endpoint?: string | undefined;
1557
1687
  }, {
1688
+ options: {
1689
+ client_secret?: string | undefined;
1690
+ client_id?: string | undefined;
1691
+ scope?: string | undefined;
1692
+ kid?: string | undefined;
1693
+ team_id?: string | undefined;
1694
+ realms?: string | undefined;
1695
+ app_secret?: string | undefined;
1696
+ };
1558
1697
  name: string;
1559
1698
  id?: string | undefined;
1560
1699
  client_secret?: string | undefined;
@@ -1562,10 +1701,12 @@ export declare const connectionInsertSchema: z.ZodObject<{
1562
1701
  response_type?: AuthorizationResponseType | undefined;
1563
1702
  response_mode?: AuthorizationResponseMode | undefined;
1564
1703
  scope?: string | undefined;
1565
- authorization_endpoint?: string | undefined;
1566
- private_key?: string | undefined;
1704
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1567
1705
  kid?: string | undefined;
1568
1706
  team_id?: string | undefined;
1707
+ enabled_clients?: string[] | undefined;
1708
+ authorization_endpoint?: string | undefined;
1709
+ private_key?: string | undefined;
1569
1710
  token_endpoint?: string | undefined;
1570
1711
  token_exchange_basic_auth?: boolean | undefined;
1571
1712
  userinfo_endpoint?: string | undefined;
@@ -1578,11 +1719,44 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1578
1719
  }, {
1579
1720
  id: z.ZodOptional<z.ZodString>;
1580
1721
  name: z.ZodString;
1581
- client_id: z.ZodOptional<z.ZodString>;
1582
- client_secret: z.ZodOptional<z.ZodString>;
1722
+ strategy: z.ZodOptional<z.ZodEnum<[
1723
+ "google-oauth2",
1724
+ "facebook",
1725
+ "vipps",
1726
+ "apple",
1727
+ "email"
1728
+ ]>>;
1729
+ options: z.ZodObject<{
1730
+ kid: z.ZodOptional<z.ZodString>;
1731
+ team_id: z.ZodOptional<z.ZodString>;
1732
+ realms: z.ZodOptional<z.ZodString>;
1733
+ client_id: z.ZodOptional<z.ZodString>;
1734
+ client_secret: z.ZodOptional<z.ZodString>;
1735
+ app_secret: z.ZodOptional<z.ZodString>;
1736
+ scope: z.ZodOptional<z.ZodString>;
1737
+ }, "strip", z.ZodTypeAny, {
1738
+ client_secret?: string | undefined;
1739
+ client_id?: string | undefined;
1740
+ scope?: string | undefined;
1741
+ kid?: string | undefined;
1742
+ team_id?: string | undefined;
1743
+ realms?: string | undefined;
1744
+ app_secret?: string | undefined;
1745
+ }, {
1746
+ client_secret?: string | undefined;
1747
+ client_id?: string | undefined;
1748
+ scope?: string | undefined;
1749
+ kid?: string | undefined;
1750
+ team_id?: string | undefined;
1751
+ realms?: string | undefined;
1752
+ app_secret?: string | undefined;
1753
+ }>;
1754
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1583
1755
  authorization_endpoint: z.ZodOptional<z.ZodString>;
1584
1756
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1585
1757
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1758
+ client_id: z.ZodOptional<z.ZodString>;
1759
+ client_secret: z.ZodOptional<z.ZodString>;
1586
1760
  private_key: z.ZodOptional<z.ZodString>;
1587
1761
  kid: z.ZodOptional<z.ZodString>;
1588
1762
  team_id: z.ZodOptional<z.ZodString>;
@@ -1591,6 +1765,15 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1591
1765
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
1592
1766
  scope: z.ZodOptional<z.ZodString>;
1593
1767
  }>, "strip", z.ZodTypeAny, {
1768
+ options: {
1769
+ client_secret?: string | undefined;
1770
+ client_id?: string | undefined;
1771
+ scope?: string | undefined;
1772
+ kid?: string | undefined;
1773
+ team_id?: string | undefined;
1774
+ realms?: string | undefined;
1775
+ app_secret?: string | undefined;
1776
+ };
1594
1777
  created_at: string;
1595
1778
  updated_at: string;
1596
1779
  name: string;
@@ -1600,14 +1783,25 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1600
1783
  response_type?: AuthorizationResponseType | undefined;
1601
1784
  response_mode?: AuthorizationResponseMode | undefined;
1602
1785
  scope?: string | undefined;
1603
- authorization_endpoint?: string | undefined;
1604
- private_key?: string | undefined;
1786
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1605
1787
  kid?: string | undefined;
1606
1788
  team_id?: string | undefined;
1789
+ enabled_clients?: string[] | undefined;
1790
+ authorization_endpoint?: string | undefined;
1791
+ private_key?: string | undefined;
1607
1792
  token_endpoint?: string | undefined;
1608
1793
  token_exchange_basic_auth?: boolean | undefined;
1609
1794
  userinfo_endpoint?: string | undefined;
1610
1795
  }, {
1796
+ options: {
1797
+ client_secret?: string | undefined;
1798
+ client_id?: string | undefined;
1799
+ scope?: string | undefined;
1800
+ kid?: string | undefined;
1801
+ team_id?: string | undefined;
1802
+ realms?: string | undefined;
1803
+ app_secret?: string | undefined;
1804
+ };
1611
1805
  created_at: string;
1612
1806
  updated_at: string;
1613
1807
  name: string;
@@ -1617,10 +1811,12 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1617
1811
  response_type?: AuthorizationResponseType | undefined;
1618
1812
  response_mode?: AuthorizationResponseMode | undefined;
1619
1813
  scope?: string | undefined;
1620
- authorization_endpoint?: string | undefined;
1621
- private_key?: string | undefined;
1814
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1622
1815
  kid?: string | undefined;
1623
1816
  team_id?: string | undefined;
1817
+ enabled_clients?: string[] | undefined;
1818
+ authorization_endpoint?: string | undefined;
1819
+ private_key?: string | undefined;
1624
1820
  token_endpoint?: string | undefined;
1625
1821
  token_exchange_basic_auth?: boolean | undefined;
1626
1822
  userinfo_endpoint?: string | undefined;
@@ -2359,13 +2555,13 @@ export declare const logSchema: z.ZodObject<{
2359
2555
  audience?: string | undefined;
2360
2556
  client_id?: string | undefined;
2361
2557
  scope?: string[] | undefined;
2558
+ strategy?: string | undefined;
2362
2559
  connection_id?: string | undefined;
2363
2560
  log_id?: string | undefined;
2364
2561
  _id?: string | undefined;
2365
2562
  details?: any;
2366
2563
  user_name?: string | undefined;
2367
2564
  client_name?: string | undefined;
2368
- strategy?: string | undefined;
2369
2565
  strategy_type?: string | undefined;
2370
2566
  hostname?: string | undefined;
2371
2567
  auth0_client?: {
@@ -2387,13 +2583,13 @@ export declare const logSchema: z.ZodObject<{
2387
2583
  audience?: string | undefined;
2388
2584
  client_id?: string | undefined;
2389
2585
  scope?: string[] | undefined;
2586
+ strategy?: string | undefined;
2390
2587
  connection_id?: string | undefined;
2391
2588
  log_id?: string | undefined;
2392
2589
  _id?: string | undefined;
2393
2590
  details?: any;
2394
2591
  user_name?: string | undefined;
2395
2592
  client_name?: string | undefined;
2396
- strategy?: string | undefined;
2397
2593
  strategy_type?: string | undefined;
2398
2594
  hostname?: string | undefined;
2399
2595
  auth0_client?: {
@@ -3891,12 +4087,26 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
3891
4087
  themeId: string;
3892
4088
  }>;
3893
4089
  export type Theme = z.infer<typeof themeSchema>;
3894
- export interface LoginState {
3895
- connection?: string;
3896
- authParams: AuthParams;
3897
- state: string;
3898
- errorMessage?: string;
3899
- }
4090
+ export declare const promptSettingSchema: z.ZodObject<{
4091
+ universal_login_experience: z.ZodDefault<z.ZodEnum<[
4092
+ "new",
4093
+ "classic"
4094
+ ]>>;
4095
+ identifier_first: z.ZodDefault<z.ZodBoolean>;
4096
+ password_first: z.ZodDefault<z.ZodBoolean>;
4097
+ webauthn_platform_first_factor: z.ZodBoolean;
4098
+ }, "strip", z.ZodTypeAny, {
4099
+ universal_login_experience: "new" | "classic";
4100
+ identifier_first: boolean;
4101
+ password_first: boolean;
4102
+ webauthn_platform_first_factor: boolean;
4103
+ }, {
4104
+ webauthn_platform_first_factor: boolean;
4105
+ universal_login_experience?: "new" | "classic" | undefined;
4106
+ identifier_first?: boolean | undefined;
4107
+ password_first?: boolean | undefined;
4108
+ }>;
4109
+ export type PromptSetting = z.infer<typeof promptSettingSchema>;
3900
4110
  export interface Ticket {
3901
4111
  id: string;
3902
4112
  tenant_id: string;
@@ -4056,6 +4266,10 @@ export interface LoginsAdapter {
4056
4266
  get: (tenant_id: string, login_id: string) => Promise<Login | null>;
4057
4267
  remove: (tenant_id: string, login_id: string) => Promise<boolean>;
4058
4268
  }
4269
+ export interface PromptSettingsAdapter {
4270
+ set: (tenant_id: string, promptSetting: PromptSetting) => Promise<void>;
4271
+ get: (tenant_id: string) => Promise<PromptSetting>;
4272
+ }
4059
4273
  export interface DataAdapters {
4060
4274
  applications: ApplicationsAdapter;
4061
4275
  branding: BrandingAdapter;
@@ -4068,6 +4282,7 @@ export interface DataAdapters {
4068
4282
  logins: LoginsAdapter;
4069
4283
  logs: LogsDataAdapter;
4070
4284
  passwords: PasswordsAdapter;
4285
+ promptSettings: PromptSettingsAdapter;
4071
4286
  sessions: SessionsAdapter;
4072
4287
  tenants: TenantsDataAdapter;
4073
4288
  themes: ThemesAdapter;