authhero 9.25.0 → 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 (65) 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 +623 -473
  4. package/dist/authhero.mjs +16319 -15605
  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 +8 -5
  9. package/dist/types/errors/management-api-error.d.ts +113 -0
  10. package/dist/types/helpers/client.d.ts +6 -0
  11. package/dist/types/helpers/control-plane-caller.d.ts +15 -0
  12. package/dist/types/helpers/platform-rows.d.ts +27 -0
  13. package/dist/types/helpers/request-data.d.ts +12 -0
  14. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  15. package/dist/types/helpers/synced-rows.d.ts +1 -0
  16. package/dist/types/index.d.ts +525 -469
  17. package/dist/types/routes/auth-api/account.d.ts +2 -2
  18. package/dist/types/routes/auth-api/index.d.ts +19 -19
  19. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  20. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  21. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  22. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  23. package/dist/types/routes/management-api/action-triggers.d.ts +4 -4
  24. package/dist/types/routes/management-api/actions.d.ts +23 -23
  25. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  26. package/dist/types/routes/management-api/branding.d.ts +9 -9
  27. package/dist/types/routes/management-api/client-grants.d.ts +13 -0
  28. package/dist/types/routes/management-api/clients.d.ts +19 -6
  29. package/dist/types/routes/management-api/connections.d.ts +36 -23
  30. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  31. package/dist/types/routes/management-api/emails.d.ts +12 -12
  32. package/dist/types/routes/management-api/failed-events.d.ts +2 -2
  33. package/dist/types/routes/management-api/flows.d.ts +8 -8
  34. package/dist/types/routes/management-api/forms.d.ts +144 -144
  35. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  36. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  37. package/dist/types/routes/management-api/hook-code.d.ts +2 -2
  38. package/dist/types/routes/management-api/hooks.d.ts +91 -91
  39. package/dist/types/routes/management-api/index.d.ts +495 -443
  40. package/dist/types/routes/management-api/keys.d.ts +16 -16
  41. package/dist/types/routes/management-api/logs.d.ts +4 -4
  42. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  43. package/dist/types/routes/management-api/organizations.d.ts +6 -6
  44. package/dist/types/routes/management-api/prompts.d.ts +10 -10
  45. package/dist/types/routes/management-api/resource-servers.d.ts +29 -16
  46. package/dist/types/routes/management-api/roles.d.ts +1 -1
  47. package/dist/types/routes/management-api/rollouts.d.ts +261 -0
  48. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  49. package/dist/types/routes/management-api/tenant-operations.d.ts +10 -5
  50. package/dist/types/routes/management-api/tenants.d.ts +17 -5
  51. package/dist/types/routes/management-api/token-exchange-profiles.d.ts +6 -6
  52. package/dist/types/routes/management-api/users.d.ts +17 -17
  53. package/dist/types/routes/universal-login/common.d.ts +22 -10
  54. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  55. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  56. package/dist/types/routes/universal-login/index.d.ts +2 -2
  57. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  58. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  59. package/dist/types/state-machines/login-session.d.ts +1 -1
  60. package/dist/types/types/AuthHeroConfig.d.ts +37 -1
  61. package/dist/types/types/Bindings.d.ts +2 -1
  62. package/dist/types/types/Variables.d.ts +5 -0
  63. package/dist/types/utils/field-encryption.d.ts +7 -0
  64. package/dist/types/utils/jwks.d.ts +2 -2
  65. package/package.json +6 -6
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
12
12
  };
13
13
  };
14
14
  output: {
15
- name: "otp" | "email" | "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: "otp" | "email" | "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: "otp" | "email" | "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: "otp" | "email" | "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: "otp" | "email" | "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<(("length" | "next" | "start" | "limit" | "total") & 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;
@@ -24,15 +24,15 @@ export declare const hooksRoutes: OpenAPIHono<{
24
24
  };
25
25
  };
