authhero 9.23.0 → 9.24.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 (50) hide show
  1. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  2. package/dist/assets/u/widget/index.esm.js +1 -1
  3. package/dist/assets/u/widget/{p-8b981cd0.entry.js → p-210f06bf.entry.js} +1 -1
  4. package/dist/authhero.cjs +122 -115
  5. package/dist/authhero.d.ts +1585 -431
  6. package/dist/authhero.mjs +14101 -13653
  7. package/dist/tsconfig.types.tsbuildinfo +1 -1
  8. package/dist/types/generated/locale-types.d.ts +6 -0
  9. package/dist/types/helpers/logging.d.ts +7 -0
  10. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +2 -0
  11. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  12. package/dist/types/helpers/users.d.ts +5 -0
  13. package/dist/types/index.d.ts +1585 -431
  14. package/dist/types/routes/auth-api/index.d.ts +13 -13
  15. package/dist/types/routes/auth-api/logout.d.ts +2 -2
  16. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  17. package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
  18. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  19. package/dist/types/routes/management-api/actions.d.ts +29 -3
  20. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  21. package/dist/types/routes/management-api/branding.d.ts +3 -3
  22. package/dist/types/routes/management-api/email-templates.d.ts +2 -2
  23. package/dist/types/routes/management-api/emails.d.ts +2 -2
  24. package/dist/types/routes/management-api/failed-events.d.ts +96 -3
  25. package/dist/types/routes/management-api/flows.d.ts +52 -0
  26. package/dist/types/routes/management-api/forms.d.ts +609 -0
  27. package/dist/types/routes/management-api/grants.d.ts +11 -0
  28. package/dist/types/routes/management-api/helpers.d.ts +9 -1
  29. package/dist/types/routes/management-api/hooks.d.ts +68 -4
  30. package/dist/types/routes/management-api/index.d.ts +1206 -150
  31. package/dist/types/routes/management-api/keys.d.ts +8 -8
  32. package/dist/types/routes/management-api/logs.d.ts +4 -4
  33. package/dist/types/routes/management-api/organizations.d.ts +65 -7
  34. package/dist/types/routes/management-api/prompts.d.ts +6 -6
  35. package/dist/types/routes/management-api/tenants.d.ts +6 -6
  36. package/dist/types/routes/management-api/users.d.ts +159 -16
  37. package/dist/types/routes/saml/index.d.ts +98 -0
  38. package/dist/types/routes/saml/samlp.d.ts +98 -0
  39. package/dist/types/routes/universal-login/continue.d.ts +2 -2
  40. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  41. package/dist/types/routes/universal-login/form-node.d.ts +4 -4
  42. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  43. package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
  44. package/dist/types/routes/universal-login/index.d.ts +12 -12
  45. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  46. package/dist/types/routes/universal-login/u2-index.d.ts +9 -9
  47. package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
  48. package/dist/types/routes/universal-login/u2-widget-page.d.ts +13 -1
  49. package/dist/types/strategies/saml.d.ts +1 -1
  50. package/package.json +6 -6
@@ -741,16 +741,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
741
741
  email: string;
742
742
  send: "code" | "link";
743
743
  authParams: {
744
+ state?: string | undefined;
744
745
  audience?: string | undefined;
745
- response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
746
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
747
- scope?: string | undefined;
748
746
  username?: string | undefined;
749
- state?: string | undefined;
750
747
  act_as?: string | undefined;
748
+ response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
749
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
751
750
  redirect_uri?: string | undefined;
752
751
  organization?: string | undefined;
753
752
  nonce?: string | undefined;
753
+ scope?: string | undefined;
754
754
  prompt?: string | undefined;
755
755
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
756
756
  code_challenge?: string | undefined;
@@ -777,16 +777,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
777
777
  phone_number: string;
778
778
  send: "code" | "link";
779
779
  authParams: {
780
+ state?: string | undefined;
780
781
  audience?: string | undefined;
781
- response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
782
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
783
- scope?: string | undefined;
784
782
  username?: string | undefined;
785
- state?: string | undefined;
786
783
  act_as?: string | undefined;
784
+ response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
785
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
787
786
  redirect_uri?: string | undefined;
788
787
  organization?: string | undefined;
789
788
  nonce?: string | undefined;
789
+ scope?: string | undefined;
790
790
  prompt?: string | undefined;
791
791
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
792
792
  code_challenge?: string | undefined;
@@ -1829,7 +1829,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1829
1829
  };
1830
1830
  output: {};
1831
1831
  outputFormat: string;
1832
- status: 200;
1832
+ status: 400;
1833
1833
  } | {
1834
1834
  input: {
1835
1835
  query: {
@@ -1843,7 +1843,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1843
1843
  };
1844
1844
  output: {};
1845
1845
  outputFormat: string;
1846
- status: 302;
1846
+ status: 200;
1847
1847
  } | {
1848
1848
  input: {
1849
1849
  query: {
@@ -1857,7 +1857,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1857
1857
  };
1858
1858
  output: {};
1859
1859
  outputFormat: string;
1860
- status: 400;
1860
+ status: 302;
1861
1861
  };
1862
1862
  };
1863
1863
  }, "/oidc/logout"> & import("hono/types").MergeSchemaPath<{
@@ -1871,7 +1871,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1871
1871
  };
