authhero 9.33.0 → 9.34.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 (64) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +137 -137
  3. package/dist/authhero.d.ts +280 -248
  4. package/dist/authhero.mjs +15984 -15876
  5. package/dist/mfa-CDFRupfM.mjs +128 -0
  6. package/dist/mfa-DF3O3Z8H.js +1 -0
  7. package/dist/mfa-attempts-BOWgbEPg.js +275 -0
  8. package/dist/{mfa-attempts-dhkGMzI5.mjs → mfa-attempts-C06Bkdy9.mjs} +14489 -14408
  9. package/dist/{passkey-enrollment-B_o8pQ1z.js → passkey-enrollment-RGw-WaSq.js} +1 -1
  10. package/dist/tsconfig.types.tsbuildinfo +1 -1
  11. package/dist/types/authentication-flows/passwordless.d.ts +12 -10
  12. package/dist/types/authentication-flows/remember-browser.d.ts +77 -0
  13. package/dist/types/constants.d.ts +1 -0
  14. package/dist/types/generated/locale-types.d.ts +6 -0
  15. package/dist/types/helpers/client.d.ts +8 -6
  16. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  17. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  18. package/dist/types/hooks/lifecycle-codehooks.d.ts +1 -1
  19. package/dist/types/index.d.ts +272 -242
  20. package/dist/types/routes/auth-api/account.d.ts +2 -2
  21. package/dist/types/routes/auth-api/device.d.ts +8 -8
  22. package/dist/types/routes/auth-api/index.d.ts +31 -31
  23. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  24. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  25. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  26. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  27. package/dist/types/routes/management-api/action-triggers.d.ts +2 -2
  28. package/dist/types/routes/management-api/actions.d.ts +13 -13
  29. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  30. package/dist/types/routes/management-api/branding.d.ts +19 -19
  31. package/dist/types/routes/management-api/clients.d.ts +26 -26
  32. package/dist/types/routes/management-api/connections.d.ts +32 -32
  33. package/dist/types/routes/management-api/emails.d.ts +6 -6
  34. package/dist/types/routes/management-api/failed-events.d.ts +2 -2
  35. package/dist/types/routes/management-api/flows.d.ts +8 -8
  36. package/dist/types/routes/management-api/helpers.d.ts +11 -1
  37. package/dist/types/routes/management-api/hooks.d.ts +35 -35
  38. package/dist/types/routes/management-api/index.d.ts +237 -207
  39. package/dist/types/routes/management-api/keys.d.ts +8 -8
  40. package/dist/types/routes/management-api/logs.d.ts +4 -4
  41. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  42. package/dist/types/routes/management-api/organizations.d.ts +7 -7
  43. package/dist/types/routes/management-api/prompts.d.ts +8 -8
  44. package/dist/types/routes/management-api/resource-servers.d.ts +8 -8
  45. package/dist/types/routes/management-api/roles.d.ts +1 -1
  46. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  47. package/dist/types/routes/management-api/tenant-operations.d.ts +9 -9
  48. package/dist/types/routes/management-api/tenants.d.ts +20 -12
  49. package/dist/types/routes/management-api/themes.d.ts +9 -9
  50. package/dist/types/routes/management-api/users.d.ts +57 -27
  51. package/dist/types/routes/saml/index.d.ts +6 -6
  52. package/dist/types/routes/saml/samlp.d.ts +6 -6
  53. package/dist/types/routes/universal-login/common.d.ts +34 -26
  54. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  55. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  56. package/dist/types/routes/universal-login/impersonate.d.ts +2 -2
  57. package/dist/types/routes/universal-login/index.d.ts +4 -4
  58. package/dist/types/routes/universal-login/screens/mfa-remember-browser.d.ts +28 -0
  59. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  60. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  61. package/dist/types/state-machines/login-session.d.ts +4 -1
  62. package/dist/types/utils/cookies.d.ts +14 -0
  63. package/package.json +6 -6
  64. package/dist/mfa-attempts-DNgUKmta.js +0 -275
@@ -86,7 +86,7 @@ export declare const connectionRoutes: OpenAPIHono<{
86
86
  active?: boolean | undefined;
87
87
  } | undefined;
88
88
  signup?: {
89
- status?: "optional" | "required" | "disabled" | undefined;
89
+ status?: "required" | "optional" | "disabled" | undefined;
90
90
  verification?: {
91
91
  active?: boolean | undefined;
92
92
  } | undefined;
@@ -96,14 +96,14 @@ export declare const connectionRoutes: OpenAPIHono<{
96
96
  } | undefined;
97
97
  unique?: boolean | undefined;
98
98
  profile_required?: boolean | undefined;
99
- verification_method?: "code" | "link" | undefined;
99
+ verification_method?: "link" | "code" | undefined;
100
100
  } | undefined;
