authhero 5.14.1 → 5.16.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 (46) 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 +129 -129
  4. package/dist/authhero.d.ts +160 -109
  5. package/dist/authhero.mjs +5646 -5472
  6. package/dist/client.js +1 -1
  7. package/dist/stats.html +1 -1
  8. package/dist/tsconfig.types.tsbuildinfo +1 -1
  9. package/dist/types/adapters/createEncryptedDataAdapter.d.ts +4 -0
  10. package/dist/types/authentication-flows/passwordless.d.ts +3 -2
  11. package/dist/types/client/client-bundle.d.ts +1 -1
  12. package/dist/types/helpers/client.d.ts +1 -0
  13. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  14. package/dist/types/index.d.ts +155 -109
  15. package/dist/types/routes/auth-api/account.d.ts +2 -2
  16. package/dist/types/routes/auth-api/authorize.d.ts +12 -12
  17. package/dist/types/routes/auth-api/index.d.ts +43 -43
  18. package/dist/types/routes/auth-api/oidc-logout.d.ts +2 -2
  19. package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
  20. package/dist/types/routes/auth-api/token.d.ts +21 -21
  21. package/dist/types/routes/management-api/action-executions.d.ts +2 -2
  22. package/dist/types/routes/management-api/actions.d.ts +1 -1
  23. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  24. package/dist/types/routes/management-api/branding.d.ts +8 -8
  25. package/dist/types/routes/management-api/custom-domains.d.ts +53 -7
  26. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  27. package/dist/types/routes/management-api/flows.d.ts +7 -7
  28. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  29. package/dist/types/routes/management-api/index.d.ts +94 -48
  30. package/dist/types/routes/management-api/logs.d.ts +3 -3
  31. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  32. package/dist/types/routes/management-api/organizations.d.ts +1 -1
  33. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  34. package/dist/types/routes/management-api/tenants.d.ts +3 -0
  35. package/dist/types/routes/management-api/themes.d.ts +3 -3
  36. package/dist/types/routes/management-api/users.d.ts +2 -2
  37. package/dist/types/routes/universal-login/common.d.ts +8 -4
  38. package/dist/types/routes/universal-login/continue.d.ts +2 -2
  39. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  40. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  41. package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
  42. package/dist/types/routes/universal-login/index.d.ts +8 -8
  43. package/dist/types/routes/universal-login/u2-index.d.ts +10 -10
  44. package/dist/types/routes/universal-login/u2-routes.d.ts +10 -10
  45. package/dist/types/types/IdToken.d.ts +1 -1
  46. package/package.json +5 -5
@@ -30,7 +30,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
30
30
  primary: boolean;
31
31
  status: "disabled" | "pending" | "pending_verification" | "ready";
32
32
  verification_method?: "txt" | undefined;
33
- custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
33
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
34
34
  domain_metadata?: {
35
35
  [x: string]: string;
36
36
  } | undefined;
@@ -71,7 +71,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
71
71
  primary: boolean;
72
72
  status: "disabled" | "pending" | "pending_verification" | "ready";
73
73
  verification_method?: "txt" | undefined;
74
- custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
74
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
75
75
  domain_metadata?: {
76
76
  [x: string]: string;
77
77
  } | undefined;
@@ -126,7 +126,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
126
126
  domain?: string | undefined;
127
127
  type?: "auth0_managed_certs" | "self_managed_certs" | undefined;
128
128
  verification_method?: "txt" | undefined;
129
- custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
129
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
130
130
  domain_metadata?: Record<string, string> | undefined;
131
131
  custom_domain_id?: string | undefined;
132
132
  primary?: boolean | undefined;
@@ -153,7 +153,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
153
153
  primary: boolean;
154
154
  status: "disabled" | "pending" | "pending_verification" | "ready";
155
155
  verification_method?: "txt" | undefined;
156
- custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
156
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
157
157
  domain_metadata?: {
158
158
  [x: string]: string;
159
159
  } | undefined;
@@ -189,7 +189,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
189
189
  custom_domain_id?: string | undefined;
190
190
  verification_method?: "txt" | undefined;
191
191
  tls_policy?: "recommended" | undefined;
192
- custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
192
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
193
193
  domain_metadata?: Record<string, string> | undefined;
194
194
  };
195
195
  };
@@ -200,7 +200,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
200
200
  primary: boolean;
201
201
  status: "disabled" | "pending" | "pending_verification" | "ready";
202
202
  verification_method?: "txt" | undefined;
203
- custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
203
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
204
204
  domain_metadata?: {
205
205
  [x: string]: string;
206
206
  } | undefined;
@@ -222,6 +222,52 @@ export declare const customDomainRoutes: OpenAPIHono<{
222
222
  status: 201;
223
223
  };
224
224
  };
