authhero 8.16.0 → 8.17.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 (36) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +106 -106
  3. package/dist/authhero.d.ts +198 -196
  4. package/dist/authhero.mjs +6671 -6613
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/authentication-flows/passwordless.d.ts +5 -5
  7. package/dist/types/helpers/logging.d.ts +11 -0
  8. package/dist/types/index.d.ts +198 -196
  9. package/dist/types/routes/auth-api/index.d.ts +4 -4
  10. package/dist/types/routes/auth-api/oidc-logout.d.ts +2 -2
  11. package/dist/types/routes/auth-api/passwordless.d.ts +2 -2
  12. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  13. package/dist/types/routes/management-api/actions.d.ts +1 -1
  14. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  15. package/dist/types/routes/management-api/branding.d.ts +7 -7
  16. package/dist/types/routes/management-api/clients.d.ts +6 -6
  17. package/dist/types/routes/management-api/connections.d.ts +16 -16
  18. package/dist/types/routes/management-api/failed-events.d.ts +3 -1
  19. package/dist/types/routes/management-api/forms.d.ts +126 -126
  20. package/dist/types/routes/management-api/index.d.ts +181 -179
  21. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  22. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  23. package/dist/types/routes/management-api/organizations.d.ts +3 -3
  24. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  25. package/dist/types/routes/management-api/tenants.d.ts +34 -34
  26. package/dist/types/routes/management-api/themes.d.ts +3 -3
  27. package/dist/types/routes/universal-login/common.d.ts +8 -8
  28. package/dist/types/routes/universal-login/continue.d.ts +2 -2
  29. package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
  30. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  31. package/dist/types/routes/universal-login/impersonate.d.ts +2 -2
  32. package/dist/types/routes/universal-login/index.d.ts +6 -6
  33. package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
  34. package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
  35. package/dist/types/utils/username-password-provider.d.ts +1 -10
  36. package/package.json +5 -5
@@ -18,7 +18,7 @@ export declare const logStreamsRoutes: OpenAPIHono<{
18
18
  [x: string]: import("hono/utils/types").JSONValue;
19
19
  };
20
20
  id: string;
