authhero 8.9.1 → 8.9.2

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.
@@ -0,0 +1,18 @@
1
+ import { Bindings, Variables } from "../../types";
2
+ export declare const avatarRoutes: import("hono/hono-base").HonoBase<{
3
+ Bindings: Bindings;
4
+ Variables: Variables;
5
+ }, {
6
+ "/:initials": {
7
+ $get: {
8
+ input: {
9
+ param: {
10
+ initials: string;
11
+ };
12
+ };
13
+ output: string;
14
+ outputFormat: "body";
15
+ status: 200;
16
+ };
17
+ };
18
+ }, "/", "/:initials">;
@@ -4,6 +4,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
4
4
  Bindings: Bindings;
5
5
  Variables: Variables;
6
6
  }, import("hono/types").MergeSchemaPath<{
7
+ "/:initials": {
8
+ $get: {
9
+ input: {
10
+ param: {
11
+ initials: string;
12
+ };
13
+ };
14
+ output: string;
15
+ outputFormat: "body";
16
+ status: 200;
17
+ };
18
+ };
19
+ }, "/avatars"> & import("hono/types").MergeSchemaPath<{
7
20
  "/": {
8
21
  $get: {
9
22
  input: {
@@ -434,7 +447,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
434
447
  client_id: string;
435
448
  redirect_url?: string | undefined;
436
449
  login_hint?: string | undefined;
437
- screen_hint?: "change-email" | "account" | "change-phone" | "change-password" | undefined;
450
+ screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
438
451
  };
439
452
  };
440
453
  output: {};
@@ -446,7 +459,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
446
459
  client_id: string;
447
460
  redirect_url?: string | undefined;
448
461
  login_hint?: string | undefined;
449
- screen_hint?: "change-email" | "account" | "change-phone" | "change-password" | undefined;
462
+ screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
450
463
  };
451
464
  };
