authhero 8.25.1 → 8.26.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.
Files changed (41) hide show
  1. package/dist/authhero.cjs +249 -249
  2. package/dist/authhero.d.ts +149 -121
  3. package/dist/authhero.mjs +11147 -13195
  4. package/dist/tsconfig.types.tsbuildinfo +1 -1
  5. package/dist/types/authentication-flows/passwordless.d.ts +6 -6
  6. package/dist/types/helpers/codes-cleanup.d.ts +28 -0
  7. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  8. package/dist/types/index.d.ts +120 -118
  9. package/dist/types/routes/auth-api/index.d.ts +29 -29
  10. package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
  11. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  12. package/dist/types/routes/auth-api/token.d.ts +10 -10
  13. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  14. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  15. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  16. package/dist/types/routes/management-api/branding.d.ts +9 -9
  17. package/dist/types/routes/management-api/clients.d.ts +14 -14
  18. package/dist/types/routes/management-api/connections.d.ts +15 -15
  19. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  20. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  21. package/dist/types/routes/management-api/hook-code.d.ts +2 -2
  22. package/dist/types/routes/management-api/index.d.ts +82 -82
  23. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  24. package/dist/types/routes/management-api/logs.d.ts +4 -4
  25. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  26. package/dist/types/routes/management-api/organizations.d.ts +1 -1
  27. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  28. package/dist/types/routes/management-api/roles.d.ts +1 -1
  29. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  30. package/dist/types/routes/management-api/tenants.d.ts +3 -3
  31. package/dist/types/routes/management-api/themes.d.ts +6 -6
  32. package/dist/types/routes/management-api/users.d.ts +2 -2
  33. package/dist/types/routes/universal-login/common.d.ts +12 -12
  34. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  35. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  36. package/dist/types/routes/universal-login/index.d.ts +2 -2
  37. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  38. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  39. package/dist/types/types/IdToken.d.ts +4 -4
  40. package/dist/types/utils/jwks.d.ts +2 -2
  41. package/package.json +6 -6
@@ -82,7 +82,7 @@ export declare const connectionRoutes: OpenAPIHono<{
82
82
  active?: boolean | undefined;
83
83
  } | undefined;
84
84
  signup?: {
85
- status?: "optional" | "required" | "disabled" | undefined;
85
+ status?: "required" | "optional" | "disabled" | undefined;
86
86
  verification?: {
87
87
  active?: boolean | undefined;
88
88
  } | undefined;
@@ -99,7 +99,7 @@ export declare const connectionRoutes: OpenAPIHono<{
99
99
  active?: boolean | undefined;
100
100
  } | undefined;
101
101
  signup?: {
102
- status?: "optional" | "required" | "disabled" | undefined;
102
+ status?: "required" | "optional" | "disabled" | undefined;
103
103
  } | undefined;
104
104
  validation?: {
105
105
  max_length?: number | undefined;
@@ -116,7 +116,7 @@ export declare const connectionRoutes: OpenAPIHono<{
116
116
  active?: boolean | undefined;
117
117
  } | undefined;
118
118
  signup?: {
119
- status?: "optional" | "required" | "disabled" | undefined;
119
+ status?: "required" | "optional" | "disabled" | undefined;
120
120
  } | undefined;
121
121
  } | undefined;
122
122
  } | undefined;
@@ -216,7 +216,7 @@ export declare const connectionRoutes: OpenAPIHono<{
216
216
  active?: boolean | undefined;
217
217
  } | undefined;
218
218
  signup?: {
219
- status?: "optional" | "required" | "disabled" | undefined;
219
+ status?: "required" | "optional" | "disabled" | undefined;
220
220
  verification?: {
221
221
  active?: boolean | undefined;
222
222
  } | undefined;
@@ -233,7 +233,7 @@ export declare const connectionRoutes: OpenAPIHono<{
233
233
  active?: boolean | undefined;
234
234
  } | undefined;
235
235
  signup?: {
236
- status?: "optional" | "required" | "disabled" | undefined;
236
+ status?: "required" | "optional" | "disabled" | undefined;
237
237
  } | undefined;
238
238
  validation?: {
239
239
  max_length?: number | undefined;
@@ -250,7 +250,7 @@ export declare const connectionRoutes: OpenAPIHono<{
250
250
  active?: boolean | undefined;
251
251
  } | undefined;
252
252
  signup?: {
253
- status?: "optional" | "required" | "disabled" | undefined;
253
+ status?: "required" | "optional" | "disabled" | undefined;
254
254
  } | undefined;
255
255
  } | undefined;
256
256
  } | undefined;
