@authhero/adapter-interfaces 0.13.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;
@@ -1847,67 +2043,117 @@ export declare const identitySchema: z.ZodObject<{
1847
2043
  }>;
1848
2044
  export type Identity = z.infer<typeof identitySchema>;
1849
2045
  export declare const jwksSchema: z.ZodObject<{
1850
- alg: z.ZodString;
2046
+ alg: z.ZodEnum<[
2047
+ "RS256",
2048
+ "RS384",
2049
+ "RS512",
2050
+ "ES256",
2051
+ "ES384",
2052
+ "ES512",
2053
+ "HS256",
2054
+ "HS384",
2055
+ "HS512"
2056
+ ]>;
1851
2057
  e: z.ZodString;
1852
2058
  kid: z.ZodString;
1853
- kty: z.ZodString;
2059
+ kty: z.ZodEnum<[
2060
+ "RSA",
2061
+ "EC",
2062
+ "oct"
2063
+ ]>;
1854
2064
  n: z.ZodString;
1855
- use: z.ZodOptional<z.ZodString>;
2065
+ x5t: z.ZodOptional<z.ZodString>;
2066
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2067
+ use: z.ZodOptional<z.ZodEnum<[
2068
+ "sig",
2069
+ "enc"
2070
+ ]>>;
1856
2071
  }, "strip", z.ZodTypeAny, {
1857
2072
  kid: string;
1858
- alg: string;
2073
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1859
2074
  e: string;
1860
- kty: string;
2075
+ kty: "RSA" | "EC" | "oct";
1861
2076
  n: string;
1862
- use?: string | undefined;
2077
+ x5t?: string | undefined;
2078
+ x5c?: string[] | undefined;
2079
+ use?: "sig" | "enc" | undefined;
1863
2080
  }, {
1864
2081
  kid: string;
1865
- alg: string;
2082
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1866
2083
  e: string;
1867
- kty: string;
2084
+ kty: "RSA" | "EC" | "oct";
1868
2085
  n: string;
1869
- use?: string | undefined;
2086
+ x5t?: string | undefined;
2087
+ x5c?: string[] | undefined;
2088
+ use?: "sig" | "enc" | undefined;
1870
2089
  }>;
1871
2090
  export declare const jwksKeySchema: z.ZodObject<{
1872
2091
  keys: z.ZodArray<z.ZodObject<{
1873
- alg: z.ZodString;
2092
+ alg: z.ZodEnum<[
2093
+ "RS256",
2094
+ "RS384",
2095
+ "RS512",
2096
+ "ES256",
2097
+ "ES384",
2098
+ "ES512",
2099
+ "HS256",
2100
+ "HS384",
2101
+ "HS512"
2102
+ ]>;
1874
2103
  e: z.ZodString;
1875
2104
  kid: z.ZodString;
1876
- kty: z.ZodString;
2105
+ kty: z.ZodEnum<[
2106
+ "RSA",
2107
+ "EC",
2108
+ "oct"
2109
+ ]>;
1877
2110
  n: z.ZodString;
1878
- use: z.ZodOptional<z.ZodString>;
2111
+ x5t: z.ZodOptional<z.ZodString>;
2112
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2113
+ use: z.ZodOptional<z.ZodEnum<[
2114
+ "sig",
2115
+ "enc"
2116
+ ]>>;
1879
2117
  }, "strip", z.ZodTypeAny, {
1880
2118
  kid: string;
1881
- alg: string;
2119
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1882
2120
  e: string;
1883
- kty: string;
2121
+ kty: "RSA" | "EC" | "oct";
1884
2122
  n: string;
1885
- use?: string | undefined;
2123
+ x5t?: string | undefined;
2124
+ x5c?: string[] | undefined;
2125
+ use?: "sig" | "enc" | undefined;
1886
2126
  }, {
1887
2127
  kid: string;
1888
- alg: string;
2128
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1889
2129
  e: string;
1890
- kty: string;
2130
+ kty: "RSA" | "EC" | "oct";
1891
2131
  n: string;
1892
- use?: string | undefined;
2132
+ x5t?: string | undefined;
2133
+ x5c?: string[] | undefined;
2134
+ use?: "sig" | "enc" | undefined;
1893
2135
  }>, "many">;
1894
2136
  }, "strip", z.ZodTypeAny, {
1895
2137
  keys: {
1896
2138
  kid: string;
1897
- alg: string;
2139
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1898
2140
  e: string;
1899
- kty: string;
2141
+ kty: "RSA" | "EC" | "oct";
1900
2142
  n: string;
1901
- use?: string | undefined;
2143
+ x5t?: string | undefined;
2144
+ x5c?: string[] | undefined;
2145
+ use?: "sig" | "enc" | undefined;
1902
2146
  }[];
1903
2147
  }, {
1904
2148
  keys: {
1905
2149
  kid: string;
1906
- alg: string;
2150
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1907
2151
  e: string;
1908
- kty: string;
2152
+ kty: "RSA" | "EC" | "oct";
1909
2153
  n: string;
1910
- use?: string | undefined;
2154
+ x5t?: string | undefined;
2155
+ x5c?: string[] | undefined;
2156
+ use?: "sig" | "enc" | undefined;
1911
2157
  }[];
1912
2158
  }>;
