authhero 0.116.0 → 0.118.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.
@@ -1184,7 +1184,7 @@ declare const ClientSchema: z.ZodObject<{
1184
1184
  id: z.ZodOptional<z.ZodString>;
1185
1185
  name: z.ZodString;
1186
1186
  strategy: z.ZodString;
1187
- options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1187
+ options: z.ZodDefault<z.ZodObject<{
1188
1188
  kid: z.ZodOptional<z.ZodString>;
1189
1189
  team_id: z.ZodOptional<z.ZodString>;
1190
1190
  realms: z.ZodOptional<z.ZodString>;
@@ -1192,12 +1192,12 @@ declare const ClientSchema: z.ZodObject<{
1192
1192
  client_secret: z.ZodOptional<z.ZodString>;
1193
1193
  app_secret: z.ZodOptional<z.ZodString>;
1194
1194
  scope: z.ZodOptional<z.ZodString>;
1195
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1196
- token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1197
- userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1198
- jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1199
- discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1200
- issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1195
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1196
+ token_endpoint: z.ZodOptional<z.ZodString>;
1197
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1198
+ jwks_uri: z.ZodOptional<z.ZodString>;
1199
+ discovery_url: z.ZodOptional<z.ZodString>;
1200
+ issuer: z.ZodOptional<z.ZodString>;
1201
1201
  provider: z.ZodOptional<z.ZodString>;
1202
1202
  from: z.ZodOptional<z.ZodString>;
1203
1203
  twilio_sid: z.ZodOptional<z.ZodString>;
@@ -1238,16 +1238,12 @@ declare const ClientSchema: z.ZodObject<{
1238
1238
  from?: string | undefined;
1239
1239
  twilio_sid?: string | undefined;
1240
1240
  twilio_token?: string | undefined;
1241
- }>>>;
1241
+ }>>;
1242
1242
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1243
1243
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1244
1244
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1245
1245
  }>, "strip", z.ZodTypeAny, {
1246
- created_at: string;
1247
- updated_at: string;
1248
- name: string;
1249
- strategy: string;
1250
- options?: {
1246
+ options: {
1251
1247
  provider?: string | undefined;
1252
1248
  issuer?: string | undefined;
1253
1249
  client_secret?: string | undefined;
@@ -1265,7 +1261,11 @@ declare const ClientSchema: z.ZodObject<{
1265
1261
  from?: string | undefined;
1266
1262
  twilio_sid?: string | undefined;
1267
1263
  twilio_token?: string | undefined;
1268
- } | undefined;
1264
+ };
1265
+ created_at: string;
1266
+ updated_at: string;
1267
+ name: string;
1268
+ strategy: string;
1269
1269
  id?: string | undefined;
1270
1270
  response_type?: AuthorizationResponseType | undefined;
1271
1271
  response_mode?: AuthorizationResponseMode | undefined;
@@ -1428,11 +1428,7 @@ declare const ClientSchema: z.ZodObject<{
1428
1428
  language?: string | undefined;
1429
1429
  };
1430
1430
  connections: {
1431
- created_at: string;
1432
- updated_at: string;
1433
- name: string;
1434
- strategy: string;
1435
- options?: {
1431
+ options: {
1436
1432
  provider?: string | undefined;
1437
1433
  issuer?: string | undefined;
1438
1434
  client_secret?: string | undefined;
@@ -1450,7 +1446,11 @@ declare const ClientSchema: z.ZodObject<{
1450
1446
  from?: string | undefined;
1451
1447
  twilio_sid?: string | undefined;
1452
1448
  twilio_token?: string | undefined;
1453
- } | undefined;
1449
+ };
1450
+ created_at: string;
1451
+ updated_at: string;
1452
+ name: string;
1453
+ strategy: string;
1454
1454
  id?: string | undefined;
1455
1455
  response_type?: AuthorizationResponseType | undefined;
1456
1456
  response_mode?: AuthorizationResponseMode | undefined;
@@ -1645,11 +1645,66 @@ export declare const codeSchema: z.ZodObject<{
1645
1645
  used_at?: string | undefined;
1646
1646
  }>;
1647
1647
  export type Code = z.infer<typeof codeSchema>;
1648
+ export declare const connectionOptionsSchema: z.ZodObject<{
1649
+ kid: z.ZodOptional<z.ZodString>;
1650
+ team_id: z.ZodOptional<z.ZodString>;
1651
+ realms: z.ZodOptional<z.ZodString>;
1652
+ client_id: z.ZodOptional<z.ZodString>;
1653
+ client_secret: z.ZodOptional<z.ZodString>;
1654
+ app_secret: z.ZodOptional<z.ZodString>;
1655
+ scope: z.ZodOptional<z.ZodString>;
1656
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1657
+ token_endpoint: z.ZodOptional<z.ZodString>;
1658
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1659
+ jwks_uri: z.ZodOptional<z.ZodString>;
1660
+ discovery_url: z.ZodOptional<z.ZodString>;
1661
+ issuer: z.ZodOptional<z.ZodString>;
1662
+ provider: z.ZodOptional<z.ZodString>;
1663
+ from: z.ZodOptional<z.ZodString>;
1664
+ twilio_sid: z.ZodOptional<z.ZodString>;
1665
+ twilio_token: z.ZodOptional<z.ZodString>;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ provider?: string | undefined;
1668
+ issuer?: string | undefined;
1669
+ client_secret?: string | undefined;
1670
+ client_id?: string | undefined;
1671
+ scope?: string | undefined;
1672
+ kid?: string | undefined;
1673
+ team_id?: string | undefined;
1674
+ realms?: string | undefined;
1675
+ app_secret?: string | undefined;
1676
+ authorization_endpoint?: string | undefined;
1677
+ token_endpoint?: string | undefined;
1678
+ userinfo_endpoint?: string | undefined;
1679
+ jwks_uri?: string | undefined;
1680
+ discovery_url?: string | undefined;
1681
+ from?: string | undefined;
1682
+ twilio_sid?: string | undefined;
1683
+ twilio_token?: string | undefined;
1684
+ }, {
1685
+ provider?: string | undefined;
1686
+ issuer?: string | undefined;
1687
+ client_secret?: string | undefined;
1688
+ client_id?: string | undefined;
1689
+ scope?: string | undefined;
1690
+ kid?: string | undefined;
1691
+ team_id?: string | undefined;
1692
+ realms?: string | undefined;
1693
+ app_secret?: string | undefined;
1694
+ authorization_endpoint?: string | undefined;
1695
+ token_endpoint?: string | undefined;
1696
+ userinfo_endpoint?: string | undefined;
1697
+ jwks_uri?: string | undefined;
1698
+ discovery_url?: string | undefined;
1699
+ from?: string | undefined;
1700
+ twilio_sid?: string | undefined;
1701
+ twilio_token?: string | undefined;
1702
+ }>;
1648
1703
  export declare const connectionInsertSchema: z.ZodObject<{
1649
1704
  id: z.ZodOptional<z.ZodString>;
1650
1705
  name: z.ZodString;
1651
1706
  strategy: z.ZodString;
1652
- options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1707
+ options: z.ZodDefault<z.ZodObject<{
1653
1708
  kid: z.ZodOptional<z.ZodString>;
1654
1709
  team_id: z.ZodOptional<z.ZodString>;
1655
1710
  realms: z.ZodOptional<z.ZodString>;
@@ -1657,12 +1712,12 @@ export declare const connectionInsertSchema: z.ZodObject<{
1657
1712
  client_secret: z.ZodOptional<z.ZodString>;
1658
1713
  app_secret: z.ZodOptional<z.ZodString>;
1659
1714
  scope: z.ZodOptional<z.ZodString>;
1660
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1661
- token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1662
- userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1663
- jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1664
- discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1665
- issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1715
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1716
+ token_endpoint: z.ZodOptional<z.ZodString>;
1717
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1718
+ jwks_uri: z.ZodOptional<z.ZodString>;
1719
+ discovery_url: z.ZodOptional<z.ZodString>;
1720
+ issuer: z.ZodOptional<z.ZodString>;
1666
1721
  provider: z.ZodOptional<z.ZodString>;
1667
1722
  from: z.ZodOptional<z.ZodString>;
1668
1723
  twilio_sid: z.ZodOptional<z.ZodString>;
@@ -1703,14 +1758,12 @@ export declare const connectionInsertSchema: z.ZodObject<{
1703
1758
  from?: string | undefined;
1704
1759
  twilio_sid?: string | undefined;
1705
1760
  twilio_token?: string | undefined;
1706
- }>>>;
1761
+ }>>;
1707
1762
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1708
1763
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1709
1764
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1710
1765
  }, "strip", z.ZodTypeAny, {
1711
- name: string;
1712
- strategy: string;
1713
- options?: {
1766
+ options: {
1714
1767
  provider?: string | undefined;
1715
1768
  issuer?: string | undefined;
1716
1769
  client_secret?: string | undefined;
@@ -1728,7 +1781,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
1728
1781
  from?: string | undefined;
1729
1782
  twilio_sid?: string | undefined;
1730
1783
  twilio_token?: string | undefined;
1731
- } | undefined;
1784
+ };
1785
+ name: string;
1786
+ strategy: string;
1732
1787
  id?: string | undefined;
1733
1788
  response_type?: AuthorizationResponseType | undefined;
1734
1789
  response_mode?: AuthorizationResponseMode | undefined;
@@ -1769,7 +1824,7 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1769
1824
  id: z.ZodOptional<z.ZodString>;
1770
1825
  name: z.ZodString;
1771
1826
  strategy: z.ZodString;
1772
- options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1827
+ options: z.ZodDefault<z.ZodObject<{
1773
1828
  kid: z.ZodOptional<z.ZodString>;
1774
1829
  team_id: z.ZodOptional<z.ZodString>;
1775
1830
  realms: z.ZodOptional<z.ZodString>;
@@ -1777,12 +1832,12 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1777
1832
  client_secret: z.ZodOptional<z.ZodString>;
1778
1833
  app_secret: z.ZodOptional<z.ZodString>;
1779
1834
  scope: z.ZodOptional<z.ZodString>;
1780
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1781
- token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1782
- userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1783
- jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1784
- discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1785
- issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1835
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1836
+ token_endpoint: z.ZodOptional<z.ZodString>;
1837
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1838
+ jwks_uri: z.ZodOptional<z.ZodString>;
1839
+ discovery_url: z.ZodOptional<z.ZodString>;
1840
+ issuer: z.ZodOptional<z.ZodString>;
1786
1841
  provider: z.ZodOptional<z.ZodString>;
1787
1842
  from: z.ZodOptional<z.ZodString>;
1788
1843
  twilio_sid: z.ZodOptional<z.ZodString>;
@@ -1823,16 +1878,12 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1823
1878
  from?: string | undefined;
1824
1879
  twilio_sid?: string | undefined;
1825
1880
  twilio_token?: string | undefined;
1826
- }>>>;
1881
+ }>>;
1827
1882
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1828
1883
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1829
1884
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1830
1885
  }>, "strip", z.ZodTypeAny, {
1831
- created_at: string;
1832
- updated_at: string;
1833
- name: string;
1834
- strategy: string;
1835
- options?: {
1886
+ options: {
1836
1887
  provider?: string | undefined;
1837
1888
  issuer?: string | undefined;
1838
1889
  client_secret?: string | undefined;
@@ -1850,7 +1901,11 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1850
1901
  from?: string | undefined;
1851
1902
  twilio_sid?: string | undefined;
1852
1903
  twilio_token?: string | undefined;
1853
- } | undefined;
1904
+ };
1905
+ created_at: string;
1906
+ updated_at: string;
1907
+ name: string;
1908
+ strategy: string;
1854
1909
  id?: string | undefined;
1855
1910
  response_type?: AuthorizationResponseType | undefined;
1856
1911
  response_mode?: AuthorizationResponseMode | undefined;
@@ -5452,11 +5507,7 @@ export declare function init(config: AuthHeroConfig): {
5452
5507
  };
5453
5508
  };
5454
5509
  output: {
5455
- created_at: string;
5456
- updated_at: string;
5457
- name: string;
5458
- strategy: string;
5459
- options?: {
5510
+ options: {
5460
5511
  provider?: string | undefined;
5461
5512
  issuer?: string | undefined;
5462
5513
  client_secret?: string | undefined;
@@ -5474,7 +5525,11 @@ export declare function init(config: AuthHeroConfig): {
5474
5525
  from?: string | undefined;
5475
5526
  twilio_sid?: string | undefined;
5476
5527
  twilio_token?: string | undefined;
5477
- } | undefined;
5528
+ };
5529
+ created_at: string;
5530
+ updated_at: string;
5531
+ name: string;
5532
+ strategy: string;
5478
5533
  id?: string | undefined;
5479
5534
  response_type?: AuthorizationResponseType | undefined;
5480
5535
  response_mode?: AuthorizationResponseMode | undefined;
@@ -5484,11 +5539,7 @@ export declare function init(config: AuthHeroConfig): {
5484
5539
  start: number;
5485
5540
  limit: number;
5486
5541
  connections: {
5487
- created_at: string;
5488
- updated_at: string;
5489
- name: string;
5490
- strategy: string;
5491
- options?: {
5542
+ options: {
5492
5543
  provider?: string | undefined;
5493
5544
  issuer?: string | undefined;
5494
5545
  client_secret?: string | undefined;
@@ -5506,7 +5557,11 @@ export declare function init(config: AuthHeroConfig): {
5506
5557
  from?: string | undefined;
5507
5558
  twilio_sid?: string | undefined;
5508
5559
  twilio_token?: string | undefined;
5509
- } | undefined;
5560
+ };
5561
+ created_at: string;
5562
+ updated_at: string;
5563
+ name: string;
5564
+ strategy: string;
5510
5565
  id?: string | undefined;
5511
5566
  response_type?: AuthorizationResponseType | undefined;
5512
5567
  response_mode?: AuthorizationResponseMode | undefined;
@@ -5530,11 +5585,7 @@ export declare function init(config: AuthHeroConfig): {
5530
5585
  };
5531
5586
  };
5532
5587
  output: {
5533
- created_at: string;
5534
- updated_at: string;
5535
- name: string;
5536
- strategy: string;
5537
- options?: {
5588
+ options: {
5538
5589
  provider?: string | undefined;
5539
5590
  issuer?: string | undefined;
5540
5591
  client_secret?: string | undefined;
@@ -5552,7 +5603,11 @@ export declare function init(config: AuthHeroConfig): {
5552
5603
  from?: string | undefined;
5553
5604
  twilio_sid?: string | undefined;
5554
5605
  twilio_token?: string | undefined;
5555
- } | undefined;
5606
+ };
5607
+ created_at: string;
5608
+ updated_at: string;
5609
+ name: string;
5610
+ strategy: string;
5556
5611
  id?: string | undefined;
5557
5612
  response_type?: AuthorizationResponseType | undefined;
5558
5613
  response_mode?: AuthorizationResponseMode | undefined;
@@ -5620,11 +5675,7 @@ export declare function init(config: AuthHeroConfig): {
5620
5675
  };
5621
5676
  };
5622
5677
  output: {
5623
- created_at: string;
5624
- updated_at: string;
5625
- name: string;
5626
- strategy: string;
5627
- options?: {
5678
+ options: {
5628
5679
  provider?: string | undefined;
5629
5680
  issuer?: string | undefined;
5630
5681
  client_secret?: string | undefined;
@@ -5642,7 +5693,11 @@ export declare function init(config: AuthHeroConfig): {
5642
5693
  from?: string | undefined;
5643
5694
  twilio_sid?: string | undefined;
5644
5695
  twilio_token?: string | undefined;
5645
- } | undefined;
5696
+ };
5697
+ created_at: string;
5698
+ updated_at: string;
5699
+ name: string;
5700
+ strategy: string;
5646
5701
  id?: string | undefined;
5647
5702
  response_type?: AuthorizationResponseType | undefined;
5648
5703
  response_mode?: AuthorizationResponseMode | undefined;
@@ -5689,11 +5744,7 @@ export declare function init(config: AuthHeroConfig): {
5689
5744
  };
5690
5745
  };
5691
5746
  output: {
5692
- created_at: string;
5693
- updated_at: string;
5694
- name: string;
5695
- strategy: string;
5696
- options?: {
5747
+ options: {
5697
5748
  provider?: string | undefined;
5698
5749
  issuer?: string | undefined;
5699
5750
  client_secret?: string | undefined;
@@ -5711,7 +5762,11 @@ export declare function init(config: AuthHeroConfig): {
5711
5762
  from?: string | undefined;
5712
5763
  twilio_sid?: string | undefined;
5713
5764
  twilio_token?: string | undefined;
5714
- } | undefined;
5765
+ };
5766
+ created_at: string;
5767
+ updated_at: string;
5768
+ name: string;
5769
+ strategy: string;
5715
5770
  id?: string | undefined;
5716
5771
  response_type?: AuthorizationResponseType | undefined;
5717
5772
  response_mode?: AuthorizationResponseMode | undefined;
@@ -6295,7 +6350,6 @@ export declare function init(config: AuthHeroConfig): {
6295
6350
  } & {
6296
6351
  json: {
6297
6352
  name?: string | undefined;
6298
- client_secret?: string | undefined;
6299
6353
  callbacks?: string[] | undefined;
6300
6354
  id?: string | undefined;
6301
6355
  disable_sign_ups?: boolean | undefined;
@@ -6324,6 +6378,7 @@ export declare function init(config: AuthHeroConfig): {
6324
6378
  } | undefined;
6325
6379
  } | undefined;
6326
6380
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
6381
+ client_secret?: string | undefined;
6327
6382
  };
6328
6383
  };
6329
6384
  output: {
@@ -6377,7 +6432,6 @@ export declare function init(config: AuthHeroConfig): {
6377
6432
  json: {
6378
6433
  name: string;
6379
6434
  id: string;
6380
- client_secret?: string | undefined;
6381
6435
  callbacks?: string[] | undefined;
6382
6436
  disable_sign_ups?: boolean | undefined;
6383
6437
  allowed_origins?: string[] | undefined;
@@ -6405,6 +6459,7 @@ export declare function init(config: AuthHeroConfig): {
6405
6459
  } | undefined;
6406
6460
  } | undefined;
6407
6461
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
6462
+ client_secret?: string | undefined;
6408
6463
  };
6409
6464
  };
6410
6465
  output: {
@@ -6413,7 +6468,6 @@ export declare function init(config: AuthHeroConfig): {
6413
6468
  created_at: string;
6414
6469
  updated_at: string;
6415
6470
  disable_sign_ups: boolean;
6416
- client_secret?: string | undefined;
6417
6471
  callbacks?: string[] | undefined;
6418
6472
  allowed_origins?: string[] | undefined;
6419
6473
  web_origins?: string[] | undefined;
@@ -6442,6 +6496,7 @@ export declare function init(config: AuthHeroConfig): {
6442
6496
  } | undefined;
6443
6497
  } | undefined;
6444
6498
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
6499
+ client_secret?: string | undefined;
6445
6500
  };
6446
6501
  outputFormat: "json";
6447
6502
  status: 201;
@@ -7690,9 +7745,9 @@ export declare function init(config: AuthHeroConfig): {
7690
7745
  form: {
7691
7746
  grant_type: "client_credentials";
7692
7747
  client_id?: string | undefined;
7693
- client_secret?: string | undefined;
7694
7748
  audience?: string | undefined;
7695
7749
  scope?: string | undefined;
7750
+ client_secret?: string | undefined;
7696
7751
  } | {
7697
7752
  code: string;
7698
7753
  client_id: string;
@@ -8056,7 +8111,6 @@ export declare function init(config: AuthHeroConfig): {
8056
8111
  } & {
8057
8112
  form: {
8058
8113
  username: string;
8059
- act_as?: string | undefined;
8060
8114
  login_selection?: "code" | "password" | undefined;
8061
8115
  };
8062
8116
  };