authhero 0.99.2 → 0.100.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 +33 -33
- package/dist/authhero.d.ts +97 -0
- package/dist/authhero.mjs +2561 -2550
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -1946,6 +1946,102 @@ export declare const customDomainSchema: z.ZodObject<{
|
|
|
1946
1946
|
} | undefined;
|
|
1947
1947
|
}>;
|
|
1948
1948
|
export type CustomDomain = z.infer<typeof customDomainSchema>;
|
|
1949
|
+
export declare const customDomainWithTenantIdSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1950
|
+
custom_domain_id: z.ZodString;
|
|
1951
|
+
primary: z.ZodBoolean;
|
|
1952
|
+
status: z.ZodEnum<[
|
|
1953
|
+
"disabled",
|
|
1954
|
+
"pending",
|
|
1955
|
+
"pending_verification",
|
|
1956
|
+
"ready"
|
|
1957
|
+
]>;
|
|
1958
|
+
origin_domain_name: z.ZodOptional<z.ZodString>;
|
|
1959
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
1960
|
+
methods: z.ZodArray<z.ZodObject<{
|
|
1961
|
+
name: z.ZodLiteral<"txt">;
|
|
1962
|
+
record: z.ZodString;
|
|
1963
|
+
domain: z.ZodString;
|
|
1964
|
+
}, "strip", z.ZodTypeAny, {
|
|
1965
|
+
name: "txt";
|
|
1966
|
+
domain: string;
|
|
1967
|
+
record: string;
|
|
1968
|
+
}, {
|
|
1969
|
+
name: "txt";
|
|
1970
|
+
domain: string;
|
|
1971
|
+
record: string;
|
|
1972
|
+
}>, "many">;
|
|
1973
|
+
}, "strip", z.ZodTypeAny, {
|
|
1974
|
+
methods: {
|
|
1975
|
+
name: "txt";
|
|
1976
|
+
domain: string;
|
|
1977
|
+
record: string;
|
|
1978
|
+
}[];
|
|
1979
|
+
}, {
|
|
1980
|
+
methods: {
|
|
1981
|
+
name: "txt";
|
|
1982
|
+
domain: string;
|
|
1983
|
+
record: string;
|
|
1984
|
+
}[];
|
|
1985
|
+
}>>;
|
|
1986
|
+
tls_policy: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
domain: z.ZodString;
|
|
1988
|
+
type: z.ZodEnum<[
|
|
1989
|
+
"auth0_managed_certs",
|
|
1990
|
+
"self_managed_certs"
|
|
1991
|
+
]>;
|
|
1992
|
+
verification_method: z.ZodOptional<z.ZodEnum<[
|
|
1993
|
+
"txt"
|
|
1994
|
+
]>>;
|
|
1995
|
+
custom_client_ip_header: z.ZodOptional<z.ZodEnum<[
|
|
1996
|
+
"true-client-ip",
|
|
1997
|
+
"cf-connecting-ip",
|
|
1998
|
+
"x-forwarded-for",
|
|
1999
|
+
"x-azure-clientip",
|
|
2000
|
+
"null"
|
|
2001
|
+
]>>;
|
|
2002
|
+
domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2003
|
+
}, {
|
|
2004
|
+
tenant_id: z.ZodString;
|
|
2005
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2006
|
+
type: "auth0_managed_certs" | "self_managed_certs";
|
|
2007
|
+
status: "disabled" | "pending" | "pending_verification" | "ready";
|
|
2008
|
+
primary: boolean;
|
|
2009
|
+
domain: string;
|
|
2010
|
+
custom_domain_id: string;
|
|
2011
|
+
tenant_id: string;
|
|
2012
|
+
verification_method?: "txt" | undefined;
|
|
2013
|
+
tls_policy?: string | undefined;
|
|
2014
|
+
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
2015
|
+
domain_metadata?: Record<string, string> | undefined;
|
|
2016
|
+
origin_domain_name?: string | undefined;
|
|
2017
|
+
verification?: {
|
|
2018
|
+
methods: {
|
|
2019
|
+
name: "txt";
|
|
2020
|
+
domain: string;
|
|
2021
|
+
record: string;
|
|
2022
|
+
}[];
|
|
2023
|
+
} | undefined;
|
|
2024
|
+
}, {
|
|
2025
|
+
type: "auth0_managed_certs" | "self_managed_certs";
|
|
2026
|
+
status: "disabled" | "pending" | "pending_verification" | "ready";
|
|
2027
|
+
primary: boolean;
|
|
2028
|
+
domain: string;
|
|
2029
|
+
custom_domain_id: string;
|
|
2030
|
+
tenant_id: string;
|
|
2031
|
+
verification_method?: "txt" | undefined;
|
|
2032
|
+
tls_policy?: string | undefined;
|
|
2033
|
+
custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
|
|
2034
|
+
domain_metadata?: Record<string, string> | undefined;
|
|
2035
|
+
origin_domain_name?: string | undefined;
|
|
2036
|
+
verification?: {
|
|
2037
|
+
methods: {
|
|
2038
|
+
name: "txt";
|
|
2039
|
+
domain: string;
|
|
2040
|
+
record: string;
|
|
2041
|
+
}[];
|
|
2042
|
+
} | undefined;
|
|
2043
|
+
}>;
|
|
2044
|
+
export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
|
|
1949
2045
|
export declare const hookInsertSchema: z.ZodObject<{
|
|
1950
2046
|
trigger_id: z.ZodEnum<[
|
|
1951
2047
|
"pre-user-signup",
|
|
@@ -4653,6 +4749,7 @@ export interface ConnectionsAdapter {
|
|
|
4653
4749
|
export interface CustomDomainsAdapter {
|
|
4654
4750
|
create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
|
|
4655
4751
|
get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
|
|
4752
|
+
getByDomain: (domain: string) => Promise<CustomDomainWithTenantId | null>;
|
|
4656
4753
|
list: (tenant_id: string) => Promise<CustomDomain[]>;
|
|
4657
4754
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
4658
4755
|
update: (tenant_id: string, id: string, custom_domain: Partial<CustomDomain>) => Promise<boolean>;
|