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
@@ -24,13 +24,16 @@ 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?: "local" | "shared" | "platform" | undefined;
35
+ override?: "secrets" | "none" | "fields" | undefined;
36
+ enforce?: boolean | undefined;
34
37
  priority?: number | undefined;
35
38
  metadata?: {
36
39
  [x: string]: import("hono/utils/types").JSONValue;
@@ -43,30 +46,39 @@ export declare const hooksRoutes: OpenAPIHono<{
43
46
  updated_at: string;
44
47
  hook_id: string;
45
48
  form_id: string;
49
+ scope?: "local" | "shared" | "platform" | undefined;
50
+ override?: "secrets" | "none" | "fields" | undefined;
51
+ enforce?: boolean | undefined;
46
52
  priority?: number | undefined;
47
53
  metadata?: {
48
54
  [x: string]: import("hono/utils/types").JSONValue;
49
55
  } | undefined;
50
56
  } | {
51
- 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";
52
58
  enabled: boolean;
53
59
  synchronous: boolean;
54
60
  created_at: string;
55
61
  updated_at: string;
56
62
  hook_id: string;
57
63
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
64
+ scope?: "local" | "shared" | "platform" | undefined;
65
+ override?: "secrets" | "none" | "fields" | undefined;
66
+ enforce?: boolean | undefined;
58
67
  priority?: number | undefined;
59
68
  metadata?: {
60
69
  [x: string]: import("hono/utils/types").JSONValue;
61
70
  } | undefined;
62
71
  } | {
63
- 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";
64
73
  enabled: boolean;
65
74
  synchronous: boolean;
66
75
  created_at: string;
67
76
  updated_at: string;
68
77
  hook_id: string;
69
78
  code_id: string;
79
+ scope?: "local" | "shared" | "platform" | undefined;
80
+ override?: "secrets" | "none" | "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?: "local" | "shared" | "platform" | undefined;
95
+ override?: "secrets" | "none" | "fields" | undefined;
96
+ enforce?: boolean | undefined;
82
97
  priority?: number | undefined;
83
98
  metadata?: {
84
99
  [x: string]: import("hono/utils/types").JSONValue;
@@ -89,13 +104,16 @@ export declare const hooksRoutes: OpenAPIHono<{
89
104
  limit: number;
90
105
  length: number;
91
106
  hooks: ({
92
- 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";
93
108
  enabled: boolean;
94
109
  synchronous: boolean;
95
110
  created_at: string;
96
111
  updated_at: string;
97
112
  hook_id: string;
98
113
  url: string;
114
+ scope?: "local" | "shared" | "platform" | undefined;
115
+ override?: "secrets" | "none" | "fields" | undefined;
116
+ enforce?: boolean | undefined;
99
117
  priority?: number | undefined;
100
118
  metadata?: {
101
119
  [x: string]: import("hono/utils/types").JSONValue;
@@ -108,30 +126,39 @@ export declare const hooksRoutes: OpenAPIHono<{
108
126
  updated_at: string;
109
127
  hook_id: string;
110
128
  form_id: string;
129
+ scope?: "local" | "shared" | "platform" | undefined;
130
+ override?: "secrets" | "none" | "fields" | undefined;
131
+ enforce?: boolean | undefined;
111
132
  priority?: number | undefined;
112
133
  metadata?: {
113
134
  [x: string]: import("hono/utils/types").JSONValue;
114
135
  } | undefined;
115
136
  } | {
116
- 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";
117
138
  enabled: boolean;
118
139
  synchronous: boolean;
119
140
  created_at: string;
120
141
  updated_at: string;
121
142
  hook_id: string;
122
143
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
144
+ scope?: "local" | "shared" | "platform" | undefined;
145
+ override?: "secrets" | "none" | "fields" | undefined;
146
+ enforce?: boolean | undefined;
123
147
  priority?: number | undefined;
124
148
  metadata?: {
125
149
  [x: string]: import("hono/utils/types").JSONValue;
126
150
  } | undefined;
127
151
  } | {
128
- 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";
129
153
  enabled: boolean;
130
154
  synchronous: boolean;
131
155
  created_at: string;
132
156
  updated_at: string;
133
157
  hook_id: string;
134
158
  code_id: string;
159
+ scope?: "local" | "shared" | "platform" | undefined;
160
+ override?: "secrets" | "none" | "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?: "local" | "shared" | "platform" | undefined;
175
+ override?: "secrets" | "none" | "fields" | undefined;
176
+ enforce?: boolean | undefined;
147
177
  priority?: number | undefined;
148
178
  metadata?: {
149
179
  [x: string]: import("hono/utils/types").JSONValue;
@@ -154,13 +184,16 @@ export declare const hooksRoutes: OpenAPIHono<{
154
184
  next?: string | undefined;
155
185
  } | {
156
186
  hooks: ({
157
- 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";
158
188
  enabled: boolean;
159
189
  synchronous: boolean;
160
190
  created_at: string;
161
191
  updated_at: string;
162
192
  hook_id: string;
163
193
  url: string;
194
+ scope?: "local" | "shared" | "platform" | undefined;
195
+ override?: "secrets" | "none" | "fields" | undefined;
196
+ enforce?: boolean | undefined;
164
197
  priority?: number | undefined;
165
198
  metadata?: {
166
199
  [x: string]: import("hono/utils/types").JSONValue;
@@ -173,30 +206,39 @@ export declare const hooksRoutes: OpenAPIHono<{
173
206
  updated_at: string;
174
207
  hook_id: string;
175
208
  form_id: string;
209
+ scope?: "local" | "shared" | "platform" | undefined;
210
+ override?: "secrets" | "none" | "fields" | undefined;
211
+ enforce?: boolean | undefined;
176
212
  priority?: number | undefined;
177
213
  metadata?: {
178
214
  [x: string]: import("hono/utils/types").JSONValue;
179
215
  } | undefined;
180
216
  } | {
181
- 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";
182
218
  enabled: boolean;
183
219
  synchronous: boolean;
184
220
  created_at: string;
185
221
  updated_at: string;
186
222
  hook_id: string;
187
223
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
224
+ scope?: "local" | "shared" | "platform" | undefined;
225
+ override?: "secrets" | "none" | "fields" | undefined;
226
+ enforce?: boolean | undefined;
188
227
  priority?: number | undefined;
189
228
  metadata?: {
190
229
  [x: string]: import("hono/utils/types").JSONValue;
191
230
  } | undefined;
192
231
  } | {
193
- 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";
194
233
  enabled: boolean;
195
234
  synchronous: boolean;
196
235
  created_at: string;
197
236
  updated_at: string;
198
237
  hook_id: string;
199
238
  code_id: string;
239
+ scope?: "local" | "shared" | "platform" | undefined;
240
+ override?: "secrets" | "none" | "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?: "local" | "shared" | "platform" | undefined;
255
+ override?: "secrets" | "none" | "fields" | undefined;
256
+ enforce?: boolean | undefined;
212
257
  priority?: number | undefined;
213
258
  metadata?: {
214
259
  [x: string]: import("hono/utils/types").JSONValue;
@@ -230,8 +275,11 @@ export declare const hooksRoutes: OpenAPIHono<{
230
275
  };
231
276
  } & {
232
277
  json: {
233
- 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";
234
279
  url: string;
280
+ scope?: "local" | "shared" | "platform" | undefined;
281
+ override?: "secrets" | "none" | "fields" | undefined;
282
+ enforce?: boolean | undefined;
235
283
  enabled?: boolean | undefined;
236
284
  synchronous?: boolean | undefined;
237
285
  priority?: number | undefined;
@@ -240,22 +288,31 @@ export declare const hooksRoutes: OpenAPIHono<{
240
288
  } | {
241
289
  trigger_id: "post-user-login";
242
290
  form_id: string;
291
+ scope?: "local" | "shared" | "platform" | undefined;
292
+ override?: "secrets" | "none" | "fields" | undefined;
293
+ enforce?: boolean | undefined;
243
294
  enabled?: boolean | undefined;
244
295
  synchronous?: boolean | undefined;
245
296
  priority?: number | undefined;
246
297
  hook_id?: string | undefined;
247
298
  metadata?: Record<string, unknown> | undefined;
248
299
  } | {
249
- 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";
250
301
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
302
+ scope?: "local" | "shared" | "platform" | undefined;
303
+ override?: "secrets" | "none" | "fields" | undefined;
304
+ enforce?: boolean | undefined;
251
305
  enabled?: boolean | undefined;
252
306
  synchronous?: boolean | undefined;
253
307
  priority?: number | undefined;
254
308
  hook_id?: string | undefined;
255
309
  metadata?: Record<string, unknown> | undefined;
256
310
  } | {
257
- 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";
258
312
  code_id: string;
313
+ scope?: "local" | "shared" | "platform" | undefined;
314
+ override?: "secrets" | "none" | "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?: "local" | "shared" | "platform" | undefined;
326
+ override?: "secrets" | "none" | "fields" | undefined;
327
+ enforce?: boolean | undefined;
268
328
  enabled?: boolean | undefined;
269
329
  synchronous?: boolean | undefined;
270
330
  priority?: number | undefined;
@@ -273,13 +333,16 @@ export declare const hooksRoutes: OpenAPIHono<{
273
333
  };
274
334
  };
275
335
  output: {
276
- 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";
277
337
  enabled: boolean;
278
338
  synchronous: boolean;
279
339
  created_at: string;
280
340
  updated_at: string;
281
341
  hook_id: string;
282
342
  url: string;
343
+ scope?: "local" | "shared" | "platform" | undefined;
344
+ override?: "secrets" | "none" | "fields" | undefined;
345
+ enforce?: boolean | undefined;
283
346
  priority?: number | undefined;
284
347
  metadata?: {
285
348
  [x: string]: import("hono/utils/types").JSONValue;
@@ -292,30 +355,39 @@ export declare const hooksRoutes: OpenAPIHono<{
292
355
  updated_at: string;
293
356
  hook_id: string;
294
357
  form_id: string;
358
+ scope?: "local" | "shared" | "platform" | undefined;
359
+ override?: "secrets" | "none" | "fields" | undefined;
360
+ enforce?: boolean | undefined;
295
361
  priority?: number | undefined;
296
362
  metadata?: {
297
363
  [x: string]: import("hono/utils/types").JSONValue;
298
364
  } | undefined;
299
365
  } | {
300
- 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";
301
367
  enabled: boolean;
302
368
  synchronous: boolean;
303
369
  created_at: string;
304
370
  updated_at: string;
305
371
  hook_id: string;
306
372
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
373
+ scope?: "local" | "shared" | "platform" | undefined;
374
+ override?: "secrets" | "none" | "fields" | undefined;
375
+ enforce?: boolean | undefined;
307
376
  priority?: number | undefined;
308
377
  metadata?: {
309
378
  [x: string]: import("hono/utils/types").JSONValue;
310
379
  } | undefined;
311
380
  } | {
312
- 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";
313
382
  enabled: boolean;
314
383
  synchronous: boolean;
315
384
  created_at: string;
316
385
  updated_at: string;
317
386
  hook_id: string;
318
387
  code_id: string;
388
+ scope?: "local" | "shared" | "platform" | undefined;
389
+ override?: "secrets" | "none" | "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?: "local" | "shared" | "platform" | undefined;
404
+ override?: "secrets" | "none" | "fields" | undefined;
405
+ enforce?: boolean | undefined;
331
406
  priority?: number | undefined;
332
407
  metadata?: {
333
408
  [x: string]: import("hono/utils/types").JSONValue;
@@ -383,13 +458,16 @@ export declare const hooksRoutes: OpenAPIHono<{
383
458
  json: unknown;
384
459
  };
385
460
  output: {
386
- 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";
387
462
  enabled: boolean;
388
463
  synchronous: boolean;
389
464
  created_at: string;
390
465
  updated_at: string;
391
466
  hook_id: string;
392
467
  url: string;
468
+ scope?: "local" | "shared" | "platform" | undefined;
469
+ override?: "secrets" | "none" | "fields" | undefined;
470
+ enforce?: boolean | undefined;
393
471
  priority?: number | undefined;
394
472
  metadata?: {
395
473
  [x: string]: import("hono/utils/types").JSONValue;
@@ -402,30 +480,39 @@ export declare const hooksRoutes: OpenAPIHono<{
402
480
  updated_at: string;
403
481
  hook_id: string;
404
482
  form_id: string;
483
+ scope?: "local" | "shared" | "platform" | undefined;
484
+ override?: "secrets" | "none" | "fields" | undefined;
485
+ enforce?: boolean | undefined;
405
486
  priority?: number | undefined;
406
487
  metadata?: {
407
488
  [x: string]: import("hono/utils/types").JSONValue;
408
489
  } | undefined;
409
490
  } | {
410
- 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";
411
492
  enabled: boolean;
412
493
  synchronous: boolean;
413
494
  created_at: string;
414
495
  updated_at: string;
415
496
  hook_id: string;
416
497
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
498
+ scope?: "local" | "shared" | "platform" | undefined;
499
+ override?: "secrets" | "none" | "fields" | undefined;
500
+ enforce?: boolean | undefined;
417
501
  priority?: number | undefined;
418
502
  metadata?: {
419
503
  [x: string]: import("hono/utils/types").JSONValue;
420
504
  } | undefined;
421
505
  } | {
422
- 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";
423
507
  enabled: boolean;
424
508
  synchronous: boolean;
425
509
  created_at: string;
426
510
  updated_at: string;
427
511
  hook_id: string;
428
512
  code_id: string;
513
+ scope?: "local" | "shared" | "platform" | undefined;
514
+ override?: "secrets" | "none" | "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?: "local" | "shared" | "platform" | undefined;
529
+ override?: "secrets" | "none" | "fields" | undefined;
530
+ enforce?: boolean | undefined;
441
531
  priority?: number | undefined;
442
532
  metadata?: {
443
533
  [x: string]: import("hono/utils/types").JSONValue;
@@ -474,13 +564,16 @@ export declare const hooksRoutes: OpenAPIHono<{
474
564
  };
475
565
  };
476
566
  output: {
477
- 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";
478
568
  enabled: boolean;
479
569
  synchronous: boolean;
480
570
  created_at: string;
481
571
  updated_at: string;
482
572
  hook_id: string;
483
573
  url: string;
574
+ scope?: "local" | "shared" | "platform" | undefined;
575
+ override?: "secrets" | "none" | "fields" | undefined;
576
+ enforce?: boolean | undefined;
484
577
  priority?: number | undefined;
485
578
  metadata?: {
486
579
  [x: string]: import("hono/utils/types").JSONValue;
@@ -493,30 +586,39 @@ export declare const hooksRoutes: OpenAPIHono<{
493
586
  updated_at: string;
494
587
  hook_id: string;
495
588
  form_id: string;
589
+ scope?: "local" | "shared" | "platform" | undefined;
590
+ override?: "secrets" | "none" | "fields" | undefined;
591
+ enforce?: boolean | undefined;
496
592
  priority?: number | undefined;
497
593
  metadata?: {
498
594
  [x: string]: import("hono/utils/types").JSONValue;
499
595
  } | undefined;
500
596
  } | {
501
- 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";
502
598
  enabled: boolean;
503
599
  synchronous: boolean;
504
600
  created_at: string;
505
601
  updated_at: string;
506
602
  hook_id: string;
507
603
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
604
+ scope?: "local" | "shared" | "platform" | undefined;
605
+ override?: "secrets" | "none" | "fields" | undefined;
606
+ enforce?: boolean | undefined;
508
607
  priority?: number | undefined;
509
608
  metadata?: {
510
609
  [x: string]: import("hono/utils/types").JSONValue;
511
610
  } | undefined;
512
611
  } | {
513
- 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";
514
613
  enabled: boolean;
515
614
  synchronous: boolean;
516
615
  created_at: string;
517
616
  updated_at: string;
518
617
  hook_id: string;
519
618
  code_id: string;
619
+ scope?: "local" | "shared" | "platform" | undefined;
620
+ override?: "secrets" | "none" | "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?: "local" | "shared" | "platform" | undefined;
635
+ override?: "secrets" | "none" | "fields" | undefined;
636
+ enforce?: boolean | undefined;
532
637
  priority?: number | undefined;
533
638
  metadata?: {
534
639
  [x: string]: import("hono/utils/types").JSONValue;