authhero 0.109.0 → 0.110.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.
- package/dist/authhero.cjs +31 -31
- package/dist/authhero.d.ts +84 -5
- package/dist/authhero.mjs +2756 -2711
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -1184,6 +1184,9 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1184
1184
|
discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1185
1185
|
issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1186
1186
|
provider: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
twilio_token: z.ZodOptional<z.ZodString>;
|
|
1187
1190
|
}, "strip", z.ZodTypeAny, {
|
|
1188
1191
|
provider?: string | undefined;
|
|
1189
1192
|
issuer?: string | undefined;
|
|
@@ -1199,6 +1202,9 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1199
1202
|
userinfo_endpoint?: string | undefined;
|
|
1200
1203
|
jwks_uri?: string | undefined;
|
|
1201
1204
|
discovery_url?: string | undefined;
|
|
1205
|
+
from?: string | undefined;
|
|
1206
|
+
twilio_sid?: string | undefined;
|
|
1207
|
+
twilio_token?: string | undefined;
|
|
1202
1208
|
}, {
|
|
1203
1209
|
provider?: string | undefined;
|
|
1204
1210
|
issuer?: string | undefined;
|
|
@@ -1214,6 +1220,9 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1214
1220
|
userinfo_endpoint?: string | undefined;
|
|
1215
1221
|
jwks_uri?: string | undefined;
|
|
1216
1222
|
discovery_url?: string | undefined;
|
|
1223
|
+
from?: string | undefined;
|
|
1224
|
+
twilio_sid?: string | undefined;
|
|
1225
|
+
twilio_token?: string | undefined;
|
|
1217
1226
|
}>>>;
|
|
1218
1227
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1219
1228
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
@@ -1238,6 +1247,9 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1238
1247
|
userinfo_endpoint?: string | undefined;
|
|
1239
1248
|
jwks_uri?: string | undefined;
|
|
1240
1249
|
discovery_url?: string | undefined;
|
|
1250
|
+
from?: string | undefined;
|
|
1251
|
+
twilio_sid?: string | undefined;
|
|
1252
|
+
twilio_token?: string | undefined;
|
|
1241
1253
|
} | undefined;
|
|
1242
1254
|
id?: string | undefined;
|
|
1243
1255
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -1263,6 +1275,9 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1263
1275
|
userinfo_endpoint?: string | undefined;
|
|
1264
1276
|
jwks_uri?: string | undefined;
|
|
1265
1277
|
discovery_url?: string | undefined;
|
|
1278
|
+
from?: string | undefined;
|
|
1279
|
+
twilio_sid?: string | undefined;
|
|
1280
|
+
twilio_token?: string | undefined;
|
|
1266
1281
|
} | undefined;
|
|
1267
1282
|
id?: string | undefined;
|
|
1268
1283
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -1417,6 +1432,9 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1417
1432
|
userinfo_endpoint?: string | undefined;
|
|
1418
1433
|
jwks_uri?: string | undefined;
|
|
1419
1434
|
discovery_url?: string | undefined;
|
|
1435
|
+
from?: string | undefined;
|
|
1436
|
+
twilio_sid?: string | undefined;
|
|
1437
|
+
twilio_token?: string | undefined;
|
|
1420
1438
|
} | undefined;
|
|
1421
1439
|
id?: string | undefined;
|
|
1422
1440
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -1489,6 +1507,9 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1489
1507
|
userinfo_endpoint?: string | undefined;
|
|
1490
1508
|
jwks_uri?: string | undefined;
|
|
1491
1509
|
discovery_url?: string | undefined;
|
|
1510
|
+
from?: string | undefined;
|
|
1511
|
+
twilio_sid?: string | undefined;
|
|
1512
|
+
twilio_token?: string | undefined;
|
|
1492
1513
|
} | undefined;
|
|
1493
1514
|
id?: string | undefined;
|
|
1494
1515
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -1628,6 +1649,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1628
1649
|
discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1629
1650
|
issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1630
1651
|
provider: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
twilio_token: z.ZodOptional<z.ZodString>;
|
|
1631
1655
|
}, "strip", z.ZodTypeAny, {
|
|
1632
1656
|
provider?: string | undefined;
|
|
1633
1657
|
issuer?: string | undefined;
|
|
@@ -1643,6 +1667,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1643
1667
|
userinfo_endpoint?: string | undefined;
|
|
1644
1668
|
jwks_uri?: string | undefined;
|
|
1645
1669
|
discovery_url?: string | undefined;
|
|
1670
|
+
from?: string | undefined;
|
|
1671
|
+
twilio_sid?: string | undefined;
|
|
1672
|
+
twilio_token?: string | undefined;
|
|
1646
1673
|
}, {
|
|
1647
1674
|
provider?: string | undefined;
|
|
1648
1675
|
issuer?: string | undefined;
|
|
@@ -1658,6 +1685,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1658
1685
|
userinfo_endpoint?: string | undefined;
|
|
1659
1686
|
jwks_uri?: string | undefined;
|
|
1660
1687
|
discovery_url?: string | undefined;
|
|
1688
|
+
from?: string | undefined;
|
|
1689
|
+
twilio_sid?: string | undefined;
|
|
1690
|
+
twilio_token?: string | undefined;
|
|
1661
1691
|
}>>>;
|
|
1662
1692
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1663
1693
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
@@ -1680,6 +1710,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1680
1710
|
userinfo_endpoint?: string | undefined;
|
|
1681
1711
|
jwks_uri?: string | undefined;
|
|
1682
1712
|
discovery_url?: string | undefined;
|
|
1713
|
+
from?: string | undefined;
|
|
1714
|
+
twilio_sid?: string | undefined;
|
|
1715
|
+
twilio_token?: string | undefined;
|
|
1683
1716
|
} | undefined;
|
|
1684
1717
|
id?: string | undefined;
|
|
1685
1718
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -1703,6 +1736,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1703
1736
|
userinfo_endpoint?: string | undefined;
|
|
1704
1737
|
jwks_uri?: string | undefined;
|
|
1705
1738
|
discovery_url?: string | undefined;
|
|
1739
|
+
from?: string | undefined;
|
|
1740
|
+
twilio_sid?: string | undefined;
|
|
1741
|
+
twilio_token?: string | undefined;
|
|
1706
1742
|
} | undefined;
|
|
1707
1743
|
id?: string | undefined;
|
|
1708
1744
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -1733,6 +1769,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1733
1769
|
discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1734
1770
|
issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1735
1771
|
provider: z.ZodOptional<z.ZodString>;
|
|
1772
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1773
|
+
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
1774
|
+
twilio_token: z.ZodOptional<z.ZodString>;
|
|
1736
1775
|
}, "strip", z.ZodTypeAny, {
|
|
1737
1776
|
provider?: string | undefined;
|
|
1738
1777
|
issuer?: string | undefined;
|
|
@@ -1748,6 +1787,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1748
1787
|
userinfo_endpoint?: string | undefined;
|
|
1749
1788
|
jwks_uri?: string | undefined;
|
|
1750
1789
|
discovery_url?: string | undefined;
|
|
1790
|
+
from?: string | undefined;
|
|
1791
|
+
twilio_sid?: string | undefined;
|
|
1792
|
+
twilio_token?: string | undefined;
|
|
1751
1793
|
}, {
|
|
1752
1794
|
provider?: string | undefined;
|
|
1753
1795
|
issuer?: string | undefined;
|
|
@@ -1763,6 +1805,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1763
1805
|
userinfo_endpoint?: string | undefined;
|
|
1764
1806
|
jwks_uri?: string | undefined;
|
|
1765
1807
|
discovery_url?: string | undefined;
|
|
1808
|
+
from?: string | undefined;
|
|
1809
|
+
twilio_sid?: string | undefined;
|
|
1810
|
+
twilio_token?: string | undefined;
|
|
1766
1811
|
}>>>;
|
|
1767
1812
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1768
1813
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
@@ -1787,6 +1832,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1787
1832
|
userinfo_endpoint?: string | undefined;
|
|
1788
1833
|
jwks_uri?: string | undefined;
|
|
1789
1834
|
discovery_url?: string | undefined;
|
|
1835
|
+
from?: string | undefined;
|
|
1836
|
+
twilio_sid?: string | undefined;
|
|
1837
|
+
twilio_token?: string | undefined;
|
|
1790
1838
|
} | undefined;
|
|
1791
1839
|
id?: string | undefined;
|
|
1792
1840
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -1812,6 +1860,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1812
1860
|
userinfo_endpoint?: string | undefined;
|
|
1813
1861
|
jwks_uri?: string | undefined;
|
|
1814
1862
|
discovery_url?: string | undefined;
|
|
1863
|
+
from?: string | undefined;
|
|
1864
|
+
twilio_sid?: string | undefined;
|
|
1865
|
+
twilio_token?: string | undefined;
|
|
1815
1866
|
} | undefined;
|
|
1816
1867
|
id?: string | undefined;
|
|
1817
1868
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -3226,7 +3277,8 @@ export declare enum GrantType {
|
|
|
3226
3277
|
AuthorizationCode = "authorization_code",
|
|
3227
3278
|
ClientCredential = "client_credentials",
|
|
3228
3279
|
Passwordless = "passwordless",
|
|
3229
|
-
Password = "password"
|
|
3280
|
+
Password = "password",
|
|
3281
|
+
OTP = "http://auth0.com/oauth/grant-type/passwordless/otp"
|
|
3230
3282
|
}
|
|
3231
3283
|
export declare const tokenResponseSchema: z.ZodObject<{
|
|
3232
3284
|
access_token: z.ZodString;
|
|
@@ -5405,6 +5457,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5405
5457
|
userinfo_endpoint?: string | undefined;
|
|
5406
5458
|
jwks_uri?: string | undefined;
|
|
5407
5459
|
discovery_url?: string | undefined;
|
|
5460
|
+
from?: string | undefined;
|
|
5461
|
+
twilio_sid?: string | undefined;
|
|
5462
|
+
twilio_token?: string | undefined;
|
|
5408
5463
|
} | undefined;
|
|
5409
5464
|
id?: string | undefined;
|
|
5410
5465
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -5434,6 +5489,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5434
5489
|
userinfo_endpoint?: string | undefined;
|
|
5435
5490
|
jwks_uri?: string | undefined;
|
|
5436
5491
|
discovery_url?: string | undefined;
|
|
5492
|
+
from?: string | undefined;
|
|
5493
|
+
twilio_sid?: string | undefined;
|
|
5494
|
+
twilio_token?: string | undefined;
|
|
5437
5495
|
} | undefined;
|
|
5438
5496
|
id?: string | undefined;
|
|
5439
5497
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -5477,6 +5535,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5477
5535
|
userinfo_endpoint?: string | undefined;
|
|
5478
5536
|
jwks_uri?: string | undefined;
|
|
5479
5537
|
discovery_url?: string | undefined;
|
|
5538
|
+
from?: string | undefined;
|
|
5539
|
+
twilio_sid?: string | undefined;
|
|
5540
|
+
twilio_token?: string | undefined;
|
|
5480
5541
|
} | undefined;
|
|
5481
5542
|
id?: string | undefined;
|
|
5482
5543
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -5533,6 +5594,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5533
5594
|
userinfo_endpoint?: string | undefined;
|
|
5534
5595
|
jwks_uri?: string | undefined;
|
|
5535
5596
|
discovery_url?: string | undefined;
|
|
5597
|
+
from?: string | undefined;
|
|
5598
|
+
twilio_sid?: string | undefined;
|
|
5599
|
+
twilio_token?: string | undefined;
|
|
5536
5600
|
} | undefined;
|
|
5537
5601
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
5538
5602
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -5561,6 +5625,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5561
5625
|
userinfo_endpoint?: string | undefined;
|
|
5562
5626
|
jwks_uri?: string | undefined;
|
|
5563
5627
|
discovery_url?: string | undefined;
|
|
5628
|
+
from?: string | undefined;
|
|
5629
|
+
twilio_sid?: string | undefined;
|
|
5630
|
+
twilio_token?: string | undefined;
|
|
5564
5631
|
} | undefined;
|
|
5565
5632
|
id?: string | undefined;
|
|
5566
5633
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -5597,6 +5664,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5597
5664
|
userinfo_endpoint?: string | undefined;
|
|
5598
5665
|
jwks_uri?: string | undefined;
|
|
5599
5666
|
discovery_url?: string | undefined;
|
|
5667
|
+
from?: string | undefined;
|
|
5668
|
+
twilio_sid?: string | undefined;
|
|
5669
|
+
twilio_token?: string | undefined;
|
|
5600
5670
|
} | undefined;
|
|
5601
5671
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
5602
5672
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -5624,6 +5694,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5624
5694
|
userinfo_endpoint?: string | undefined;
|
|
5625
5695
|
jwks_uri?: string | undefined;
|
|
5626
5696
|
discovery_url?: string | undefined;
|
|
5697
|
+
from?: string | undefined;
|
|
5698
|
+
twilio_sid?: string | undefined;
|
|
5699
|
+
twilio_token?: string | undefined;
|
|
5627
5700
|
} | undefined;
|
|
5628
5701
|
id?: string | undefined;
|
|
5629
5702
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -7405,12 +7478,12 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7405
7478
|
scope?: string | undefined;
|
|
7406
7479
|
login_ticket?: string | undefined;
|
|
7407
7480
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
7481
|
+
realm?: string | undefined;
|
|
7408
7482
|
code_challenge?: string | undefined;
|
|
7409
7483
|
organization?: string | undefined;
|
|
7410
7484
|
prompt?: string | undefined;
|
|
7411
7485
|
ui_locales?: string | undefined;
|
|
7412
7486
|
vendor_id?: string | undefined;
|
|
7413
|
-
realm?: string | undefined;
|
|
7414
7487
|
login_hint?: string | undefined;
|
|
7415
7488
|
max_age?: string | undefined;
|
|
7416
7489
|
};
|
|
@@ -7433,12 +7506,12 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7433
7506
|
scope?: string | undefined;
|
|
7434
7507
|
login_ticket?: string | undefined;
|
|
7435
7508
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
7509
|
+
realm?: string | undefined;
|
|
7436
7510
|
code_challenge?: string | undefined;
|
|
7437
7511
|
organization?: string | undefined;
|
|
7438
7512
|
prompt?: string | undefined;
|
|
7439
7513
|
ui_locales?: string | undefined;
|
|
7440
7514
|
vendor_id?: string | undefined;
|
|
7441
|
-
realm?: string | undefined;
|
|
7442
7515
|
login_hint?: string | undefined;
|
|
7443
7516
|
max_age?: string | undefined;
|
|
7444
7517
|
};
|
|
@@ -7456,15 +7529,15 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7456
7529
|
client_id: string;
|
|
7457
7530
|
username: string;
|
|
7458
7531
|
otp: string;
|
|
7459
|
-
credential_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
|
|
7460
7532
|
realm: "email";
|
|
7533
|
+
credential_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
|
|
7461
7534
|
scope?: string | undefined;
|
|
7462
7535
|
} | {
|
|
7463
7536
|
password: string;
|
|
7464
7537
|
client_id: string;
|
|
7465
7538
|
username: string;
|
|
7466
|
-
credential_type: "http://auth0.com/oauth/grant-type/password-realm";
|
|
7467
7539
|
realm: "Username-Password-Authentication";
|
|
7540
|
+
credential_type: "http://auth0.com/oauth/grant-type/password-realm";
|
|
7468
7541
|
scope?: string | undefined;
|
|
7469
7542
|
};
|
|
7470
7543
|
};
|
|
@@ -7614,6 +7687,12 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7614
7687
|
refresh_token: string;
|
|
7615
7688
|
grant_type: "refresh_token";
|
|
7616
7689
|
redirect_uri?: string | undefined;
|
|
7690
|
+
} | {
|
|
7691
|
+
client_id: string;
|
|
7692
|
+
username: string;
|
|
7693
|
+
otp: string;
|
|
7694
|
+
grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
|
|
7695
|
+
realm: "email" | "sms";
|
|
7617
7696
|
};
|
|
7618
7697
|
};
|
|
7619
7698
|
output: {
|