1872
1872
  output: {};
1873
1873
  outputFormat: string;
1874
- status: 302;
1874
+ status: 400;
1875
1875
  } | {
1876
1876
  input: {
1877
1877
  query: {
@@ -1881,7 +1881,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1881
1881
  };
1882
1882
  output: {};
1883
1883
  outputFormat: string;
1884
- status: 400;
1884
+ status: 302;
1885
1885
  };
1886
1886
  };
1887
1887
  }, "/v2/logout">, "/">;
@@ -14,7 +14,7 @@ export declare const logoutRoutes: OpenAPIHono<{
14
14
  };
15
15
  output: {};
16
16
  outputFormat: string;
17
- status: 302;
17
+ status: 400;
18
18
  } | {
19
19
  input: {
20
20
  query: {
@@ -24,7 +24,7 @@ export declare const logoutRoutes: OpenAPIHono<{
24
24
  };
25
25
  output: {};
26
26
  outputFormat: string;
27
- status: 400;
27
+ status: 302;
28
28
  };
29
29
  };
30
30
  }, "/">;
@@ -18,7 +18,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
18
18
  };
19
19
  output: {};
20
20
  outputFormat: string;
21
- status: 200;
21
+ status: 400;
22
22
  } | {
23
23
  input: {
24
24
  query: {
@@ -32,7 +32,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
32
32
  };
33
33
  output: {};
34
34
  outputFormat: string;
35
- status: 302;
35
+ status: 200;
36
36
  } | {
37
37
  input: {
38
38
  query: {
@@ -46,7 +46,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
46
46
  };
47
47
  output: {};
48
48
  outputFormat: string;
49
- status: 400;
49
+ status: 302;
50
50
  };
51
51
  };
52
52
  }, "/">;
