authhero 9.2.0 → 9.4.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 (52) 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-b5f14fa6.entry.js +1 -0
  4. package/dist/assets/u/widget/p-f94037cd.entry.js +1 -0
  5. package/dist/authhero.cjs +144 -143
  6. package/dist/authhero.d.ts +241 -120
  7. package/dist/authhero.mjs +13638 -13842
  8. package/dist/tsconfig.types.tsbuildinfo +1 -1
  9. package/dist/types/authentication-flows/passwordless.d.ts +8 -4
  10. package/dist/types/helpers/client.d.ts +4 -0
  11. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  12. package/dist/types/helpers/session-usage.d.ts +48 -0
  13. package/dist/types/hooks/formhooks.d.ts +24 -0
  14. package/dist/types/index.d.ts +237 -120
  15. package/dist/types/oauth2-client/client.d.ts +50 -0
  16. package/dist/types/oauth2-client/index.d.ts +3 -0
  17. package/dist/types/oauth2-client/providers.d.ts +49 -0
  18. package/dist/types/routes/auth-api/index.d.ts +26 -26
  19. package/dist/types/routes/auth-api/oidc-logout.d.ts +2 -2
  20. package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
  21. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  22. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  23. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  24. package/dist/types/routes/management-api/actions.d.ts +1 -1
  25. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  26. package/dist/types/routes/management-api/branding.d.ts +13 -13
  27. package/dist/types/routes/management-api/client-grants.d.ts +9 -9
  28. package/dist/types/routes/management-api/clients.d.ts +18 -10
  29. package/dist/types/routes/management-api/connections.d.ts +25 -5
  30. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  31. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  32. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  33. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  34. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  35. package/dist/types/routes/management-api/hooks.d.ts +95 -6
  36. package/dist/types/routes/management-api/index.d.ts +204 -87
  37. package/dist/types/routes/management-api/logs.d.ts +4 -4
  38. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  39. package/dist/types/routes/management-api/roles.d.ts +1 -1
  40. package/dist/types/routes/management-api/themes.d.ts +6 -6
  41. package/dist/types/routes/management-api/users.d.ts +2 -2
  42. package/dist/types/routes/universal-login/common.d.ts +18 -10
  43. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  44. package/dist/types/routes/universal-login/index.d.ts +2 -2
  45. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  46. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  47. package/dist/types/routes/universal-login/u2-widget-page.d.ts +12 -0
  48. package/dist/types/strategies/internal-oauth2.d.ts +5 -5
  49. package/dist/types/utils/locale.d.ts +26 -0
  50. package/package.json +6 -7
  51. package/dist/assets/u/widget/p-cdfc4555.entry.js +0 -1
  52. package/dist/assets/u/widget/p-e95c436f.entry.js +0 -1
@@ -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-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
39
+ trigger_id: "post-user-login";
40
40
  enabled: boolean;
41
41
  synchronous: boolean;
42
42
  created_at: string;
@@ -71,6 +71,19 @@ export declare const hooksRoutes: OpenAPIHono<{
71
71
  metadata?: {
72
72
  [x: string]: import("hono/utils/types").JSONValue;
73
73
  } | undefined;
74
+ } | {
75
+ trigger_id: "post-user-login";
76
+ enabled: boolean;
77
+ synchronous: boolean;
78
+ created_at: string;
79
+ updated_at: string;
80
+ hook_id: string;
81
+ page_id: "impersonate";
82
+ priority?: number | undefined;
83
+ metadata?: {
84
+ [x: string]: import("hono/utils/types").JSONValue;
85
+ } | undefined;
86
+ permission_required?: string | undefined;
74
87
  })[] | {
75
88
  start: number;
76
89
  limit: number;
@@ -88,7 +101,7 @@ export declare const hooksRoutes: OpenAPIHono<{
88
101
  [x: string]: import("hono/utils/types").JSONValue;
89
102
  } | undefined;
90
103
  } | {
91
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
104
+ trigger_id: "post-user-login";
92
105
  enabled: boolean;
93
106
  synchronous: boolean;
94
107
  created_at: string;
@@ -123,6 +136,19 @@ export declare const hooksRoutes: OpenAPIHono<{
123
136
  metadata?: {
124
137
  [x: string]: import("hono/utils/types").JSONValue;
125
138
  } | undefined;
139
+ } | {
140
+ trigger_id: "post-user-login";
141
+ enabled: boolean;
142
+ synchronous: boolean;
143
+ created_at: string;
144
+ updated_at: string;
145
+ hook_id: string;
146
+ page_id: "impersonate";
147
+ priority?: number | undefined;
148
+ metadata?: {
149
+ [x: string]: import("hono/utils/types").JSONValue;
150
+ } | undefined;
151
+ permission_required?: string | undefined;
126
152
  })[];
127
153
  total?: number | undefined;
128
154
  next?: string | undefined;