452
465
  output: {
@@ -723,19 +736,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
723
736
  email: string;
724
737
  send: "code" | "link";
725
738
  authParams: {
726
- state?: string | undefined;
727
739
  username?: string | undefined;
728
- act_as?: string | undefined;
740
+ audience?: string | undefined;
741
+ scope?: string | undefined;
742
+ state?: string | undefined;
729
743
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
730
744
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
745
+ code_challenge?: string | undefined;
746
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
731
747
  redirect_uri?: string | undefined;
732
- audience?: string | undefined;
733
- organization?: string | undefined;
734
748
  nonce?: string | undefined;
735
- scope?: string | undefined;
749
+ act_as?: string | undefined;
750
+ organization?: string | undefined;
736
751
  prompt?: string | undefined;
737
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
738
- code_challenge?: string | undefined;
739
752
  ui_locales?: string | undefined;
740
753
  max_age?: number | undefined;
741
754
  acr_values?: string | undefined;
@@ -759,19 +772,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
759
772
  phone_number: string;
760
773
  send: "code" | "link";
761
774
  authParams: {
762
- state?: string | undefined;
763
775
  username?: string | undefined;
764
- act_as?: string | undefined;
776
+ audience?: string | undefined;
777
+ scope?: string | undefined;
778
+ state?: string | undefined;
765
779
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
766
780
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
781
+ code_challenge?: string | undefined;
782
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
767
783
  redirect_uri?: string | undefined;
768
- audience?: string | undefined;
769
- organization?: string | undefined;
770
784
  nonce?: string | undefined;
771
- scope?: string | undefined;
785
+ act_as?: string | undefined;
786
+ organization?: string | undefined;
772
787
  prompt?: string | undefined;
773
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
774
- code_challenge?: string | undefined;
775
788
  ui_locales?: string | undefined;
776
789
  max_age?: number | undefined;
777
790
  acr_values?: string | undefined;
@@ -14,19 +14,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
14
14
  email: string;
15
15
  send: "code" | "link";
16
16
  authParams: {
17
- state?: string | undefined;
18
17
  username?: string | undefined;
19
- act_as?: string | undefined;
18
+ audience?: string | undefined;
19
+ scope?: string | undefined;
20
+ state?: string | undefined;
20
21
  response_type?: AuthorizationResponseType | undefined;
21
22
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
23
+ code_challenge?: string | undefined;
24
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
22
25
  redirect_uri?: string | undefined;
23
- audience?: string | undefined;
24
- organization?: string | undefined;
25
26
  nonce?: string | undefined;
26
- scope?: string | undefined;
27
+ act_as?: string | undefined;
28
+ organization?: string | undefined;
27
29
  prompt?: string | undefined;
28
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
29
- code_challenge?: string | undefined;
30
30
  ui_locales?: string | undefined;
31
31
  max_age?: number | undefined;
32
32
  acr_values?: string | undefined;
@@ -50,19 +50,19 @@ export declare const passwordlessRoutes: OpenAPIHono<{
50
50
  phone_number: string;
51
51
  send: "code" | "link";
52
52
  authParams: {
53
- state?: string | undefined;
54
53
  username?: string | undefined;
55
- act_as?: string | undefined;
54
+ audience?: string | undefined;
55
+ scope?: string | undefined;
56
+ state?: string | undefined;
56
57
  response_type?: AuthorizationResponseType | undefined;
57
58
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
59
+ code_challenge?: string | undefined;
60
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
58
61
  redirect_uri?: string | undefined;
59
- audience?: string | undefined;
60
- organization?: string | undefined;
61
62
  nonce?: string | undefined;
62
- scope?: string | undefined;
63
+ act_as?: string | undefined;
64
+ organization?: string | undefined;
63
65
  prompt?: string | undefined;
64
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
65
- code_challenge?: string | undefined;
66
66
  ui_locales?: string | undefined;
67
67
  max_age?: number | undefined;
68
68
  acr_values?: string | undefined;
@@ -129,7 +129,7 @@ export declare const connectionRoutes: OpenAPIHono<{
129
129
  } | undefined;
130
130
  } | undefined;
131
131
  passkey_options?: {
132
- challenge_ui?: "button" | "both" | "autofill" | undefined;
132
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
133
133
  local_enrollment_enabled?: boolean | undefined;
134
134
  progressive_enrollment_enabled?: boolean | undefined;
135
135
  } | undefined;
@@ -263,7 +263,7 @@ export declare const connectionRoutes: OpenAPIHono<{
263
263
  } | undefined;
264
264
  } | undefined;
265
265
  passkey_options?: {
266
- challenge_ui?: "button" | "both" | "autofill" | undefined;
266
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
267
267
  local_enrollment_enabled?: boolean | undefined;
268
268
  progressive_enrollment_enabled?: boolean | undefined;
269
269
  } | undefined;
@@ -412,7 +412,7 @@ export declare const connectionRoutes: OpenAPIHono<{
412
412
  } | undefined;
413
413
  } | undefined;
414
414
  passkey_options?: {
415
- challenge_ui?: "button" | "both" | "autofill" | undefined;
415
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
416
416
  local_enrollment_enabled?: boolean | undefined;
417
417
  progressive_enrollment_enabled?: boolean | undefined;
418
418
  } | undefined;
@@ -591,7 +591,7 @@ export declare const connectionRoutes: OpenAPIHono<{
591
591
  } | undefined;
592
592
  } | undefined;
593
593
  passkey_options?: {
594
- challenge_ui?: "button" | "both" | "autofill" | undefined;
594
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
595
595
  local_enrollment_enabled?: boolean | undefined;
596
596
  progressive_enrollment_enabled?: boolean | undefined;
597
597
  } | undefined;
@@ -749,7 +749,7 @@ export declare const connectionRoutes: OpenAPIHono<{
749
749
  } | undefined;
750
750
  } | undefined;
751
751
  passkey_options?: {
752
- challenge_ui?: "button" | "both" | "autofill" | undefined;
752
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
753
753
  local_enrollment_enabled?: boolean | undefined;
754
754
  progressive_enrollment_enabled?: boolean | undefined;
755
755
  } | undefined;
@@ -852,7 +852,7 @@ export declare const connectionRoutes: OpenAPIHono<{
852
852
  };
853
853
  } | {
854
854
  mode: "inline";
855
- status: "success" | "error";
855
+ status: "error" | "success";
856
856
  connection_id: string;
857
857
  connection_name: string;
858
858
  strategy: string;
@@ -12,7 +12,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
12
12
  };
