authhero 9.27.1 → 9.28.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 (59) hide show
  1. package/dist/assets/u/js/client.js +1 -1
  2. package/dist/assets/u/widget/index.esm.js +1 -1
  3. package/dist/authhero.cjs +266 -119
  4. package/dist/authhero.d.ts +615 -404
  5. package/dist/authhero.mjs +19686 -16165
  6. package/dist/client.js +1 -1
  7. package/dist/tsconfig.types.tsbuildinfo +1 -1
  8. package/dist/types/authentication-flows/connection.d.ts +2 -1
  9. package/dist/types/authentication-flows/passwordless.d.ts +2 -2
  10. package/dist/types/authentication-flows/universal.d.ts +4 -1
  11. package/dist/types/client/client-bundle.d.ts +1 -1
  12. package/dist/types/helpers/action-verification.d.ts +12 -0
  13. package/dist/types/helpers/control-plane-client.d.ts +2 -0
  14. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  15. package/dist/types/helpers/logging.d.ts +7 -0
  16. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  17. package/dist/types/index.d.ts +607 -403
  18. package/dist/types/routes/auth-api/device.d.ts +12 -12
  19. package/dist/types/routes/auth-api/index.d.ts +47 -47
  20. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  21. package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
  22. package/dist/types/routes/auth-api/revoke.d.ts +2 -2
  23. package/dist/types/routes/auth-api/token.d.ts +12 -12
  24. package/dist/types/routes/management-api/action-generation.d.ts +135 -0
  25. package/dist/types/routes/management-api/action-triggers.d.ts +2 -2
  26. package/dist/types/routes/management-api/actions.d.ts +205 -1
  27. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  28. package/dist/types/routes/management-api/branding.d.ts +2 -2
  29. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  30. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  31. package/dist/types/routes/management-api/failed-events.d.ts +4 -4
  32. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  33. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  34. package/dist/types/routes/management-api/index.d.ts +563 -359
  35. package/dist/types/routes/management-api/keys.d.ts +8 -8
  36. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  37. package/dist/types/routes/management-api/logs.d.ts +4 -4
  38. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  39. package/dist/types/routes/management-api/organizations.d.ts +10 -10
  40. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  41. package/dist/types/routes/management-api/roles.d.ts +7 -7
  42. package/dist/types/routes/management-api/rollouts.d.ts +6 -6
  43. package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
  44. package/dist/types/routes/management-api/tenants.d.ts +12 -12
  45. package/dist/types/routes/management-api/users.d.ts +29 -29
  46. package/dist/types/routes/saml/index.d.ts +6 -6
  47. package/dist/types/routes/saml/samlp.d.ts +6 -6
  48. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  49. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  50. package/dist/types/routes/universal-login/impersonate.d.ts +2 -2
  51. package/dist/types/routes/universal-login/index.d.ts +4 -4
  52. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  53. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  54. package/dist/types/state-machines/login-session.d.ts +3 -1
  55. package/dist/types/tenant-members/wire.d.ts +9 -0
  56. package/dist/types/types/AuthHeroConfig.d.ts +5 -1
  57. package/dist/types/types/Bindings.d.ts +2 -1
  58. package/dist/types/utils/cookies.d.ts +50 -9
  59. package/package.json +7 -6