101
101
  username?: {
102
102
  identifier?: {
103
103
  active?: boolean | undefined;
104
104
  } | undefined;
105
105
  signup?: {
106
- status?: "optional" | "required" | "disabled" | undefined;
106
+ status?: "required" | "optional" | "disabled" | undefined;
107
107
  } | undefined;
108
108
  validation?: {
109
109
  max_length?: number | undefined;
@@ -120,7 +120,7 @@ export declare const connectionRoutes: OpenAPIHono<{
120
120
  active?: boolean | undefined;
121
121
  } | undefined;
122
122
  signup?: {
123
- status?: "optional" | "required" | "disabled" | undefined;
123
+ status?: "required" | "optional" | "disabled" | undefined;
124
124
  } | undefined;
125
125
  } | undefined;
126
126
  } | undefined;
@@ -146,7 +146,7 @@ export declare const connectionRoutes: OpenAPIHono<{
146
146
  } | undefined;
147
147
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
148
148
  };
149
- scope?: "shared" | "local" | "platform" | undefined;
149
+ scope?: "local" | "shared" | "platform" | undefined;
150
150
  override?: "none" | "secrets" | "fields" | undefined;
151
151
  enforce?: boolean | undefined;
152
152
  id?: string | undefined;
@@ -227,7 +227,7 @@ export declare const connectionRoutes: OpenAPIHono<{
227
227
  active?: boolean | undefined;
228
228
  } | undefined;
229
229
  signup?: {
230
- status?: "optional" | "required" | "disabled" | undefined;
230
+ status?: "required" | "optional" | "disabled" | undefined;
231
231
  verification?: {
232
232
  active?: boolean | undefined;
233
233
  } | undefined;
@@ -237,14 +237,14 @@ export declare const connectionRoutes: OpenAPIHono<{
237
237
  } | undefined;
238
238
  unique?: boolean | undefined;
239
239
  profile_required?: boolean | undefined;
240
- verification_method?: "code" | "link" | undefined;
240
+ verification_method?: "link" | "code" | undefined;
241
241
  } | undefined;
242
242
  username?: {
243
243
  identifier?: {
244
244
  active?: boolean | undefined;
245
245
  } | undefined;
246
246
  signup?: {
247
- status?: "optional" | "required" | "disabled" | undefined;
247
+ status?: "required" | "optional" | "disabled" | undefined;
248
248
  } | undefined;
249
249
  validation?: {
250
250
  max_length?: number | undefined;
@@ -261,7 +261,7 @@ export declare const connectionRoutes: OpenAPIHono<{
261
261
  active?: boolean | undefined;
262
262
  } | undefined;
263
263
  signup?: {
264
- status?: "optional" | "required" | "disabled" | undefined;
264
+ status?: "required" | "optional" | "disabled" | undefined;
265
265
  } | undefined;
266
266
  } | undefined;
267
267
  } | undefined;
@@ -287,7 +287,7 @@ export declare const connectionRoutes: OpenAPIHono<{
287
287
  } | undefined;
288
288
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
289
289
  };
290
- scope?: "shared" | "local" | "platform" | undefined;
290
+ scope?: "local" | "shared" | "platform" | undefined;
291
291
  override?: "none" | "secrets" | "fields" | undefined;
292
292
  enforce?: boolean | undefined;
293
293
  id?: string | undefined;
@@ -368,7 +368,7 @@ export declare const connectionRoutes: OpenAPIHono<{
368
368
  active?: boolean | undefined;
369
369
  } | undefined;
370
370
  signup?: {
371
- status?: "optional" | "required" | "disabled" | undefined;
371
+ status?: "required" | "optional" | "disabled" | undefined;
372
372
  verification?: {
373
373
  active?: boolean | undefined;
374
374
  } | undefined;
@@ -378,14 +378,14 @@ export declare const connectionRoutes: OpenAPIHono<{
378
378
  } | undefined;
379
379
  unique?: boolean | undefined;
380
380
  profile_required?: boolean | undefined;
381
- verification_method?: "code" | "link" | undefined;
381
+ verification_method?: "link" | "code" | undefined;
382
382
  } | undefined;
