authhero 9.18.0 → 9.20.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 (63) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +185 -173
  3. package/dist/authhero.d.ts +389 -159
  4. package/dist/authhero.mjs +19766 -17178
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/authentication-flows/email-verification.d.ts +74 -0
  7. package/dist/types/authentication-flows/password.d.ts +3 -2
  8. package/dist/types/authentication-flows/passwordless.d.ts +2 -2
  9. package/dist/types/emails/index.d.ts +27 -1
  10. package/dist/types/generated/locale-types.d.ts +282 -0
  11. package/dist/types/helpers/dcr/metadata-mapping.d.ts +2 -2
  12. package/dist/types/helpers/default-destinations.d.ts +7 -1
  13. package/dist/types/helpers/http-certificate-issuer.d.ts +55 -0
  14. package/dist/types/helpers/logging.d.ts +5 -0
  15. package/dist/types/helpers/outbox-destinations/code-hooks.d.ts +5 -1
  16. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +3 -0
  17. package/dist/types/helpers/renew-signing-certificates.d.ts +61 -0
  18. package/dist/types/helpers/request-data.d.ts +15 -0
  19. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  20. package/dist/types/helpers/run-outbox-relay.d.ts +7 -1
  21. package/dist/types/hooks/codehooks.d.ts +14 -1
  22. package/dist/types/index.d.ts +211 -155
  23. package/dist/types/routes/auth-api/index.d.ts +26 -26
  24. package/dist/types/routes/auth-api/passwordless.d.ts +18 -18
  25. package/dist/types/routes/auth-api/token.d.ts +10 -10
  26. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  27. package/dist/types/routes/management-api/actions.d.ts +1 -1
  28. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  29. package/dist/types/routes/management-api/branding.d.ts +1 -1
  30. package/dist/types/routes/management-api/client-grants.d.ts +9 -9
  31. package/dist/types/routes/management-api/connections.d.ts +6 -6
  32. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  33. package/dist/types/routes/management-api/failed-events.d.ts +53 -1
  34. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  35. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  36. package/dist/types/routes/management-api/hook-code.d.ts +2 -2
  37. package/dist/types/routes/management-api/index.d.ts +178 -126
  38. package/dist/types/routes/management-api/keys.d.ts +8 -8
  39. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  40. package/dist/types/routes/management-api/logs.d.ts +4 -4
  41. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  42. package/dist/types/routes/management-api/organizations.d.ts +3 -3
  43. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  44. package/dist/types/routes/management-api/tenant-operations.d.ts +5 -5
  45. package/dist/types/routes/management-api/tenants.d.ts +1 -1
  46. package/dist/types/routes/management-api/themes.d.ts +6 -6
  47. package/dist/types/routes/management-api/users.d.ts +33 -33
  48. package/dist/types/routes/universal-login/common.d.ts +4 -4
  49. package/dist/types/routes/universal-login/error-page.d.ts +9 -2
  50. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  51. package/dist/types/routes/universal-login/sanitization-utils.d.ts +7 -0
  52. package/dist/types/routes/universal-login/screen-prompt-map.d.ts +2 -0
  53. package/dist/types/routes/universal-login/screens/email-verification.d.ts +29 -0
  54. package/dist/types/routes/universal-login/screens/handler-error.d.ts +11 -0
  55. package/dist/types/routes/universal-login/screens/reset-password.d.ts +5 -1
  56. package/dist/types/routes/universal-login/screens/signup.d.ts +6 -0
  57. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  58. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  59. package/dist/types/state-machines/login-session.d.ts +1 -1
  60. package/dist/types/types/AuthHeroConfig.d.ts +25 -0
  61. package/dist/types/types/Bindings.d.ts +8 -1
  62. package/dist/types/types/Variables.d.ts +18 -1
  63. package/package.json +6 -6
@@ -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" | "api_key" | "system" | "admin";
33
+ type: "user" | "client_credentials" | "system" | "admin" | "api_key";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;
@@ -65,6 +65,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
65
65
  user_agent?: string | undefined;
66
66
  correlation_id?: string | undefined;
67
67
  redirect_uri?: string | undefined;
68
+ authorization_url?: string | undefined;
68
69
  };
69
70
  hostname: string;
70
71
  timestamp: string;
@@ -102,6 +103,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
102
103
  } | undefined;
103
104
  } | undefined;
104
105
  is_mobile?: boolean | undefined;
106
+ execution_id?: string | undefined;
105
107
  dead_lettered_at?: string | null | undefined;