@@ -148,7 +174,7 @@ export declare const hooksRoutes: OpenAPIHono<{
148
174
  hook_id?: string | undefined;
149
175
  metadata?: Record<string, unknown> | undefined;
150
176
  } | {
151
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
177
+ trigger_id: "post-user-login";
152
178
  form_id: string;
153
179
  enabled?: boolean | undefined;
154
180
  synchronous?: boolean | undefined;
@@ -171,6 +197,15 @@ export declare const hooksRoutes: OpenAPIHono<{
171
197
  priority?: number | undefined;
172
198
  hook_id?: string | undefined;
173
199
  metadata?: Record<string, unknown> | undefined;
200
+ } | {
201
+ trigger_id: "post-user-login";
202
+ page_id: "impersonate";
203
+ permission_required?: string | undefined;
204
+ enabled?: boolean | undefined;
205
+ synchronous?: boolean | undefined;
206
+ priority?: number | undefined;
207
+ hook_id?: string | undefined;
208
+ metadata?: Record<string, unknown> | undefined;
174
209
  };
175
210
  };
176
211
  output: {
@@ -186,7 +221,7 @@ export declare const hooksRoutes: OpenAPIHono<{
186
221
  [x: string]: import("hono/utils/types").JSONValue;
187
222
  } | undefined;
188
223
  } | {
189
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
224
+ trigger_id: "post-user-login";
190
225
  enabled: boolean;
191
226
  synchronous: boolean;
192
227
  created_at: string;
@@ -221,6 +256,19 @@ export declare const hooksRoutes: OpenAPIHono<{
221
256
  metadata?: {
222
257
  [x: string]: import("hono/utils/types").JSONValue;
223
258
  } | undefined;
259
+ } | {
260
+ trigger_id: "post-user-login";
261
+ enabled: boolean;
262
+ synchronous: boolean;
263
+ created_at: string;
264
+ updated_at: string;
265
+ hook_id: string;
266
+ page_id: "impersonate";
267
+ priority?: number | undefined;
268
+ metadata?: {
269
+ [x: string]: import("hono/utils/types").JSONValue;
270
+ } | undefined;
271
+ permission_required?: string | undefined;
224
272
  };
225
273
  outputFormat: "json";
226
274
  status: 201;
@@ -229,6 +277,21 @@ export declare const hooksRoutes: OpenAPIHono<{
229
277
  } & {
230
278
  "/:hook_id": {
231
279
  $patch: {
280
+ input: {
281
+ param: {
282
+ hook_id: string;
283
+ };
284
+ } & {
285
+ header: {
286
+ "tenant-id"?: string | undefined;
287
+ };
288
+ } & {
289
+ json: unknown;
290
+ };
291
+ output: {};
292
+ outputFormat: string;
293
+ status: 400;
294
+ } | {
232
295
  input: {
233
296
  param: {
234
297
  hook_id: string;
@@ -268,7 +331,7 @@ export declare const hooksRoutes: OpenAPIHono<{
268
331
  [x: string]: import("hono/utils/types").JSONValue;
269
332
  } | undefined;
270
333
  } | {
271
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
334
+ trigger_id: "post-user-login";
272
335
  enabled: boolean;
273
336
  synchronous: boolean;
274
337
  created_at: string;
@@ -303,6 +366,19 @@ export declare const hooksRoutes: OpenAPIHono<{
303
366
  metadata?: {
304
367
  [x: string]: import("hono/utils/types").JSONValue;
305
368
  } | undefined;
369
+ } | {
370
+ trigger_id: "post-user-login";
371
+ enabled: boolean;
372
+ synchronous: boolean;
373
+ created_at: string;
374
+ updated_at: string;
375
+ hook_id: string;
376
+ page_id: "impersonate";
377
+ priority?: number | undefined;
378
+ metadata?: {
379
+ [x: string]: import("hono/utils/types").JSONValue;
380
+ } | undefined;
381
+ permission_required?: string | undefined;
306
382
  };
307
383
  outputFormat: "json";
308
384
  status: 200;
@@ -346,7 +422,7 @@ export declare const hooksRoutes: OpenAPIHono<{
346
422
  [x: string]: import("hono/utils/types").JSONValue;
347
423
  } | undefined;
348
424
  } | {
349
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
425
+ trigger_id: "post-user-login";
350
426
  enabled: boolean;
351
427
  synchronous: boolean;
352
428
  created_at: string;
@@ -381,6 +457,19 @@ export declare const hooksRoutes: OpenAPIHono<{
381
457
  metadata?: {
382
458
  [x: string]: import("hono/utils/types").JSONValue;
383
459
  } | undefined;
460
+ } | {
461
+ trigger_id: "post-user-login";
462
+ enabled: boolean;
463
+ synchronous: boolean;
464
+ created_at: string;
465
+ updated_at: string;
466
+ hook_id: string;
467
+ page_id: "impersonate";
468
+ priority?: number | undefined;
469
+ metadata?: {
470
+ [x: string]: import("hono/utils/types").JSONValue;
471
+ } | undefined;
472
+ permission_required?: string | undefined;
384
473
  };
385
474
  outputFormat: "json";
386
475
  status: 200;