@@ -366,7 +366,7 @@ export declare const connectionRoutes: OpenAPIHono<{
366
366
  active?: boolean | undefined;
367
367
  } | undefined;
368
368
  signup?: {
369
- status?: "optional" | "required" | "disabled" | undefined;
369
+ status?: "required" | "optional" | "disabled" | undefined;
370
370
  verification?: {
371
371
  active?: boolean | undefined;
372
372
  } | undefined;
@@ -383,7 +383,7 @@ export declare const connectionRoutes: OpenAPIHono<{
383
383
  active?: boolean | undefined;
384
384
  } | undefined;
385
385
  signup?: {
386
- status?: "optional" | "required" | "disabled" | undefined;
386
+ status?: "required" | "optional" | "disabled" | undefined;
387
387
  } | undefined;
388
388
  validation?: {
389
389
  max_length?: number | undefined;
@@ -400,7 +400,7 @@ export declare const connectionRoutes: OpenAPIHono<{
400
400
  active?: boolean | undefined;
401
401
  } | undefined;
402
402
  signup?: {
403
- status?: "optional" | "required" | "disabled" | undefined;
403
+ status?: "required" | "optional" | "disabled" | undefined;
404
404
  } | undefined;
405
405
  } | undefined;
406
406
  } | undefined;
@@ -545,7 +545,7 @@ export declare const connectionRoutes: OpenAPIHono<{
545
545
  active?: boolean | undefined;
546
546
  } | undefined;
547
547
  signup?: {
548
- status?: "optional" | "required" | "disabled" | undefined;
548
+ status?: "required" | "optional" | "disabled" | undefined;
549
549
  verification?: {
550
550
  active?: boolean | undefined;
551
551
  } | undefined;
@@ -562,7 +562,7 @@ export declare const connectionRoutes: OpenAPIHono<{
562
562
  active?: boolean | undefined;
563
563
  } | undefined;
564
564
  signup?: {
565
- status?: "optional" | "required" | "disabled" | undefined;
565
+ status?: "required" | "optional" | "disabled" | undefined;
566
566
  } | undefined;
567
567
  validation?: {
568
568
  max_length?: number | undefined;
@@ -579,7 +579,7 @@ export declare const connectionRoutes: OpenAPIHono<{
579
579
  active?: boolean | undefined;
580
580
  } | undefined;
581
581
  signup?: {
582
- status?: "optional" | "required" | "disabled" | undefined;
582
+ status?: "required" | "optional" | "disabled" | undefined;
583
583
  } | undefined;
584
584
  } | undefined;
585
585
  } | undefined;
@@ -703,7 +703,7 @@ export declare const connectionRoutes: OpenAPIHono<{
703
703
  active?: boolean | undefined;
704
704
  } | undefined;
705
705
  signup?: {
706
- status?: "optional" | "required" | "disabled" | undefined;
706
+ status?: "required" | "optional" | "disabled" | undefined;
707
707
  verification?: {
708
708
  active?: boolean | undefined;
709
709
  } | undefined;
@@ -720,7 +720,7 @@ export declare const connectionRoutes: OpenAPIHono<{
720
720
  active?: boolean | undefined;
721
721
  } | undefined;
722
722
  signup?: {
723
- status?: "optional" | "required" | "disabled" | undefined;
723
+ status?: "required" | "optional" | "disabled" | undefined;
724
724
  } | undefined;
725
725
  validation?: {
726
726
  max_length?: number | undefined;
@@ -737,7 +737,7 @@ export declare const connectionRoutes: OpenAPIHono<{
737
737
  active?: boolean | undefined;
738
738
  } | undefined;
739
739
  signup?: {
740
- status?: "optional" | "required" | "disabled" | undefined;
740
+ status?: "required" | "optional" | "disabled" | undefined;
741
741
  } | undefined;
742
742
  } | undefined;
743
743
  } | undefined;
@@ -28,7 +28,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
28
28
  type: "auth0_managed_certs" | "self_managed_certs";
29
29
  custom_domain_id: string;
30
30
  primary: boolean;
31
- status: "disabled" | "pending" | "ready" | "pending_verification";
31
+ status: "pending" | "ready" | "disabled" | "pending_verification";
32
32
  verification_method?: "txt" | undefined;