106
108
  final_error?: string | null | undefined;
107
109
  }[];
@@ -133,6 +135,26 @@ export declare const failedEventsRoutes: OpenAPIHono<{
133
135
  status: 200;
134
136
  };
135
137
  };
138
+ } & {
139
+ "/bulk-discard": {
140
+ $post: {
141
+ input: {
142
+ header: {
143
+ "tenant-id"?: string | undefined;
144
+ };
145
+ } & {
146
+ json: {
147
+ ids: string[];
148
+ };
149
+ };
150
+ output: {
151
+ discarded: string[];
152
+ not_found: string[];
153
+ };
154
+ outputFormat: "json";
155
+ status: 200;
156
+ };
157
+ };
136
158
  } & {
137
159
  "/:id/retry": {
138
160
  $post: {
@@ -166,4 +188,34 @@ export declare const failedEventsRoutes: OpenAPIHono<{
166
188
  status: 200;
167
189
  };
168
190
  };
191
+ } & {
192
+ "/:id": {
193
+ $delete: {
194
+ input: {
195
+ param: {
196
+ id: string;
197
+ };
198
+ } & {
199
+ header: {
200
+ "tenant-id"?: string | undefined;
201
+ };
202
+ };
203
+ output: {};
204
+ outputFormat: string;
205
+ status: 204;
206
+ } | {
207
+ input: {
208
+ param: {
209
+ id: string;
210
+ };
211
+ } & {
212
+ header: {
213
+ "tenant-id"?: string | undefined;
214
+ };
215
+ };
216
+ output: {};
217
+ outputFormat: string;
218
+ status: 404;
219
+ };
220
+ };
169
221
  }, "/">;
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
12
12
  };
13
13
  };
14
14
  output: {
15
- name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
15
+ name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
16
16
  enabled: boolean;
17
17
  trial_expired?: boolean | undefined;
18
18
  }[];
@@ -167,7 +167,7 @@ export declare const guardianRoutes: OpenAPIHono<{
167
167
  $get: {
168
168
  input: {
169
169
  param: {
170
- factor_name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
170
+ factor_name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
171
171
  };
172
172
  } & {
173
173
  header: {
@@ -175,7 +175,7 @@ export declare const guardianRoutes: OpenAPIHono<{
175
175
  };
176
176
  };
177
177
  output: {
178
- name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
178
+ name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
179
179
  enabled: boolean;
180
180
  trial_expired?: boolean | undefined;
181
181
  };
@@ -188,7 +188,7 @@ export declare const guardianRoutes: OpenAPIHono<{
188
188
  $put: {
189
189
  input: {
190
190
  param: {
191
- factor_name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
191
+ factor_name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
192
192
  };
193
193
  } & {
194
194
  header: {
@@ -200,7 +200,7 @@ export declare const guardianRoutes: OpenAPIHono<{
200
200
  };
201
201
  };
202
202
  output: {
203
- name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
203
+ name: "sms" | "otp" | "email" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
204
204
  enabled: boolean;
205
205
  trial_expired?: boolean | undefined;
206
206
  };
@@ -23,7 +23,7 @@ export declare function requireTenantId(ctx: {
23
23
  * `totalsSchema.extend({ roles: z.array(roleSchema) })` pattern repeated
24
24
  * across the management-api modules.
25
25
  */
26
- export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("next" | "length" | "start" | "limit" | "total") & keyof T extends never ? {
26
+ export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("start" | "limit" | "length" | "next" | "total") & keyof T extends never ? {
27
27
  start: z.ZodNumber;
28
28
  limit: z.ZodNumber;
29
29
  length: z.ZodNumber;
@@ -22,7 +22,7 @@ export declare const hookCodeRoutes: OpenAPIHono<{
22
22
  tenant_id: string;
23
23
  created_at: string;
24
24
  updated_at: string;
25
- deploymentStatus: "failed" | "deployed" | "not_required";
25
+ deploymentStatus: "deployed" | "failed" | "not_required";
26
26
  secrets?: {
27
27
  [x: string]: string;
28
28
  } | undefined;
@@ -112,7 +112,7 @@ export declare const hookCodeRoutes: OpenAPIHono<{
112
112
  tenant_id: string;
113
113
  created_at: string;
114
114
  updated_at: string;
115
- deploymentStatus: "failed" | "deployed" | "not_required";
115
+ deploymentStatus: "deployed" | "failed" | "not_required";
116
116
  secrets?: {
117
117
  [x: string]: string;
118
118
  } | undefined;