authhero 5.14.0 → 5.14.1

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/authhero.cjs +132 -132
  2. package/dist/authhero.d.ts +113 -97
  3. package/dist/authhero.mjs +6358 -6282
  4. package/dist/stats.html +1 -1
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/authentication-flows/password.d.ts +1 -1
  7. package/dist/types/authentication-flows/passwordless.d.ts +3 -3
  8. package/dist/types/emails/index.d.ts +1 -1
  9. package/dist/types/index.d.ts +113 -97
  10. package/dist/types/routes/auth-api/account.d.ts +2 -2
  11. package/dist/types/routes/auth-api/index.d.ts +22 -22
  12. package/dist/types/routes/auth-api/oidc-logout.d.ts +2 -2
  13. package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
  14. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  15. package/dist/types/routes/auth-api/token.d.ts +10 -10
  16. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  17. package/dist/types/routes/management-api/actions.d.ts +1 -1
  18. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  19. package/dist/types/routes/management-api/clients.d.ts +7 -7
  20. package/dist/types/routes/management-api/custom-domains.d.ts +7 -7
  21. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  22. package/dist/types/routes/management-api/flows.d.ts +7 -7
  23. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  24. package/dist/types/routes/management-api/hooks.d.ts +24 -24
  25. package/dist/types/routes/management-api/index.d.ts +69 -69
  26. package/dist/types/routes/management-api/logs.d.ts +3 -3
  27. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  28. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  29. package/dist/types/routes/management-api/users.d.ts +2 -2
  30. package/dist/types/routes/universal-login/common.d.ts +2 -2
  31. package/dist/types/routes/universal-login/error-page.d.ts +2 -1
  32. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  33. package/dist/types/routes/universal-login/u2-index.d.ts +22 -6
  34. package/dist/types/routes/universal-login/u2-routes.d.ts +22 -6
  35. package/dist/types/variables.d.ts +1 -1
  36. package/package.json +1 -1
@@ -24,7 +24,7 @@ export declare const hooksRoutes: OpenAPIHono<{
24
24
  };
25
25
  };