@@ -119,6 +119,38 @@ export declare const actionsRoutes: OpenAPIHono<{
119
119
  } & {
120
120
  "/": {
121
121
  $post: {
122
+ input: {
123
+ header: {
124
+ "tenant-id"?: string | undefined;
125
+ };
126
+ } & {
127
+ json: {
128
+ name: string;
129
+ code: string;
130
+ inherit?: boolean | undefined;
131
+ scope?: "local" | "shared" | "platform" | undefined;
132
+ override?: "none" | "secrets" | "fields" | undefined;
133
+ enforce?: boolean | undefined;
134
+ supported_triggers?: {
135
+ id: string;
136
+ version?: string | undefined;
137
+ }[] | undefined;
138
+ runtime?: string | undefined;
139
+ dependencies?: {
140
+ name: string;
141
+ version: string;
142
+ }[] | undefined;
143
+ secrets?: {
144
+ name: string;
145
+ value?: string | undefined;
146
+ }[] | undefined;
147
+ is_system?: boolean | undefined;
148
+ };
149
+ };
150
+ output: {};
151
+ outputFormat: string;
152
+ status: 400;
153
+ } | {
122
154
  input: {
123
155
  header: {
124
156
  "tenant-id"?: string | undefined;
@@ -178,6 +210,115 @@ export declare const actionsRoutes: OpenAPIHono<{
178
210
  status: 201;
179
211
  };
180
212
  };
213
+ } & {
214
+ "/generation": {
215
+ $get: {
216
+ input: {
217
+ header: {
218
+ "tenant-id"?: string | undefined;
219
+ };
220
+ };
221
+ output: {
222
+ models: ("glm" | "deepseek" | "qwen")[];
223
+ verification_required: boolean;
224
+ };
225
+ outputFormat: "json";
226
+ status: 200;
227
+ };
228
+ };
229
+ } & {
230
+ "/generate": {
231
+ $post: {
232
+ input: {
233
+ header: {
234
+ "tenant-id"?: string | undefined;
235
+ };
236
+ } & {
237
+ json: {
238
+ prompt: string;
239
+ model: "glm" | "deepseek" | "qwen";
240
+ trigger_id: string;
241
+ };
242
+ };
243
+ output: {};
244
+ outputFormat: string;
245
+ status: 400;
246
+ } | {
247
+ input: {
248
+ header: {
249
+ "tenant-id"?: string | undefined;
250
+ };
251
+ } & {
252
+ json: {
253
+ prompt: string;
254
+ model: "glm" | "deepseek" | "qwen";
255
+ trigger_id: string;
256
+ };
257
+ };
258
+ output: {};
259
+ outputFormat: string;
260
+ status: 502;
261
+ } | {
262
+ input: {
263
+ header: {
264
+ "tenant-id"?: string | undefined;
265
+ };
266
+ } & {
267
+ json: {
268
+ prompt: string;
269
+ model: "glm" | "deepseek" | "qwen";
270
+ trigger_id: string;
271
+ };
272
+ };
273
+ output: {};
274
+ outputFormat: string;
275
+ status: 503;
276
+ } | {
277
+ input: {
278
+ header: {
279
+ "tenant-id"?: string | undefined;
280
+ };
281
+ } & {
282
+ json: {
283
+ prompt: string;
284
+ model: "glm" | "deepseek" | "qwen";
285
+ trigger_id: string;
286
+ };
287
+ };
288
+ output: {
289
+ code: string;
290
+ verification: {
291
+ valid: boolean;
292
+ errors: string[];
293
+ };
294
+ };
295
+ outputFormat: "json";
296
+ status: 200;
297
+ };
298
+ };
299
+ } & {
300
+ "/verify": {
301
+ $post: {
302
+ input: {
303
+ header: {
304
+ "tenant-id"?: string | undefined;
305
+ };
306
+ } & {
307
+ json: {
308
+ code: string;
309
+ supported_triggers: {
310
+ id: string;
311
+ }[];
312
+ };
313
+ };
314
+ output: {
315
+ valid: boolean;
316
+ errors: string[];
317
+ };
318
+ outputFormat: "json";
319
+ status: 200;
320
+ };
321
+ };
181
322
  } & {
182
323
  "/:id": {
183
324
  $get: {
@@ -237,6 +378,42 @@ export declare const actionsRoutes: OpenAPIHono<{
237
378
  } & {
238
379
  "/:id": {
239
380
  $patch: {
381
+ input: {
382
+ param: {
383
+ id: string;
384
+ };
385
+ } & {
386
+ header: {
387
+ "tenant-id"?: string | undefined;
388
+ };
389
+ } & {
390
+ json: {
391
+ inherit?: boolean | undefined;
392
+ scope?: "local" | "shared" | "platform" | undefined;
393
+ override?: "none" | "secrets" | "fields" | undefined;
394
+ enforce?: boolean | undefined;
395
+ name?: string | undefined;
396
+ code?: string | undefined;
397
+ supported_triggers?: {
398
+ id: string;
399
+ version?: string | undefined;
400
+ }[] | undefined;
401
+ runtime?: string | undefined;
402
+ dependencies?: {
403
+ name: string;
404
+ version: string;
405
+ }[] | undefined;
406
+ secrets?: {
407
+ name: string;
408
+ value?: string | undefined;
409
+ }[] | undefined;
410
+ is_system?: boolean | undefined;
411
+ };
412
+ };
413
+ output: {};
414
+ outputFormat: string;
415
+ status: 400;
416
+ } | {
240
417
  input: {
241
418
  param: {
242
419
  id: string;
@@ -382,6 +559,19 @@ export declare const actionsRoutes: OpenAPIHono<{
382
559
  } & {
383
560
  "/:id/deploy": {
384
561
  $post: {
562
+ input: {
563
+ param: {
564
+ id: string;
565
+ };
566
+ } & {
567
+ header: {
568
+ "tenant-id"?: string | undefined;
569
+ };
570
+ };
571
+ output: {};
572
+ outputFormat: string;
573
+ status: 400;
574
+ } | {
385
575
  input: {
386
576
  param: {
387
577
  id: string;
@@ -599,6 +789,20 @@ export declare const actionsRoutes: OpenAPIHono<{
599
789
  } & {
600
790
  "/:actionId/versions/:id/deploy": {
601
791
  $post: {
792
+ input: {
793
+ param: {
794
+ actionId: string;
795
+ id: string;
796
+ };
797
+ } & {
798
+ header: {
799
+ "tenant-id"?: string | undefined;
800
+ };
801
+ };
802
+ output: {};
803
+ outputFormat: string;
804
+ status: 400;
805
+ } | {
602
806
  input: {
603
807
  param: {
604
808
  actionId: string;
@@ -715,7 +919,7 @@ export declare const actionsRoutes: OpenAPIHono<{
715
919
  args: import("hono/utils/types").JSONValue[];
716
920
  }[];
717
921
  logs: {
718
- level: "error" | "log" | "info" | "warn" | "debug";
922
+ level: "log" | "error" | "info" | "warn" | "debug";
719
923
  message: string;
720
924
  }[];
721
925
  error?: string | undefined;
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
37
37
  };
38
38
  } & {
39
39
  json: {
40
- type: "email" | "push" | "passkey" | "webauthn-roaming" | "webauthn-platform" | "phone" | "totp";
40
+ type: "email" | "push" | "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;
@@ -379,7 +379,7 @@ export declare const brandingRoutes: OpenAPIHono<{
379
379
  };
380
380
  output: {};
381
381
  outputFormat: string;
382
- status: 204;
382
+ status: 400;
383
383
  } | {
384
384
  input: {
385
385
  header: {
@@ -392,7 +392,7 @@ export declare const brandingRoutes: OpenAPIHono<{
392
392
  };
393
393
  output: {};
394
394
  outputFormat: string;
395
- status: 400;
395
+ status: 204;
396
396
  };
397
397
  };
398
398
  } & {
@@ -28,7 +28,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
28
28
  type: "auth0_managed_certs" | "self_managed_certs";
29
29
  custom_domain_id: string;
30
30
  primary: boolean;
31
- status: "pending" | "disabled" | "ready" | "pending_verification";
31
+ status: "pending" | "ready" | "disabled" | "pending_verification";
32
32
  verification_method?: "txt" | undefined;
33
33
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
34
34
  domain_metadata?: {
@@ -69,7 +69,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
69
69
  type: "auth0_managed_certs" | "self_managed_certs";
70
70
  custom_domain_id: string;
71
71
  primary: boolean;
72
- status: "pending" | "disabled" | "ready" | "pending_verification";
72
+ status: "pending" | "ready" | "disabled" | "pending_verification";
73
73
  verification_method?: "txt" | undefined;
74
74
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
75
75
  domain_metadata?: {
@@ -133,7 +133,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
133
133
  type: "auth0_managed_certs" | "self_managed_certs";
134
134
  custom_domain_id: string;
135
135
  primary: boolean;
136
- status: "pending" | "disabled" | "ready" | "pending_verification";
136
+ status: "pending" | "ready" | "disabled" | "pending_verification";
137
137
  verification_method?: "txt" | undefined;
138
138
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
139
139
  domain_metadata?: {
@@ -180,7 +180,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
180
180
  type: "auth0_managed_certs" | "self_managed_certs";
181
181
  custom_domain_id: string;
182
182
  primary: boolean;
183
- status: "pending" | "disabled" | "ready" | "pending_verification";
183
+ status: "pending" | "ready" | "disabled" | "pending_verification";
184
184
  verification_method?: "txt" | undefined;
185
185
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
186
186
  domain_metadata?: {
@@ -226,7 +226,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
226
226
  type: "auth0_managed_certs" | "self_managed_certs";
227
227
  custom_domain_id: string;
228
228
  primary: boolean;
229
- status: "pending" | "disabled" | "ready" | "pending_verification";
229
+ status: "pending" | "ready" | "disabled" | "pending_verification";
230
230
  verification_method?: "txt" | undefined;
231
231
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
232
232
  domain_metadata?: {
@@ -267,7 +267,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
267
267
  type: "auth0_managed_certs" | "self_managed_certs";
268
268
  custom_domain_id: string;
269
269
  primary: boolean;
270
- status: "pending" | "disabled" | "ready" | "pending_verification";
270
+ status: "pending" | "ready" | "disabled" | "pending_verification";
271
271
  verification_method?: "txt" | undefined;
272
272
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
273
273
  domain_metadata?: {
@@ -12,7 +12,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
12
12
  };
13
13
  } & {
14
14
  json: {
15
- template: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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?: "change_password" | "verify_email" | "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" | "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;
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: "change_password" | "verify_email" | "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" | "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";
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?: "change_password" | "verify_email" | "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" | "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;
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
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: "change_password" | "verify_email" | "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" | "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";
258
258
  };
259
259
  } & {
260
260
  header: {
@@ -28,9 +28,9 @@ export declare const failedEventsRoutes: OpenAPIHono<{
28
28
  tenant_id: string;
29
29
  event_type: string;
30
30
  log_type: string;
31
- category: "user_action" | "admin_action" | "system" | "api";
31
+ category: "api" | "user_action" | "admin_action" | "system";
32
32
  actor: {
33
- type: "user" | "client_credentials" | "system" | "admin" | "api_key";
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;
@@ -132,9 +132,9 @@ export declare const failedEventsRoutes: OpenAPIHono<{
132
132
  tenant_id: string;
133
133
  event_type: string;
134
134
  log_type: string;
135
- category: "user_action" | "admin_action" | "system" | "api";
135
+ category: "api" | "user_action" | "admin_action" | "system";
136
136
  actor: {
137
- type: "user" | "client_credentials" | "system" | "admin" | "api_key";
137
+ type: "client_credentials" | "user" | "system" | "admin" | "api_key";
138
138
  id?: string | undefined;
139
139
  email?: string | undefined;
140
140
  org_id?: string | undefined;
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
12
12
  };
13
13
  };
14
14
  output: {
15
- name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
15
+ name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
170
+ factor_name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
178
+ name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
191
+ factor_name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
203
+ name: "otp" | "email" | "sms" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "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<(("start" | "limit" | "total" | "length" | "next") & keyof T extends never ? {
26
+ export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("start" | "length" | "limit" | "total" | "next") & keyof T extends never ? {
27
27
  start: z.ZodNumber;
28
28
  limit: z.ZodNumber;
29
29
  length: z.ZodNumber;