authhero 0.74.0 → 0.74.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.
- package/dist/authhero.cjs +33 -33
- package/dist/authhero.d.ts +86 -79
- package/dist/authhero.mjs +2072 -2069
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -1130,25 +1130,6 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
1130
1130
|
}>;
|
|
1131
1131
|
export type Branding = z.infer<typeof brandingSchema>;
|
|
1132
1132
|
declare const ClientSchema: z.ZodObject<{
|
|
1133
|
-
domains: z.ZodArray<z.ZodObject<{
|
|
1134
|
-
domain: z.ZodString;
|
|
1135
|
-
dkim_private_key: z.ZodOptional<z.ZodString>;
|
|
1136
|
-
dkim_public_key: z.ZodOptional<z.ZodString>;
|
|
1137
|
-
email_api_key: z.ZodOptional<z.ZodString>;
|
|
1138
|
-
email_service: z.ZodOptional<z.ZodString>;
|
|
1139
|
-
}, "strip", z.ZodTypeAny, {
|
|
1140
|
-
domain: string;
|
|
1141
|
-
dkim_private_key?: string | undefined;
|
|
1142
|
-
dkim_public_key?: string | undefined;
|
|
1143
|
-
email_api_key?: string | undefined;
|
|
1144
|
-
email_service?: string | undefined;
|
|
1145
|
-
}, {
|
|
1146
|
-
domain: string;
|
|
1147
|
-
dkim_private_key?: string | undefined;
|
|
1148
|
-
dkim_public_key?: string | undefined;
|
|
1149
|
-
email_api_key?: string | undefined;
|
|
1150
|
-
email_service?: string | undefined;
|
|
1151
|
-
}>, "many">;
|
|
1152
1133
|
tenant: z.ZodObject<{
|
|
1153
1134
|
id: z.ZodString;
|
|
1154
1135
|
name: z.ZodString;
|
|
@@ -1406,13 +1387,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1406
1387
|
name: string;
|
|
1407
1388
|
id: string;
|
|
1408
1389
|
disable_sign_ups: boolean;
|
|
1409
|
-
domains: {
|
|
1410
|
-
domain: string;
|
|
1411
|
-
dkim_private_key?: string | undefined;
|
|
1412
|
-
dkim_public_key?: string | undefined;
|
|
1413
|
-
email_api_key?: string | undefined;
|
|
1414
|
-
email_service?: string | undefined;
|
|
1415
|
-
}[];
|
|
1416
1390
|
tenant: {
|
|
1417
1391
|
created_at: string;
|
|
1418
1392
|
updated_at: string;
|
|
@@ -1484,13 +1458,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1484
1458
|
updated_at: string;
|
|
1485
1459
|
name: string;
|
|
1486
1460
|
id: string;
|
|
1487
|
-
domains: {
|
|
1488
|
-
domain: string;
|
|
1489
|
-
dkim_private_key?: string | undefined;
|
|
1490
|
-
dkim_public_key?: string | undefined;
|
|
1491
|
-
email_api_key?: string | undefined;
|
|
1492
|
-
email_service?: string | undefined;
|
|
1493
|
-
}[];
|
|
1494
1461
|
tenant: {
|
|
1495
1462
|
created_at: string;
|
|
1496
1463
|
updated_at: string;
|
|
@@ -1844,56 +1811,96 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1844
1811
|
enabled_clients?: string[] | undefined;
|
|
1845
1812
|
}>;
|
|
1846
1813
|
export type Connection = z.infer<typeof connectionSchema>;
|
|
1847
|
-
export declare const
|
|
1814
|
+
export declare const customDomainInsertSchema: z.ZodObject<{
|
|
1848
1815
|
domain: z.ZodString;
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1816
|
+
type: z.ZodEnum<[
|
|
1817
|
+
"auth0_managed_certs",
|
|
1818
|
+
"self_managed_certs"
|
|
1819
|
+
]>;
|
|
1820
|
+
verification_method: z.ZodOptional<z.ZodEnum<[
|
|
1821
|
+
"txt"
|
|
1822
|
+
]>>;
|
|
1823
|
+
tls_policy: z.ZodOptional<z.ZodEnum<[
|
|
1824
|
+
"recommended"
|
|
1825
|
+
]>>;
|
|
1826
|
+
custom_client_ip_header: z.ZodOptional<z.ZodEnum<[
|
|
1827
|
+
"true-client-ip",
|
|
1828
|
+
"cf-connecting-ip",
|
|
1829
|
+
"x-forwarded-for",
|
|
1830
|
+
"x-azure-clientip",
|
|
1831
|
+
"null"
|
|
1832
|
+
]>>;
|
|
1833
|
+
domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1853
1834
|
}, "strip", z.ZodTypeAny, {
|
|
1835
|
+
type: "auth0_managed_certs" | "self_managed_certs";
|
|
1854
1836
|
domain: string;
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1837
|
+
verification_method?: "txt" | undefined;
|
|
1838
|
+
tls_policy?: "recommended" | undefined;
|
|
1839
|
+
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
1840
|
+
domain_metadata?: Record<string, string> | undefined;
|
|
1859
1841
|
}, {
|
|
1842
|
+
type: "auth0_managed_certs" | "self_managed_certs";
|
|
1860
1843
|
domain: string;
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1844
|
+
verification_method?: "txt" | undefined;
|
|
1845
|
+
tls_policy?: "recommended" | undefined;
|
|
1846
|
+
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
1847
|
+
domain_metadata?: Record<string, string> | undefined;
|
|
1865
1848
|
}>;
|
|
1866
|
-
export type
|
|
1867
|
-
export declare const
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1849
|
+
export type CustomDomainInsert = z.infer<typeof customDomainInsertSchema>;
|
|
1850
|
+
export declare const customDomainSchema: z.ZodObject<{
|
|
1851
|
+
custom_domain_id: z.ZodString;
|
|
1852
|
+
primary: z.ZodBoolean;
|
|
1853
|
+
status: z.ZodEnum<[
|
|
1854
|
+
"disabled",
|
|
1855
|
+
"pending",
|
|
1856
|
+
"pending_verification",
|
|
1857
|
+
"ready"
|
|
1858
|
+
]>;
|
|
1859
|
+
origin_domain_name: z.ZodOptional<z.ZodString>;
|
|
1860
|
+
verification: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
1861
|
+
tls_policy: z.ZodOptional<z.ZodString>;
|
|
1872
1862
|
domain: z.ZodString;
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1863
|
+
type: z.ZodEnum<[
|
|
1864
|
+
"auth0_managed_certs",
|
|
1865
|
+
"self_managed_certs"
|
|
1866
|
+
]>;
|
|
1867
|
+
verification_method: z.ZodOptional<z.ZodEnum<[
|
|
1868
|
+
"txt"
|
|
1869
|
+
]>>;
|
|
1870
|
+
custom_client_ip_header: z.ZodOptional<z.ZodEnum<[
|
|
1871
|
+
"true-client-ip",
|
|
1872
|
+
"cf-connecting-ip",
|
|
1873
|
+
"x-forwarded-for",
|
|
1874
|
+
"x-azure-clientip",
|
|
1875
|
+
"null"
|
|
1876
|
+
]>>;
|
|
1877
|
+
domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1878
|
+
}, "strip", z.ZodTypeAny, {
|
|
1879
|
+
type: "auth0_managed_certs" | "self_managed_certs";
|
|
1880
|
+
status: "disabled" | "pending" | "pending_verification" | "ready";
|
|
1881
|
+
primary: boolean;
|
|
1881
1882
|
domain: string;
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1883
|
+
custom_domain_id: string;
|
|
1884
|
+
verification_method?: "txt" | undefined;
|
|
1885
|
+
tls_policy?: string | undefined;
|
|
1886
|
+
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
1887
|
+
domain_metadata?: Record<string, string> | undefined;
|
|
1888
|
+
origin_domain_name?: string | undefined;
|
|
1889
|
+
verification?: {} | undefined;
|
|
1886
1890
|
}, {
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1891
|
+
type: "auth0_managed_certs" | "self_managed_certs";
|
|
1892
|
+
status: "disabled" | "pending" | "pending_verification" | "ready";
|
|
1893
|
+
primary: boolean;
|
|
1890
1894
|
domain: string;
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
+
custom_domain_id: string;
|
|
1896
|
+
verification_method?: "txt" | undefined;
|
|
1897
|
+
tls_policy?: string | undefined;
|
|
1898
|
+
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
1899
|
+
domain_metadata?: Record<string, string> | undefined;
|
|
1900
|
+
origin_domain_name?: string | undefined;
|
|
1901
|
+
verification?: {} | undefined;
|
|
1895
1902
|
}>;
|
|
1896
|
-
export type
|
|
1903
|
+
export type CustomDomain = z.infer<typeof customDomainSchema>;
|
|
1897
1904
|
export declare const hookInsertSchema: z.ZodObject<{
|
|
1898
1905
|
trigger_id: z.ZodEnum<[
|
|
1899
1906
|
"pre-user-signup",
|
|
@@ -4570,12 +4577,12 @@ export interface ConnectionsAdapter {
|
|
|
4570
4577
|
update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
|
|
4571
4578
|
list(tenant_id: string, params?: ListParams): Promise<ListConnectionsResponse>;
|
|
4572
4579
|
}
|
|
4573
|
-
export interface
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4580
|
+
export interface CustomDomainsAdapter {
|
|
4581
|
+
create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
|
|
4582
|
+
get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
|
|
4583
|
+
list: (tenant_id: string) => Promise<CustomDomain[]>;
|
|
4584
|
+
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
4585
|
+
update: (tenant_id: string, id: string, custom_domain: Partial<CustomDomain>) => Promise<boolean>;
|
|
4579
4586
|
}
|
|
4580
4587
|
export interface KeysAdapter {
|
|
4581
4588
|
create: (key: SigningKey) => Promise<void>;
|
|
@@ -4636,7 +4643,7 @@ export interface DataAdapters {
|
|
|
4636
4643
|
clients: ClientsAdapter;
|
|
4637
4644
|
codes: CodesAdapter;
|
|
4638
4645
|
connections: ConnectionsAdapter;
|
|
4639
|
-
|
|
4646
|
+
customDomains: CustomDomainsAdapter;
|
|
4640
4647
|
emailProviders: EmailProvidersAdapter;
|
|
4641
4648
|
hooks: HooksAdapter;
|
|
4642
4649
|
keys: KeysAdapter;
|