authhero 9.24.1 → 9.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 (59) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +155 -155
  3. package/dist/authhero.d.ts +612 -171
  4. package/dist/authhero.mjs +16457 -15581
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/adapters/createEncryptedDataAdapter.d.ts +2 -1
  7. package/dist/types/adapters/index.d.ts +1 -1
  8. package/dist/types/authentication-flows/passwordless.d.ts +12 -5
  9. package/dist/types/errors/management-api-error.d.ts +113 -0
  10. package/dist/types/helpers/audit-target-types.d.ts +26 -0
  11. package/dist/types/helpers/client.d.ts +18 -0
  12. package/dist/types/helpers/control-plane-caller.d.ts +15 -0
  13. package/dist/types/helpers/platform-rows.d.ts +27 -0
  14. package/dist/types/helpers/request-data.d.ts +12 -0
  15. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  16. package/dist/types/helpers/synced-rows.d.ts +1 -0
  17. package/dist/types/index.d.ts +499 -167
  18. package/dist/types/routes/auth-api/index.d.ts +10 -10
  19. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  20. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  21. package/dist/types/routes/management-api/action-triggers.d.ts +8 -2
  22. package/dist/types/routes/management-api/actions.d.ts +44 -11
  23. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  24. package/dist/types/routes/management-api/branding.d.ts +13 -1
  25. package/dist/types/routes/management-api/client-grants.d.ts +13 -0
  26. package/dist/types/routes/management-api/clients.d.ts +27 -8
  27. package/dist/types/routes/management-api/connections.d.ts +43 -6
  28. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  29. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  30. package/dist/types/routes/management-api/emails.d.ts +18 -0
  31. package/dist/types/routes/management-api/failed-events.d.ts +24 -0
  32. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  33. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  34. package/dist/types/routes/management-api/hook-code.d.ts +2 -2
  35. package/dist/types/routes/management-api/hooks.d.ts +126 -21
  36. package/dist/types/routes/management-api/index.d.ts +480 -152
  37. package/dist/types/routes/management-api/keys.d.ts +8 -8
  38. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  39. package/dist/types/routes/management-api/logs.d.ts +4 -4
  40. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  41. package/dist/types/routes/management-api/organizations.d.ts +2 -2
  42. package/dist/types/routes/management-api/prompts.d.ts +12 -6
  43. package/dist/types/routes/management-api/resource-servers.d.ts +57 -20
  44. package/dist/types/routes/management-api/rollouts.d.ts +261 -0
  45. package/dist/types/routes/management-api/tenant-operations.d.ts +10 -5
  46. package/dist/types/routes/management-api/tenants.d.ts +24 -8
  47. package/dist/types/routes/management-api/users.d.ts +24 -24
  48. package/dist/types/routes/universal-login/common.d.ts +38 -10
  49. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  50. package/dist/types/routes/universal-login/screens/login-partials.d.ts +8 -0
  51. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  52. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  53. package/dist/types/state-machines/login-session.d.ts +1 -1
  54. package/dist/types/types/AuthHeroConfig.d.ts +37 -1
  55. package/dist/types/types/Bindings.d.ts +2 -1
  56. package/dist/types/types/Variables.d.ts +8 -0
  57. package/dist/types/utils/field-encryption.d.ts +7 -0
  58. package/dist/types/utils/jwt.d.ts +2 -0
  59. package/package.json +6 -6
@@ -96,7 +96,7 @@ export declare const connectionRoutes: OpenAPIHono<{
96
96
  } | undefined;
97
97
  unique?: boolean | undefined;
98
98
  profile_required?: boolean | undefined;
99
- verification_method?: "link" | "code" | undefined;
99
+ verification_method?: "code" | "link" | undefined;
100
100
  } | undefined;
101
101
  username?: {
102
102
  identifier?: {
@@ -146,6 +146,9 @@ export declare const connectionRoutes: OpenAPIHono<{
146
146
  } | undefined;
147
147
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
148
148
  };
149
+ scope?: "local" | "shared" | "platform" | undefined;
150
+ override?: "secrets" | "none" | "fields" | undefined;
151
+ enforce?: boolean | undefined;
149
152
  id?: string | undefined;
150
153
  display_name?: string | undefined;
151
154
  enabled_clients?: string[] | undefined;
@@ -234,7 +237,7 @@ export declare const connectionRoutes: OpenAPIHono<{
234
237
  } | undefined;
235
238
  unique?: boolean | undefined;
236
239
  profile_required?: boolean | undefined;
237
- verification_method?: "link" | "code" | undefined;
240
+ verification_method?: "code" | "link" | undefined;
238
241
  } | undefined;
