authhero 5.20.0 → 5.21.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.
Files changed (43) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +101 -101
  3. package/dist/authhero.d.ts +168 -102
  4. package/dist/authhero.mjs +8703 -8635
  5. package/dist/stats.html +1 -1
  6. package/dist/tsconfig.types.tsbuildinfo +1 -1
  7. package/dist/types/authentication-flows/common.d.ts +1 -1
  8. package/dist/types/authentication-flows/passwordless.d.ts +12 -3
  9. package/dist/types/helpers/client.d.ts +23 -3
  10. package/dist/types/helpers/logging.d.ts +7 -0
  11. package/dist/types/index.d.ts +98 -96
  12. package/dist/types/provisioning/index.d.ts +2 -0
  13. package/dist/types/provisioning/noop-provisioner.d.ts +11 -0
  14. package/dist/types/provisioning/provisioner.d.ts +25 -0
  15. package/dist/types/routes/auth-api/index.d.ts +12 -12
  16. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  17. package/dist/types/routes/auth-api/well-known.d.ts +2 -2
  18. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  19. package/dist/types/routes/management-api/actions.d.ts +3 -3
  20. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  21. package/dist/types/routes/management-api/custom-domains.d.ts +7 -7
  22. package/dist/types/routes/management-api/email-templates.d.ts +35 -35
  23. package/dist/types/routes/management-api/emails.d.ts +2 -2
  24. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  25. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  26. package/dist/types/routes/management-api/hook-code.d.ts +2 -2
  27. package/dist/types/routes/management-api/index.d.ts +72 -72
  28. package/dist/types/routes/management-api/logs.d.ts +3 -3
  29. package/dist/types/routes/management-api/organizations.d.ts +4 -4
  30. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  31. package/dist/types/routes/management-api/tenants.d.ts +33 -6
  32. package/dist/types/routes/management-api/users.d.ts +2 -2
  33. package/dist/types/routes/universal-login/common.d.ts +48 -12
  34. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  35. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  36. package/dist/types/routes/universal-login/index.d.ts +4 -4
  37. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  38. package/dist/types/routes/universal-login/u2-index.d.ts +8 -8
  39. package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
  40. package/dist/types/types/AuthHeroConfig.d.ts +12 -0
  41. package/dist/types/utils/email.d.ts +2 -0
  42. package/dist/types/utils/jwks.d.ts +4 -4
  43. package/package.json +5 -5
@@ -0,0 +1,2 @@
1
+ export { NoopTenantProvisioner } from "./noop-provisioner";
2
+ export type { TenantProvisioner, TenantProvisionerContext, } from "./provisioner";
@@ -0,0 +1,11 @@
1
+ import type { Tenant } from "@authhero/adapter-interfaces";
2
+ import type { TenantProvisioner, TenantProvisionerContext } from "./provisioner";
3
+ /**
4
+ * Default provisioner. Flips `provisioning_state` to `"ready"` and clears any
5
+ * prior error, doing nothing else. Correct for `deployment_type: "shared"`
6
+ * tenants (the historical default) and useful as a stand-in until the
7
+ * Cloudflare WFP provisioner is wired in.
8
+ */
9
+ export declare class NoopTenantProvisioner implements TenantProvisioner {
10
+ provision(tenant: Tenant, ctx: TenantProvisionerContext): Promise<void>;
11
+ }
@@ -0,0 +1,25 @@
1
+ import type { Tenant, TenantsDataAdapter } from "@authhero/adapter-interfaces";
2
+ export interface TenantProvisionerContext {
3
+ tenants: TenantsDataAdapter;
4
+ }
5
+ /**
6
+ * Drives a tenant from `provisioning_state: "pending"` to `"ready"` or
7
+ * `"failed"`. Owns whatever side effects are required to make the tenant
8
+ * actually serve traffic — creating a D1, uploading a worker to a dispatch
9
+ * namespace, wiring secrets, etc. — and writes the resulting state back via
10
+ * `ctx.tenants.update(...)`.
11
+ *
12
+ * Contract:
13
+ * - Implementations MUST be idempotent. The same tenant may be passed in
14
+ * twice if a previous run crashed mid-flight, the API is retried, or an
15
+ * operator manually re-triggers provisioning.
16
+ * - `provision()` MUST resolve (not reject) even on failure. Errors should
17
+ * be captured into `provisioning_error` and the state set to `"failed"`
18
+ * so the admin UI can render a useful message.
19
+ * - `provision()` should be safe to schedule via `ctx.executionCtx.waitUntil`
20
+ * on Cloudflare Workers — it must not depend on the originating request
21
+ * surviving.
22
+ */
23
+ export interface TenantProvisioner {
24
+ provision(tenant: Tenant, ctx: TenantProvisionerContext): Promise<void>;
25
+ }
@@ -723,19 +723,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
723
723
  email: string;