21
- status: "active" | "suspended" | "paused";
21
+ status: "suspended" | "active" | "paused";
22
22
  filters?: {
23
23
  type: string;
24
24
  name: string;
@@ -50,7 +50,7 @@ export declare const logStreamsRoutes: OpenAPIHono<{
50
50
  [x: string]: import("hono/utils/types").JSONValue;
51
51
  };
52
52
  id: string;
53
- status: "active" | "suspended" | "paused";
53
+ status: "suspended" | "active" | "paused";
54
54
  filters?: {
55
55
  type: string;
56
56
  name: string;
@@ -75,7 +75,7 @@ export declare const logStreamsRoutes: OpenAPIHono<{
75
75
  name: string;
76
76
  type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
77
77
  sink: Record<string, unknown>;
78
- status?: "active" | "suspended" | "paused" | undefined;
78
+ status?: "suspended" | "active" | "paused" | undefined;
79
79
  filters?: {
80
80
  type: string;
81
81
  name: string;
@@ -90,7 +90,7 @@ export declare const logStreamsRoutes: OpenAPIHono<{
90
90
  [x: string]: import("hono/utils/types").JSONValue;
91
91
  };
92
92
  id: string;
93
- status: "active" | "suspended" | "paused";
93
+ status: "suspended" | "active" | "paused";
94
94
  filters?: {
95
95
  type: string;
96
96
  name: string;
@@ -125,7 +125,7 @@ export declare const logStreamsRoutes: OpenAPIHono<{
125
125
  }[] | undefined;
126
126
  isPriority?: boolean | undefined;
127
127
  id?: string | undefined;
128
- status?: "active" | "suspended" | "paused" | undefined;
128
+ status?: "suspended" | "active" | "paused" | undefined;
129
129
  created_at?: string | undefined;
130
130
  updated_at?: string | undefined;
131
131
  };
@@ -137,7 +137,7 @@ export declare const logStreamsRoutes: OpenAPIHono<{
137
137
  [x: string]: import("hono/utils/types").JSONValue;
138
138
  };
139
139
  id: string;
140
- status: "active" | "suspended" | "paused";
140
+ status: "suspended" | "active" | "paused";
141
141
  filters?: {
142
142
  type: string;
143
143
  name: string;
@@ -15,7 +15,7 @@ export declare const migrationSourcesRoutes: OpenAPIHono<{
15
15
  created_at: string;
16
16
  updated_at: string;
17
17
  name: string;
18
- provider: "auth0" | "oidc" | "okta" | "cognito";
18
+ provider: "auth0" | "cognito" | "okta" | "oidc";
19
19
  connection: string;
20
20
  enabled: boolean;
21
21
  credentials: {
@@ -47,7 +47,7 @@ export declare const migrationSourcesRoutes: OpenAPIHono<{
47
47
  created_at: string;
48
48
  updated_at: string;
49
49
  name: string;
50
- provider: "auth0" | "oidc" | "okta" | "cognito";
50
+ provider: "auth0" | "cognito" | "okta" | "oidc";
51
51
  connection: string;
52
52
  enabled: boolean;
53
53
  credentials: {
@@ -73,7 +73,7 @@ export declare const migrationSourcesRoutes: OpenAPIHono<{
73
73
  } & {
74
74
  json: {
75
75
  name: string;
76
- provider: "auth0" | "oidc" | "okta" | "cognito";
76
+ provider: "auth0" | "cognito" | "okta" | "oidc";
77
77
  connection: string;
78
78
  credentials: {
79
79
  domain: string;
@@ -90,7 +90,7 @@ export declare const migrationSourcesRoutes: OpenAPIHono<{
90
90
  created_at: string;
91
91
  updated_at: string;
92
92
  name: string;
93
- provider: "auth0" | "oidc" | "okta" | "cognito";
93
+ provider: "auth0" | "cognito" | "okta" | "oidc";
94
94
  connection: string;
95
95
  enabled: boolean;
96
96
  credentials: {
@@ -121,7 +121,7 @@ export declare const migrationSourcesRoutes: OpenAPIHono<{
121
121
  json: {
122
122
  id?: string | undefined;
123
123
  name?: string | undefined;
124
- provider?: "auth0" | "oidc" | "okta" | "cognito" | undefined;
124
+ provider?: "auth0" | "cognito" | "okta" | "oidc" | undefined;
125
125
  connection?: string | undefined;
126
126
  enabled?: boolean | undefined;
127
127
  credentials?: {
@@ -137,7 +137,7 @@ export declare const migrationSourcesRoutes: OpenAPIHono<{
137
137
  created_at: string;
138
138
  updated_at: string;
139
139
  name: string;
140
- provider: "auth0" | "oidc" | "okta" | "cognito";
140
+ provider: "auth0" | "cognito" | "okta" | "oidc";
141
141
  connection: string;
142
142
  enabled: boolean;
143
143
  credentials: {
@@ -703,10 +703,10 @@ export declare const organizationRoutes: OpenAPIHono<{
703
703
  email?: string | undefined;
704
704
  };
705
705
  id?: string | undefined;
706
+ roles?: string[] | undefined;
707
+ connection_id?: string | undefined;
706
708
  app_metadata?: Record<string, any> | undefined;
707
709
  user_metadata?: Record<string, any> | undefined;
708
- connection_id?: string | undefined;
709
- roles?: string[] | undefined;
710
710
  ttl_sec?: number | undefined;
711
711
  send_invitation_email?: boolean | undefined;
712
712
  };
@@ -890,8 +890,8 @@ export declare const organizationRoutes: OpenAPIHono<{
890
890
  };
891
891
  } & {
892
892
  json: {
893
- show_as_button?: boolean | undefined;
894
893
  assign_membership_on_login?: boolean | undefined;
894
+ show_as_button?: boolean | undefined;
895
895
  is_signup_enabled?: boolean | undefined;
896
896
  };
897
897
  };
@@ -50,7 +50,7 @@ export declare const promptsRoutes: OpenAPIHono<{
50
50
  };
51
51
  };
52
52
  output: {
53
- prompt: "mfa" | "organizations" | "signup" | "status" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "invitation" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "reset-password" | "signup-id" | "signup-password" | "captcha" | "custom-form";
53
+ prompt: "mfa" | "organizations" | "status" | "signup" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
54
54
  language: string;
55
55
  }[];
56
56
  outputFormat: "json";
@@ -88,7 +88,7 @@ export declare const promptsRoutes: OpenAPIHono<{
88
88
  $get: {
89
89
  input: {
90
90
  param: {
91
- prompt: "mfa" | "organizations" | "signup" | "status" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "invitation" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "reset-password" | "signup-id" | "signup-password" | "captcha" | "custom-form";
91
+ prompt: "mfa" | "organizations" | "status" | "signup" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
92
92
  language: string;
93
93
  };
94
94
  } & {
@@ -110,7 +110,7 @@ export declare const promptsRoutes: OpenAPIHono<{
110
110
  $put: {
111
111
  input: {
112
112
  param: {
113
- prompt: "mfa" | "organizations" | "signup" | "status" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "invitation" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "reset-password" | "signup-id" | "signup-password" | "captcha" | "custom-form";
113
+ prompt: "mfa" | "organizations" | "status" | "signup" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
114
114
  language: string;
115
115
  };
116
116
  } & {
@@ -134,7 +134,7 @@ export declare const promptsRoutes: OpenAPIHono<{
134
134
  $delete: {
135
135
  input: {
136
136
  param: {
137
- prompt: "mfa" | "organizations" | "signup" | "status" | "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "invitation" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "reset-password" | "signup-id" | "signup-password" | "captcha" | "custom-form";
137
+ prompt: "mfa" | "organizations" | "status" | "signup" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
138
138
  language: string;
139
139
  };
140
140
  } & {
@@ -210,40 +210,6 @@ export declare const tenantRoutes: OpenAPIHono<{
210
210
  };
211
211
  } & {
212
212
  json: {
213
- sessions?: {
214
- oidc_logout_prompt_enabled?: boolean | undefined;
215
- } | undefined;
216
- mfa?: {
217
- policy?: "never" | "always" | undefined;
218
- factors?: {
219
- sms?: boolean | undefined;
220
- otp?: boolean | undefined;
221
- email?: boolean | undefined;
222
- push_notification?: boolean | undefined;
223
- webauthn_roaming?: boolean | undefined;
224
- webauthn_platform?: boolean | undefined;
225
- recovery_code?: boolean | undefined;
226
- duo?: boolean | undefined;
227
- } | undefined;
228
- sms_provider?: {
229
- provider?: "twilio" | "vonage" | "aws_sns" | "phone_message_hook" | undefined;
230
- } | undefined;
231
- twilio?: {
232
- sid?: string | undefined;
233
- auth_token?: string | undefined;
234
- from?: string | undefined;
235
- messaging_service_sid?: string | undefined;
236
- } | undefined;
237
- phone_message?: {
238
- message?: string | undefined;
239
- } | undefined;
240
- } | undefined;
241
- id?: string | undefined;
242
- allowed_logout_urls?: string[] | undefined;
243
- oidc_logout?: {
244
- rp_logout_end_session_endpoint_discovery?: boolean | undefined;
245
- } | undefined;
246
- default_organization?: string | undefined;
247
213
  audience?: string | undefined;
248
214
  friendly_name?: string | undefined;
249
215
  picture_url?: string | undefined;
@@ -258,6 +224,7 @@ export declare const tenantRoutes: OpenAPIHono<{
258
224
  session_cookie?: {
259
225
  mode?: "persistent" | "non-persistent" | undefined;
260
226
  } | undefined;
227
+ allowed_logout_urls?: string[] | undefined;
261
228
  default_redirection_uri?: string | undefined;
262
229
  default_client_id?: string | undefined;
263
230
  enabled_locales?: string[] | undefined;
@@ -331,6 +298,13 @@ export declare const tenantRoutes: OpenAPIHono<{
331
298
  } | undefined;
332
299
  } | null | undefined;
333
300
  default_audience?: string | undefined;
301
+ default_organization?: string | undefined;
302
+ sessions?: {
303
+ oidc_logout_prompt_enabled?: boolean | undefined;
304
+ } | undefined;
305
+ oidc_logout?: {
306
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
307
+ } | undefined;
334
308
  allow_organization_name_in_authentication_api?: boolean | undefined;
335
309
  customize_mfa_in_postlogin_action?: boolean | undefined;
336
310
  acr_values_supported?: string[] | undefined;
@@ -386,6 +360,32 @@ export declare const tenantRoutes: OpenAPIHono<{
386
360
  } | undefined;
387
361
  } | undefined;
388
362
  } | undefined;
363
+ mfa?: {
364
+ policy?: "never" | "always" | undefined;
365
+ factors?: {
366
+ sms?: boolean | undefined;
367
+ otp?: boolean | undefined;
368
+ email?: boolean | undefined;
369
+ push_notification?: boolean | undefined;
370
+ webauthn_roaming?: boolean | undefined;
371
+ webauthn_platform?: boolean | undefined;
372
+ recovery_code?: boolean | undefined;
373
+ duo?: boolean | undefined;
374
+ } | undefined;
375
+ sms_provider?: {
376
+ provider?: "twilio" | "vonage" | "aws_sns" | "phone_message_hook" | undefined;
377
+ } | undefined;
378
+ twilio?: {
379
+ sid?: string | undefined;
380
+ auth_token?: string | undefined;
381
+ from?: string | undefined;
382
+ messaging_service_sid?: string | undefined;
383
+ } | undefined;
384
+ phone_message?: {
385
+ message?: string | undefined;
386
+ } | undefined;
387
+ } | undefined;
388
+ id?: string | undefined;
389
389
  };
390
390
  };
391
391
  output: {
@@ -78,7 +78,7 @@ export declare const themesRoutes: OpenAPIHono<{
78
78
  background_color: string;
79
79
  background_image_url: string;
80
80
  page_layout: "center" | "left" | "right";
81
- logo_placement?: "none" | "widget" | "chip" | undefined;
81
+ logo_placement?: "widget" | "none" | "chip" | undefined;
82
82
  };
83
83
  widget: {
84
84
  header_text_alignment: "center" | "left" | "right";
@@ -168,7 +168,7 @@ export declare const themesRoutes: OpenAPIHono<{
168
168
  background_color: string;
169
169
  background_image_url: string;
170
170
  page_layout: "center" | "left" | "right";
171
- logo_placement?: "none" | "widget" | "chip" | undefined;
171
+ logo_placement?: "widget" | "none" | "chip" | undefined;
172
172
  };
173
173
  widget: {
174
174
  header_text_alignment: "center" | "left" | "right";
@@ -247,7 +247,7 @@ export declare const themesRoutes: OpenAPIHono<{
247
247
  background_color: string;
248
248
  background_image_url: string;
249
249
  page_layout: "center" | "left" | "right";
250
- logo_placement?: "none" | "widget" | "chip" | undefined;
250
+ logo_placement?: "widget" | "none" | "chip" | undefined;
251
251
  };
252
252
  widget: {
253
253
  header_text_alignment: "center" | "left" | "right";
@@ -72,7 +72,7 @@ export declare function initJSXRoute(ctx: Context<{
72
72
  background_color: string;
73
73
  background_image_url: string;
74
74
  page_layout: "center" | "left" | "right";
75
- logo_placement?: "none" | "widget" | "chip" | undefined;
75
+ logo_placement?: "widget" | "none" | "chip" | undefined;
76
76
  };
77
77
  widget: {
78
78
  header_text_alignment: "center" | "left" | "right";
@@ -357,7 +357,7 @@ export declare function initJSXRoute(ctx: Context<{
357
357
  active?: boolean | undefined;
358
358
  } | undefined;
359
359
  signup?: {
360
- status?: "required" | "optional" | "disabled" | undefined;
360
+ status?: "optional" | "disabled" | "required" | undefined;
361
361
  verification?: {
362
362
  active?: boolean | undefined;
363
363
  } | undefined;
@@ -374,7 +374,7 @@ export declare function initJSXRoute(ctx: Context<{
374
374
  active?: boolean | undefined;
375
375
  } | undefined;
376
376
  signup?: {
377
- status?: "required" | "optional" | "disabled" | undefined;
377
+ status?: "optional" | "disabled" | "required" | undefined;
378
378
  } | undefined;
379
379
  validation?: {
380
380
  max_length?: number | undefined;
@@ -391,7 +391,7 @@ export declare function initJSXRoute(ctx: Context<{
391
391
  active?: boolean | undefined;
392
392
  } | undefined;
393
393
  signup?: {
394
- status?: "required" | "optional" | "disabled" | undefined;
394
+ status?: "optional" | "disabled" | "required" | undefined;
395
395
  } | undefined;
396
396
  } | undefined;
397
397
  } | undefined;
@@ -793,7 +793,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
793
793
  background_color: string;
794
794
  background_image_url: string;
795
795
  page_layout: "center" | "left" | "right";
796
- logo_placement?: "none" | "widget" | "chip" | undefined;
796
+ logo_placement?: "widget" | "none" | "chip" | undefined;
797
797
  };
798
798
  widget: {
799
799
  header_text_alignment: "center" | "left" | "right";
@@ -1078,7 +1078,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1078
1078
  active?: boolean | undefined;
1079
1079
  } | undefined;
1080
1080
  signup?: {
1081
- status?: "required" | "optional" | "disabled" | undefined;
1081
+ status?: "optional" | "disabled" | "required" | undefined;
1082
1082
  verification?: {
1083
1083
  active?: boolean | undefined;
1084
1084
  } | undefined;
@@ -1095,7 +1095,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1095
1095
  active?: boolean | undefined;
1096
1096
  } | undefined;
1097
1097
  signup?: {
1098
- status?: "required" | "optional" | "disabled" | undefined;
1098
+ status?: "optional" | "disabled" | "required" | undefined;
1099
1099
  } | undefined;
1100
1100
  validation?: {
1101
1101
  max_length?: number | undefined;
@@ -1112,7 +1112,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1112
1112
  active?: boolean | undefined;
1113
1113
  } | undefined;
1114
1114
  signup?: {
1115
- status?: "required" | "optional" | "disabled" | undefined;
1115
+ status?: "optional" | "disabled" | "required" | undefined;
1116
1116
  } | undefined;
1117
1117
  } | undefined;
1118
1118
  } | undefined;
@@ -13,7 +13,7 @@ export declare const continueRoutes: OpenAPIHono<{
13
13
  };
14
14
  output: {};
15
15
  outputFormat: string;
16
- status: 400;
16
+ status: 302;
17
17
  } | {
18
18
  input: {
19
19
  query: {
@@ -22,7 +22,7 @@ export declare const continueRoutes: OpenAPIHono<{
22
22
  };
23
23
  output: {};
24
24
  outputFormat: string;
25
- status: 302;
25
+ status: 400;
26
26
  } | {
27
27
  input: {
28
28
  query: {
@@ -43,7 +43,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
43
43
  hint?: string | undefined;
44
44
  messages?: {
45
45
  text: string;
46
- type: "success" | "error" | "info" | "warning";
46
+ type: "error" | "success" | "info" | "warning";
47
47
  id?: number | undefined;
48
48
  }[] | undefined;
49
49
  }[];
@@ -51,7 +51,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
51
51
  description?: string | undefined;
52
52
  messages?: {
53
53
  text: string;
54
- type: "success" | "error" | "info" | "warning";
54
+ type: "error" | "success" | "info" | "warning";
55
55
  id?: number | undefined;
56
56
  }[] | undefined;
57
57
  links?: {
@@ -123,7 +123,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
123
123
  hint?: string | undefined;
124
124
  messages?: {
125
125
  text: string;
126
- type: "success" | "error" | "info" | "warning";
126
+ type: "error" | "success" | "info" | "warning";
127
127
  id?: number | undefined;
128
128
  }[] | undefined;
129
129
  }[];
@@ -131,7 +131,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
131
131
  description?: string | undefined;
132
132
  messages?: {
133
133
  text: string;
134
- type: "success" | "error" | "info" | "warning";
134
+ type: "error" | "success" | "info" | "warning";
135
135
  id?: number | undefined;
136
136
  }[] | undefined;
137
137
  links?: {
@@ -220,7 +220,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
220
220
  hint?: string | undefined;
221
221
  messages?: {
222
222
  text: string;
223
- type: "success" | "error" | "info" | "warning";
223
+ type: "error" | "success" | "info" | "warning";
224
224
  id?: number | undefined;
225
225
  }[] | undefined;
226
226
  }[];
@@ -228,7 +228,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
228
228
  description?: string | undefined;
229
229
  messages?: {
230
230
  text: string;
231
- type: "success" | "error" | "info" | "warning";
231
+ type: "error" | "success" | "info" | "warning";
232
232
  id?: number | undefined;
233
233
  }[] | undefined;
234
234
  links?: {
@@ -335,7 +335,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
335
335
  hint?: string | undefined;
336
336
  messages?: {
337
337
  text: string;
338
- type: "success" | "error" | "info" | "warning";
338
+ type: "error" | "success" | "info" | "warning";
339
339
  id?: number | undefined;
340
340
  }[] | undefined;
341
341
  }[];
@@ -343,7 +343,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
343
343
  description?: string | undefined;
344
344
  messages?: {
345
345
  text: string;
346
- type: "success" | "error" | "info" | "warning";
346
+ type: "error" | "success" | "info" | "warning";
347
347
  id?: number | undefined;
348
348
  }[] | undefined;
349
349
  links?: {
@@ -35,7 +35,7 @@ export declare const identifierRoutes: OpenAPIHono<{
35
35
  };
36
36
  output: {};
37
37
  outputFormat: string;
38
- status: 400;
38
+ status: 302;
39
39
  } | {
40
40
  input: {
41
41
  query: {
@@ -49,7 +49,7 @@ export declare const identifierRoutes: OpenAPIHono<{
49
49
  };
50
50
  output: {};
51
51
  outputFormat: string;
52
- status: 302;
52
+ status: 400;
53
53
  };
54
54
  };
55
55
  }, "/">;
@@ -52,7 +52,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
52
52
  };
53
53
  output: {};
54
54
  outputFormat: string;
55
- status: 400;
55
+ status: 302;
56
56
  } | {
57
57
  input: {
58
58
  query: {
@@ -65,7 +65,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
65
65
  };
66
66
  output: {};
67
67
  outputFormat: string;
68
- status: 302;
68
+ status: 400;
69
69
  };
70
70
  };
71
71
  }, "/">;
@@ -27,7 +27,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
27
27
  };
28
28
  output: {};
29
29
  outputFormat: string;
30
- status: 400;
30
+ status: 302;
31
31
  } | {
32
32
  input: {
33
33
  query: {
@@ -36,7 +36,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
36
36
  };
37
37
  output: {};
38
38
  outputFormat: string;
39
- status: 302;
39
+ status: 400;
40
40
  } | {
41
41
  input: {
42
42
  query: {
@@ -165,7 +165,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
165
165
  };
166
166
  output: {};
167
167
  outputFormat: string;
168
- status: 400;
168
+ status: 302;
169
169
  } | {
170
170
  input: {
171
171
  query: {
@@ -178,7 +178,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
178
178
  };
179
179
  output: {};
180
180
  outputFormat: string;
181
- status: 302;
181
+ status: 400;
182
182
  };
183
183
  };
184
184
  }, "/impersonate"> & import("hono/types").MergeSchemaPath<{
@@ -520,7 +520,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
520
520
  };
521
521
  output: {};
522
522
  outputFormat: string;
523
- status: 400;
523
+ status: 302;
524
524
  } | {
525
525
  input: {
526
526
  query: {
@@ -534,7 +534,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
534
534
  };
535
535
  output: {};
536
536
  outputFormat: string;
537
- status: 302;
537
+ status: 400;
538
538
  };
539
539
  };
540
540
  }, "/login/identifier"> & import("hono/types").MergeSchemaPath<{
@@ -165,7 +165,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
165
165
  $get: {
166
166
  input: {
167
167
  param: {
168
- screen: "signup" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
168
+ screen: "signup" | "login" | "reset-password" | "consent" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
169
169
  };
170
170
  } & {
171
171
  query: {
@@ -181,7 +181,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
181
181
  } | {
182
182
  input: {
183
183
  param: {
184
- screen: "signup" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
184
+ screen: "signup" | "login" | "reset-password" | "consent" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
185
185
  };
186
186
  } & {
187
187
  query: {
@@ -193,11 +193,11 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
193
193
  };
194
194
  output: {};
195
195
  outputFormat: string;
196
- status: 400;
196
+ status: 302;
197
197
  } | {
198
198
  input: {
199
199
  param: {
200
- screen: "signup" | "consent" | "login" | "reset-password" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
200
+ screen: "signup" | "login" | "reset-password" | "consent" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
201
201
  };
202
202
  } & {
203
203
  query: {
@@ -209,7 +209,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
209
209
  };
210
210
  output: {};
211
211
  outputFormat: string;
212
- status: 302;
212
+ status: 400;
213
213
  };
214
214
  };
215
215
  } & {
@@ -217,7 +217,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
217
217
  $post: {
218
218
  input: {
219
219
  param: {
220
- screen: "signup" | "consent" | "login" | "reset-password" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
220
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
221
221
  };
222
222
  } & {
223
223
  query: {
@@ -235,7 +235,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
235
235
  } | {
236
236
  input: {
237
237
  param: {
238
- screen: "signup" | "consent" | "login" | "reset-password" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
238
+ screen: "signup" | "login" | "reset-password" | "consent" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
239
239
  };
240
240
  } & {
241
241
  query: {