383
383
  username?: {
384
384
  identifier?: {
385
385
  active?: boolean | undefined;
386
386
  } | undefined;
387
387
  signup?: {
388
- status?: "optional" | "required" | "disabled" | undefined;
388
+ status?: "required" | "optional" | "disabled" | undefined;
389
389
  } | undefined;
390
390
  validation?: {
391
391
  max_length?: number | undefined;
@@ -402,7 +402,7 @@ export declare const connectionRoutes: OpenAPIHono<{
402
402
  active?: boolean | undefined;
403
403
  } | undefined;
404
404
  signup?: {
405
- status?: "optional" | "required" | "disabled" | undefined;
405
+ status?: "required" | "optional" | "disabled" | undefined;
406
406
  } | undefined;
407
407
  } | undefined;
408
408
  } | undefined;
@@ -428,7 +428,7 @@ export declare const connectionRoutes: OpenAPIHono<{
428
428
  } | undefined;
429
429
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
430
430
  };
431
- scope?: "shared" | "local" | "platform" | undefined;
431
+ scope?: "local" | "shared" | "platform" | undefined;
432
432
  override?: "none" | "secrets" | "fields" | undefined;
433
433
  enforce?: boolean | undefined;
434
434
  id?: string | undefined;
@@ -524,7 +524,7 @@ export declare const connectionRoutes: OpenAPIHono<{
524
524
  active?: boolean | undefined;
525
525
  } | undefined;
526
526
  signup?: {
527
- status?: "optional" | "required" | "disabled" | undefined;
527
+ status?: "required" | "optional" | "disabled" | undefined;
528
528
  verification?: {
529
529
  active?: boolean | undefined;
530
530
  } | undefined;
@@ -534,14 +534,14 @@ export declare const connectionRoutes: OpenAPIHono<{
534
534
  } | undefined;
535
535
  unique?: boolean | undefined;
536
536
  profile_required?: boolean | undefined;
537
- verification_method?: "code" | "link" | undefined;
537
+ verification_method?: "link" | "code" | undefined;
538
538
  } | undefined;
539
539
  username?: {
540
540
  identifier?: {
541
541
  active?: boolean | undefined;
542
542
  } | undefined;
543
543
  signup?: {
544
- status?: "optional" | "required" | "disabled" | undefined;
544
+ status?: "required" | "optional" | "disabled" | undefined;
545
545
  } | undefined;
546
546
  validation?: {
547
547
  max_length?: number | undefined;
@@ -558,7 +558,7 @@ export declare const connectionRoutes: OpenAPIHono<{
558
558
  active?: boolean | undefined;
559
559
  } | undefined;
560
560
  signup?: {
561
- status?: "optional" | "required" | "disabled" | undefined;
561
+ status?: "required" | "optional" | "disabled" | undefined;
562
562
  } | undefined;
563
563
  } | undefined;
564
564
  } | undefined;
@@ -584,7 +584,7 @@ export declare const connectionRoutes: OpenAPIHono<{
584
584
  } | undefined;
585
585
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
586
586
  };
587
- scope?: "shared" | "local" | "platform" | undefined;
587
+ scope?: "local" | "shared" | "platform" | undefined;
588
588
  override?: "none" | "secrets" | "fields" | undefined;
589
589
  enforce?: boolean | undefined;
590
590
  id?: string | undefined;
@@ -646,7 +646,7 @@ export declare const connectionRoutes: OpenAPIHono<{
646
646
  };
