authhero 0.99.1 → 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.
@@ -1840,6 +1840,20 @@ export declare const customDomainInsertSchema: z.ZodObject<{
1840
1840
  domain_metadata?: Record<string, string> | undefined;
1841
1841
  }>;
1842
1842
  export type CustomDomainInsert = z.infer<typeof customDomainInsertSchema>;
1843
+ export declare const verificationMethodsSchema: z.ZodObject<{
1844
+ name: z.ZodLiteral<"txt">;
1845
+ record: z.ZodString;
1846
+ domain: z.ZodString;
1847
+ }, "strip", z.ZodTypeAny, {
1848
+ name: "txt";
1849
+ domain: string;
1850
+ record: string;
1851
+ }, {
1852
+ name: "txt";
1853
+ domain: string;
1854
+ record: string;
1855
+ }>;
1856
+ export type VerificationMethods = z.infer<typeof verificationMethodsSchema>;
1843
1857
  export declare const customDomainSchema: z.ZodObject<{
1844
1858
  custom_domain_id: z.ZodString;
1845
1859
  primary: z.ZodBoolean;
@@ -1850,7 +1864,33 @@ export declare const customDomainSchema: z.ZodObject<{
1850
1864
  "ready"
1851
1865
  ]>;
1852
1866
  origin_domain_name: z.ZodOptional<z.ZodString>;
1853
- verification: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
1867
+ verification: z.ZodOptional<z.ZodObject<{
1868
+ methods: z.ZodArray<z.ZodObject<{
1869
+ name: z.ZodLiteral<"txt">;
1870
+ record: z.ZodString;
1871
+ domain: z.ZodString;
1872
+ }, "strip", z.ZodTypeAny, {
1873
+ name: "txt";
1874
+ domain: string;
1875
+ record: string;
1876
+ }, {
1877
+ name: "txt";
1878
+ domain: string;
1879
+ record: string;
1880
+ }>, "many">;
1881
+ }, "strip", z.ZodTypeAny, {
1882
+ methods: {
1883
+ name: "txt";
1884
+ domain: string;
1885
+ record: string;
1886
+ }[];
1887
+ }, {
1888
+ methods: {
1889
+ name: "txt";
1890
+ domain: string;
1891
+ record: string;
1892
+ }[];
1893
+ }>>;
1854
1894
  tls_policy: z.ZodOptional<z.ZodString>;
1855
1895
  domain: z.ZodString;
1856
1896
  type: z.ZodEnum<[
@@ -1879,7 +1919,13 @@ export declare const customDomainSchema: z.ZodObject<{
1879
1919
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
1880
1920
  domain_metadata?: Record<string, string> | undefined;
1881
1921
  origin_domain_name?: string | undefined;
1882
- verification?: {} | undefined;
1922
+ verification?: {
1923
+ methods: {
1924
+ name: "txt";
1925
+ domain: string;
1926
+ record: string;
1927
+ }[];
1928
+ } | undefined;
1883
1929
  }, {
1884
1930
  type: "auth0_managed_certs" | "self_managed_certs";
1885
1931
  status: "disabled" | "pending" | "pending_verification" | "ready";
@@ -1891,9 +1937,111 @@ export declare const customDomainSchema: z.ZodObject<{
1891
1937
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
1892
1938
  domain_metadata?: Record<string, string> | undefined;
1893
1939
  origin_domain_name?: string | undefined;
1894
- verification?: {} | undefined;
1940
+ verification?: {
1941
+ methods: {
1942
+ name: "txt";
1943
+ domain: string;
1944
+ record: string;
1945
+ }[];
1946
+ } | undefined;
1895
1947
  }>;
1896
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>;
1897
2045
  export declare const hookInsertSchema: z.ZodObject<{
1898
2046
  trigger_id: z.ZodEnum<[
1899
2047
  "pre-user-signup",
@@ -4601,6 +4749,7 @@ export interface ConnectionsAdapter {
4601
4749
  export interface CustomDomainsAdapter {
4602
4750
  create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
4603
4751
  get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
4752
+ getByDomain: (domain: string) => Promise<CustomDomainWithTenantId | null>;
4604
4753
  list: (tenant_id: string) => Promise<CustomDomain[]>;
4605
4754
  remove: (tenant_id: string, id: string) => Promise<boolean>;
4606
4755
  update: (tenant_id: string, id: string, custom_domain: Partial<CustomDomain>) => Promise<boolean>;
@@ -6705,7 +6854,13 @@ export declare function init(config: AuthHeroConfig): {
6705
6854
  [x: string]: string;
6706
6855
  } | undefined;
6707
6856
  origin_domain_name?: string | undefined;
6708
- verification?: {} | undefined;
6857
+ verification?: {
6858
+ methods: {
6859
+ name: "txt";
6860
+ domain: string;
6861
+ record: string;
6862
+ }[];
6863
+ } | undefined;
6709
6864
  }[];
6710
6865
  outputFormat: "json" | "text";
6711
6866
  status: 200;
@@ -6736,7 +6891,13 @@ export declare function init(config: AuthHeroConfig): {
6736
6891
  [x: string]: string;
6737
6892
  } | undefined;
6738
6893
  origin_domain_name?: string | undefined;
6739
- verification?: {} | undefined;
6894
+ verification?: {
6895
+ methods: {
6896
+ name: "txt";
6897
+ domain: string;
6898
+ record: string;
6899
+ }[];
6900
+ } | undefined;
6740
6901
  };
6741
6902
  outputFormat: "json" | "text";
6742
6903
  status: 200;
@@ -6782,7 +6943,13 @@ export declare function init(config: AuthHeroConfig): {
6782
6943
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
6783
6944
  domain_metadata?: Record<string, string> | undefined;
6784
6945
  origin_domain_name?: string | undefined;
6785
- verification?: {} | undefined;
6946
+ verification?: {
6947
+ methods: {
6948
+ name: "txt";
6949
+ domain: string;
6950
+ record: string;
6951
+ }[];
6952
+ } | undefined;
6786
6953
  };
6787
6954
  };
6788
6955
  output: {
@@ -6798,7 +6965,13 @@ export declare function init(config: AuthHeroConfig): {
6798
6965
  [x: string]: string;
6799
6966
  } | undefined;
6800
6967
  origin_domain_name?: string | undefined;
6801
- verification?: {} | undefined;
6968
+ verification?: {
6969
+ methods: {
6970
+ name: "txt";
6971
+ domain: string;
6972
+ record: string;
6973
+ }[];
6974
+ } | undefined;
6802
6975
  };
6803
6976
  outputFormat: "json" | "text";
6804
6977
  status: 200;
@@ -6835,7 +7008,13 @@ export declare function init(config: AuthHeroConfig): {
6835
7008
  [x: string]: string;
6836
7009
  } | undefined;
6837
7010
  origin_domain_name?: string | undefined;
6838
- verification?: {} | undefined;
7011
+ verification?: {
7012
+ methods: {
7013
+ name: "txt";
7014
+ domain: string;
7015
+ record: string;
7016
+ }[];
7017
+ } | undefined;
6839
7018
  };
6840
7019
  outputFormat: "json" | "text";
6841
7020
  status: 201;
@@ -6866,7 +7045,13 @@ export declare function init(config: AuthHeroConfig): {
6866
7045
  [x: string]: string;
6867
7046
  } | undefined;
6868
7047
  origin_domain_name?: string | undefined;
6869
- verification?: {} | undefined;
7048
+ verification?: {
7049
+ methods: {
7050
+ name: "txt";
7051
+ domain: string;
7052
+ record: string;
7053
+ }[];
7054
+ } | undefined;
6870
7055
  };
6871
7056
  outputFormat: "json" | "text";
6872
7057
  status: 200;