26
26
  output: ({
27
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
27
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
28
28
  enabled: boolean;
29
29
  synchronous: boolean;
30
30
  created_at: string;
@@ -36,7 +36,7 @@ export declare const hooksRoutes: OpenAPIHono<{
36
36
  [x: string]: import("hono/utils/types").JSONValue;
37
37
  } | undefined;
38
38
  } | {
39
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
39
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
40
40
  enabled: boolean;
41
41
  synchronous: boolean;
42
42
  created_at: string;
@@ -48,7 +48,7 @@ export declare const hooksRoutes: OpenAPIHono<{
48
48
  [x: string]: import("hono/utils/types").JSONValue;
49
49
  } | undefined;
50
50
  } | {
51
- trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
51
+ trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
52
52
  enabled: boolean;
53
53
  synchronous: boolean;
54
54
  created_at: string;
@@ -60,7 +60,7 @@ export declare const hooksRoutes: OpenAPIHono<{
60
60
  [x: string]: import("hono/utils/types").JSONValue;
61
61
  } | undefined;
62
62
  } | {
63
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "credentials-exchange";
63
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
64
64
  enabled: boolean;
65
65
  synchronous: boolean;
66
66
  created_at: string;
@@ -76,7 +76,7 @@ export declare const hooksRoutes: OpenAPIHono<{
76
76
  limit: number;
77
77
  length: number;
78
78
  hooks: ({
79
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
79
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
80
80
  enabled: boolean;
81
81
  synchronous: boolean;
82
82
  created_at: string;
@@ -88,7 +88,7 @@ export declare const hooksRoutes: OpenAPIHono<{
88
88
  [x: string]: import("hono/utils/types").JSONValue;
89
89
  } | undefined;
90
90
  } | {
91
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
91
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
92
92
  enabled: boolean;
93
93
  synchronous: boolean;
94
94
  created_at: string;
@@ -100,7 +100,7 @@ export declare const hooksRoutes: OpenAPIHono<{
100
100
  [x: string]: import("hono/utils/types").JSONValue;
101
101
  } | undefined;
102
102
  } | {
103
- trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
103
+ trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
104
104
  enabled: boolean;
105
105
  synchronous: boolean;
106
106
  created_at: string;
@@ -112,7 +112,7 @@ export declare const hooksRoutes: OpenAPIHono<{
112
112
  [x: string]: import("hono/utils/types").JSONValue;
113
113
  } | undefined;
114
114
  } | {
115
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "credentials-exchange";
115
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
116
116
  enabled: boolean;
117
117
  synchronous: boolean;
118
118
  created_at: string;
@@ -139,7 +139,7 @@ export declare const hooksRoutes: OpenAPIHono<{
139
139
  };
140
140
  } & {
141
141
  json: {
142
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
142
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
143
143
  url: string;
144
144
  enabled?: boolean | undefined;
145
145
  synchronous?: boolean | undefined;
@@ -147,7 +147,7 @@ export declare const hooksRoutes: OpenAPIHono<{
147
147
  hook_id?: string | undefined;
148
148
  metadata?: Record<string, unknown> | undefined;
149
149
  } | {
150
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
150
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
151
151
  form_id: string;
152
152
  enabled?: boolean | undefined;
153
153
  synchronous?: boolean | undefined;
@@ -155,7 +155,7 @@ export declare const hooksRoutes: OpenAPIHono<{
155
155
  hook_id?: string | undefined;
156
156
  metadata?: Record<string, unknown> | undefined;
157
157
  } | {
158
- trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
158
+ trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
159
159
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
160
160
  enabled?: boolean | undefined;
161
161
  synchronous?: boolean | undefined;
@@ -163,7 +163,7 @@ export declare const hooksRoutes: OpenAPIHono<{
163
163
  hook_id?: string | undefined;
164
164
  metadata?: Record<string, unknown> | undefined;
165
165
  } | {
166
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "credentials-exchange";
166
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
167
167
  code_id: string;
168
168
  enabled?: boolean | undefined;
169
169
  synchronous?: boolean | undefined;
@@ -173,7 +173,7 @@ export declare const hooksRoutes: OpenAPIHono<{
173
173
  };
174
174
  };
175
175
  output: {
176
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
176
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
177
177
  enabled: boolean;
178
178
  synchronous: boolean;
179
179
  created_at: string;
@@ -185,7 +185,7 @@ export declare const hooksRoutes: OpenAPIHono<{
185
185
  [x: string]: import("hono/utils/types").JSONValue;
186
186
  } | undefined;
187
187
  } | {
188
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
188
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
189
189
  enabled: boolean;
190
190
  synchronous: boolean;
191
191
  created_at: string;
@@ -197,7 +197,7 @@ export declare const hooksRoutes: OpenAPIHono<{
197
197
  [x: string]: import("hono/utils/types").JSONValue;
198
198
  } | undefined;
199
199
  } | {
200
- trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
200
+ trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
201
201
  enabled: boolean;
202
202
  synchronous: boolean;
203
203
  created_at: string;
@@ -209,7 +209,7 @@ export declare const hooksRoutes: OpenAPIHono<{
209
209
  [x: string]: import("hono/utils/types").JSONValue;
210
210
  } | undefined;
211
211
  } | {
212
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "credentials-exchange";
212
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
213
213
  enabled: boolean;
214
214
  synchronous: boolean;
215
215
  created_at: string;
@@ -255,7 +255,7 @@ export declare const hooksRoutes: OpenAPIHono<{
255
255
  json: unknown;
256
256
  };
257
257
  output: {
258
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
258
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
259
259
  enabled: boolean;
260
260
  synchronous: boolean;
261
261
  created_at: string;
@@ -267,7 +267,7 @@ export declare const hooksRoutes: OpenAPIHono<{
267
267
  [x: string]: import("hono/utils/types").JSONValue;
268
268
  } | undefined;
269
269
  } | {
270
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
270
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
271
271
  enabled: boolean;
272
272
  synchronous: boolean;
273
273
  created_at: string;
@@ -279,7 +279,7 @@ export declare const hooksRoutes: OpenAPIHono<{
279
279
  [x: string]: import("hono/utils/types").JSONValue;
280
280
  } | undefined;
281
281
  } | {
282
- trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
282
+ trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
283
283
  enabled: boolean;
284
284
  synchronous: boolean;
285
285
  created_at: string;
@@ -291,7 +291,7 @@ export declare const hooksRoutes: OpenAPIHono<{
291
291
  [x: string]: import("hono/utils/types").JSONValue;
292
292
  } | undefined;
293
293
  } | {
294
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "credentials-exchange";
294
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
295
295
  enabled: boolean;
296
296
  synchronous: boolean;
297
297
  created_at: string;
@@ -333,7 +333,7 @@ export declare const hooksRoutes: OpenAPIHono<{
333
333
  };
334
334
  };
335
335
  output: {
336
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
336
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
337
337
  enabled: boolean;
338
338
  synchronous: boolean;
339
339
  created_at: string;
@@ -345,7 +345,7 @@ export declare const hooksRoutes: OpenAPIHono<{
345
345
  [x: string]: import("hono/utils/types").JSONValue;
346
346
  } | undefined;
347
347
  } | {
348
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
348
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
349
349
  enabled: boolean;
350
350
  synchronous: boolean;
351
351
  created_at: string;
@@ -357,7 +357,7 @@ export declare const hooksRoutes: OpenAPIHono<{
357
357
  [x: string]: import("hono/utils/types").JSONValue;
358
358
  } | undefined;
359
359
  } | {
360
- trigger_id: "post-user-login" | "post-user-registration" | "post-user-update" | "credentials-exchange";
360
+ trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
361
361
  enabled: boolean;
362
362
  synchronous: boolean;
363
363
  created_at: string;
@@ -369,7 +369,7 @@ export declare const hooksRoutes: OpenAPIHono<{
369
369
  [x: string]: import("hono/utils/types").JSONValue;
370
370
  } | undefined;
371
371
  } | {
372
- trigger_id: "pre-user-registration" | "post-user-login" | "post-user-registration" | "credentials-exchange";
372
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
373
373
  enabled: boolean;
374
374
  synchronous: boolean;
375
375
  created_at: string;