@@ -14,16 +14,16 @@ export declare const passwordlessRoutes: OpenAPIHono<{
14
14
  email: string;
15
15
  send: "code" | "link";
16
16
  authParams: {
17
+ state?: string | undefined;
17
18
  audience?: string | undefined;
18
- response_type?: AuthorizationResponseType | undefined;
19
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
20
- scope?: string | undefined;
21
19
  username?: string | undefined;
22
- state?: string | undefined;
23
20
  act_as?: string | undefined;
21
+ response_type?: AuthorizationResponseType | undefined;
22
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
24
23
  redirect_uri?: string | undefined;
25
24
  organization?: string | undefined;
26
25
  nonce?: string | undefined;
26
+ scope?: 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
+ state?: string | undefined;
53
54
  audience?: string | undefined;
54
- response_type?: AuthorizationResponseType | undefined;
55
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
56
- scope?: string | undefined;
57
55
  username?: string | undefined;
58
- state?: string | undefined;
59
56
  act_as?: string | undefined;
57
+ response_type?: AuthorizationResponseType | undefined;
58
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
60
59
  redirect_uri?: string | undefined;
61
60
  organization?: string | undefined;
62
61
  nonce?: string | undefined;
62
+ scope?: string | undefined;
63
63
  prompt?: string | undefined;
64
64
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
65
65
  code_challenge?: string | undefined;
@@ -78,7 +78,7 @@ export declare const actionExecutionsRoutes: OpenAPIHono<{
78
78
  logs: {
79
79
  action_name: string;
80
80
  lines: {
81
- level: "error" | "info" | "log" | "warn" | "debug";
81
+ level: "error" | "log" | "info" | "warn" | "debug";
82
82
  message: string;
83
83
  }[];
84
84
  }[];
@@ -76,6 +76,32 @@ export declare const actionsRoutes: OpenAPIHono<{
76
76
  }[];
77
77
  total?: number | undefined;
78
78
  next?: string | undefined;
79
+ } | {
80
+ actions: {
81
+ name: string;
82
+ code: string;
83
+ id: string;
84
+ tenant_id: string;
85
+ status: "draft" | "built";
86
+ created_at: string;
87
+ updated_at: string;
88
+ supported_triggers?: {
89
+ id: string;
90
+ version?: string | undefined;
91
+ }[] | undefined;
92
+ runtime?: string | undefined;
93
+ dependencies?: {
94
+ name: string;
95
+ version: string;
96
+ }[] | undefined;
97
+ is_system?: boolean | undefined;
98
+ inherit?: boolean | undefined;
99
+ deployed_at?: string | undefined;
100
+ secrets?: {
101
+ name: string;
102
+ }[] | undefined;
103
+ }[];
104
+ next?: string | undefined;
79
105
  };
80
106
  outputFormat: "json";
81
107
  status: 200;
@@ -297,7 +323,7 @@ export declare const actionsRoutes: OpenAPIHono<{
297
323
  };
298
324
  output: {};
299
325
  outputFormat: string;
300
- status: 404;
326
+ status: 200;
301
327
  } | {
302
328
  input: {
303
329
  param: {
@@ -310,7 +336,7 @@ export declare const actionsRoutes: OpenAPIHono<{
310
336
  };
311
337
  output: {};
312
338
  outputFormat: string;
313
- status: 200;
339
+ status: 404;
314
340
  } | {
315
341
  input: {
316
342
  param: {
@@ -656,7 +682,7 @@ export declare const actionsRoutes: OpenAPIHono<{
656
682
  args: import("hono/utils/types").JSONValue[];
657
683
  }[];
658
684
  logs: {
659
- level: "error" | "info" | "log" | "warn" | "debug";
685
+ level: "error" | "log" | "info" | "warn" | "debug";
660
686
  message: string;
661
687
  }[];
662
688
  error?: string | undefined;
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
37
37
  };
38
38
  } & {
39
39
  json: {
40
- type: "email" | "passkey" | "push" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
40
+ type: "push" | "email" | "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;
@@ -370,7 +370,7 @@ export declare const brandingRoutes: OpenAPIHono<{
370
370
  };
371
371
  output: {};
372
372
  outputFormat: string;
373
- status: 204;
373
+ status: 400;
374
374
  } | {
375
375
  input: {
376
376
  header: {
@@ -383,7 +383,7 @@ export declare const brandingRoutes: OpenAPIHono<{
383
383
  };
384
384
  output: {};
385
385
  outputFormat: string;
386
- status: 400;
386
+ status: 204;
387
387
  };
388
388
  };
389
389
  } & {
@@ -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" | "identifier" | "signup" | "login" | undefined;
413
413
  branding?: {
414
414
  colors?: {
415
415
  primary: string;
@@ -233,7 +233,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
233
233
  };
234
234
  output: {};
235
235
  outputFormat: string;
236
- status: 404;
236
+ status: 204;
237
237
  } | {
238
238
  input: {
239
239
  param: {
@@ -246,7 +246,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
246
246
  };
247
247
  output: {};
248
248
  outputFormat: string;
249
- status: 204;
249
+ status: 404;
250
250
  };
251
251
  };
252
252
  } & {
@@ -109,7 +109,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
109
109
  };
110
110
  output: {};
111
111
  outputFormat: string;
112
- status: 404;
112
+ status: 204;
113
113
  } | {
114
114
  input: {
115
115
  header: {
@@ -118,7 +118,7 @@ export declare const emailProviderRoutes: OpenAPIHono<{
118
118
  };
119
119
  output: {};
120
120
  outputFormat: string;
121
- status: 204;
121
+ status: 404;
122
122
  };
123
123
  };
124
124
  }, "/">;
@@ -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" | "api_key" | "user" | "system" | "admin";
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;
@@ -104,12 +104,105 @@ export declare const failedEventsRoutes: OpenAPIHono<{
104
104
  } | undefined;
105
105
  is_mobile?: boolean | undefined;
106
106
  execution_id?: string | undefined;
107
+ details?: {
108
+ [x: string]: import("hono/utils/types").JSONValue;
109
+ } | undefined;
110
+ login_session_id?: string | undefined;
107
111
  dead_lettered_at?: string | null | undefined;
108
112
  final_error?: string | null | undefined;
109
113
  }[];
110
114
  start: number;
111
115
  limit: number;
112
116
  length: number;
117
+ } | {
118
+ events: {
119
+ tenant_id: string;
120
+ event_type: string;
121
+ log_type: string;
122
+ category: "user_action" | "admin_action" | "system" | "api";
123
+ actor: {
124
+ type: "client_credentials" | "user" | "system" | "admin" | "api_key";
125
+ id?: string | undefined;
126
+ email?: string | undefined;
127
+ org_id?: string | undefined;
128
+ org_name?: string | undefined;
129
+ scopes?: string[] | undefined;
130
+ client_id?: string | undefined;
131
+ };
132
+ target: {
133
+ type: string;
134
+ id: string;
135
+ before?: {
136
+ [x: string]: import("hono/utils/types").JSONValue;
137
+ } | undefined;
138
+ after?: {
139
+ [x: string]: import("hono/utils/types").JSONValue;
140
+ } | undefined;
141
+ diff?: {
142
+ [x: string]: {
143
+ old: import("hono/utils/types").JSONValue;
144
+ new: import("hono/utils/types").JSONValue;
145
+ };
146
+ } | undefined;
147
+ };
148
+ request: {
149
+ method: string;
150
+ path: string;
151
+ ip: string;
152
+ query?: {
153
+ [x: string]: string;
154
+ } | undefined;
155
+ body?: import("hono/utils/types").JSONValue | undefined;
156
+ user_agent?: string | undefined;
157
+ correlation_id?: string | undefined;
158
+ redirect_uri?: string | undefined;
159
+ authorization_url?: string | undefined;
160
+ };
161
+ hostname: string;
162
+ timestamp: string;
163
+ id: string;
164
+ created_at: string;
165
+ processed_at: string | null;
166
+ retry_count: number;
167
+ next_retry_at: string | null;
168
+ error: string | null;
169
+ description?: string | undefined;
170
+ response?: {
171
+ status_code: number;
172
+ body?: import("hono/utils/types").JSONValue | undefined;
173
+ } | undefined;
174
+ connection?: string | undefined;
175
+ connection_id?: string | undefined;
176
+ client_name?: string | undefined;
177
+ strategy?: string | undefined;
178
+ strategy_type?: string | undefined;
179
+ audience?: string | undefined;
180
+ scope?: string | undefined;
181
+ location?: {
182
+ country_code: string;
183
+ city_name: string;
184
+ latitude: string;
185
+ longitude: string;
186
+ time_zone: string;
187
+ continent_code: string;
188
+ } | undefined;
189
+ auth0_client?: {
190
+ name: string;
191
+ version: string;
192
+ env?: {
193
+ [x: string]: string;
194
+ } | undefined;
195
+ } | undefined;
196
+ is_mobile?: boolean | undefined;
197
+ execution_id?: string | undefined;
198
+ details?: {
199
+ [x: string]: import("hono/utils/types").JSONValue;
200
+ } | undefined;
201
+ login_session_id?: string | undefined;
202
+ dead_lettered_at?: string | null | undefined;
203
+ final_error?: string | null | undefined;
204
+ }[];
205
+ next?: string | undefined;
113
206
  };
114
207
  outputFormat: "json";
115
208
  status: 200;
@@ -202,7 +295,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
202
295
  };
203
296
  output: {};
204
297
  outputFormat: string;
205
- status: 404;
298
+ status: 204;
206
299
  } | {
207
300
  input: {
208
301
  param: {
@@ -215,7 +308,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
215
308
  };
216
309
  output: {};
217
310
  outputFormat: string;
218
- status: 204;
311
+ status: 404;
219
312
  };
220
313
  };