239
242
  username?: {
240
243
  identifier?: {
@@ -284,6 +287,9 @@ export declare const connectionRoutes: OpenAPIHono<{
284
287
  } | undefined;
285
288
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
286
289
  };
290
+ scope?: "local" | "shared" | "platform" | undefined;
291
+ override?: "secrets" | "none" | "fields" | undefined;
292
+ enforce?: boolean | undefined;
287
293
  id?: string | undefined;
288
294
  display_name?: string | undefined;
289
295
  enabled_clients?: string[] | undefined;
@@ -372,7 +378,7 @@ export declare const connectionRoutes: OpenAPIHono<{
372
378
  } | undefined;
373
379
  unique?: boolean | undefined;
374
380
  profile_required?: boolean | undefined;
375
- verification_method?: "link" | "code" | undefined;
381
+ verification_method?: "code" | "link" | undefined;
376
382
  } | undefined;
377
383
  username?: {
378
384
  identifier?: {
@@ -422,6 +428,9 @@ export declare const connectionRoutes: OpenAPIHono<{
422
428
  } | undefined;
423
429
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
424
430
  };
431
+ scope?: "local" | "shared" | "platform" | undefined;
432
+ override?: "secrets" | "none" | "fields" | undefined;
433
+ enforce?: boolean | undefined;
425
434
  id?: string | undefined;
426
435
  display_name?: string | undefined;
427
436
  enabled_clients?: string[] | undefined;
@@ -525,7 +534,7 @@ export declare const connectionRoutes: OpenAPIHono<{
525
534
  } | undefined;
526
535
  unique?: boolean | undefined;
527
536
  profile_required?: boolean | undefined;
528
- verification_method?: "link" | "code" | undefined;
537
+ verification_method?: "code" | "link" | undefined;
529
538
  } | undefined;
530
539
  username?: {
531
540
  identifier?: {
@@ -575,6 +584,9 @@ export declare const connectionRoutes: OpenAPIHono<{
575
584
  } | undefined;
576
585
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
577
586
  };
587
+ scope?: "local" | "shared" | "platform" | undefined;
588
+ override?: "secrets" | "none" | "fields" | undefined;
589
+ enforce?: boolean | undefined;
578
590
  id?: string | undefined;
579
591
  display_name?: string | undefined;
580
592
  enabled_clients?: string[] | undefined;
@@ -606,6 +618,19 @@ export declare const connectionRoutes: OpenAPIHono<{
606
618
  output: {};
607
619
  outputFormat: string;
608
620
  status: 200;
621
+ } | {
622
+ input: {
623
+ param: {
624
+ id: string;
625
+ };
626
+ } & {
627
+ header: {
628
+ "tenant-id"?: string | undefined;
629
+ };
630
+ };
631
+ output: {};
632
+ outputFormat: string;
633
+ status: 204;
609
634
  };
610
635
  };
