authhero 4.53.0 → 4.55.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.
@@ -12881,19 +12881,34 @@ export declare const customDomainInsertSchema: z.ZodObject<{
12881
12881
  domain_metadata?: Record<string, string> | undefined;
12882
12882
  }>;
12883
12883
  export type CustomDomainInsert = z.infer<typeof customDomainInsertSchema>;
12884
- export declare const verificationMethodsSchema: z.ZodObject<{
12885
- name: z.ZodLiteral<"txt">;
12886
- record: z.ZodString;
12887
- domain: z.ZodString;
12888
- }, "strip", z.ZodTypeAny, {
12889
- name: "txt";
12890
- domain: string;
12891
- record: string;
12892
- }, {
12893
- name: "txt";
12894
- domain: string;
12895
- record: string;
12896
- }>;
12884
+ export declare const verificationMethodsSchema: z.ZodDiscriminatedUnion<"name", [
12885
+ z.ZodObject<{
12886
+ name: z.ZodLiteral<"txt">;
12887
+ record: z.ZodString;
12888
+ domain: z.ZodString;
12889
+ }, "strip", z.ZodTypeAny, {
12890
+ name: "txt";
12891
+ domain: string;
12892
+ record: string;
12893
+ }, {
12894
+ name: "txt";
12895
+ domain: string;
12896
+ record: string;
12897
+ }>,
12898
+ z.ZodObject<{
12899
+ name: z.ZodLiteral<"http">;
12900
+ http_body: z.ZodString;
12901
+ http_url: z.ZodString;
12902
+ }, "strip", z.ZodTypeAny, {
12903
+ name: "http";
12904
+ http_body: string;
12905
+ http_url: string;
12906
+ }, {
12907
+ name: "http";
12908
+ http_body: string;
12909
+ http_url: string;
12910
+ }>
12911
+ ]>;
12897
12912
  export type VerificationMethods = z.infer<typeof verificationMethodsSchema>;