33
33
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
34
34
  domain_metadata?: {
@@ -69,7 +69,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
69
69
  type: "auth0_managed_certs" | "self_managed_certs";
70
70
  custom_domain_id: string;
71
71
  primary: boolean;
72
- status: "disabled" | "pending" | "ready" | "pending_verification";
72
+ status: "pending" | "ready" | "disabled" | "pending_verification";
73
73
  verification_method?: "txt" | undefined;
74
74
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
75
75
  domain_metadata?: {
@@ -133,7 +133,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
133
133
  type: "auth0_managed_certs" | "self_managed_certs";
134
134
  custom_domain_id: string;
135
135
  primary: boolean;
136
- status: "disabled" | "pending" | "ready" | "pending_verification";
136
+ status: "pending" | "ready" | "disabled" | "pending_verification";
137
137
  verification_method?: "txt" | undefined;
138
138
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
139
139
  domain_metadata?: {
@@ -180,7 +180,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
180
180
  type: "auth0_managed_certs" | "self_managed_certs";
181
181
  custom_domain_id: string;
182
182
  primary: boolean;
183
- status: "disabled" | "pending" | "ready" | "pending_verification";
183
+ status: "pending" | "ready" | "disabled" | "pending_verification";
184
184
  verification_method?: "txt" | undefined;
185
185
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
186
186
  domain_metadata?: {
@@ -226,7 +226,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
226
226
  type: "auth0_managed_certs" | "self_managed_certs";
227
227
  custom_domain_id: string;
228
228
  primary: boolean;
229
- status: "disabled" | "pending" | "ready" | "pending_verification";
229
+ status: "pending" | "ready" | "disabled" | "pending_verification";
230
230
  verification_method?: "txt" | undefined;
231
231
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
232
232
  domain_metadata?: {
@@ -267,7 +267,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
267
267
  type: "auth0_managed_certs" | "self_managed_certs";
268
268
  custom_domain_id: string;
269
269
  primary: boolean;
270
- status: "disabled" | "pending" | "ready" | "pending_verification";
270
+ status: "pending" | "ready" | "disabled" | "pending_verification";
271
271
  verification_method?: "txt" | undefined;
272
272
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
273
273
  domain_metadata?: {
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
12
12
  };
13
13
  };
14
14
  output: {
15
- name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
15
+ name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
16
16
  enabled: boolean;
17
17
  trial_expired?: boolean | undefined;
18
18
  }[];
@@ -167,7 +167,7 @@ export declare const guardianRoutes: OpenAPIHono<{
167
167
  $get: {
168
168
  input: {
169
169
  param: {
170
- factor_name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
170
+ factor_name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
171
171
  };
172
172
  } & {
173
173
  header: {
@@ -175,7 +175,7 @@ export declare const guardianRoutes: OpenAPIHono<{
175
175
  };
176
176
  };
177
177
  output: {
178
- name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
178
+ name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
179
179
  enabled: boolean;
180
180
  trial_expired?: boolean | undefined;
181
181
  };
@@ -188,7 +188,7 @@ export declare const guardianRoutes: OpenAPIHono<{
188
188
  $put: {
189
189
  input: {
190
190
  param: {
191
- factor_name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
191
+ factor_name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
192
192
  };
193
193
  } & {
194
194
  header: {
@@ -200,7 +200,7 @@ export declare const guardianRoutes: OpenAPIHono<{
200
200
  };
201
201
  };
202
202
  output: {
203
- name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
203
+ name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
204
204
  enabled: boolean;
205
205
  trial_expired?: boolean | undefined;
206
206
  };
@@ -22,7 +22,7 @@ export declare const hookCodeRoutes: OpenAPIHono<{
22
22
  tenant_id: string;
23
23
  created_at: string;
24
24
  updated_at: string;
25
- deploymentStatus: "failed" | "deployed" | "not_required";
25
+ deploymentStatus: "deployed" | "failed" | "not_required";
26
26
  secrets?: {
27
27
  [x: string]: string;
28
28
  } | undefined;
@@ -112,7 +112,7 @@ export declare const hookCodeRoutes: OpenAPIHono<{
112
112
  tenant_id: string;
113
113
  created_at: string;
114
114
  updated_at: string;
115
- deploymentStatus: "failed" | "deployed" | "not_required";
115
+ deploymentStatus: "deployed" | "failed" | "not_required";
116
116
  secrets?: {
117
117
  [x: string]: string;
118
118
  } | undefined;