724
724
  send: "code" | "link";
725
725
  authParams: {
726
- username?: string | undefined;
726
+ code_challenge?: string | undefined;
727
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
728
+ redirect_uri?: string | undefined;
729
+ nonce?: string | undefined;
727
730
  state?: string | undefined;
728
731
  act_as?: string | undefined;
729
732
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
730
733
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
731
- redirect_uri?: string | undefined;
732
734
  audience?: string | undefined;
733
735
  organization?: string | undefined;
734
- nonce?: string | undefined;
735
736
  scope?: string | undefined;
736
737
  prompt?: string | undefined;
737
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
738
- code_challenge?: string | undefined;
738
+ username?: string | undefined;
739
739
  ui_locales?: string | undefined;
740
740
  max_age?: number | undefined;
741
741
  acr_values?: string | undefined;
@@ -759,19 +759,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
759
759
  phone_number: string;
760
760
  send: "code" | "link";
761
761
  authParams: {
762
- username?: string | undefined;
762
+ code_challenge?: string | undefined;
763
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
764
+ redirect_uri?: string | undefined;
765
+ nonce?: string | undefined;
763
766
  state?: string | undefined;
764
767
  act_as?: string | undefined;
765
768
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
766
769
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
767
- redirect_uri?: string | undefined;
768
770
  audience?: string | undefined;
769
771
  organization?: string | undefined;
770
- nonce?: string | undefined;
771
772
  scope?: string | undefined;
772
773
  prompt?: string | undefined;
773
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
774
- code_challenge?: string | undefined;
774
+ username?: string | undefined;
775
775
  ui_locales?: string | undefined;
776
776
  max_age?: number | undefined;
777
777
  acr_values?: string | undefined;
@@ -1487,8 +1487,8 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1487
1487
  output: {
1488
1488
  keys: {
1489
1489
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1490
- kid: string;
1491
- kty: "RSA" | "EC" | "oct";
1490
+ kty: "EC" | "RSA" | "oct";
1491
+ kid?: string | undefined;
1492
1492
  use?: "sig" | "enc" | undefined;
1493
1493
  n?: string | undefined;
1494
1494
  e?: string | undefined;
@@ -14,19 +14,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
14
14
  email: string;
15
15
  send: "code" | "link";
16
16
  authParams: {
17
- username?: string | undefined;
17
+ code_challenge?: string | undefined;
18
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
19
+ redirect_uri?: string | undefined;
20
+ nonce?: string | undefined;
18
21
  state?: string | undefined;
19
22
  act_as?: string | undefined;
20
23
  response_type?: AuthorizationResponseType | undefined;
21
24
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
22
- redirect_uri?: string | undefined;
23
25
  audience?: string | undefined;
24
26
  organization?: string | undefined;
25
- nonce?: string | undefined;
26
27
  scope?: string | undefined;
27
28
  prompt?: string | undefined;
28
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
29
- code_challenge?: string | undefined;
29
+ username?: string | undefined;
30
30
  ui_locales?: string | undefined;
31
31
  max_age?: number | undefined;
32
32
  acr_values?: string | undefined;
@@ -50,19 +50,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
50
50
  phone_number: string;
51
51
  send: "code" | "link";
52
52
  authParams: {
53
- username?: string | undefined;
53
+ code_challenge?: string | undefined;
54
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
55
+ redirect_uri?: string | undefined;
56
+ nonce?: string | undefined;
54
57
  state?: string | undefined;
55
58
  act_as?: string | undefined;
56
59
  response_type?: AuthorizationResponseType | undefined;
57
60
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
58
- redirect_uri?: string | undefined;
59
61
  audience?: string | undefined;
60
62
  organization?: string | undefined;
61
- nonce?: string | undefined;
62
63
  scope?: string | undefined;
63
64
  prompt?: string | undefined;
64
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
65
- code_challenge?: string | undefined;
65
+ username?: string | undefined;
66
66
  ui_locales?: string | undefined;
67
67
  max_age?: number | undefined;
68
68
  acr_values?: string | undefined;
@@ -9,8 +9,8 @@ export declare const wellKnownRoutes: import("hono/hono-base").HonoBase<{
9
9
  output: {
10
10
  keys: {
11
11
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
12
- kid: string;
13
- kty: "RSA" | "EC" | "oct";
12
+ kty: "EC" | "RSA" | "oct";
13
+ kid?: string | undefined;
14
14
  use?: "sig" | "enc" | undefined;
15
15
  n?: string | undefined;
16
16
  e?: string | undefined;
@@ -78,7 +78,7 @@ export declare const actionExecutionsRoutes: OpenAPIHono<{
78
78
  logs: {
79
79
  action_name: string;
80
80
  lines: {
81
- level: "error" | "log" | "info" | "warn" | "debug";
81
+ level: "log" | "error" | "info" | "warn" | "debug";
82
82
  message: string;
83
83
  }[];
84
84
  }[];
@@ -301,7 +301,7 @@ export declare const actionsRoutes: OpenAPIHono<{
301
301
  };
302
302
  output: {};
303
303
  outputFormat: string;
304
- status: 409;
304
+ status: 404;
305
305
  } | {
306
306
  input: {
307
307
  param: {
@@ -327,7 +327,7 @@ export declare const actionsRoutes: OpenAPIHono<{
327
327
  };
328
328
  output: {};
329
329
  outputFormat: string;
330
- status: 404;
330
+ status: 409;
331
331
  };
332
332
  };
333
333
  } & {
@@ -661,7 +661,7 @@ export declare const actionsRoutes: OpenAPIHono<{
661
661
  args: import("hono/utils/types").JSONValue[];
662
662
  }[];
663
663
  logs: {
664
- level: "error" | "log" | "info" | "warn" | "debug";
664
+ level: "log" | "error" | "info" | "warn" | "debug";
665
665
  message: string;
666
666
  }[];
667
667
  error?: string | undefined;
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
37
37
  };
38
38
  } & {
39
39
  json: {
40
- type: "push" | "email" | "phone" | "passkey" | "totp" | "webauthn-roaming" | "webauthn-platform";
40
+ type: "email" | "push" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
41
41
  phone_number?: string | undefined;
42
42
  totp_secret?: string | undefined;
43
43
  credential_id?: string | 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" | "pending_verification" | "ready";
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" | "pending_verification" | "ready";
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?: {
@@ -130,7 +130,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
130
130
  domain_metadata?: Record<string, string> | undefined;
131
131
  custom_domain_id?: string | undefined;
132
132
  primary?: boolean | undefined;
133
- status?: "disabled" | "pending" | "pending_verification" | "ready" | undefined;
133
+ status?: "pending" | "ready" | "disabled" | "pending_verification" | undefined;
134
134
  origin_domain_name?: string | undefined;
135
135
  verification?: {
136
136
  methods: ({
@@ -151,7 +151,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
151
151
  type: "auth0_managed_certs" | "self_managed_certs";
152
152
  custom_domain_id: string;
153
153
  primary: boolean;
154
- status: "disabled" | "pending" | "pending_verification" | "ready";
154
+ status: "pending" | "ready" | "disabled" | "pending_verification";
155
155
  verification_method?: "txt" | undefined;
156
156
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
157
157
  domain_metadata?: {
@@ -198,7 +198,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
198
198
  type: "auth0_managed_certs" | "self_managed_certs";
199
199
  custom_domain_id: string;
200
200
  primary: boolean;
201
- status: "disabled" | "pending" | "pending_verification" | "ready";
201
+ status: "pending" | "ready" | "disabled" | "pending_verification";
202
202
  verification_method?: "txt" | undefined;
203
203
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
204
204
  domain_metadata?: {
@@ -244,7 +244,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
244
244
  type: "auth0_managed_certs" | "self_managed_certs";
245
245
  custom_domain_id: string;
246
246
  primary: boolean;
247
- status: "disabled" | "pending" | "pending_verification" | "ready";
247
+ status: "pending" | "ready" | "disabled" | "pending_verification";
248
248
  verification_method?: "txt" | undefined;
249
249
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
250
250
  domain_metadata?: {
@@ -285,7 +285,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
285
285
  type: "auth0_managed_certs" | "self_managed_certs";
286
286
  custom_domain_id: string;
287
287
  primary: boolean;
288
- status: "disabled" | "pending" | "pending_verification" | "ready";
288
+ status: "pending" | "ready" | "disabled" | "pending_verification";
289
289
  verification_method?: "txt" | undefined;
290
290
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
291
291
  domain_metadata?: {
@@ -12,7 +12,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
12
12
  };
13
13
  } & {
14
14
  json: {
15
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
15
+ template: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
16
16
  body: string;
17
17
  from: string;
18
18
  subject: string;
@@ -23,19 +23,9 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
23
23
  enabled?: boolean | undefined;
24
24
  };
25
25
  };
26
- output: {
27
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
28
- body: string;
29
- from: string;
30
- subject: string;
31
- syntax: "liquid";
32
- includeEmailInRedirect: boolean;
33
- enabled: boolean;
34
- resultUrl?: string | undefined;
35
- urlLifetimeInSeconds?: number | undefined;
36
- };
37
- outputFormat: "json";
38
- status: 201;
26
+ output: {};
27
+ outputFormat: string;
28
+ status: 409;
39
29
  } | {
40
30
  input: {
41
31
  header: {
@@ -43,7 +33,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
43
33
  };
44
34
  } & {
45
35
  json: {
46
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
36
+ template: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
47
37
  body: string;
48
38
  from: string;
49
39
  subject: string;
@@ -54,9 +44,19 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
54
44
  enabled?: boolean | undefined;
55
45
  };
56
46
  };
57
- output: {};
58
- outputFormat: string;
59
- status: 409;
47
+ output: {
48
+ template: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
49
+ body: string;
50
+ from: string;
51
+ subject: string;
52
+ syntax: "liquid";
53
+ includeEmailInRedirect: boolean;
54
+ enabled: boolean;
55
+ resultUrl?: string | undefined;
56
+ urlLifetimeInSeconds?: number | undefined;
57
+ };
58
+ outputFormat: "json";
59
+ status: 201;
60
60
  };
61
61
  };
62
62
  } & {
@@ -68,7 +68,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
68
68
  };
69
69
  };
70
70
  output: {
71
- name: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
71
+ name: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
72
72
  body: string;
73
73
  subject: string;
74
74
  }[];
@@ -81,7 +81,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
81
81
  $get: {
82
82
  input: {
83
83
  param: {
84
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
84
+ templateName: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
85
85
  };
86
86
  } & {
87
87
  header: {
@@ -94,7 +94,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
94
94
  } | {
95
95
  input: {
96
96
  param: {
97
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
97
+ templateName: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
98
98
  };
99
99
  } & {
100
100
  header: {
@@ -102,7 +102,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
102
102
  };
103
103
  };
104
104
  output: {
105
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
105
+ template: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
106
106
  body: string;
107
107
  from: string;
108
108
  subject: string;
@@ -121,7 +121,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
121
121
  $put: {
122
122
  input: {
123
123
  param: {
124
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
124
+ templateName: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
125
125
  };
126
126
  } & {
127
127
  header: {
@@ -129,7 +129,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
129
129
  };
130
130
  } & {
131
131
  json: {
132
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
132
+ template: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
133
133
  body: string;
134
134
  subject: string;
135
135
  syntax?: "liquid" | undefined;
@@ -141,7 +141,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
141
141
  };
142
142
  };
143
143
  output: {
144
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
144
+ template: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
145
145
  body: string;
146
146
  from: string;
147
147
  subject: string;
@@ -160,7 +160,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
160
160
  $patch: {
161
161
  input: {
162
162
  param: {
163
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
163
+ templateName: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
164
164
  };
165
165
  } & {
166
166
  header: {
@@ -168,7 +168,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
168
168
  };
169
169
  } & {
170
170
  json: {
171
- template?: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
171
+ template?: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
172
172
  body?: string | undefined;
173
173
  from?: string | undefined;
174
174
  subject?: string | undefined;
@@ -185,7 +185,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
185
185
  } | {
186
186
  input: {
187
187
  param: {
188
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
188
+ templateName: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
189
189
  };
190
190
  } & {
191
191
  header: {
@@ -193,7 +193,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
193
193
  };
194
194
  } & {
195
195
  json: {
196
- template?: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
196
+ template?: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
197
197
  body?: string | undefined;
198
198
  from?: string | undefined;
199
199
  subject?: string | undefined;
@@ -205,7 +205,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
205
205
  };
206
206
  };
207
207
  output: {
208
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
208
+ template: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
209
209
  body: string;
210
210
  from: string;
211
211
  subject: string;
@@ -224,7 +224,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
224
224
  $delete: {
225
225
  input: {
226
226
  param: {
227
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
227
+ templateName: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
228
228
  };
229
229
  } & {
230
230
  header: {
@@ -233,11 +233,11 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
233
233
  };
234
234
  output: {};
235
235
  outputFormat: string;
236
- status: 204;
236
+ status: 404;
237
237
  } | {
238
238
  input: {
239
239
  param: {
240
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
240
+ templateName: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
241
241
  };
242
242
  } & {
243
243
  header: {
@@ -246,7 +246,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
246
246
  };
247
247
  output: {};
248
248
  outputFormat: string;
249
- status: 404;
249
+ status: 204;
250
250
  };
251
251
  };
252
252
  } & {
@@ -254,7 +254,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
254
254
  $post: {
255
255
  input: {
256
256
  param: {
257
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
257
+ templateName: "password_reset" | "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
258
258
  };
259
259
  } & {
260
260
  header: {
@@ -109,7 +109,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
109
109
  };
110
110
  output: {};
111
111
  outputFormat: string;
112
- status: 204;
112
+ status: 404;
113
113
  } | {
114
114
  input: {
115
115
  header: {
@@ -118,7 +118,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
118
118
  };
119
119
  output: {};
120
120
  outputFormat: string;
121
- status: 404;
121
+ status: 204;
122
122
  };
123
123
  };
124
124
  }, "/">;
@@ -30,7 +30,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
30
30
  log_type: string;
31
31
  category: "user_action" | "admin_action" | "system" | "api";
32
32
  actor: {
33
- type: "client_credentials" | "user" | "system" | "admin" | "api_key";
33
+ type: "user" | "client_credentials" | "system" | "admin" | "api_key";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;
@@ -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: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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: "deployed" | "failed" | "not_required";
25
+ deploymentStatus: "failed" | "deployed" | "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: "deployed" | "failed" | "not_required";
115
+ deploymentStatus: "failed" | "deployed" | "not_required";
116
116
  secrets?: {
117
117
  [x: string]: string;
118
118
  } | undefined;