1913
2159
  export declare const openIDConfigurationSchema: z.ZodObject<{
@@ -2309,13 +2555,13 @@ export declare const logSchema: z.ZodObject<{
2309
2555
  audience?: string | undefined;
2310
2556
  client_id?: string | undefined;
2311
2557
  scope?: string[] | undefined;
2558
+ strategy?: string | undefined;
2312
2559
  connection_id?: string | undefined;
2313
2560
  log_id?: string | undefined;
2314
2561
  _id?: string | undefined;
2315
2562
  details?: any;
2316
2563
  user_name?: string | undefined;
2317
2564
  client_name?: string | undefined;
2318
- strategy?: string | undefined;
2319
2565
  strategy_type?: string | undefined;
2320
2566
  hostname?: string | undefined;
2321
2567
  auth0_client?: {
@@ -2337,13 +2583,13 @@ export declare const logSchema: z.ZodObject<{
2337
2583
  audience?: string | undefined;
2338
2584
  client_id?: string | undefined;
2339
2585
  scope?: string[] | undefined;
2586
+ strategy?: string | undefined;
2340
2587
  connection_id?: string | undefined;
2341
2588
  log_id?: string | undefined;
2342
2589
  _id?: string | undefined;
2343
2590
  details?: any;
2344
2591
  user_name?: string | undefined;
2345
2592
  client_name?: string | undefined;
2346
- strategy?: string | undefined;
2347
2593
  strategy_type?: string | undefined;
2348
2594
  hostname?: string | undefined;
2349
2595
  auth0_client?: {
@@ -3841,12 +4087,26 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
3841
4087
  themeId: string;
3842
4088
  }>;
3843
4089
  export type Theme = z.infer<typeof themeSchema>;
3844
- export interface LoginState {
3845
- connection?: string;
3846
- authParams: AuthParams;
3847
- state: string;
3848
- errorMessage?: string;
3849
- }
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>;
3850
4110
  export interface Ticket {
3851
4111
  id: string;
3852
4112
  tenant_id: string;
@@ -4006,6 +4266,10 @@ export interface LoginsAdapter {
4006
4266
  get: (tenant_id: string, login_id: string) => Promise<Login | null>;
4007
4267
  remove: (tenant_id: string, login_id: string) => Promise<boolean>;
4008
4268
  }
4269
+ export interface PromptSettingsAdapter {
4270
+ set: (tenant_id: string, promptSetting: PromptSetting) => Promise<void>;
4271
+ get: (tenant_id: string) => Promise<PromptSetting>;
4272
+ }
4009
4273
  export interface DataAdapters {
4010
4274
  applications: ApplicationsAdapter;
4011
4275
  branding: BrandingAdapter;
@@ -4018,6 +4282,7 @@ export interface DataAdapters {
4018
4282
  logins: LoginsAdapter;
4019
4283
  logs: LogsDataAdapter;
4020
4284
  passwords: PasswordsAdapter;
4285
+ promptSettings: PromptSettingsAdapter;
4021
4286
  sessions: SessionsAdapter;
4022
4287
  tenants: TenantsDataAdapter;
4023
4288
  themes: ThemesAdapter;