@authhero/adapter-interfaces 0.16.0 → 0.17.1

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.
@@ -1173,7 +1173,14 @@ declare const ClientSchema: z.ZodObject<{
1173
1173
  client_secret: z.ZodOptional<z.ZodString>;
1174
1174
  app_secret: z.ZodOptional<z.ZodString>;
1175
1175
  scope: z.ZodOptional<z.ZodString>;
1176
+ authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1177
+ token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1178
+ userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1179
+ jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1180
+ discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1181
+ issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1176
1182
  }, "strip", z.ZodTypeAny, {
1183
+ issuer?: string | undefined;
1177
1184
  client_secret?: string | undefined;
1178
1185
  client_id?: string | undefined;
1179
1186
  scope?: string | undefined;
@@ -1181,7 +1188,13 @@ declare const ClientSchema: z.ZodObject<{
1181
1188
  team_id?: string | undefined;
1182
1189
  realms?: string | undefined;
1183
1190
  app_secret?: string | undefined;
1191
+ authorization_endpoint?: string | undefined;
1192
+ token_endpoint?: string | undefined;
1193
+ userinfo_endpoint?: string | undefined;
1194
+ jwks_uri?: string | undefined;
1195
+ discovery_url?: string | undefined;
1184
1196
  }, {
1197
+ issuer?: string | undefined;
1185
1198
  client_secret?: string | undefined;
1186
1199
  client_id?: string | undefined;
1187
1200
  scope?: string | undefined;
@@ -1189,9 +1202,13 @@ declare const ClientSchema: z.ZodObject<{
1189
1202
  team_id?: string | undefined;
1190
1203
  realms?: string | undefined;
1191
1204
  app_secret?: string | undefined;
1205
+ authorization_endpoint?: string | undefined;
1206
+ token_endpoint?: string | undefined;
1207
+ userinfo_endpoint?: string | undefined;
1208
+ jwks_uri?: string | undefined;
1209
+ discovery_url?: string | undefined;
1192
1210
  }>>>;
1193
1211
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1194
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1195
1212
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1196
1213
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1197
1214
  }>, "strip", z.ZodTypeAny, {
@@ -1199,6 +1216,7 @@ declare const ClientSchema: z.ZodObject<{
1199
1216
  updated_at: string;
1200
1217
  name: string;
1201
1218
  options?: {
1219
+ issuer?: string | undefined;
1202
1220
  client_secret?: string | undefined;
1203
1221
  client_id?: string | undefined;
1204
1222
  scope?: string | undefined;
@@ -1206,18 +1224,23 @@ declare const ClientSchema: z.ZodObject<{
1206
1224
  team_id?: string | undefined;
1207
1225
  realms?: string | undefined;
1208
1226
  app_secret?: string | undefined;
1227
+ authorization_endpoint?: string | undefined;
1228
+ token_endpoint?: string | undefined;
1229
+ userinfo_endpoint?: string | undefined;
1230
+ jwks_uri?: string | undefined;
1231
+ discovery_url?: string | undefined;
1209
1232
  } | undefined;
1210
1233
  id?: string | undefined;
1211
1234
  response_type?: AuthorizationResponseType | undefined;
1212
1235
  response_mode?: AuthorizationResponseMode | undefined;
1213
1236
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1214
1237
  enabled_clients?: string[] | undefined;
1215
- authorization_endpoint?: string | undefined;
1216
1238
  }, {
1217
1239
  created_at: string;
1218
1240
  updated_at: string;
1219
1241
  name: string;
1220
1242
  options?: {
1243
+ issuer?: string | undefined;
1221
1244
  client_secret?: string | undefined;
1222
1245
  client_id?: string | undefined;
1223
1246
  scope?: string | undefined;
@@ -1225,13 +1248,17 @@ declare const ClientSchema: z.ZodObject<{
1225
1248
  team_id?: string | undefined;
1226
1249
  realms?: string | undefined;
1227
1250
  app_secret?: string | undefined;
1251
+ authorization_endpoint?: string | undefined;
1252
+ token_endpoint?: string | undefined;
1253
+ userinfo_endpoint?: string | undefined;
1254
+ jwks_uri?: string | undefined;
1255
+ discovery_url?: string | undefined;
1228
1256
  } | undefined;
1229
1257
  id?: string | undefined;
1230
1258
  response_type?: AuthorizationResponseType | undefined;
1231
1259
  response_mode?: AuthorizationResponseMode | undefined;
1232
1260
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1233
1261
  enabled_clients?: string[] | undefined;
1234
- authorization_endpoint?: string | undefined;
1235
1262
  }>, "many">;
1236
1263
  id: z.ZodString;
1237
1264
  name: z.ZodString;
@@ -1373,6 +1400,7 @@ declare const ClientSchema: z.ZodObject<{
1373
1400
  updated_at: string;
1374
1401
  name: string;
1375
1402
  options?: {
1403
+ issuer?: string | undefined;
1376
1404
  client_secret?: string | undefined;
1377
1405
  client_id?: string | undefined;
1378
1406
  scope?: string | undefined;
@@ -1380,13 +1408,17 @@ declare const ClientSchema: z.ZodObject<{
1380
1408
  team_id?: string | undefined;
1381
1409
  realms?: string | undefined;
1382
1410
  app_secret?: string | undefined;
1411
+ authorization_endpoint?: string | undefined;
1412
+ token_endpoint?: string | undefined;
1413
+ userinfo_endpoint?: string | undefined;
1414
+ jwks_uri?: string | undefined;
1415
+ discovery_url?: string | undefined;
1383
1416
  } | undefined;
1384
1417
  id?: string | undefined;
1385
1418
  response_type?: AuthorizationResponseType | undefined;
1386
1419
  response_mode?: AuthorizationResponseMode | undefined;
1387
1420
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1388
1421
  enabled_clients?: string[] | undefined;
1389
- authorization_endpoint?: string | undefined;
1390
1422
  }[];
1391
1423
  callbacks?: string[] | undefined;
1392
1424
  allowed_origins?: string[] | undefined;
@@ -1446,6 +1478,7 @@ declare const ClientSchema: z.ZodObject<{
1446
1478
  updated_at: string;
1447
1479
  name: string;
1448
1480
  options?: {
1481
+ issuer?: string | undefined;
1449
1482
  client_secret?: string | undefined;
1450
1483
  client_id?: string | undefined;
1451
1484
  scope?: string | undefined;
@@ -1453,13 +1486,17 @@ declare const ClientSchema: z.ZodObject<{
1453
1486
  team_id?: string | undefined;
1454
1487
  realms?: string | undefined;
1455
1488
  app_secret?: string | undefined;
1489
+ authorization_endpoint?: string | undefined;
1490
+ token_endpoint?: string | undefined;
1491
+ userinfo_endpoint?: string | undefined;
1492
+ jwks_uri?: string | undefined;
1493
+ discovery_url?: string | undefined;
1456
1494
  } | undefined;
1457
1495
  id?: string | undefined;
1458
1496
  response_type?: AuthorizationResponseType | undefined;
1459
1497
  response_mode?: AuthorizationResponseMode | undefined;
1460
1498
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1461
1499
  enabled_clients?: string[] | undefined;
1462
- authorization_endpoint?: string | undefined;
1463
1500
  }[];
1464
1501
  callbacks?: string[] | undefined;
1465
1502
  allowed_origins?: string[] | undefined;
@@ -1591,7 +1628,14 @@ export declare const connectionInsertSchema: z.ZodObject<{
1591
1628
  client_secret: z.ZodOptional<z.ZodString>;
1592
1629
  app_secret: z.ZodOptional<z.ZodString>;
1593
1630
  scope: z.ZodOptional<z.ZodString>;
1631
+ authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1632
+ token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1633
+ userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1634
+ jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1635
+ discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1636
+ issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1594
1637
  }, "strip", z.ZodTypeAny, {
1638
+ issuer?: string | undefined;
1595
1639
  client_secret?: string | undefined;
1596
1640
  client_id?: string | undefined;
1597
1641
  scope?: string | undefined;
@@ -1599,7 +1643,13 @@ export declare const connectionInsertSchema: z.ZodObject<{
1599
1643
  team_id?: string | undefined;
1600
1644
  realms?: string | undefined;
1601
1645
  app_secret?: string | undefined;
1646
+ authorization_endpoint?: string | undefined;
1647
+ token_endpoint?: string | undefined;
1648
+ userinfo_endpoint?: string | undefined;
1649
+ jwks_uri?: string | undefined;
1650
+ discovery_url?: string | undefined;
1602
1651
  }, {
1652
+ issuer?: string | undefined;
1603
1653
  client_secret?: string | undefined;
1604
1654
  client_id?: string | undefined;
1605
1655
  scope?: string | undefined;
@@ -1607,14 +1657,19 @@ export declare const connectionInsertSchema: z.ZodObject<{
1607
1657
  team_id?: string | undefined;
1608
1658
  realms?: string | undefined;
1609
1659
  app_secret?: string | undefined;
1660
+ authorization_endpoint?: string | undefined;
1661
+ token_endpoint?: string | undefined;
1662
+ userinfo_endpoint?: string | undefined;
1663
+ jwks_uri?: string | undefined;
1664
+ discovery_url?: string | undefined;
1610
1665
  }>>>;
1611
1666
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1612
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1613
1667
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1614
1668
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1615
1669
  }, "strip", z.ZodTypeAny, {
1616
1670
  name: string;
1617
1671
  options?: {
1672
+ issuer?: string | undefined;
1618
1673
  client_secret?: string | undefined;
1619
1674
  client_id?: string | undefined;
1620
1675
  scope?: string | undefined;
@@ -1622,16 +1677,21 @@ export declare const connectionInsertSchema: z.ZodObject<{
1622
1677
  team_id?: string | undefined;
1623
1678
  realms?: string | undefined;
1624
1679
  app_secret?: string | undefined;
1680
+ authorization_endpoint?: string | undefined;
1681
+ token_endpoint?: string | undefined;
1682
+ userinfo_endpoint?: string | undefined;
1683
+ jwks_uri?: string | undefined;
1684
+ discovery_url?: string | undefined;
1625
1685
  } | undefined;
1626
1686
  id?: string | undefined;
1627
1687
  response_type?: AuthorizationResponseType | undefined;
1628
1688
  response_mode?: AuthorizationResponseMode | undefined;
1629
1689
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1630
1690
  enabled_clients?: string[] | undefined;
1631
- authorization_endpoint?: string | undefined;
1632
1691
  }, {
1633
1692
  name: string;
1634
1693
  options?: {
1694
+ issuer?: string | undefined;
1635
1695
  client_secret?: string | undefined;
1636
1696
  client_id?: string | undefined;
1637
1697
  scope?: string | undefined;
@@ -1639,13 +1699,17 @@ export declare const connectionInsertSchema: z.ZodObject<{
1639
1699
  team_id?: string | undefined;
1640
1700
  realms?: string | undefined;
1641
1701
  app_secret?: string | undefined;
1702
+ authorization_endpoint?: string | undefined;
1703
+ token_endpoint?: string | undefined;
1704
+ userinfo_endpoint?: string | undefined;
1705
+ jwks_uri?: string | undefined;
1706
+ discovery_url?: string | undefined;
1642
1707
  } | undefined;
1643
1708
  id?: string | undefined;
1644
1709
  response_type?: AuthorizationResponseType | undefined;
1645
1710
  response_mode?: AuthorizationResponseMode | undefined;
1646
1711
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1647
1712
  enabled_clients?: string[] | undefined;
1648
- authorization_endpoint?: string | undefined;
1649
1713
  }>;
1650
1714
  export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
1651
1715
  export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
@@ -1674,7 +1738,14 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1674
1738
  client_secret: z.ZodOptional<z.ZodString>;
1675
1739
  app_secret: z.ZodOptional<z.ZodString>;
1676
1740
  scope: z.ZodOptional<z.ZodString>;
1741
+ authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1742
+ token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1743
+ userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1744
+ jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1745
+ discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1746
+ issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1677
1747
  }, "strip", z.ZodTypeAny, {
1748
+ issuer?: string | undefined;
1678
1749
  client_secret?: string | undefined;
1679
1750
  client_id?: string | undefined;
1680
1751
  scope?: string | undefined;
@@ -1682,7 +1753,13 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1682
1753
  team_id?: string | undefined;
1683
1754
  realms?: string | undefined;
1684
1755
  app_secret?: string | undefined;
1756
+ authorization_endpoint?: string | undefined;
1757
+ token_endpoint?: string | undefined;
1758
+ userinfo_endpoint?: string | undefined;
1759
+ jwks_uri?: string | undefined;
1760
+ discovery_url?: string | undefined;
1685
1761
  }, {
1762
+ issuer?: string | undefined;
1686
1763
  client_secret?: string | undefined;
1687
1764
  client_id?: string | undefined;
1688
1765
  scope?: string | undefined;
@@ -1690,9 +1767,13 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1690
1767
  team_id?: string | undefined;
1691
1768
  realms?: string | undefined;
1692
1769
  app_secret?: string | undefined;
1770
+ authorization_endpoint?: string | undefined;
1771
+ token_endpoint?: string | undefined;
1772
+ userinfo_endpoint?: string | undefined;
1773
+ jwks_uri?: string | undefined;
1774
+ discovery_url?: string | undefined;
1693
1775
  }>>>;
1694
1776
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1695
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1696
1777
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1697
1778
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1698
1779
  }>, "strip", z.ZodTypeAny, {
@@ -1700,6 +1781,7 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1700
1781
  updated_at: string;
1701
1782
  name: string;
1702
1783
  options?: {
1784
+ issuer?: string | undefined;
1703
1785
  client_secret?: string | undefined;
1704
1786
  client_id?: string | undefined;
1705
1787
  scope?: string | undefined;
@@ -1707,18 +1789,23 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1707
1789
  team_id?: string | undefined;
1708
1790
  realms?: string | undefined;
1709
1791
  app_secret?: string | undefined;
1792
+ authorization_endpoint?: string | undefined;
1793
+ token_endpoint?: string | undefined;
1794
+ userinfo_endpoint?: string | undefined;
1795
+ jwks_uri?: string | undefined;
1796
+ discovery_url?: string | undefined;
1710
1797
  } | undefined;
1711
1798
  id?: string | undefined;
1712
1799
  response_type?: AuthorizationResponseType | undefined;
1713
1800
  response_mode?: AuthorizationResponseMode | undefined;
1714
1801
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1715
1802
  enabled_clients?: string[] | undefined;
1716
- authorization_endpoint?: string | undefined;
1717
1803
  }, {
1718
1804
  created_at: string;
1719
1805
  updated_at: string;
1720
1806
  name: string;
1721
1807
  options?: {
1808
+ issuer?: string | undefined;
1722
1809
  client_secret?: string | undefined;
1723
1810
  client_id?: string | undefined;
1724
1811
  scope?: string | undefined;
@@ -1726,13 +1813,17 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1726
1813
  team_id?: string | undefined;
1727
1814
  realms?: string | undefined;
1728
1815
  app_secret?: string | undefined;
1816
+ authorization_endpoint?: string | undefined;
1817
+ token_endpoint?: string | undefined;
1818
+ userinfo_endpoint?: string | undefined;
1819
+ jwks_uri?: string | undefined;
1820
+ discovery_url?: string | undefined;
1729
1821
  } | undefined;
1730
1822
  id?: string | undefined;
1731
1823
  response_type?: AuthorizationResponseType | undefined;
1732
1824
  response_mode?: AuthorizationResponseMode | undefined;
1733
1825
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1734
1826
  enabled_clients?: string[] | undefined;
1735
- authorization_endpoint?: string | undefined;
1736
1827
  }>;
1737
1828
  export type Connection = z.infer<typeof connectionSchema>;
1738
1829
  export declare const domainInsertSchema: z.ZodObject<{
@@ -2094,10 +2185,10 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
2094
2185
  issuer: string;
2095
2186
  authorization_endpoint: string;
2096
2187
  token_endpoint: string;
2097
- device_authorization_endpoint: string;
2098
2188
  userinfo_endpoint: string;
2099
- mfa_challenge_endpoint: string;
2100
2189
  jwks_uri: string;
2190
+ device_authorization_endpoint: string;
2191
+ mfa_challenge_endpoint: string;
2101
2192
  registration_endpoint: string;
2102
2193
  revocation_endpoint: string;
2103
2194
  scopes_supported: string[];
@@ -2115,10 +2206,10 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
2115
2206
  issuer: string;
2116
2207
  authorization_endpoint: string;
2117
2208
  token_endpoint: string;
2118
- device_authorization_endpoint: string;
2119
2209
  userinfo_endpoint: string;
2120
- mfa_challenge_endpoint: string;
2121
2210
  jwks_uri: string;
2211
+ device_authorization_endpoint: string;
2212
+ mfa_challenge_endpoint: string;
2122
2213
  registration_endpoint: string;
2123
2214
  revocation_endpoint: string;
2124
2215
  scopes_supported: string[];