611
636
  } & {
@@ -621,6 +646,9 @@ export declare const connectionRoutes: OpenAPIHono<{
621
646
  };
622
647
  } & {
623
648
  json: {
649
+ scope?: "local" | "shared" | "platform" | undefined;
650
+ override?: "secrets" | "none" | "fields" | undefined;
651
+ enforce?: boolean | undefined;
624
652
  id?: string | undefined;
625
653
  name?: string | undefined;
626
654
  display_name?: string | undefined;
@@ -708,7 +736,7 @@ export declare const connectionRoutes: OpenAPIHono<{
708
736
  } | undefined;
709
737
  unique?: boolean | undefined;
710
738
  profile_required?: boolean | undefined;
711
- verification_method?: "link" | "code" | undefined;
739
+ verification_method?: "code" | "link" | undefined;
712
740
  } | undefined;
713
741
  username?: {
714
742
  identifier?: {
@@ -758,6 +786,9 @@ export declare const connectionRoutes: OpenAPIHono<{
758
786
  } | undefined;
759
787
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
760
788
  };
789
+ scope?: "local" | "shared" | "platform" | undefined;
790
+ override?: "secrets" | "none" | "fields" | undefined;
791
+ enforce?: boolean | undefined;
761
792
  id?: string | undefined;
762
793
  display_name?: string | undefined;
763
794
  enabled_clients?: string[] | undefined;
@@ -785,6 +816,9 @@ export declare const connectionRoutes: OpenAPIHono<{
785
816
  json: {
786
817
  name: string;
787
818
  strategy: string;
819
+ scope?: "local" | "shared" | "platform" | undefined;
820
+ override?: "secrets" | "none" | "fields" | undefined;
821
+ enforce?: boolean | undefined;
788
822
  id?: string | undefined;
789
823
  display_name?: string | undefined;
790
824
  options?: unknown;
@@ -870,7 +904,7 @@ export declare const connectionRoutes: OpenAPIHono<{
870
904
  } | undefined;
871
905
  unique?: boolean | undefined;
872
906
  profile_required?: boolean | undefined;
873
- verification_method?: "link" | "code" | undefined;
907
+ verification_method?: "code" | "link" | undefined;
874
908
  } | undefined;
875
909
  username?: {
876
910
  identifier?: {
@@ -920,6 +954,9 @@ export declare const connectionRoutes: OpenAPIHono<{
920
954
  } | undefined;
921
955
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
922
956
  };
957
+ scope?: "local" | "shared" | "platform" | undefined;
958
+ override?: "secrets" | "none" | "fields" | undefined;
959
+ enforce?: boolean | undefined;
923
960
  id?: string | undefined;
924
961
  display_name?: string | undefined;
925
962
  enabled_clients?: 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" | "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 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: "change_password" | "verify_email" | "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";
16
16
  body: string;
17
17
  from: string;
18
18
  subject: string;
@@ -33,7 +33,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
33
33
  };
34
34
  } & {
35
35
  json: {
36
- 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: "change_password" | "verify_email" | "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";
37
37
  body: string;
38
38
  from: string;
39
39
  subject: string;
@@ -45,7 +45,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
45
45
  };
46
46
  };
47
47
  output: {
48
- 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";
48
+ template: "change_password" | "verify_email" | "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";
49
49
  body: string;
50
50
  from: string;
51
51
  subject: string;
@@ -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: "change_password" | "verify_email" | "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";
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: "change_password" | "verify_email" | "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";
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: "change_password" | "verify_email" | "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";
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: "change_password" | "verify_email" | "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";
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: "change_password" | "verify_email" | "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";
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: "change_password" | "verify_email" | "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";
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: "change_password" | "verify_email" | "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";
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: "change_password" | "verify_email" | "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";
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?: "change_password" | "verify_email" | "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;
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: "change_password" | "verify_email" | "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";
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?: "change_password" | "verify_email" | "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;
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: "change_password" | "verify_email" | "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";
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: "change_password" | "verify_email" | "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";
228
228
  };
229
229
  } & {
230
230
  header: {
@@ -237,7 +237,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
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: "change_password" | "verify_email" | "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";
241
241
  };
242
242
  } & {
243
243
  header: {
@@ -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: "change_password" | "verify_email" | "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";
258
258
  };
259
259
  } & {
260
260
  header: {
@@ -19,6 +19,9 @@ export declare const emailProviderRoutes: OpenAPIHono<{
19
19
  [x: string]: import("hono/utils/types").JSONValue;
20
20
  } | undefined;
21
21
  settings?: {} | undefined;
22
+ scope?: "local" | "shared" | "platform" | undefined;
23
+ override?: "secrets" | "none" | "fields" | undefined;
24
+ enforce?: boolean | undefined;
22
25
  };
23
26
  outputFormat: "json";
24
27
  status: 200;
@@ -38,6 +41,9 @@ export declare const emailProviderRoutes: OpenAPIHono<{
38
41
  enabled?: boolean | undefined;
39
42
  default_from_address?: string | undefined;
40
43
  settings?: Record<string, never> | undefined;
44
+ scope?: "local" | "shared" | "platform" | undefined;
45
+ override?: "secrets" | "none" | "fields" | undefined;
46
+ enforce?: boolean | undefined;
41
47
  };
42
48
  };
43
49
  output: {};
@@ -55,6 +61,9 @@ export declare const emailProviderRoutes: OpenAPIHono<{
55
61
  enabled?: boolean | undefined;
56
62
  default_from_address?: string | undefined;
57
63
  settings?: Record<string, never> | undefined;
64
+ scope?: "local" | "shared" | "platform" | undefined;
65
+ override?: "secrets" | "none" | "fields" | undefined;
66
+ enforce?: boolean | undefined;
58
67
  };
59
68
  };
