authhero 9.24.0 → 9.25.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 (77) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +116 -116
  3. package/dist/authhero.d.ts +470 -178
  4. package/dist/authhero.mjs +36356 -35927
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/authentication-flows/password.d.ts +6 -0
  7. package/dist/types/authentication-flows/passwordless.d.ts +7 -3
  8. package/dist/types/generated/locale-types.d.ts +1 -0
  9. package/dist/types/helpers/audit-target-types.d.ts +26 -0
  10. package/dist/types/helpers/client.d.ts +12 -0
  11. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  12. package/dist/types/helpers/session-notice.d.ts +17 -0
  13. package/dist/types/index.d.ts +455 -178
  14. package/dist/types/routes/auth-api/account.d.ts +2 -2
  15. package/dist/types/routes/auth-api/index.d.ts +26 -26
  16. package/dist/types/routes/auth-api/logout.d.ts +2 -2
  17. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  18. package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
  19. package/dist/types/routes/auth-api/token.d.ts +10 -10
  20. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  21. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  22. package/dist/types/routes/management-api/action-triggers.d.ts +8 -2
  23. package/dist/types/routes/management-api/actions.d.ts +45 -12
  24. package/dist/types/routes/management-api/branding.d.ts +14 -2
  25. package/dist/types/routes/management-api/clients.d.ts +8 -2
  26. package/dist/types/routes/management-api/connections.d.ts +30 -6
  27. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  28. package/dist/types/routes/management-api/emails.d.ts +18 -0
  29. package/dist/types/routes/management-api/failed-events.d.ts +27 -2
  30. package/dist/types/routes/management-api/flows.d.ts +8 -8
  31. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  32. package/dist/types/routes/management-api/helpers.d.ts +25 -3
  33. package/dist/types/routes/management-api/hooks.d.ts +105 -0
  34. package/dist/types/routes/management-api/index.d.ts +406 -129
  35. package/dist/types/routes/management-api/keys.d.ts +12 -12
  36. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  37. package/dist/types/routes/management-api/logs.d.ts +4 -4
  38. package/dist/types/routes/management-api/organizations.d.ts +4 -4
  39. package/dist/types/routes/management-api/prompts.d.ts +12 -6
  40. package/dist/types/routes/management-api/resource-servers.d.ts +44 -20
  41. package/dist/types/routes/management-api/tenants.d.ts +4 -0
  42. package/dist/types/routes/management-api/token-exchange-profiles.d.ts +6 -6
  43. package/dist/types/routes/management-api/users.d.ts +18 -18
  44. package/dist/types/routes/saml/index.d.ts +6 -6
  45. package/dist/types/routes/saml/samlp.d.ts +6 -6
  46. package/dist/types/routes/universal-login/common.d.ts +18 -2
  47. package/dist/types/routes/universal-login/continue.d.ts +2 -2
  48. package/dist/types/routes/universal-login/identifier.d.ts +4 -4
  49. package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
  50. package/dist/types/routes/universal-login/index.d.ts +10 -10
  51. package/dist/types/routes/universal-login/screens/account-mfa-phone-enrollment.d.ts +0 -5
  52. package/dist/types/routes/universal-login/screens/account-mfa-totp-enrollment.d.ts +0 -5
  53. package/dist/types/routes/universal-login/screens/account-passkeys.d.ts +0 -5
  54. package/dist/types/routes/universal-login/screens/connect-tenant-select.d.ts +0 -10
  55. package/dist/types/routes/universal-login/screens/identifier.d.ts +0 -5
  56. package/dist/types/routes/universal-login/screens/login-partials.d.ts +8 -0
  57. package/dist/types/routes/universal-login/screens/login.d.ts +0 -8
  58. package/dist/types/routes/universal-login/screens/mfa-login-options.d.ts +0 -5
  59. package/dist/types/routes/universal-login/screens/mfa-phone-challenge.d.ts +0 -5
  60. package/dist/types/routes/universal-login/screens/mfa-phone-enrollment.d.ts +0 -5
  61. package/dist/types/routes/universal-login/screens/mfa-totp-challenge.d.ts +0 -5
  62. package/dist/types/routes/universal-login/screens/mfa-totp-enrollment.d.ts +0 -5
  63. package/dist/types/routes/universal-login/screens/passkey-challenge.d.ts +0 -14
  64. package/dist/types/routes/universal-login/screens/passkey-enrollment-nudge.d.ts +0 -15
  65. package/dist/types/routes/universal-login/screens/passkey-enrollment.d.ts +0 -9
  66. package/dist/types/routes/universal-login/screens/reset-password-code.d.ts +0 -9
  67. package/dist/types/routes/universal-login/screens/reset-password.d.ts +2 -6
  68. package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
  69. package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
  70. package/dist/types/state-machines/index.d.ts +3 -1
  71. package/dist/types/state-machines/login-session-data.d.ts +19 -0
  72. package/dist/types/state-machines/login-session.d.ts +67 -3
  73. package/dist/types/state-machines/password-reset.d.ts +46 -0
  74. package/dist/types/types/Variables.d.ts +3 -0
  75. package/dist/types/utils/jwks.d.ts +2 -2
  76. package/dist/types/utils/jwt.d.ts +2 -0
  77. package/package.json +6 -6