13
13
  } & {
14
14
  json: {
15
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
15
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
16
16
  body: string;
17
17
  from: string;
18
18
  subject: string;
@@ -33,7 +33,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
33
33
  };
34
34
  } & {
35
35
  json: {
36
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
36
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
37
37
  body: string;
38
38
  from: string;
39
39
  subject: string;
@@ -45,7 +45,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
45
45
  };
46
46
  };
47
47
  output: {
48
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
48
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
49
49
  body: string;
50
50
  from: string;
51
51
  subject: string;
@@ -68,7 +68,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
68
68
  };
69
69
  };
70
70
  output: {
71
- name: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
71
+ name: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
72
72
  body: string;
73
73
  subject: string;
74
74
  }[];
@@ -81,7 +81,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
81
81
  $get: {
82
82
  input: {
83
83
  param: {
84
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
84
+ templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
85
85
  };
86
86
  } & {
87
87
  header: {
@@ -94,7 +94,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
94
94
  } | {
95
95
  input: {
96
96
  param: {
97
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
97
+ templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
98
98
  };
99
99
  } & {
100
100
  header: {
@@ -102,7 +102,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
102
102
  };
103
103
  };
104
104
  output: {
105
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
105
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
106
106
  body: string;
107
107
  from: string;
108
108
  subject: string;
@@ -121,7 +121,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
121
121
  $put: {
122
122
  input: {
123
123
  param: {
124
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
124
+ templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
125
125
  };
126
126
  } & {
127
127
  header: {
@@ -129,7 +129,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
129
129
  };
130
130
  } & {
131
131
  json: {
132
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
132
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
133
133
  body: string;
134
134
  subject: string;
135
135
  syntax?: "liquid" | undefined;
@@ -141,7 +141,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
141
141
  };
142
142
  };
143
143
  output: {
144
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
144
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
145
145
  body: string;
146
146
  from: string;
147
147
  subject: string;
@@ -160,7 +160,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
160
160
  $patch: {
161
161
  input: {
162
162
  param: {
163
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
163
+ templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
164
164
  };
165
165
  } & {
166
166
  header: {
@@ -168,7 +168,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
168
168
  };
169
169
  } & {
170
170
  json: {
171
- template?: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
171
+ template?: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
172
172
  body?: string | undefined;
173
173
  from?: string | undefined;
174
174
  subject?: string | undefined;
@@ -185,7 +185,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
185
185
  } | {
186
186
  input: {
187
187
  param: {
188
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
188
+ templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
189
189
  };
190
190
  } & {
191
191
  header: {
@@ -193,7 +193,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
193
193
  };
194
194
  } & {
195
195
  json: {
196
- template?: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
196
+ template?: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
197
197
  body?: string | undefined;
198
198
  from?: string | undefined;
199
199
  subject?: string | undefined;
@@ -205,7 +205,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
205
205
  };
206
206
  };
207
207
  output: {
208
- template: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
208
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
209
209
  body: string;
210
210
  from: string;
211
211
  subject: string;
@@ -224,7 +224,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
224
224
  $delete: {
225
225
  input: {
226
226
  param: {
227
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
227
+ templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
228
228
  };
229
229
  } & {
230
230
  header: {
@@ -237,7 +237,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
237
237
  } | {
238
238
  input: {
239
239
  param: {
240
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
240
+ templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
241
241
  };
242
242
  } & {
243
243
  header: {
@@ -254,7 +254,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
254
254
  $post: {
255
255
  input: {
256
256
  param: {
257
- templateName: "verify_email" | "change_password" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
257
+ templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
258
258
  };
259
259
  } & {
260
260
  header: {