authhero 8.15.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 (35) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +109 -109
  3. package/dist/authhero.d.ts +76 -73
  4. package/dist/authhero.mjs +7985 -7913
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/authentication-flows/passwordless.d.ts +5 -5
  7. package/dist/types/constants.d.ts +1 -1
  8. package/dist/types/helpers/logging.d.ts +11 -0
  9. package/dist/types/index.d.ts +66 -64
  10. package/dist/types/routes/auth-api/index.d.ts +4 -4
  11. package/dist/types/routes/auth-api/passwordless.d.ts +4 -4
  12. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  13. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  14. package/dist/types/routes/management-api/branding.d.ts +5 -5
  15. package/dist/types/routes/management-api/clients.d.ts +6 -6
  16. package/dist/types/routes/management-api/connections.d.ts +15 -15
  17. package/dist/types/routes/management-api/failed-events.d.ts +3 -1
  18. package/dist/types/routes/management-api/index.d.ts +55 -53
  19. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  20. package/dist/types/routes/management-api/logs.d.ts +3 -3
  21. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  22. package/dist/types/routes/management-api/organizations.d.ts +3 -3
  23. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  24. package/dist/types/routes/management-api/tenants.d.ts +6 -6
  25. package/dist/types/routes/management-api/themes.d.ts +3 -3
  26. package/dist/types/routes/management-api/users.d.ts +2 -2
  27. package/dist/types/routes/universal-login/common.d.ts +8 -8
  28. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  29. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  30. package/dist/types/routes/universal-login/index.d.ts +2 -2
  31. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  32. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  33. package/dist/types/types/AuthHeroConfig.d.ts +9 -8
  34. package/dist/types/utils/username-password-provider.d.ts +11 -6
  35. package/package.json +5 -5
@@ -736,16 +736,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
736
736
  email: string;
737
737
  send: "code" | "link";