60
69
  output: {
@@ -65,6 +74,9 @@ export declare const emailProviderRoutes: OpenAPIHono<{
65
74
  };
66
75
  default_from_address?: string | undefined;
67
76
  settings?: {} | undefined;
77
+ scope?: "local" | "shared" | "platform" | undefined;
78
+ override?: "secrets" | "none" | "fields" | undefined;
79
+ enforce?: boolean | undefined;
68
80
  };
69
81
  outputFormat: "json";
70
82
  status: 201;
@@ -84,6 +96,9 @@ export declare const emailProviderRoutes: OpenAPIHono<{
84
96
  default_from_address?: string | undefined;
85
97
  credentials?: Record<string, unknown> | undefined;
86
98
  settings?: Record<string, never> | undefined;
99
+ scope?: "local" | "shared" | "platform" | undefined;
100
+ override?: "secrets" | "none" | "fields" | undefined;
101
+ enforce?: boolean | undefined;
87
102
  };
88
103
  };
89
104
  output: {
@@ -94,6 +109,9 @@ export declare const emailProviderRoutes: OpenAPIHono<{
94
109
  };
95
110
  default_from_address?: string | undefined;
96
111
  settings?: {} | undefined;
112
+ scope?: "local" | "shared" | "platform" | undefined;
113
+ override?: "secrets" | "none" | "fields" | undefined;
114
+ enforce?: boolean | undefined;
97
115
  };
98
116
  outputFormat: "json";
99
117
  status: 200;
@@ -66,6 +66,18 @@ export declare const failedEventsRoutes: OpenAPIHono<{
66
66
  correlation_id?: string | undefined;
67
67
  redirect_uri?: string | undefined;
68
68
  authorization_url?: string | undefined;
69
+ auth?: {
70
+ strategy: string;
71
+ user?: {
72
+ user_id: string;
73
+ name?: string | undefined;
74
+ email?: string | undefined;
75
+ } | undefined;
76
+ credentials?: {
77
+ jti?: string | undefined;
78
+ scopes?: string[] | undefined;
79
+ } | undefined;
80
+ } | undefined;
69
81
  };
70
82
  hostname: string;
71
83
  timestamp: string;
@@ -158,6 +170,18 @@ export declare const failedEventsRoutes: OpenAPIHono<{
158
170
  correlation_id?: string | undefined;
159
171
  redirect_uri?: string | undefined;
160
172
  authorization_url?: string | undefined;
173
+ auth?: {
174
+ strategy: string;
175
+ user?: {
176
+ user_id: string;
177
+ name?: string | undefined;
178
+ email?: string | undefined;
179
+ } | undefined;
180
+ credentials?: {
181
+ jti?: string | undefined;
182
+ scopes?: string[] | undefined;
183
+ } | undefined;
184
+ } | undefined;
161
185
  };
162
186
  hostname: string;
163
187
  timestamp: string;
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
12
12
  };
13
13
  };
14
14
  output: {
15
- name: "email" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
15
+ name: "email" | "sms" | "otp" | "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" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
170
+ factor_name: "email" | "sms" | "otp" | "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" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
178
+ name: "email" | "sms" | "otp" | "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" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
191
+ factor_name: "email" | "sms" | "otp" | "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" | "otp" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
203
+ name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
204
204
  enabled: boolean;
205
205
  trial_expired?: boolean | undefined;
206
206
  };
@@ -23,7 +23,7 @@ export declare function requireTenantId(ctx: {
23
23
  * `totalsSchema.extend({ roles: z.array(roleSchema) })` pattern repeated
24
24
  * across the management-api modules.
25
25
  */
26
- export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("start" | "limit" | "length" | "total" | "next") & keyof T extends never ? {
26
+ export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("length" | "start" | "limit" | "total" | "next") & keyof T extends never ? {
27
27
  start: z.ZodNumber;
28
28
  limit: z.ZodNumber;
29
29
  length: z.ZodNumber;
@@ -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;