647
647
  } & {
648
648
  json: {
649
- scope?: "shared" | "local" | "platform" | undefined;
649
+ scope?: "local" | "shared" | "platform" | undefined;
650
650
  override?: "none" | "secrets" | "fields" | undefined;
651
651
  enforce?: boolean | undefined;
652
652
  id?: string | undefined;
@@ -726,7 +726,7 @@ export declare const connectionRoutes: OpenAPIHono<{
726
726
  active?: boolean | undefined;
727
727
  } | undefined;
728
728
  signup?: {
729
- status?: "optional" | "required" | "disabled" | undefined;
729
+ status?: "required" | "optional" | "disabled" | undefined;
730
730
  verification?: {
731
731
  active?: boolean | undefined;
732
732
  } | undefined;
@@ -736,14 +736,14 @@ export declare const connectionRoutes: OpenAPIHono<{
736
736
  } | undefined;
737
737
  unique?: boolean | undefined;
738
738
  profile_required?: boolean | undefined;
739
- verification_method?: "code" | "link" | undefined;
739
+ verification_method?: "link" | "code" | undefined;
740
740
  } | undefined;
741
741
  username?: {
742
742
  identifier?: {
743
743
  active?: boolean | undefined;
744
744
  } | undefined;
745
745
  signup?: {
746
- status?: "optional" | "required" | "disabled" | undefined;
746
+ status?: "required" | "optional" | "disabled" | undefined;
747
747
  } | undefined;
748
748
  validation?: {
749
749
  max_length?: number | undefined;
@@ -760,7 +760,7 @@ export declare const connectionRoutes: OpenAPIHono<{
760
760
  active?: boolean | undefined;
761
761
  } | undefined;
762
762
  signup?: {
763
- status?: "optional" | "required" | "disabled" | undefined;
763
+ status?: "required" | "optional" | "disabled" | undefined;
764
764
  } | undefined;
765
765
  } | undefined;
766
766
  } | undefined;
@@ -786,7 +786,7 @@ export declare const connectionRoutes: OpenAPIHono<{
786
786
  } | undefined;
787
787
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
788
788
  };
789
- scope?: "shared" | "local" | "platform" | undefined;
789
+ scope?: "local" | "shared" | "platform" | undefined;
790
790
  override?: "none" | "secrets" | "fields" | undefined;
791
791
  enforce?: boolean | undefined;
792
792
  id?: string | undefined;
@@ -816,7 +816,7 @@ export declare const connectionRoutes: OpenAPIHono<{
816
816
  json: {
817
817
  name: string;
818
818
  strategy: string;
819
- scope?: "shared" | "local" | "platform" | undefined;
819
+ scope?: "local" | "shared" | "platform" | undefined;
820
820
  override?: "none" | "secrets" | "fields" | undefined;
821
821
  enforce?: boolean | undefined;
822
822
  id?: string | undefined;
@@ -894,7 +894,7 @@ export declare const connectionRoutes: OpenAPIHono<{
894
894
  active?: boolean | undefined;
895
895
  } | undefined;
896
896
  signup?: {
897
- status?: "optional" | "required" | "disabled" | undefined;
897
+ status?: "required" | "optional" | "disabled" | undefined;
898
898
  verification?: {
899
899
  active?: boolean | undefined;
900
900
  } | undefined;
@@ -904,14 +904,14 @@ export declare const connectionRoutes: OpenAPIHono<{
904
904
  } | undefined;
905
905
  unique?: boolean | undefined;
906
906
  profile_required?: boolean | undefined;
907
- verification_method?: "code" | "link" | undefined;
907
+ verification_method?: "link" | "code" | undefined;
908
908
  } | undefined;
909
909
  username?: {
910
910
  identifier?: {
911
911
  active?: boolean | undefined;
912
912
  } | undefined;
913
913
  signup?: {
914
- status?: "optional" | "required" | "disabled" | undefined;
914
+ status?: "required" | "optional" | "disabled" | undefined;
915
915
  } | undefined;
916
916
  validation?: {
917
917
  max_length?: number | undefined;
@@ -928,7 +928,7 @@ export declare const connectionRoutes: OpenAPIHono<{
928
928
  active?: boolean | undefined;
929
929
  } | undefined;
930
930
  signup?: {
931
- status?: "optional" | "required" | "disabled" | undefined;
931
+ status?: "required" | "optional" | "disabled" | undefined;
932
932
  } | undefined;
933
933
  } | undefined;
934
934
  } | undefined;
@@ -954,7 +954,7 @@ export declare const connectionRoutes: OpenAPIHono<{
954
954
  } | undefined;
955
955
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
956
956
  };
957
- scope?: "shared" | "local" | "platform" | undefined;
957
+ scope?: "local" | "shared" | "platform" | undefined;
958
958
  override?: "none" | "secrets" | "fields" | undefined;
959
959
  enforce?: boolean | undefined;
960
960
  id?: string | undefined;
@@ -19,7 +19,7 @@ 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;
22
+ scope?: "local" | "shared" | "platform" | undefined;
23
23
  override?: "none" | "secrets" | "fields" | undefined;
24
24
  enforce?: boolean | undefined;
25
25
  };
@@ -41,7 +41,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
41
41
  enabled?: boolean | undefined;
42
42
  default_from_address?: string | undefined;
43
43
  settings?: Record<string, never> | undefined;
44
- scope?: "shared" | "local" | "platform" | undefined;
44
+ scope?: "local" | "shared" | "platform" | undefined;
45
45
  override?: "none" | "secrets" | "fields" | undefined;
46
46
  enforce?: boolean | undefined;
47
47
  };
@@ -61,7 +61,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
61
61
  enabled?: boolean | undefined;