738
738
  authParams: {
739
+ audience?: string | undefined;
739
740
  username?: string | undefined;
740
741
  state?: string | undefined;
741
- audience?: string | undefined;
742
742
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
743
743
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
744
744
  scope?: string | undefined;
745
745
  organization?: string | undefined;
746
746
  nonce?: string | undefined;
747
- redirect_uri?: string | undefined;
748
747
  act_as?: string | undefined;
748
+ redirect_uri?: string | undefined;
749
749
  prompt?: string | undefined;
750
750
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
751
751
  code_challenge?: string | undefined;
@@ -772,16 +772,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
772
772
  phone_number: string;
773
773
  send: "code" | "link";
774
774
  authParams: {
775
+ audience?: string | undefined;
775
776
  username?: string | undefined;
776
777
  state?: string | undefined;
777
- audience?: string | undefined;
778
778
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
779
779
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
780
780
  scope?: string | undefined;
781
781
  organization?: string | undefined;
782
782
  nonce?: string | undefined;
783
- redirect_uri?: string | undefined;
784
783
  act_as?: string | undefined;
784
+ redirect_uri?: string | undefined;
785
785
  prompt?: string | undefined;
786
786
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
787
787
  code_challenge?: string | undefined;
@@ -14,16 +14,16 @@ export declare const passwordlessRoutes: OpenAPIHono<{
14
14
  email: string;
15
15
  send: "code" | "link";
16
16
  authParams: {
17
+ audience?: string | undefined;
17
18
  username?: string | undefined;
18
19
  state?: string | undefined;
19
- audience?: string | undefined;
20
20
  response_type?: AuthorizationResponseType | undefined;
21
21
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
22
22
  scope?: string | undefined;
23
23
  organization?: string | undefined;
24
24
  nonce?: string | undefined;
25
- redirect_uri?: string | undefined;
26
25
  act_as?: string | undefined;
26
+ redirect_uri?: string | undefined;
27
27
  prompt?: string | undefined;
28
28
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
29
29
  code_challenge?: string | undefined;
@@ -50,16 +50,16 @@ export declare const passwordlessRoutes: OpenAPIHono<{
50
50
  phone_number: string;
51
51
  send: "code" | "link";
52
52
  authParams: {
53
+ audience?: string | undefined;
53
54
  username?: string | undefined;
54
55
  state?: string | undefined;
55
- audience?: string | undefined;
56
56
  response_type?: AuthorizationResponseType | undefined;
57
57
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
58
58
  scope?: string | undefined;
59
59
  organization?: string | undefined;
60
60
  nonce?: string | undefined;
61
- redirect_uri?: string | undefined;
62
61
  act_as?: string | undefined;
62
+ redirect_uri?: string | undefined;
63
63
  prompt?: string | undefined;
64
64
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
65
65
  code_challenge?: string | undefined;
@@ -31,7 +31,7 @@ export declare const actionExecutionsRoutes: OpenAPIHono<{
31
31
  output: {
32
32
  id: string;
33
33
  trigger_id: string;
34
- status: "pending" | "unspecified" | "final" | "partial" | "canceled" | "suspended";
34
+ status: "pending" | "suspended" | "unspecified" | "final" | "partial" | "canceled";
35
35
  results: {
36
36
  action_name: string;
37
37
  error: {
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
37
37
  };
38
38
  } & {
39
39
  json: {
40
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
40
+ type: "email" | "push" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
41
41
  phone_number?: string | undefined;
42
42
  totp_secret?: string | undefined;
43
43
  credential_id?: string | undefined;
@@ -78,7 +78,7 @@ export declare const brandingRoutes: 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 brandingRoutes: 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 brandingRoutes: 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";
@@ -409,7 +409,7 @@ export declare const brandingRoutes: OpenAPIHono<{
409
409
  } & {
410
410
  json: {
411
411
  body?: string | undefined;
412
- screen?: "identifier" | "signup" | "password" | "login" | undefined;
412
+ screen?: "password" | "signup" | "login" | "identifier" | undefined;
413
413
  branding?: {
414
414
  colors?: {
415
415
  primary: string;
@@ -495,7 +495,7 @@ export declare const brandingRoutes: OpenAPIHono<{
495
495
  background_color: string;
496
496
  background_image_url: string;
497
497
  page_layout: "center" | "left" | "right";
498
- logo_placement?: "none" | "widget" | "chip" | undefined;
498
+ logo_placement?: "widget" | "none" | "chip" | undefined;
499
499
  } | undefined;
500
500
  widget?: {
501
501
  header_text_alignment: "center" | "left" | "right";
@@ -760,7 +760,7 @@ export declare const clientRoutes: OpenAPIHono<{
760
760
  active?: boolean | undefined;
761
761
  } | undefined;
762
762
  signup?: {
763
- status?: "optional" | "required" | "disabled" | undefined;
763
+ status?: "optional" | "disabled" | "required" | undefined;
764
764
  verification?: {
765
765
  active?: boolean | undefined;
766
766
  } | undefined;
@@ -777,7 +777,7 @@ export declare const clientRoutes: OpenAPIHono<{
777
777
  active?: boolean | undefined;
778
778
  } | undefined;
779
779
  signup?: {
780
- status?: "optional" | "required" | "disabled" | undefined;
780
+ status?: "optional" | "disabled" | "required" | undefined;
781
781
  } | undefined;
782
782
  validation?: {
783
783
  max_length?: number | undefined;
@@ -794,7 +794,7 @@ export declare const clientRoutes: OpenAPIHono<{
794
794
  active?: boolean | undefined;
795
795
  } | undefined;
796
796
  signup?: {
797
- status?: "optional" | "required" | "disabled" | undefined;
797
+ status?: "optional" | "disabled" | "required" | undefined;
798
798
  } | undefined;
799
799
  } | undefined;
800
800
  } | undefined;
@@ -914,7 +914,7 @@ export declare const clientRoutes: OpenAPIHono<{
914
914
  active?: boolean | undefined;
915
915
  } | undefined;
916
916
  signup?: {
917
- status?: "optional" | "required" | "disabled" | undefined;
917
+ status?: "optional" | "disabled" | "required" | undefined;
918
918
  verification?: {
919
919
  active?: boolean | undefined;
920
920
  } | undefined;
@@ -931,7 +931,7 @@ export declare const clientRoutes: OpenAPIHono<{
931
931
  active?: boolean | undefined;
932
932
  } | undefined;
933
933
  signup?: {
934
- status?: "optional" | "required" | "disabled" | undefined;
934
+ status?: "optional" | "disabled" | "required" | undefined;
935
935
  } | undefined;
936
936
  validation?: {
937
937
  max_length?: number | undefined;
@@ -948,7 +948,7 @@ export declare const clientRoutes: OpenAPIHono<{
948
948
  active?: boolean | undefined;
949
949
  } | undefined;
950
950
  signup?: {
951
- status?: "optional" | "required" | "disabled" | undefined;
951
+ status?: "optional" | "disabled" | "required" | undefined;
952
952
  } | undefined;
953
953
  } | undefined;
954
954
  } | undefined;
@@ -82,7 +82,7 @@ export declare const connectionRoutes: OpenAPIHono<{
82
82
  active?: boolean | undefined;
83
83
  } | undefined;
84
84
  signup?: {
85
- status?: "optional" | "required" | "disabled" | undefined;
85
+ status?: "optional" | "disabled" | "required" | undefined;
86
86
  verification?: {
87
87
  active?: boolean | undefined;
88
88
  } | undefined;
@@ -99,7 +99,7 @@ export declare const connectionRoutes: OpenAPIHono<{
99
99
  active?: boolean | undefined;
100
100
  } | undefined;
101
101
  signup?: {
102
- status?: "optional" | "required" | "disabled" | undefined;
102
+ status?: "optional" | "disabled" | "required" | undefined;
103
103
  } | undefined;
104
104
  validation?: {
105
105
  max_length?: number | undefined;
@@ -116,7 +116,7 @@ export declare const connectionRoutes: OpenAPIHono<{
116
116
  active?: boolean | undefined;
117
117
  } | undefined;
118
118
  signup?: {
119
- status?: "optional" | "required" | "disabled" | undefined;
119
+ status?: "optional" | "disabled" | "required" | undefined;
120
120
  } | undefined;
121
121
  } | undefined;
122
122
  } | undefined;
@@ -216,7 +216,7 @@ export declare const connectionRoutes: OpenAPIHono<{
216
216
  active?: boolean | undefined;
217
217
  } | undefined;
218
218
  signup?: {
219
- status?: "optional" | "required" | "disabled" | undefined;
219
+ status?: "optional" | "disabled" | "required" | undefined;
220
220
  verification?: {
221
221
  active?: boolean | undefined;
222
222
  } | undefined;
@@ -233,7 +233,7 @@ export declare const connectionRoutes: OpenAPIHono<{
233
233
  active?: boolean | undefined;
234
234
  } | undefined;
235
235
  signup?: {
236
- status?: "optional" | "required" | "disabled" | undefined;
236
+ status?: "optional" | "disabled" | "required" | undefined;
237
237
  } | undefined;
238
238
  validation?: {
239
239
  max_length?: number | undefined;
@@ -250,7 +250,7 @@ export declare const connectionRoutes: OpenAPIHono<{
250
250
  active?: boolean | undefined;
251
251
  } | undefined;
252
252
  signup?: {
253
- status?: "optional" | "required" | "disabled" | undefined;
253
+ status?: "optional" | "disabled" | "required" | undefined;
254
254
  } | undefined;
255
255
  } | undefined;
256
256
  } | undefined;
@@ -365,7 +365,7 @@ export declare const connectionRoutes: OpenAPIHono<{
365
365
  active?: boolean | undefined;
366
366
  } | undefined;
367
367
  signup?: {
368
- status?: "optional" | "required" | "disabled" | undefined;
368
+ status?: "optional" | "disabled" | "required" | undefined;
369
369
  verification?: {
370
370
  active?: boolean | undefined;
371
371
  } | undefined;
@@ -382,7 +382,7 @@ export declare const connectionRoutes: OpenAPIHono<{
382
382
  active?: boolean | undefined;
383
383
  } | undefined;
384
384
  signup?: {
385
- status?: "optional" | "required" | "disabled" | undefined;
385
+ status?: "optional" | "disabled" | "required" | undefined;
386
386
  } | undefined;
387
387
  validation?: {
388
388
  max_length?: number | undefined;
@@ -399,7 +399,7 @@ export declare const connectionRoutes: OpenAPIHono<{
399
399
  active?: boolean | undefined;
400
400
  } | undefined;
401
401
  signup?: {
402
- status?: "optional" | "required" | "disabled" | undefined;
402
+ status?: "optional" | "disabled" | "required" | undefined;
403
403
  } | undefined;
404
404
  } | undefined;
405
405
  } | undefined;
@@ -544,7 +544,7 @@ export declare const connectionRoutes: OpenAPIHono<{
544
544
  active?: boolean | undefined;
545
545
  } | undefined;
546
546
  signup?: {
547
- status?: "optional" | "required" | "disabled" | undefined;
547
+ status?: "optional" | "disabled" | "required" | undefined;
548
548
  verification?: {
549
549
  active?: boolean | undefined;
550
550
  } | undefined;
@@ -561,7 +561,7 @@ export declare const connectionRoutes: OpenAPIHono<{
561
561
  active?: boolean | undefined;
562
562
  } | undefined;
563
563
  signup?: {
564
- status?: "optional" | "required" | "disabled" | undefined;
564
+ status?: "optional" | "disabled" | "required" | undefined;
565
565
  } | undefined;
566
566
  validation?: {
567
567
  max_length?: number | undefined;
@@ -578,7 +578,7 @@ export declare const connectionRoutes: OpenAPIHono<{
578
578
  active?: boolean | undefined;
579
579
  } | undefined;
580
580
  signup?: {
581
- status?: "optional" | "required" | "disabled" | undefined;
581
+ status?: "optional" | "disabled" | "required" | undefined;
582
582
  } | undefined;
583
583
  } | undefined;
584
584
  } | undefined;
@@ -702,7 +702,7 @@ export declare const connectionRoutes: OpenAPIHono<{
702
702
  active?: boolean | undefined;
703
703
  } | undefined;
704
704
  signup?: {
705
- status?: "optional" | "required" | "disabled" | undefined;
705
+ status?: "optional" | "disabled" | "required" | undefined;
706
706
  verification?: {
707
707
  active?: boolean | undefined;
708
708
  } | undefined;
@@ -719,7 +719,7 @@ export declare const connectionRoutes: OpenAPIHono<{
719
719
  active?: boolean | undefined;
720
720
  } | undefined;
721
721
  signup?: {
722
- status?: "optional" | "required" | "disabled" | undefined;
722
+ status?: "optional" | "disabled" | "required" | undefined;
723
723
  } | undefined;
724
724
  validation?: {
725
725
  max_length?: number | undefined;
@@ -736,7 +736,7 @@ export declare const connectionRoutes: OpenAPIHono<{
736
736
  active?: boolean | undefined;
737
737
  } | undefined;
738
738
  signup?: {
739
- status?: "optional" | "required" | "disabled" | undefined;
739
+ status?: "optional" | "disabled" | "required" | undefined;
740
740
  } | undefined;
741
741
  } | undefined;
742
742
  } | undefined;
@@ -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: "user" | "client_credentials" | "system" | "admin" | "api_key";
33
+ type: "client_credentials" | "user" | "system" | "admin" | "api_key";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;
@@ -79,6 +79,8 @@ export declare const failedEventsRoutes: OpenAPIHono<{
79
79
  body?: import("hono/utils/types").JSONValue | undefined;
80
80
  } | undefined;
81
81
  connection?: string | undefined;
82
+ connection_id?: string | undefined;
83
+ client_name?: string | undefined;
82
84
  strategy?: string | undefined;
83
85
  strategy_type?: string | undefined;
84
86
  audience?: string | undefined;