12898
12913
  export declare const customDomainSchema: z.ZodObject<{
12899
12914
  custom_domain_id: z.ZodString;
@@ -12906,31 +12921,54 @@ export declare const customDomainSchema: z.ZodObject<{
12906
12921
  ]>;
12907
12922
  origin_domain_name: z.ZodOptional<z.ZodString>;
12908
12923
  verification: z.ZodOptional<z.ZodObject<{
12909
- methods: z.ZodArray<z.ZodObject<{
12910
- name: z.ZodLiteral<"txt">;
12911
- record: z.ZodString;
12912
- domain: z.ZodString;
12913
- }, "strip", z.ZodTypeAny, {
12914
- name: "txt";
12915
- domain: string;
12916
- record: string;
12917
- }, {
12918
- name: "txt";
12919
- domain: string;
12920
- record: string;
12921
- }>, "many">;
12924
+ methods: z.ZodArray<z.ZodDiscriminatedUnion<"name", [
12925
+ z.ZodObject<{
12926
+ name: z.ZodLiteral<"txt">;
12927
+ record: z.ZodString;
12928
+ domain: z.ZodString;
12929
+ }, "strip", z.ZodTypeAny, {
12930
+ name: "txt";
12931
+ domain: string;
12932
+ record: string;
12933
+ }, {
12934
+ name: "txt";
12935
+ domain: string;
12936
+ record: string;
12937
+ }>,
12938
+ z.ZodObject<{
12939
+ name: z.ZodLiteral<"http">;
12940
+ http_body: z.ZodString;
12941
+ http_url: z.ZodString;
12942
+ }, "strip", z.ZodTypeAny, {
12943
+ name: "http";
12944
+ http_body: string;
12945
+ http_url: string;
12946
+ }, {
12947
+ name: "http";
12948
+ http_body: string;
12949
+ http_url: string;
12950
+ }>
12951
+ ]>, "many">;
12922
12952
  }, "strip", z.ZodTypeAny, {
12923
- methods: {
12953
+ methods: ({
12924
12954
  name: "txt";
12925
12955
  domain: string;
12926
12956
  record: string;
12927
- }[];
12957
+ } | {
12958
+ name: "http";
12959
+ http_body: string;
12960
+ http_url: string;
12961
+ })[];
12928
12962
  }, {
12929
- methods: {
12963
+ methods: ({
12930
12964
  name: "txt";
12931
12965
  domain: string;
12932
12966
  record: string;
12933
- }[];
12967
+ } | {
12968
+ name: "http";
12969
+ http_body: string;
12970
+ http_url: string;
12971
+ })[];
12934
12972
  }>>;
12935
12973
  tls_policy: z.ZodOptional<z.ZodString>;
12936
12974
  domain: z.ZodString;
@@ -12956,11 +12994,15 @@ export declare const customDomainSchema: z.ZodObject<{
12956
12994
  domain: string;
12957
12995
  custom_domain_id: string;
12958
12996
  verification?: {
12959
- methods: {
12997
+ methods: ({
12960
12998
  name: "txt";
12961
12999
  domain: string;
12962
13000
  record: string;
12963
- }[];
13001
+ } | {
13002
+ name: "http";
13003
+ http_body: string;
13004
+ http_url: string;
13005
+ })[];
12964
13006
  } | undefined;
12965
13007
  verification_method?: "txt" | undefined;
12966
13008
  tls_policy?: string | undefined;
@@ -12974,11 +13016,15 @@ export declare const customDomainSchema: z.ZodObject<{
12974
13016
  domain: string;
12975
13017
  custom_domain_id: string;
12976
13018
  verification?: {
12977
- methods: {
13019
+ methods: ({
12978
13020
  name: "txt";
12979
13021
  domain: string;
12980
13022
  record: string;
12981
- }[];
13023
+ } | {
13024
+ name: "http";
13025
+ http_body: string;
13026
+ http_url: string;
13027
+ })[];
12982
13028
  } | undefined;
12983
13029
  verification_method?: "txt" | undefined;
12984
13030
  tls_policy?: string | undefined;
@@ -12998,31 +13044,54 @@ export declare const customDomainWithTenantIdSchema: z.ZodObject<{
12998
13044
  ]>;
12999
13045
  origin_domain_name: z.ZodOptional<z.ZodString>;
13000
13046
  verification: z.ZodOptional<z.ZodObject<{
13001
- methods: z.ZodArray<z.ZodObject<{
13002
- name: z.ZodLiteral<"txt">;
13003
- record: z.ZodString;
13004
- domain: z.ZodString;
13005
- }, "strip", z.ZodTypeAny, {
13006
- name: "txt";
13007
- domain: string;
13008
- record: string;
13009
- }, {
13010
- name: "txt";
13011
- domain: string;
13012
- record: string;
13013
- }>, "many">;
13047
+ methods: z.ZodArray<z.ZodDiscriminatedUnion<"name", [
13048
+ z.ZodObject<{
13049
+ name: z.ZodLiteral<"txt">;
13050
+ record: z.ZodString;
13051
+ domain: z.ZodString;
13052
+ }, "strip", z.ZodTypeAny, {
13053
+ name: "txt";
13054
+ domain: string;
13055
+ record: string;
13056
+ }, {
13057
+ name: "txt";
13058
+ domain: string;
13059
+ record: string;
13060
+ }>,
13061
+ z.ZodObject<{
13062
+ name: z.ZodLiteral<"http">;
13063
+ http_body: z.ZodString;
13064
+ http_url: z.ZodString;
13065
+ }, "strip", z.ZodTypeAny, {
13066
+ name: "http";
13067
+ http_body: string;
13068
+ http_url: string;
13069
+ }, {
13070
+ name: "http";
13071
+ http_body: string;
13072
+ http_url: string;
13073
+ }>
13074
+ ]>, "many">;
13014
13075
  }, "strip", z.ZodTypeAny, {
13015
- methods: {
13076
+ methods: ({
13016
13077
  name: "txt";
13017
13078
  domain: string;
13018
13079
  record: string;
13019
- }[];
13080
+ } | {
13081
+ name: "http";
13082
+ http_body: string;
13083
+ http_url: string;
13084
+ })[];
13020
13085
  }, {
13021
- methods: {
13086
+ methods: ({
13022
13087
  name: "txt";
13023
13088
  domain: string;
13024
13089
  record: string;
13025
- }[];
13090
+ } | {
13091
+ name: "http";
13092
+ http_body: string;
13093
+ http_url: string;
13094
+ })[];
13026
13095
  }>>;
13027
13096
  tls_policy: z.ZodOptional<z.ZodString>;
13028
13097
  domain: z.ZodString;
@@ -13051,11 +13120,15 @@ export declare const customDomainWithTenantIdSchema: z.ZodObject<{
13051
13120
  custom_domain_id: string;
13052
13121
  tenant_id: string;
13053
13122
  verification?: {
13054
- methods: {
13123
+ methods: ({
13055
13124
  name: "txt";
13056
13125
  domain: string;
13057
13126
  record: string;
13058
- }[];
13127
+ } | {
13128
+ name: "http";
13129
+ http_body: string;
13130
+ http_url: string;
13131
+ })[];
13059
13132
  } | undefined;
13060
13133
  verification_method?: "txt" | undefined;
13061
13134
  tls_policy?: string | undefined;
@@ -13070,11 +13143,15 @@ export declare const customDomainWithTenantIdSchema: z.ZodObject<{
13070
13143
  custom_domain_id: string;
13071
13144
  tenant_id: string;
13072
13145
  verification?: {
13073
- methods: {
13146
+ methods: ({
13074
13147
  name: "txt";
13075
13148
  domain: string;
13076
13149
  record: string;
13077
- }[];
13150
+ } | {
13151
+ name: "http";
13152
+ http_body: string;
13153
+ http_url: string;
13154
+ })[];
13078
13155
  } | undefined;
13079
13156
  verification_method?: "txt" | undefined;
13080
13157
  tls_policy?: string | undefined;
@@ -54071,11 +54148,15 @@ export declare function init(config: AuthHeroConfig): {
54071
54148
  domain: string;
54072
54149
  custom_domain_id: string;
54073
54150
  verification?: {
54074
- methods: {
54151
+ methods: ({
54075
54152
  name: "txt";
54076
54153
  domain: string;
54077
54154
  record: string;
54078
- }[];
54155
+ } | {
54156
+ name: "http";
54157
+ http_body: string;
54158
+ http_url: string;
54159
+ })[];
54079
54160
  } | undefined;
54080
54161
  verification_method?: "txt" | undefined | undefined;
54081
54162
  tls_policy?: string | undefined | undefined;
@@ -54108,11 +54189,15 @@ export declare function init(config: AuthHeroConfig): {
54108
54189
  domain: string;
54109
54190
  custom_domain_id: string;
54110
54191
  verification?: {
54111
- methods: {
54192
+ methods: ({
54112
54193
  name: "txt";
54113
54194
  domain: string;
54114
54195
  record: string;
54115
- }[];
54196
+ } | {
54197
+ name: "http";
54198
+ http_body: string;
54199
+ http_url: string;
54200
+ })[];
54116
54201
  } | undefined;
54117
54202
  verification_method?: "txt" | undefined | undefined;
54118
54203
  tls_policy?: string | undefined | undefined;
@@ -54162,11 +54247,15 @@ export declare function init(config: AuthHeroConfig): {
54162
54247
  domain?: string | undefined;
54163
54248
  custom_domain_id?: string | undefined;
54164
54249
  verification?: {
54165
- methods: {
54250
+ methods: ({
54166
54251
  name: "txt";
54167
54252
  domain: string;
54168
54253
  record: string;
54169
- }[];
54254
+ } | {
54255
+ name: "http";
54256
+ http_body: string;
54257
+ http_url: string;
54258
+ })[];
54170
54259
  } | undefined;
54171
54260
  verification_method?: "txt" | undefined;
54172
54261
  tls_policy?: string | undefined;
@@ -54182,11 +54271,15 @@ export declare function init(config: AuthHeroConfig): {
54182
54271
  domain: string;
54183
54272
  custom_domain_id: string;
54184
54273
  verification?: {
54185
- methods: {
54274
+ methods: ({
54186
54275
  name: "txt";
54187
54276
  domain: string;
54188
54277
  record: string;
54189
- }[];
54278
+ } | {
54279
+ name: "http";
54280
+ http_body: string;
54281
+ http_url: string;
54282
+ })[];
54190
54283
  } | undefined;
54191
54284
  verification_method?: "txt" | undefined | undefined;
54192
54285
  tls_policy?: string | undefined | undefined;
@@ -54225,11 +54318,15 @@ export declare function init(config: AuthHeroConfig): {
54225
54318
  domain: string;
54226
54319
  custom_domain_id: string;
54227
54320
  verification?: {
54228
- methods: {
54321
+ methods: ({
54229
54322
  name: "txt";
54230
54323
  domain: string;
54231
54324
  record: string;
54232
- }[];
54325
+ } | {
54326
+ name: "http";
54327
+ http_body: string;
54328
+ http_url: string;
54329
+ })[];
54233
54330
  } | undefined;
54234
54331
  verification_method?: "txt" | undefined | undefined;
54235
54332
  tls_policy?: string | undefined | undefined;
@@ -54262,11 +54359,15 @@ export declare function init(config: AuthHeroConfig): {
54262
54359
  domain: string;
54263
54360
  custom_domain_id: string;
54264
54361
  verification?: {
54265
- methods: {
54362
+ methods: ({
54266
54363
  name: "txt";
54267
54364
  domain: string;
54268
54365
  record: string;
54269
- }[];
54366
+ } | {
54367
+ name: "http";
54368
+ http_body: string;
54369
+ http_url: string;
54370
+ })[];
54270
54371
  } | undefined;
54271
54372
  verification_method?: "txt" | undefined | undefined;
54272
54373
  tls_policy?: string | undefined | undefined;
@@ -55632,6 +55733,20 @@ export declare function init(config: AuthHeroConfig): {
55632
55733
  status: 200;
55633
55734
  };
55634
55735
  };
55736
+ } & {
55737
+ "/*": {
55738
+ $get: {
55739
+ input: {};
55740
+ output: "Not Found";
55741
+ outputFormat: "text";
55742
+ status: 404;
55743
+ } | {
55744
+ input: {};
55745
+ output: string;
55746
+ outputFormat: "text";
55747
+ status: 200;
55748
+ };
55749
+ };
55635
55750
  }, "/.well-known"> & import("hono/types").MergeSchemaPath<{
55636
55751
  "/": {
55637
55752
  $get: {
@@ -56697,6 +56812,7 @@ export declare function init(config: AuthHeroConfig): {
56697
56812
  label?: string | undefined;
56698
56813
  hint?: string | undefined;
56699
56814
  }[];
56815
+ name?: string | undefined;
56700
56816
  description?: string | undefined;
56701
56817
  title?: string | undefined;
56702
56818
  links?: {
@@ -56809,6 +56925,7 @@ export declare function init(config: AuthHeroConfig): {
56809
56925
  label?: string | undefined;
56810
56926
  hint?: string | undefined;
56811
56927
  }[];
56928
+ name?: string | undefined;
56812
56929
  description?: string | undefined;
56813
56930
  title?: string | undefined;
56814
56931
  links?: {