62
62
  default_from_address?: string | undefined;
63
63
  settings?: Record<string, never> | undefined;
64
- scope?: "shared" | "local" | "platform" | undefined;
64
+ scope?: "local" | "shared" | "platform" | undefined;
65
65
  override?: "none" | "secrets" | "fields" | undefined;
66
66
  enforce?: boolean | undefined;
67
67
  };
@@ -74,7 +74,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
74
74
  };
75
75
  default_from_address?: string | undefined;
76
76
  settings?: {} | undefined;
77
- scope?: "shared" | "local" | "platform" | undefined;
77
+ scope?: "local" | "shared" | "platform" | undefined;
78
78
  override?: "none" | "secrets" | "fields" | undefined;
79
79
  enforce?: boolean | undefined;
80
80
  };
@@ -96,7 +96,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
96
96
  default_from_address?: string | undefined;
97
97
  credentials?: Record<string, unknown> | undefined;
98
98
  settings?: Record<string, never> | undefined;
99
- scope?: "shared" | "local" | "platform" | undefined;
99
+ scope?: "local" | "shared" | "platform" | undefined;
100
100
  override?: "none" | "secrets" | "fields" | undefined;
101
101
  enforce?: boolean | undefined;
102
102
  };
@@ -109,7 +109,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
109
109
  };
110
110
  default_from_address?: string | undefined;
111
111
  settings?: {} | undefined;
112
- scope?: "shared" | "local" | "platform" | undefined;
112
+ scope?: "local" | "shared" | "platform" | undefined;
113
113
  override?: "none" | "secrets" | "fields" | undefined;
114
114
  enforce?: boolean | undefined;
115
115
  };
@@ -30,7 +30,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
30
30
  log_type: string;
31
31
  category: "user_action" | "admin_action" | "system" | "api";
32
32
  actor: {
33
- type: "client_credentials" | "user" | "system" | "admin" | "api_key";
33
+ type: "user" | "client_credentials" | "system" | "admin" | "api_key";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;
@@ -134,7 +134,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
134
134
  log_type: string;
135
135
  category: "user_action" | "admin_action" | "system" | "api";
136
136
  actor: {
137
- type: "client_credentials" | "user" | "system" | "admin" | "api_key";
137
+ type: "user" | "client_credentials" | "system" | "admin" | "api_key";
138
138
  id?: string | undefined;
139
139
  email?: string | undefined;
140
140
  org_id?: string | undefined;
@@ -62,7 +62,7 @@ export declare const flowsRoutes: OpenAPIHono<{
62
62
  type: "REDIRECT";
63
63
  action: "REDIRECT_USER";
64
64
  params: {
65
- target: "custom" | "account" | "change-email";
65
+ target: "custom" | "change-email" | "account";
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" | "account" | "change-email";
118
+ target: "custom" | "change-email" | "account";
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" | "account" | "change-email";
171
+ target: "custom" | "change-email" | "account";
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" | "account" | "change-email";
239
+ target: "custom" | "change-email" | "account";
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" | "account" | "change-email";
320
+ target: "custom" | "change-email" | "account";
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" | "account" | "change-email";
368
+ target: "custom" | "change-email" | "account";
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" | "account" | "change-email";
428
+ target: "custom" | "change-email" | "account";
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" | "account" | "change-email";
476
+ target: "custom" | "change-email" | "account";
477
477
  custom_url?: string | undefined;
478
478
  };
479
479
  alias?: string | undefined;
@@ -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" | "start" | "next" | "limit" | "total") & keyof T extends never ? {
26
+ export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("start" | "limit" | "length" | "total" | "next") & keyof T extends never ? {
27
27
  start: z.ZodNumber;
28
28
  limit: z.ZodNumber;
29
29
  length: z.ZodNumber;
@@ -75,3 +75,13 @@ export declare function listResponse<T extends {
75
75
  length: number;
76
76
  total: number;
77
77
  }) | T[K];
78
+ /**
79
+ * Pages through a list until an item satisfies `match`, so a uniqueness check
80
+ * or lookup is not limited to the first page.
81
+ *
82
+ * Adapter `q` filters are not uniformly exact (drizzle matches resource-server
83
+ * identifiers with a substring LIKE, for one), so callers pass a filter that
84
+ * returns a superset and do the exact comparison in `match`. Stops at the
85
+ * first page shorter than the page size.
86
+ */
87
+ export declare function findInPagedList<T>(fetchPage: (page: number, per_page: number) => Promise<T[]>, match: (item: T) => boolean): Promise<T | undefined>;