225
+ } & {
226
+ "/:id/certificate": {
227
+ $put: {
228
+ input: {
229
+ param: {
230
+ id: string;
231
+ };
232
+ } & {
233
+ header: {
234
+ "tenant-id"?: string | undefined;
235
+ };
236
+ } & {
237
+ json: {
238
+ certificate: string;
239
+ private_key: string;
240
+ };
241
+ };
242
+ output: {
243
+ domain: string;
244
+ type: "auth0_managed_certs" | "self_managed_certs";
245
+ custom_domain_id: string;
246
+ primary: boolean;
247
+ status: "disabled" | "pending" | "pending_verification" | "ready";
248
+ verification_method?: "txt" | undefined;
249
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
250
+ domain_metadata?: {
251
+ [x: string]: string;
252
+ } | undefined;
253
+ origin_domain_name?: string | undefined;
254
+ verification?: {
255
+ methods: ({
256
+ name: "txt";
257
+ record: string;
258
+ domain: string;
259
+ } | {
260
+ name: "http";
261
+ http_body: string;
262
+ http_url: string;
263
+ })[];
264
+ } | undefined;
265
+ tls_policy?: string | undefined;
266
+ };
267
+ outputFormat: "json";
268
+ status: 200;
269
+ };
270
+ };
225
271
  } & {
226
272
  "/:id/verify": {
227
273
  $post: {
@@ -241,7 +287,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
241
287
  primary: boolean;
242
288
  status: "disabled" | "pending" | "pending_verification" | "ready";
243
289
  verification_method?: "txt" | undefined;
244
- custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
290
+ custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
245
291
  domain_metadata?: {
246
292
  [x: string]: string;
247
293
  } | undefined;
@@ -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: "client_credentials" | "user" | "system" | "admin" | "api_key";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;
@@ -62,7 +62,7 @@ export declare const flowsRoutes: OpenAPIHono<{
62
62
  type: "REDIRECT";
63
63
  action: "REDIRECT_USER";
64
64
  params: {
65
- target: "custom" | "account" | "change-email";
65
+ target: "custom" | "change-email" | "account";
66
66
  custom_url?: string | undefined;
67
67
  };
68
68
  alias?: string | undefined;
@@ -115,7 +115,7 @@ export declare const flowsRoutes: OpenAPIHono<{
115
115
  type: "REDIRECT";
116
116
  action: "REDIRECT_USER";
117
117
  params: {
118
- target: "custom" | "account" | "change-email";
118
+ target: "custom" | "change-email" | "account";
119
119
  custom_url?: string | undefined;
120
120
  };
121
121
  alias?: string | undefined;
@@ -183,7 +183,7 @@ export declare const flowsRoutes: OpenAPIHono<{
183
183
  type: "REDIRECT";
184
184
  action: "REDIRECT_USER";
185
185
  params: {
186
- target: "custom" | "account" | "change-email";
186
+ target: "custom" | "change-email" | "account";
187
187
  custom_url?: string | undefined;
188
188
  };
189
189
  alias?: string | undefined;
@@ -264,7 +264,7 @@ export declare const flowsRoutes: OpenAPIHono<{
264
264
  type: "REDIRECT";
265
265
  action: "REDIRECT_USER";
266
266
  params: {
267
- target: "custom" | "account" | "change-email";
267
+ target: "custom" | "change-email" | "account";
268
268
  custom_url?: string | undefined;
269
269
  };
270
270
  alias?: string | undefined;
@@ -312,7 +312,7 @@ export declare const flowsRoutes: OpenAPIHono<{
312
312
  type: "REDIRECT";
313
313
  action: "REDIRECT_USER";
314
314
  params: {
315
- target: "custom" | "account" | "change-email";
315
+ target: "custom" | "change-email" | "account";
316
316
  custom_url?: string | undefined;
317
317
  };
318
318
  alias?: string | undefined;
@@ -372,7 +372,7 @@ export declare const flowsRoutes: OpenAPIHono<{
372
372
  type: "REDIRECT";
373
373
  action: "REDIRECT_USER";
374
374
  params: {
375
- target: "custom" | "account" | "change-email";
375
+ target: "custom" | "change-email" | "account";
376
376
  custom_url?: string | undefined;
377
377
  };
378
378
  alias?: string | undefined;
@@ -420,7 +420,7 @@ export declare const flowsRoutes: OpenAPIHono<{
420
420
  type: "REDIRECT";
421
421
  action: "REDIRECT_USER";
422
422
  params: {
423
- target: "custom" | "account" | "change-email";
423
+ target: "custom" | "change-email" | "account";
424
424
  custom_url?: string | undefined;
425
425
  };
426
426
  alias?: string | undefined;
@@ -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" | "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" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
170
+ factor_name: "sms" | "otp" | "email" | "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" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
178
+ name: "sms" | "otp" | "email" | "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" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
191
+ factor_name: "sms" | "otp" | "email" | "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" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
203
+ name: "sms" | "otp" | "email" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
204
204
  enabled: boolean;
205
205
  trial_expired?: boolean | undefined;
206
206
  };