authhero 5.20.0 → 5.21.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.
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +17 -17
- package/dist/authhero.d.ts +314 -248
- package/dist/authhero.mjs +105 -66
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +12 -3
- package/dist/types/helpers/client.d.ts +20 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/index.d.ts +247 -245
- package/dist/types/provisioning/index.d.ts +2 -0
- package/dist/types/provisioning/noop-provisioner.d.ts +11 -0
- package/dist/types/provisioning/provisioner.d.ts +25 -0
- package/dist/types/routes/auth-api/index.d.ts +30 -30
- package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/auth-api/well-known.d.ts +2 -2
- package/dist/types/routes/management-api/actions.d.ts +3 -3
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/client-grants.d.ts +8 -8
- package/dist/types/routes/management-api/clients.d.ts +7 -7
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/custom-domains.d.ts +7 -7
- package/dist/types/routes/management-api/email-templates.d.ts +33 -33
- package/dist/types/routes/management-api/forms.d.ts +126 -126
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/hook-code.d.ts +2 -2
- package/dist/types/routes/management-api/index.d.ts +209 -209
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/tenants.d.ts +27 -0
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +38 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/u2-index.d.ts +6 -6
- package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
- package/dist/types/types/AuthHeroConfig.d.ts +12 -0
- package/dist/types/utils/jwks.d.ts +4 -4
- package/package.json +5 -5
|
@@ -233,6 +233,15 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
233
233
|
} | null | undefined;
|
|
234
234
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
235
235
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
236
|
+
deployment_type?: "shared" | "wfp" | undefined;
|
|
237
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
238
|
+
provisioning_error?: string | undefined;
|
|
239
|
+
provisioning_state_changed_at?: string | undefined;
|
|
240
|
+
bundle_configuration?: string | undefined;
|
|
241
|
+
worker_version?: string | undefined;
|
|
242
|
+
worker_script_name?: string | undefined;
|
|
243
|
+
storage_kind?: "own_d1" | "existing_d1" | "shared_planetscale" | undefined;
|
|
244
|
+
d1_database_id?: string | undefined;
|
|
236
245
|
attack_protection?: {
|
|
237
246
|
breached_password_detection?: {
|
|
238
247
|
enabled?: boolean | undefined;
|
|
@@ -448,7 +457,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
448
457
|
custom_login_page_preview?: string | undefined;
|
|
449
458
|
form_template?: string | undefined;
|
|
450
459
|
addons?: Record<string, any> | undefined;
|
|
451
|
-
token_endpoint_auth_method?: "
|
|
460
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
452
461
|
client_metadata?: Record<string, string> | undefined;
|
|
453
462
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
454
463
|
mobile?: Record<string, any> | undefined;
|
|
@@ -531,8 +540,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
531
540
|
} | undefined;
|
|
532
541
|
authenticated_at?: string | undefined;
|
|
533
542
|
};
|
|
534
|
-
connectionType: "
|
|
535
|
-
authConnection: "
|
|
543
|
+
connectionType: "sms" | "email" | "username";
|
|
544
|
+
authConnection: "sms" | "email" | "username";
|
|
536
545
|
session_id: string | undefined;
|
|
537
546
|
authParams: {
|
|
538
547
|
client_id: string;
|
|
@@ -242,6 +242,26 @@ export declare const enrichedClientSchema: z.ZodObject<{
|
|
|
242
242
|
}, z.core.$strip>>>;
|
|
243
243
|
pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
|
|
244
244
|
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
deployment_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
246
|
+
shared: "shared";
|
|
247
|
+
wfp: "wfp";
|
|
248
|
+
}>>>;
|
|
249
|
+
provisioning_state: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
250
|
+
pending: "pending";
|
|
251
|
+
ready: "ready";
|
|
252
|
+
failed: "failed";
|
|
253
|
+
}>>>;
|
|
254
|
+
provisioning_error: z.ZodOptional<z.ZodString>;
|
|
255
|
+
provisioning_state_changed_at: z.ZodOptional<z.ZodString>;
|
|
256
|
+
bundle_configuration: z.ZodOptional<z.ZodString>;
|
|
257
|
+
worker_version: z.ZodOptional<z.ZodString>;
|
|
258
|
+
worker_script_name: z.ZodOptional<z.ZodString>;
|
|
259
|
+
storage_kind: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
own_d1: "own_d1";
|
|
261
|
+
existing_d1: "existing_d1";
|
|
262
|
+
shared_planetscale: "shared_planetscale";
|
|
263
|
+
}>>;
|
|
264
|
+
d1_database_id: z.ZodOptional<z.ZodString>;
|
|
245
265
|
attack_protection: z.ZodOptional<z.ZodObject<{
|
|
246
266
|
breached_password_detection: z.ZodOptional<z.ZodObject<{
|
|
247
267
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -23,9 +23,9 @@ export declare const dcrRequestSchema: z.ZodObject<{
|
|
|
23
23
|
grant_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
24
|
response_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
25
|
token_endpoint_auth_method: z.ZodOptional<z.ZodEnum<{
|
|
26
|
-
none: "none";
|
|
27
26
|
client_secret_post: "client_secret_post";
|
|
28
27
|
client_secret_basic: "client_secret_basic";
|
|
28
|
+
none: "none";
|
|
29
29
|
client_secret_jwt: "client_secret_jwt";
|
|
30
30
|
private_key_jwt: "private_key_jwt";
|
|
31
31
|
}>>;
|