@@ -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?: "shared" | "local" | "platform" | undefined;
23
+ override?: "none" | "secrets" | "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?: "shared" | "local" | "platform" | undefined;
45
+ override?: "none" | "secrets" | "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?: "shared" | "local" | "platform" | undefined;
65
+ override?: "none" | "secrets" | "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?: "shared" | "local" | "platform" | undefined;
78
+ override?: "none" | "secrets" | "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?: "shared" | "local" | "platform" | undefined;
100
+ override?: "none" | "secrets" | "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?: "shared" | "local" | "platform" | undefined;
113
+ override?: "none" | "secrets" | "fields" | undefined;
114
+ enforce?: boolean | undefined;
97
115
  };
98
116
  outputFormat: "json";
99
117
  status: 200;
@@ -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" | "system" | "admin" | "api_key" | "client_credentials";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;
@@ -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;
@@ -114,6 +126,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
114
126
  start: number;
115
127
  limit: number;
116
128
  length: number;
129
+ total?: number | undefined;
117
130
  } | {
118
131
  events: {
119
132
  tenant_id: string;
@@ -121,7 +134,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
121
134
  log_type: string;
122
135
  category: "user_action" | "admin_action" | "system" | "api";
123
136
  actor: {
124
- type: "client_credentials" | "user" | "system" | "admin" | "api_key";
137
+ type: "user" | "system" | "admin" | "api_key" | "client_credentials";
125
138
  id?: string | undefined;
126
139
  email?: string | undefined;
127
140
  org_id?: string | undefined;
@@ -157,6 +170,18 @@ export declare const failedEventsRoutes: OpenAPIHono<{
157
170
  correlation_id?: string | undefined;
158
171
  redirect_uri?: string | undefined;
159
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;
160
185
  };
161
186
  hostname: string;
162
187
  timestamp: string;
@@ -62,7 +62,7 @@ export declare const flowsRoutes: OpenAPIHono<{
62
62
  type: "REDIRECT";
63
63
  action: "REDIRECT_USER";
64
64
  params: {
65
- target: "custom" | "change-email" | "account";
65
+ target: "custom" | "account" | "change-email";
66
66
  custom_url?: string | undefined;
67
67
  };
68
68
  alias?: string | undefined;
@@ -115,7 +115,7 @@ export declare const flowsRoutes: OpenAPIHono<{
115
115
  type: "REDIRECT";
116
116
  action: "REDIRECT_USER";
117
117
  params: {
118
- target: "custom" | "change-email" | "account";
118
+ target: "custom" | "account" | "change-email";
119
119
  custom_url?: string | undefined;
120
120
  };
121
121
  alias?: string | undefined;
@@ -168,7 +168,7 @@ export declare const flowsRoutes: OpenAPIHono<{
168
168
  type: "REDIRECT";
169
169
  action: "REDIRECT_USER";
170
170
  params: {
171
- target: "custom" | "change-email" | "account";
171
+ target: "custom" | "account" | "change-email";
172
172
  custom_url?: string | undefined;
173
173
  };
174
174
  alias?: string | undefined;
@@ -236,7 +236,7 @@ export declare const flowsRoutes: OpenAPIHono<{
236
236
  type: "REDIRECT";
237
237
  action: "REDIRECT_USER";
238
238
  params: {
239
- target: "custom" | "change-email" | "account";
239
+ target: "custom" | "account" | "change-email";
240
240
  custom_url?: string | undefined;
241
241
  };
242
242
  alias?: string | undefined;
@@ -317,7 +317,7 @@ export declare const flowsRoutes: OpenAPIHono<{
317
317
  type: "REDIRECT";
318
318
  action: "REDIRECT_USER";
319
319
  params: {
320
- target: "custom" | "change-email" | "account";
320
+ target: "custom" | "account" | "change-email";
321
321
  custom_url?: string | undefined;
322
322
  };
323
323
  alias?: string | undefined;
@@ -365,7 +365,7 @@ export declare const flowsRoutes: OpenAPIHono<{
365
365
  type: "REDIRECT";
366
366
  action: "REDIRECT_USER";
367
367
  params: {
368
- target: "custom" | "change-email" | "account";
368
+ target: "custom" | "account" | "change-email";
369
369
  custom_url?: string | undefined;
370
370
  };
371
371
  alias?: string | undefined;
@@ -425,7 +425,7 @@ export declare const flowsRoutes: OpenAPIHono<{
425
425
  type: "REDIRECT";
426
426
  action: "REDIRECT_USER";
427
427
  params: {
428
- target: "custom" | "change-email" | "account";
428
+ target: "custom" | "account" | "change-email";
429
429
  custom_url?: string | undefined;
430
430
  };
431
431
  alias?: string | undefined;
@@ -473,7 +473,7 @@ export declare const flowsRoutes: OpenAPIHono<{
473
473
  type: "REDIRECT";
474
474
  action: "REDIRECT_USER";
475
475
  params: {
476
- target: "custom" | "change-email" | "account";
476
+ target: "custom" | "account" | "change-email";
477
477
  custom_url?: string | undefined;
478
478
  };
479
479
  alias?: string | undefined;
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
12
12
  };
13
13
  };
14
14
  output: {
15
- name: "sms" | "otp" | "email" | "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: "sms" | "otp" | "email" | "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: "sms" | "otp" | "email" | "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: "sms" | "otp" | "email" | "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: "sms" | "otp" | "email" | "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
  };
@@ -44,12 +44,34 @@ export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObje
44
44
  export declare function withNext<T extends z.ZodRawShape>(items: T): z.ZodObject<T & {
45
45
  next: z.ZodOptional<z.ZodString>;
46
46
  } extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
47
+ /**
48
+ * Builds the Auth0 `include_totals` envelope from an adapter list result.
49
+ *
50
+ * Adapters report the overall match count as `length` (the offset-list
51
+ * contract). Auth0's wire format differs: `length` is the number of items on
52
+ * the returned page and `total` is the overall count, so the two are
53
+ * remapped here. A result that already carries `total` keeps it. Checkpoint
54
+ * (`from`/`take`) responses are built by the callers and never come through
55
+ * this helper.
56
+ */
57
+ export declare function withTotalsEnvelope<T extends {
58
+ length: number;
59
+ }>(result: T, items: readonly unknown[]): T & {
60
+ length: number;
61
+ total: number;
62
+ };
47
63
  /**
48
64
  * Picks the list-response body for the `include_totals` branch every list
49
- * handler repeats: the full totals envelope when `include_totals` is set,
50
- * otherwise the bare item array under `key`.
65
+ * handler repeats: the Auth0 totals envelope (`start`, `limit`, `length`,
66
+ * `total`) when `include_totals` is set, otherwise the bare item array under
67
+ * `key`.
51
68
  *
52
69
  * The caller keeps its own `ctx.json(...)` so hono's per-route response
53
70
  * typing still applies.
54
71
  */
55
- export declare function listResponse<T extends object, K extends keyof T>(include_totals: boolean | undefined, result: T, key: K): T | T[K];
72
+ export declare function listResponse<T extends {
73
+ length: number;
74
+ }, K extends keyof T>(include_totals: boolean | undefined, result: T, key: K): (T & {
75
+ length: number;
76
+ total: number;
77
+ }) | T[K];
@@ -31,6 +31,9 @@ export declare const hooksRoutes: OpenAPIHono<{
31
31
  updated_at: string;
32
32
  hook_id: string;
33
33
  url: string;
34
+ scope?: "shared" | "local" | "platform" | undefined;
35
+ override?: "none" | "secrets" | "fields" | undefined;
36
+ enforce?: boolean | undefined;
34
37
  priority?: number | undefined;
35
38
  metadata?: {
36
39
  [x: string]: import("hono/utils/types").JSONValue;
@@ -43,6 +46,9 @@ export declare const hooksRoutes: OpenAPIHono<{
43
46
  updated_at: string;
44
47
  hook_id: string;
45
48
  form_id: string;
49
+ scope?: "shared" | "local" | "platform" | undefined;
50
+ override?: "none" | "secrets" | "fields" | undefined;
51
+ enforce?: boolean | undefined;
46
52
  priority?: number | undefined;
47
53
  metadata?: {
48
54
  [x: string]: import("hono/utils/types").JSONValue;
@@ -55,6 +61,9 @@ export declare const hooksRoutes: OpenAPIHono<{
55
61
  updated_at: string;
56
62
  hook_id: string;
57
63
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
64
+ scope?: "shared" | "local" | "platform" | undefined;
65
+ override?: "none" | "secrets" | "fields" | undefined;
66
+ enforce?: boolean | undefined;
58
67
  priority?: number | undefined;
59
68
  metadata?: {
60
69
  [x: string]: import("hono/utils/types").JSONValue;
@@ -67,6 +76,9 @@ export declare const hooksRoutes: OpenAPIHono<{
67
76
  updated_at: string;
68
77
  hook_id: string;
69
78
  code_id: string;
79
+ scope?: "shared" | "local" | "platform" | undefined;
80
+ override?: "none" | "secrets" | "fields" | undefined;
81
+ enforce?: boolean | undefined;
70
82
  priority?: number | undefined;
71
83
  metadata?: {
72
84
  [x: string]: import("hono/utils/types").JSONValue;
@@ -79,6 +91,9 @@ export declare const hooksRoutes: OpenAPIHono<{
79
91
  updated_at: string;
80
92
  hook_id: string;
81
93
  page_id: "impersonate";
94
+ scope?: "shared" | "local" | "platform" | undefined;
95
+ override?: "none" | "secrets" | "fields" | undefined;
96
+ enforce?: boolean | undefined;
82
97
  priority?: number | undefined;
83
98
  metadata?: {
84
99
  [x: string]: import("hono/utils/types").JSONValue;
@@ -96,6 +111,9 @@ export declare const hooksRoutes: OpenAPIHono<{
96
111
  updated_at: string;
97
112
  hook_id: string;
98
113
  url: string;
114
+ scope?: "shared" | "local" | "platform" | undefined;
115
+ override?: "none" | "secrets" | "fields" | undefined;
116
+ enforce?: boolean | undefined;
99
117
  priority?: number | undefined;
100
118
  metadata?: {
101
119
  [x: string]: import("hono/utils/types").JSONValue;
@@ -108,6 +126,9 @@ export declare const hooksRoutes: OpenAPIHono<{
108
126
  updated_at: string;
109
127
  hook_id: string;
110
128
  form_id: string;
129
+ scope?: "shared" | "local" | "platform" | undefined;
130
+ override?: "none" | "secrets" | "fields" | undefined;
131
+ enforce?: boolean | undefined;
111
132
  priority?: number | undefined;
112
133
  metadata?: {
113
134
  [x: string]: import("hono/utils/types").JSONValue;
@@ -120,6 +141,9 @@ export declare const hooksRoutes: OpenAPIHono<{
120
141
  updated_at: string;
121
142
  hook_id: string;
122
143
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
144
+ scope?: "shared" | "local" | "platform" | undefined;
145
+ override?: "none" | "secrets" | "fields" | undefined;
146
+ enforce?: boolean | undefined;
123
147
  priority?: number | undefined;
124
148
  metadata?: {
125
149
  [x: string]: import("hono/utils/types").JSONValue;
@@ -132,6 +156,9 @@ export declare const hooksRoutes: OpenAPIHono<{
132
156
  updated_at: string;
133
157
  hook_id: string;
134
158
  code_id: string;
159
+ scope?: "shared" | "local" | "platform" | undefined;
160
+ override?: "none" | "secrets" | "fields" | undefined;
161
+ enforce?: boolean | undefined;
135
162
  priority?: number | undefined;
136
163
  metadata?: {
137
164
  [x: string]: import("hono/utils/types").JSONValue;
@@ -144,6 +171,9 @@ export declare const hooksRoutes: OpenAPIHono<{
144
171
  updated_at: string;
145
172
  hook_id: string;
146
173
  page_id: "impersonate";
174
+ scope?: "shared" | "local" | "platform" | undefined;
175
+ override?: "none" | "secrets" | "fields" | undefined;
176
+ enforce?: boolean | undefined;
147
177
  priority?: number | undefined;
148
178
  metadata?: {
149
179
  [x: string]: import("hono/utils/types").JSONValue;
@@ -161,6 +191,9 @@ export declare const hooksRoutes: OpenAPIHono<{
161
191
  updated_at: string;
162
192
  hook_id: string;
163
193
  url: string;
194
+ scope?: "shared" | "local" | "platform" | undefined;
195
+ override?: "none" | "secrets" | "fields" | undefined;
196
+ enforce?: boolean | undefined;
164
197
  priority?: number | undefined;
165
198
  metadata?: {
166
199
  [x: string]: import("hono/utils/types").JSONValue;
@@ -173,6 +206,9 @@ export declare const hooksRoutes: OpenAPIHono<{
173
206
  updated_at: string;
174
207
  hook_id: string;
175
208
  form_id: string;
209
+ scope?: "shared" | "local" | "platform" | undefined;
210
+ override?: "none" | "secrets" | "fields" | undefined;
211
+ enforce?: boolean | undefined;
176
212
  priority?: number | undefined;
177
213
  metadata?: {
178
214
  [x: string]: import("hono/utils/types").JSONValue;
@@ -185,6 +221,9 @@ export declare const hooksRoutes: OpenAPIHono<{
185
221
  updated_at: string;
186
222
  hook_id: string;
187
223
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
224
+ scope?: "shared" | "local" | "platform" | undefined;
225
+ override?: "none" | "secrets" | "fields" | undefined;
226
+ enforce?: boolean | undefined;
188
227
  priority?: number | undefined;
189
228
  metadata?: {
190
229
  [x: string]: import("hono/utils/types").JSONValue;
@@ -197,6 +236,9 @@ export declare const hooksRoutes: OpenAPIHono<{
197
236
  updated_at: string;
198
237
  hook_id: string;
199
238
  code_id: string;
239
+ scope?: "shared" | "local" | "platform" | undefined;
240
+ override?: "none" | "secrets" | "fields" | undefined;
241
+ enforce?: boolean | undefined;
200
242
  priority?: number | undefined;
201
243
  metadata?: {
202
244
  [x: string]: import("hono/utils/types").JSONValue;
@@ -209,6 +251,9 @@ export declare const hooksRoutes: OpenAPIHono<{
209
251
  updated_at: string;
210
252
  hook_id: string;
211
253
  page_id: "impersonate";
254
+ scope?: "shared" | "local" | "platform" | undefined;
255
+ override?: "none" | "secrets" | "fields" | undefined;
256
+ enforce?: boolean | undefined;
212
257
  priority?: number | undefined;
213
258
  metadata?: {
214
259
  [x: string]: import("hono/utils/types").JSONValue;
@@ -232,6 +277,9 @@ export declare const hooksRoutes: OpenAPIHono<{
232
277
  json: {
233
278
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
234
279
  url: string;
280
+ scope?: "shared" | "local" | "platform" | undefined;
281
+ override?: "none" | "secrets" | "fields" | undefined;
282
+ enforce?: boolean | undefined;
235
283
  enabled?: boolean | undefined;
236
284
  synchronous?: boolean | undefined;
237
285
  priority?: number | undefined;
@@ -240,6 +288,9 @@ export declare const hooksRoutes: OpenAPIHono<{
240
288
  } | {
241
289
  trigger_id: "post-user-login";
242
290
  form_id: string;
291
+ scope?: "shared" | "local" | "platform" | undefined;
292
+ override?: "none" | "secrets" | "fields" | undefined;
293
+ enforce?: boolean | undefined;
243
294
  enabled?: boolean | undefined;
244
295
  synchronous?: boolean | undefined;
245
296
  priority?: number | undefined;
@@ -248,6 +299,9 @@ export declare const hooksRoutes: OpenAPIHono<{
248
299
  } | {
249
300
  trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
250
301
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
302
+ scope?: "shared" | "local" | "platform" | undefined;
303
+ override?: "none" | "secrets" | "fields" | undefined;
304
+ enforce?: boolean | undefined;
251
305
  enabled?: boolean | undefined;
252
306
  synchronous?: boolean | undefined;
253
307
  priority?: number | undefined;
@@ -256,6 +310,9 @@ export declare const hooksRoutes: OpenAPIHono<{
256
310
  } | {
257
311
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
258
312
  code_id: string;
313
+ scope?: "shared" | "local" | "platform" | undefined;
314
+ override?: "none" | "secrets" | "fields" | undefined;
315
+ enforce?: boolean | undefined;
259
316
  enabled?: boolean | undefined;
260
317
  synchronous?: boolean | undefined;
261
318
  priority?: number | undefined;
@@ -265,6 +322,9 @@ export declare const hooksRoutes: OpenAPIHono<{
265
322
  trigger_id: "post-user-login";
266
323
  page_id: "impersonate";
267
324
  permission_required?: string | undefined;
325
+ scope?: "shared" | "local" | "platform" | undefined;
326
+ override?: "none" | "secrets" | "fields" | undefined;
327
+ enforce?: boolean | undefined;
268
328
  enabled?: boolean | undefined;
269
329
  synchronous?: boolean | undefined;
270
330
  priority?: number | undefined;
@@ -280,6 +340,9 @@ export declare const hooksRoutes: OpenAPIHono<{
280
340
  updated_at: string;
281
341
  hook_id: string;
282
342
  url: string;
343
+ scope?: "shared" | "local" | "platform" | undefined;
344
+ override?: "none" | "secrets" | "fields" | undefined;
345
+ enforce?: boolean | undefined;
283
346
  priority?: number | undefined;
284
347
  metadata?: {
285
348
  [x: string]: import("hono/utils/types").JSONValue;
@@ -292,6 +355,9 @@ export declare const hooksRoutes: OpenAPIHono<{
292
355
  updated_at: string;
293
356
  hook_id: string;
294
357
  form_id: string;
358
+ scope?: "shared" | "local" | "platform" | undefined;
359
+ override?: "none" | "secrets" | "fields" | undefined;
360
+ enforce?: boolean | undefined;
295
361
  priority?: number | undefined;
296
362
  metadata?: {
297
363
  [x: string]: import("hono/utils/types").JSONValue;
@@ -304,6 +370,9 @@ export declare const hooksRoutes: OpenAPIHono<{
304
370
  updated_at: string;
305
371
  hook_id: string;
306
372
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
373
+ scope?: "shared" | "local" | "platform" | undefined;
374
+ override?: "none" | "secrets" | "fields" | undefined;
375
+ enforce?: boolean | undefined;
307
376
  priority?: number | undefined;
308
377
  metadata?: {
309
378
  [x: string]: import("hono/utils/types").JSONValue;
@@ -316,6 +385,9 @@ export declare const hooksRoutes: OpenAPIHono<{
316
385
  updated_at: string;
317
386
  hook_id: string;
318
387
  code_id: string;
388
+ scope?: "shared" | "local" | "platform" | undefined;
389
+ override?: "none" | "secrets" | "fields" | undefined;
390
+ enforce?: boolean | undefined;
319
391
  priority?: number | undefined;
320
392
  metadata?: {
321
393
  [x: string]: import("hono/utils/types").JSONValue;
@@ -328,6 +400,9 @@ export declare const hooksRoutes: OpenAPIHono<{
328
400
  updated_at: string;
329
401
  hook_id: string;
330
402
  page_id: "impersonate";
403
+ scope?: "shared" | "local" | "platform" | undefined;
404
+ override?: "none" | "secrets" | "fields" | undefined;
405
+ enforce?: boolean | undefined;
331
406
  priority?: number | undefined;
332
407
  metadata?: {
333
408
  [x: string]: import("hono/utils/types").JSONValue;
@@ -390,6 +465,9 @@ export declare const hooksRoutes: OpenAPIHono<{
390
465
  updated_at: string;
391
466
  hook_id: string;
392
467
  url: string;
468
+ scope?: "shared" | "local" | "platform" | undefined;
469
+ override?: "none" | "secrets" | "fields" | undefined;
470
+ enforce?: boolean | undefined;
393
471
  priority?: number | undefined;
394
472
  metadata?: {
395
473
  [x: string]: import("hono/utils/types").JSONValue;
@@ -402,6 +480,9 @@ export declare const hooksRoutes: OpenAPIHono<{
402
480
  updated_at: string;
403
481
  hook_id: string;
404
482
  form_id: string;
483
+ scope?: "shared" | "local" | "platform" | undefined;
484
+ override?: "none" | "secrets" | "fields" | undefined;
485
+ enforce?: boolean | undefined;
405
486
  priority?: number | undefined;
406
487
  metadata?: {
407
488
  [x: string]: import("hono/utils/types").JSONValue;
@@ -414,6 +495,9 @@ export declare const hooksRoutes: OpenAPIHono<{
414
495
  updated_at: string;
415
496
  hook_id: string;
416
497
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
498
+ scope?: "shared" | "local" | "platform" | undefined;
499
+ override?: "none" | "secrets" | "fields" | undefined;
500
+ enforce?: boolean | undefined;
417
501
  priority?: number | undefined;
418
502
  metadata?: {
419
503
  [x: string]: import("hono/utils/types").JSONValue;
@@ -426,6 +510,9 @@ export declare const hooksRoutes: OpenAPIHono<{
426
510
  updated_at: string;
427
511
  hook_id: string;
428
512
  code_id: string;
513
+ scope?: "shared" | "local" | "platform" | undefined;
514
+ override?: "none" | "secrets" | "fields" | undefined;
515
+ enforce?: boolean | undefined;
429
516
  priority?: number | undefined;
430
517
  metadata?: {
431
518
  [x: string]: import("hono/utils/types").JSONValue;
@@ -438,6 +525,9 @@ export declare const hooksRoutes: OpenAPIHono<{
438
525
  updated_at: string;
439
526
  hook_id: string;
440
527
  page_id: "impersonate";
528
+ scope?: "shared" | "local" | "platform" | undefined;
529
+ override?: "none" | "secrets" | "fields" | undefined;
530
+ enforce?: boolean | undefined;
441
531
  priority?: number | undefined;
442
532
  metadata?: {
443
533
  [x: string]: import("hono/utils/types").JSONValue;
@@ -481,6 +571,9 @@ export declare const hooksRoutes: OpenAPIHono<{
481
571
  updated_at: string;
482
572
  hook_id: string;
483
573
  url: string;
574
+ scope?: "shared" | "local" | "platform" | undefined;
575
+ override?: "none" | "secrets" | "fields" | undefined;
576
+ enforce?: boolean | undefined;
484
577
  priority?: number | undefined;
485
578
  metadata?: {
486
579
  [x: string]: import("hono/utils/types").JSONValue;
@@ -493,6 +586,9 @@ export declare const hooksRoutes: OpenAPIHono<{
493
586
  updated_at: string;
494
587
  hook_id: string;
495
588
  form_id: string;
589
+ scope?: "shared" | "local" | "platform" | undefined;
590
+ override?: "none" | "secrets" | "fields" | undefined;
591
+ enforce?: boolean | undefined;
496
592
  priority?: number | undefined;
497
593
  metadata?: {
498
594
  [x: string]: import("hono/utils/types").JSONValue;
@@ -505,6 +601,9 @@ export declare const hooksRoutes: OpenAPIHono<{
505
601
  updated_at: string;
506
602
  hook_id: string;
507
603
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
604
+ scope?: "shared" | "local" | "platform" | undefined;
605
+ override?: "none" | "secrets" | "fields" | undefined;
606
+ enforce?: boolean | undefined;
508
607
  priority?: number | undefined;
509
608
  metadata?: {
510
609
  [x: string]: import("hono/utils/types").JSONValue;
@@ -517,6 +616,9 @@ export declare const hooksRoutes: OpenAPIHono<{
517
616
  updated_at: string;
518
617
  hook_id: string;
519
618
  code_id: string;
619
+ scope?: "shared" | "local" | "platform" | undefined;
620
+ override?: "none" | "secrets" | "fields" | undefined;
621
+ enforce?: boolean | undefined;
520
622
  priority?: number | undefined;
521
623
  metadata?: {
522
624
  [x: string]: import("hono/utils/types").JSONValue;
@@ -529,6 +631,9 @@ export declare const hooksRoutes: OpenAPIHono<{
529
631
  updated_at: string;
530
632
  hook_id: string;
531
633
  page_id: "impersonate";
634
+ scope?: "shared" | "local" | "platform" | undefined;
635
+ override?: "none" | "secrets" | "fields" | undefined;
636
+ enforce?: boolean | undefined;
532
637
  priority?: number | undefined;
533
638
  metadata?: {
534
639
  [x: string]: import("hono/utils/types").JSONValue;