authhero 5.15.0 → 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 (42) 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 +116 -116
  4. package/dist/authhero.d.ts +271 -225
  5. package/dist/authhero.mjs +10024 -9934
  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/authentication-flows/passwordless.d.ts +2 -2
  10. package/dist/types/client/client-bundle.d.ts +1 -1
  11. package/dist/types/index.d.ts +271 -225
  12. package/dist/types/routes/auth-api/authorize.d.ts +12 -12
  13. package/dist/types/routes/auth-api/index.d.ts +47 -47
  14. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  15. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  16. package/dist/types/routes/auth-api/token.d.ts +21 -21
  17. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  18. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  19. package/dist/types/routes/management-api/branding.d.ts +8 -8
  20. package/dist/types/routes/management-api/connections.d.ts +1 -1
  21. package/dist/types/routes/management-api/custom-domains.d.ts +52 -6
  22. package/dist/types/routes/management-api/email-templates.d.ts +14 -14
  23. package/dist/types/routes/management-api/forms.d.ts +119 -119
  24. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  25. package/dist/types/routes/management-api/index.d.ts +212 -166
  26. package/dist/types/routes/management-api/logs.d.ts +3 -3
  27. package/dist/types/routes/management-api/organizations.d.ts +3 -3
  28. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  29. package/dist/types/routes/management-api/themes.d.ts +3 -3
  30. package/dist/types/routes/management-api/users.d.ts +2 -2
  31. package/dist/types/routes/universal-login/common.d.ts +4 -4
  32. package/dist/types/routes/universal-login/continue.d.ts +2 -2
  33. package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
  34. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  35. package/dist/types/routes/universal-login/impersonate.d.ts +4 -4
  36. package/dist/types/routes/universal-login/index.d.ts +8 -8
  37. package/dist/types/routes/universal-login/u2-index.d.ts +4 -4
  38. package/dist/types/routes/universal-login/u2-routes.d.ts +4 -4
  39. package/dist/types/state-machines/login-session.d.ts +1 -1
  40. package/dist/types/types/IdToken.d.ts +1 -1
  41. package/dist/types/utils/jwks.d.ts +2 -2
  42. package/package.json +5 -5
@@ -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" | "pending_verification" | "ready";
31
+ status: "disabled" | "pending" | "pending_verification" | "ready";
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" | "pending_verification" | "ready";
72
+ status: "disabled" | "pending" | "pending_verification" | "ready";
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?: {
@@ -130,7 +130,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
130
130
  domain_metadata?: Record<string, string> | undefined;
131
131
  custom_domain_id?: string | undefined;
132
132
  primary?: boolean | undefined;
133
- status?: "pending" | "disabled" | "pending_verification" | "ready" | undefined;
133
+ status?: "disabled" | "pending" | "pending_verification" | "ready" | undefined;
134
134
  origin_domain_name?: string | undefined;
135
135
  verification?: {
136
136
  methods: ({
@@ -151,7 +151,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
151
151
  type: "auth0_managed_certs" | "self_managed_certs";
152
152
  custom_domain_id: string;
153
153
  primary: boolean;
154
- status: "pending" | "disabled" | "pending_verification" | "ready";
154
+ status: "disabled" | "pending" | "pending_verification" | "ready";
155
155
  verification_method?: "txt" | undefined;
156
156
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
157
157
  domain_metadata?: {
@@ -198,7 +198,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
198
198
  type: "auth0_managed_certs" | "self_managed_certs";
199
199
  custom_domain_id: string;
200
200
  primary: boolean;
201
- status: "pending" | "disabled" | "pending_verification" | "ready";
201
+ status: "disabled" | "pending" | "pending_verification" | "ready";
202
202
  verification_method?: "txt" | undefined;
203
203
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
204
204
  domain_metadata?: {
@@ -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: {
@@ -239,7 +285,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
239
285
  type: "auth0_managed_certs" | "self_managed_certs";
240
286
  custom_domain_id: string;
241
287
  primary: boolean;
242
- status: "pending" | "disabled" | "pending_verification" | "ready";
288
+ status: "disabled" | "pending" | "pending_verification" | "ready";
243
289
  verification_method?: "txt" | undefined;
244
290
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
245
291
  domain_metadata?: {
@@ -12,7 +12,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
12
12
  };
13
13
  } & {
14
14
  json: {
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";
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";
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: "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";
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";
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: "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";
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";
49
49
  body: string;
50
50
  from: string;
51
51
  subject: string;
@@ -64,7 +64,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
64
64
  $get: {
65
65
  input: {
66
66
  param: {
67
- 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";
67
+ 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";
68
68
  };
69
69
  } & {
70
70
  header: {
@@ -77,7 +77,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
77
77
  } | {
78
78
  input: {
79
79
  param: {
80
- 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";
80
+ 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";
81
81
  };
82
82
  } & {
83
83
  header: {
@@ -85,7 +85,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
85
85
  };
86
86
  };
87
87
  output: {
88
- 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";
88
+ 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";
89
89
  body: string;
90
90
  from: string;
91
91
  subject: string;
@@ -104,7 +104,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
104
104
  $put: {
105
105
  input: {
106
106
  param: {
107
- 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";
107
+ 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";
108
108
  };
109
109
  } & {
110
110
  header: {
@@ -112,7 +112,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
112
112
  };
113
113
  } & {
114
114
  json: {
115
- 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";
115
+ 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";
116
116
  body: string;
117
117
  from: string;
118
118
  subject: string;
@@ -124,7 +124,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
124
124
  };
125
125
  };
126
126
  output: {
127
- 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";
127
+ 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";
128
128
  body: string;
129
129
  from: string;
130
130
  subject: string;
@@ -143,7 +143,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
143
143
  $patch: {
144
144
  input: {
145
145
  param: {
146
- 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";
146
+ 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";
147
147
  };
148
148
  } & {
149
149
  header: {
@@ -151,7 +151,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
151
151
  };
152
152
  } & {
153
153
  json: {
154
- 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;
154
+ 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;
155
155
  body?: string | undefined;
156
156
  from?: string | undefined;
157
157
  subject?: string | undefined;
@@ -168,7 +168,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
168
168
  } | {
169
169
  input: {
170
170
  param: {
171
- 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";
171
+ 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";
172
172
  };
173
173
  } & {
174
174
  header: {
@@ -176,7 +176,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
176
176
  };
177
177
  } & {
178
178
  json: {
179
- 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;
179
+ 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;
180
180
  body?: string | undefined;
181
181
  from?: string | undefined;
182
182
  subject?: string | undefined;
@@ -188,7 +188,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
188
188
  };
189
189
  };
190
190
  output: {
191
- 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";
191
+ 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";
192
192
  body: string;
193
193
  from: string;
194
194
  subject: string;