221
314
  }, "/">;
@@ -128,6 +128,58 @@ export declare const flowsRoutes: OpenAPIHono<{
128
128
  }[];
129
129
  total?: number | undefined;
130
130
  next?: string | undefined;
131
+ } | {
132
+ flows: {
133
+ name: string;
134
+ actions: ({
135
+ id: string;
136
+ type: "AUTH0";
137
+ action: "UPDATE_USER";
138
+ params: {
139
+ user_id: string;
140
+ changes: {
141
+ [x: string]: any;
142
+ };
143
+ connection_id?: string | undefined;
144
+ };
145
+ alias?: string | undefined;
146
+ allow_failure?: boolean | undefined;
147
+ mask_output?: boolean | undefined;
148
+ } | {
149
+ id: string;
150
+ type: "EMAIL";
151
+ action: "VERIFY_EMAIL";
152
+ params: {
153
+ email: string;
154
+ rules?: {
155
+ require_mx_record?: boolean | undefined;
156
+ block_aliases?: boolean | undefined;
157
+ block_free_emails?: boolean | undefined;
158
+ block_disposable_emails?: boolean | undefined;
159
+ blocklist?: string[] | undefined;
160
+ allowlist?: string[] | undefined;
161
+ } | undefined;
162
+ };
163
+ alias?: string | undefined;
164
+ allow_failure?: boolean | undefined;
165
+ mask_output?: boolean | undefined;
166
+ } | {
167
+ id: string;
168
+ type: "REDIRECT";
169
+ action: "REDIRECT_USER";
170
+ params: {
171
+ target: "custom" | "change-email" | "account";
172
+ custom_url?: string | undefined;
173
+ };
174
+ alias?: string | undefined;
175
+ allow_failure?: boolean | undefined;
176
+ mask_output?: boolean | undefined;
177
+ })[];
178
+ created_at: string;
179
+ updated_at: string;
180
+ id: string;
181
+ }[];
182
+ next?: string | undefined;
131
183
  };
132
184
  outputFormat: "json";
133
185
  status: 200;