26
26
  output: ({
27
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
27
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
28
28
  enabled: boolean;
29
29
  synchronous: boolean;
30
30
  created_at: string;
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;
34
+ scope?: "local" | "shared" | "platform" | undefined;
35
+ override?: "secrets" | "none" | "fields" | undefined;
36
36
  enforce?: boolean | undefined;
37
37
  priority?: number | undefined;
38
38
  metadata?: {
@@ -46,38 +46,38 @@ export declare const hooksRoutes: OpenAPIHono<{
46
46
  updated_at: string;
47
47
  hook_id: string;
48
48
  form_id: string;
49
- scope?: "shared" | "local" | "platform" | undefined;
50
- override?: "none" | "secrets" | "fields" | undefined;
49
+ scope?: "local" | "shared" | "platform" | undefined;
50
+ override?: "secrets" | "none" | "fields" | undefined;
51
51
  enforce?: boolean | undefined;
52
52
  priority?: number | undefined;
53
53
  metadata?: {
54
54
  [x: string]: import("hono/utils/types").JSONValue;
55
55
  } | undefined;
56
56
  } | {
57
- trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
57
+ trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
58
58
  enabled: boolean;
59
59
  synchronous: boolean;
60
60
  created_at: string;
61
61
  updated_at: string;
62
62
  hook_id: string;
63
63
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
64
- scope?: "shared" | "local" | "platform" | undefined;
65
- override?: "none" | "secrets" | "fields" | undefined;
64
+ scope?: "local" | "shared" | "platform" | undefined;
65
+ override?: "secrets" | "none" | "fields" | undefined;
66
66
  enforce?: boolean | undefined;
67
67
  priority?: number | undefined;
68
68
  metadata?: {
69
69
  [x: string]: import("hono/utils/types").JSONValue;
70
70
  } | undefined;
71
71
  } | {
72
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
72
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "credentials-exchange";
73
73
  enabled: boolean;
74
74
  synchronous: boolean;
75
75
  created_at: string;
76
76
  updated_at: string;
77
77
  hook_id: string;
78
78
  code_id: string;
79
- scope?: "shared" | "local" | "platform" | undefined;
80
- override?: "none" | "secrets" | "fields" | undefined;
79
+ scope?: "local" | "shared" | "platform" | undefined;
80
+ override?: "secrets" | "none" | "fields" | undefined;
81
81
  enforce?: boolean | undefined;
82
82
  priority?: number | undefined;
83
83
  metadata?: {
@@ -91,8 +91,8 @@ export declare const hooksRoutes: OpenAPIHono<{
91
91
  updated_at: string;
92
92
  hook_id: string;
93
93
  page_id: "impersonate";
94
- scope?: "shared" | "local" | "platform" | undefined;
95
- override?: "none" | "secrets" | "fields" | undefined;
94
+ scope?: "local" | "shared" | "platform" | undefined;
95
+ override?: "secrets" | "none" | "fields" | undefined;
96
96
  enforce?: boolean | undefined;
97
97
  priority?: number | undefined;
98
98
  metadata?: {
@@ -104,15 +104,15 @@ export declare const hooksRoutes: OpenAPIHono<{
104
104
  limit: number;
105
105
  length: number;
106
106
  hooks: ({
107
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
107
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
108
108
  enabled: boolean;
109
109
  synchronous: boolean;
110
110
  created_at: string;
111
111
  updated_at: string;
112
112
  hook_id: string;
113
113
  url: string;
114
- scope?: "shared" | "local" | "platform" | undefined;
115
- override?: "none" | "secrets" | "fields" | undefined;
114
+ scope?: "local" | "shared" | "platform" | undefined;
115
+ override?: "secrets" | "none" | "fields" | undefined;
116
116
  enforce?: boolean | undefined;
117
117
  priority?: number | undefined;
118
118
  metadata?: {
@@ -126,38 +126,38 @@ export declare const hooksRoutes: OpenAPIHono<{
126
126
  updated_at: string;
127
127
  hook_id: string;
128
128
  form_id: string;
129
- scope?: "shared" | "local" | "platform" | undefined;
130
- override?: "none" | "secrets" | "fields" | undefined;
129
+ scope?: "local" | "shared" | "platform" | undefined;
130
+ override?: "secrets" | "none" | "fields" | undefined;
131
131
  enforce?: boolean | undefined;
132
132
  priority?: number | undefined;
133
133
  metadata?: {
134
134
  [x: string]: import("hono/utils/types").JSONValue;
135
135
  } | undefined;
136
136
  } | {
137
- trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
137
+ trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
138
138
  enabled: boolean;
139
139
  synchronous: boolean;
140
140
  created_at: string;
141
141
  updated_at: string;
142
142
  hook_id: string;
143
143
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
144
- scope?: "shared" | "local" | "platform" | undefined;
145
- override?: "none" | "secrets" | "fields" | undefined;
144
+ scope?: "local" | "shared" | "platform" | undefined;
145
+ override?: "secrets" | "none" | "fields" | undefined;
146
146
  enforce?: boolean | undefined;
147
147
  priority?: number | undefined;
148
148
  metadata?: {
149
149
  [x: string]: import("hono/utils/types").JSONValue;
150
150
  } | undefined;
151
151
  } | {
152
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
152
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "credentials-exchange";
153
153
  enabled: boolean;
154
154
  synchronous: boolean;
155
155
  created_at: string;
156
156
  updated_at: string;
157
157
  hook_id: string;
158
158
  code_id: string;
159
- scope?: "shared" | "local" | "platform" | undefined;
160
- override?: "none" | "secrets" | "fields" | undefined;
159
+ scope?: "local" | "shared" | "platform" | undefined;
160
+ override?: "secrets" | "none" | "fields" | undefined;
161
161
  enforce?: boolean | undefined;
162
162
  priority?: number | undefined;
163
163
  metadata?: {
@@ -171,8 +171,8 @@ export declare const hooksRoutes: OpenAPIHono<{
171
171
  updated_at: string;
172
172
  hook_id: string;
173
173
  page_id: "impersonate";
174
- scope?: "shared" | "local" | "platform" | undefined;
175
- override?: "none" | "secrets" | "fields" | undefined;
174
+ scope?: "local" | "shared" | "platform" | undefined;
175
+ override?: "secrets" | "none" | "fields" | undefined;
176
176
  enforce?: boolean | undefined;
177
177
  priority?: number | undefined;
178
178
  metadata?: {
@@ -184,15 +184,15 @@ export declare const hooksRoutes: OpenAPIHono<{
184
184
  next?: string | undefined;
185
185
  } | {
186
186
  hooks: ({
187
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
187
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
188
188
  enabled: boolean;
189
189
  synchronous: boolean;
190
190
  created_at: string;
191
191
  updated_at: string;
192
192
  hook_id: string;
193
193
  url: string;
194
- scope?: "shared" | "local" | "platform" | undefined;
195
- override?: "none" | "secrets" | "fields" | undefined;
194
+ scope?: "local" | "shared" | "platform" | undefined;
195
+ override?: "secrets" | "none" | "fields" | undefined;
196
196
  enforce?: boolean | undefined;
197
197
  priority?: number | undefined;
198
198
  metadata?: {
@@ -206,38 +206,38 @@ export declare const hooksRoutes: OpenAPIHono<{
206
206
  updated_at: string;
207
207
  hook_id: string;
208
208
  form_id: string;
209
- scope?: "shared" | "local" | "platform" | undefined;
210
- override?: "none" | "secrets" | "fields" | undefined;
209
+ scope?: "local" | "shared" | "platform" | undefined;
210
+ override?: "secrets" | "none" | "fields" | undefined;
211
211
  enforce?: boolean | undefined;
212
212
  priority?: number | undefined;
213
213
  metadata?: {
214
214
  [x: string]: import("hono/utils/types").JSONValue;
215
215
  } | undefined;
216
216
  } | {
217
- trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
217
+ trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
218
218
  enabled: boolean;
219
219
  synchronous: boolean;
220
220
  created_at: string;
221
221
  updated_at: string;
222
222
  hook_id: string;
223
223
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
224
- scope?: "shared" | "local" | "platform" | undefined;
225
- override?: "none" | "secrets" | "fields" | undefined;
224
+ scope?: "local" | "shared" | "platform" | undefined;
225
+ override?: "secrets" | "none" | "fields" | undefined;
226
226
  enforce?: boolean | undefined;
227
227
  priority?: number | undefined;
228
228
  metadata?: {
229
229
  [x: string]: import("hono/utils/types").JSONValue;
230
230
  } | undefined;
231
231
  } | {
232
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
232
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "credentials-exchange";
233
233
  enabled: boolean;
234
234
  synchronous: boolean;
235
235
  created_at: string;
236
236
  updated_at: string;
237
237
  hook_id: string;
238
238
  code_id: string;
239
- scope?: "shared" | "local" | "platform" | undefined;
240
- override?: "none" | "secrets" | "fields" | undefined;
239
+ scope?: "local" | "shared" | "platform" | undefined;
240
+ override?: "secrets" | "none" | "fields" | undefined;
241
241
  enforce?: boolean | undefined;
242
242
  priority?: number | undefined;
243
243
  metadata?: {
@@ -251,8 +251,8 @@ export declare const hooksRoutes: OpenAPIHono<{
251
251
  updated_at: string;
252
252
  hook_id: string;
253
253
  page_id: "impersonate";
254
- scope?: "shared" | "local" | "platform" | undefined;
255
- override?: "none" | "secrets" | "fields" | undefined;
254
+ scope?: "local" | "shared" | "platform" | undefined;
255
+ override?: "secrets" | "none" | "fields" | undefined;
256
256
  enforce?: boolean | undefined;
257
257
  priority?: number | undefined;
258
258
  metadata?: {
@@ -275,10 +275,10 @@ export declare const hooksRoutes: OpenAPIHono<{
275
275
  };
276
276
  } & {
277
277
  json: {
278
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
278
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
279
279
  url: string;
280
- scope?: "shared" | "local" | "platform" | undefined;
281
- override?: "none" | "secrets" | "fields" | undefined;
280
+ scope?: "local" | "shared" | "platform" | undefined;
281
+ override?: "secrets" | "none" | "fields" | undefined;
282
282
  enforce?: boolean | undefined;
283
283
  enabled?: boolean | undefined;
284
284
  synchronous?: boolean | undefined;
@@ -288,8 +288,8 @@ export declare const hooksRoutes: OpenAPIHono<{
288
288
  } | {
289
289
  trigger_id: "post-user-login";
290
290
  form_id: string;
291
- scope?: "shared" | "local" | "platform" | undefined;
292
- override?: "none" | "secrets" | "fields" | undefined;
291
+ scope?: "local" | "shared" | "platform" | undefined;
292
+ override?: "secrets" | "none" | "fields" | undefined;
293
293
  enforce?: boolean | undefined;
294
294
  enabled?: boolean | undefined;
295
295
  synchronous?: boolean | undefined;
@@ -297,10 +297,10 @@ export declare const hooksRoutes: OpenAPIHono<{
297
297
  hook_id?: string | undefined;
298
298
  metadata?: Record<string, unknown> | undefined;
299
299
  } | {
300
- trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
300
+ trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
301
301
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
302
- scope?: "shared" | "local" | "platform" | undefined;
303
- override?: "none" | "secrets" | "fields" | undefined;
302
+ scope?: "local" | "shared" | "platform" | undefined;
303
+ override?: "secrets" | "none" | "fields" | undefined;
304
304
  enforce?: boolean | undefined;
305
305
  enabled?: boolean | undefined;
306
306
  synchronous?: boolean | undefined;
@@ -308,10 +308,10 @@ export declare const hooksRoutes: OpenAPIHono<{
308
308
  hook_id?: string | undefined;
309
309
  metadata?: Record<string, unknown> | undefined;
310
310
  } | {
311
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
311
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "credentials-exchange";
312
312
  code_id: string;
313
- scope?: "shared" | "local" | "platform" | undefined;
314
- override?: "none" | "secrets" | "fields" | undefined;
313
+ scope?: "local" | "shared" | "platform" | undefined;
314
+ override?: "secrets" | "none" | "fields" | undefined;
315
315
  enforce?: boolean | undefined;
316
316
  enabled?: boolean | undefined;
317
317
  synchronous?: boolean | undefined;
@@ -322,8 +322,8 @@ export declare const hooksRoutes: OpenAPIHono<{
322
322
  trigger_id: "post-user-login";
323
323
  page_id: "impersonate";
324
324
  permission_required?: string | undefined;
325
- scope?: "shared" | "local" | "platform" | undefined;
326
- override?: "none" | "secrets" | "fields" | undefined;
325
+ scope?: "local" | "shared" | "platform" | undefined;
326
+ override?: "secrets" | "none" | "fields" | undefined;
327
327
  enforce?: boolean | undefined;
328
328
  enabled?: boolean | undefined;
329
329
  synchronous?: boolean | undefined;
@@ -333,15 +333,15 @@ export declare const hooksRoutes: OpenAPIHono<{
333
333
  };
334
334
  };
335
335
  output: {
336
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
336
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
337
337
  enabled: boolean;
338
338
  synchronous: boolean;
339
339
  created_at: string;
340
340
  updated_at: string;
341
341
  hook_id: string;
342
342
  url: string;
343
- scope?: "shared" | "local" | "platform" | undefined;
344
- override?: "none" | "secrets" | "fields" | undefined;
343
+ scope?: "local" | "shared" | "platform" | undefined;
344
+ override?: "secrets" | "none" | "fields" | undefined;
345
345
  enforce?: boolean | undefined;
346
346
  priority?: number | undefined;
347
347
  metadata?: {
@@ -355,38 +355,38 @@ export declare const hooksRoutes: OpenAPIHono<{
355
355
  updated_at: string;
356
356
  hook_id: string;
357
357
  form_id: string;
358
- scope?: "shared" | "local" | "platform" | undefined;
359
- override?: "none" | "secrets" | "fields" | undefined;
358
+ scope?: "local" | "shared" | "platform" | undefined;
359
+ override?: "secrets" | "none" | "fields" | undefined;
360
360
  enforce?: boolean | undefined;
361
361
  priority?: number | undefined;
362
362
  metadata?: {
363
363
  [x: string]: import("hono/utils/types").JSONValue;
364
364
  } | undefined;
365
365
  } | {
366
- trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
366
+ trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
367
367
  enabled: boolean;
368
368
  synchronous: boolean;
369
369
  created_at: string;
370
370
  updated_at: string;
371
371
  hook_id: string;
372
372
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
373
- scope?: "shared" | "local" | "platform" | undefined;
374
- override?: "none" | "secrets" | "fields" | undefined;
373
+ scope?: "local" | "shared" | "platform" | undefined;
374
+ override?: "secrets" | "none" | "fields" | undefined;
375
375
  enforce?: boolean | undefined;
376
376
  priority?: number | undefined;
377
377
  metadata?: {
378
378
  [x: string]: import("hono/utils/types").JSONValue;
379
379
  } | undefined;
380
380
  } | {
381
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
381
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "credentials-exchange";
382
382
  enabled: boolean;
383
383
  synchronous: boolean;
384
384
  created_at: string;
385
385
  updated_at: string;
386
386
  hook_id: string;
387
387
  code_id: string;
388
- scope?: "shared" | "local" | "platform" | undefined;
389
- override?: "none" | "secrets" | "fields" | undefined;
388
+ scope?: "local" | "shared" | "platform" | undefined;
389
+ override?: "secrets" | "none" | "fields" | undefined;
390
390
  enforce?: boolean | undefined;
391
391
  priority?: number | undefined;
392
392
  metadata?: {
@@ -400,8 +400,8 @@ export declare const hooksRoutes: OpenAPIHono<{
400
400
  updated_at: string;
401
401
  hook_id: string;
402
402
  page_id: "impersonate";
403
- scope?: "shared" | "local" | "platform" | undefined;
404
- override?: "none" | "secrets" | "fields" | undefined;
403
+ scope?: "local" | "shared" | "platform" | undefined;
404
+ override?: "secrets" | "none" | "fields" | undefined;
405
405
  enforce?: boolean | undefined;
406
406
  priority?: number | undefined;
407
407
  metadata?: {
@@ -458,15 +458,15 @@ export declare const hooksRoutes: OpenAPIHono<{
458
458
  json: unknown;
459
459
  };
460
460
  output: {
461
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
461
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
462
462
  enabled: boolean;
463
463
  synchronous: boolean;
464
464
  created_at: string;
465
465
  updated_at: string;
466
466
  hook_id: string;
467
467
  url: string;
468
- scope?: "shared" | "local" | "platform" | undefined;
469
- override?: "none" | "secrets" | "fields" | undefined;
468
+ scope?: "local" | "shared" | "platform" | undefined;
469
+ override?: "secrets" | "none" | "fields" | undefined;
470
470
  enforce?: boolean | undefined;
471
471
  priority?: number | undefined;
472
472
  metadata?: {
@@ -480,38 +480,38 @@ export declare const hooksRoutes: OpenAPIHono<{
480
480
  updated_at: string;
481
481
  hook_id: string;
482
482
  form_id: string;
483
- scope?: "shared" | "local" | "platform" | undefined;
484
- override?: "none" | "secrets" | "fields" | undefined;
483
+ scope?: "local" | "shared" | "platform" | undefined;
484
+ override?: "secrets" | "none" | "fields" | undefined;
485
485
  enforce?: boolean | undefined;
486
486
  priority?: number | undefined;
487
487
  metadata?: {
488
488
  [x: string]: import("hono/utils/types").JSONValue;
489
489
  } | undefined;
490
490
  } | {
491
- trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
491
+ trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
492
492
  enabled: boolean;
493
493
  synchronous: boolean;
494
494
  created_at: string;
495
495
  updated_at: string;
496
496
  hook_id: string;
497
497
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
498
- scope?: "shared" | "local" | "platform" | undefined;
499
- override?: "none" | "secrets" | "fields" | undefined;
498
+ scope?: "local" | "shared" | "platform" | undefined;
499
+ override?: "secrets" | "none" | "fields" | undefined;
500
500
  enforce?: boolean | undefined;
501
501
  priority?: number | undefined;
502
502
  metadata?: {
503
503
  [x: string]: import("hono/utils/types").JSONValue;
504
504
  } | undefined;
505
505
  } | {
506
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
506
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "credentials-exchange";
507
507
  enabled: boolean;
508
508
  synchronous: boolean;
509
509
  created_at: string;
510
510
  updated_at: string;
511
511
  hook_id: string;
512
512
  code_id: string;
513
- scope?: "shared" | "local" | "platform" | undefined;
514
- override?: "none" | "secrets" | "fields" | undefined;
513
+ scope?: "local" | "shared" | "platform" | undefined;
514
+ override?: "secrets" | "none" | "fields" | undefined;
515
515
  enforce?: boolean | undefined;
516
516
  priority?: number | undefined;
517
517
  metadata?: {
@@ -525,8 +525,8 @@ export declare const hooksRoutes: OpenAPIHono<{
525
525
  updated_at: string;
526
526
  hook_id: string;
527
527
  page_id: "impersonate";
528
- scope?: "shared" | "local" | "platform" | undefined;
529
- override?: "none" | "secrets" | "fields" | undefined;
528
+ scope?: "local" | "shared" | "platform" | undefined;
529
+ override?: "secrets" | "none" | "fields" | undefined;
530
530
  enforce?: boolean | undefined;
531
531
  priority?: number | undefined;
532
532
  metadata?: {
@@ -564,15 +564,15 @@ export declare const hooksRoutes: OpenAPIHono<{
564
564
  };
565
565
  };
566
566
  output: {
567
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
567
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
568
568
  enabled: boolean;
569
569
  synchronous: boolean;
570
570
  created_at: string;
571
571
  updated_at: string;
572
572
  hook_id: string;
573
573
  url: string;
574
- scope?: "shared" | "local" | "platform" | undefined;
575
- override?: "none" | "secrets" | "fields" | undefined;
574
+ scope?: "local" | "shared" | "platform" | undefined;
575
+ override?: "secrets" | "none" | "fields" | undefined;
576
576
  enforce?: boolean | undefined;
577
577
  priority?: number | undefined;
578
578
  metadata?: {
@@ -586,38 +586,38 @@ export declare const hooksRoutes: OpenAPIHono<{
586
586
  updated_at: string;
587
587
  hook_id: string;
588
588
  form_id: string;
589
- scope?: "shared" | "local" | "platform" | undefined;
590
- override?: "none" | "secrets" | "fields" | undefined;
589
+ scope?: "local" | "shared" | "platform" | undefined;
590
+ override?: "secrets" | "none" | "fields" | undefined;
591
591
  enforce?: boolean | undefined;
592
592
  priority?: number | undefined;
593
593
  metadata?: {
594
594
  [x: string]: import("hono/utils/types").JSONValue;
595
595
  } | undefined;
596
596
  } | {
597
- trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
597
+ trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
598
598
  enabled: boolean;
599
599
  synchronous: boolean;
600
600
  created_at: string;
601
601
  updated_at: string;
602
602
  hook_id: string;
603
603
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
604
- scope?: "shared" | "local" | "platform" | undefined;
605
- override?: "none" | "secrets" | "fields" | undefined;
604
+ scope?: "local" | "shared" | "platform" | undefined;
605
+ override?: "secrets" | "none" | "fields" | undefined;
606
606
  enforce?: boolean | undefined;
607
607
  priority?: number | undefined;
608
608
  metadata?: {
609
609
  [x: string]: import("hono/utils/types").JSONValue;
610
610
  } | undefined;
611
611
  } | {
612
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
612
+ trigger_id: "post-user-login" | "pre-user-registration" | "post-user-registration" | "credentials-exchange";
613
613
  enabled: boolean;
614
614
  synchronous: boolean;
615
615
  created_at: string;
616
616
  updated_at: string;
617
617
  hook_id: string;
618
618
  code_id: string;
619
- scope?: "shared" | "local" | "platform" | undefined;
620
- override?: "none" | "secrets" | "fields" | undefined;
619
+ scope?: "local" | "shared" | "platform" | undefined;
620
+ override?: "secrets" | "none" | "fields" | undefined;
621
621
  enforce?: boolean | undefined;
622
622
  priority?: number | undefined;
623
623
  metadata?: {
@@ -631,8 +631,8 @@ export declare const hooksRoutes: OpenAPIHono<{
631
631
  updated_at: string;
632
632
  hook_id: string;
633
633
  page_id: "impersonate";
634
- scope?: "shared" | "local" | "platform" | undefined;
635
- override?: "none" | "secrets" | "fields" | undefined;
634
+ scope?: "local" | "shared" | "platform" | undefined;
635
+ override?: "secrets" | "none" | "fields" | undefined;
636
636
  enforce?: boolean | undefined;
637
637
  priority?: number | undefined;
638
638
  metadata?: {