authhero 4.112.0 → 4.114.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/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-11674140.entry.js +1 -0
- package/dist/authhero.cjs +132 -106
- package/dist/authhero.d.ts +359 -25
- package/dist/authhero.mjs +25733 -21315
- package/dist/stats.html +1 -1
- package/package.json +10 -5
- package/dist/assets/u/widget/p-f56bfac1.entry.js +0 -1
package/dist/authhero.d.ts
CHANGED
|
@@ -11397,7 +11397,7 @@ export interface Auth0FlowInsert {
|
|
|
11397
11397
|
export declare enum AuthorizationResponseType {
|
|
11398
11398
|
TOKEN = "token",
|
|
11399
11399
|
ID_TOKEN = "id_token",
|
|
11400
|
-
TOKEN_ID_TOKEN = "token
|
|
11400
|
+
TOKEN_ID_TOKEN = "id_token token",
|
|
11401
11401
|
CODE = "code"
|
|
11402
11402
|
}
|
|
11403
11403
|
export declare enum AuthorizationResponseMode {
|
|
@@ -43361,9 +43361,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
|
|
|
43361
43361
|
issuer: z.ZodString;
|
|
43362
43362
|
authorization_endpoint: z.ZodString;
|
|
43363
43363
|
token_endpoint: z.ZodString;
|
|
43364
|
-
device_authorization_endpoint: z.ZodString;
|
|
43365
43364
|
userinfo_endpoint: z.ZodString;
|
|
43366
|
-
mfa_challenge_endpoint: z.ZodString;
|
|
43367
43365
|
jwks_uri: z.ZodString;
|
|
43368
43366
|
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
43369
43367
|
revocation_endpoint: z.ZodString;
|
|
@@ -43387,8 +43385,6 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
|
|
|
43387
43385
|
userinfo_endpoint: string;
|
|
43388
43386
|
jwks_uri: string;
|
|
43389
43387
|
issuer: string;
|
|
43390
|
-
device_authorization_endpoint: string;
|
|
43391
|
-
mfa_challenge_endpoint: string;
|
|
43392
43388
|
revocation_endpoint: string;
|
|
43393
43389
|
scopes_supported: string[];
|
|
43394
43390
|
response_types_supported: string[];
|
|
@@ -43411,8 +43407,6 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
|
|
|
43411
43407
|
userinfo_endpoint: string;
|
|
43412
43408
|
jwks_uri: string;
|
|
43413
43409
|
issuer: string;
|
|
43414
|
-
device_authorization_endpoint: string;
|
|
43415
|
-
mfa_challenge_endpoint: string;
|
|
43416
43410
|
revocation_endpoint: string;
|
|
43417
43411
|
scopes_supported: string[];
|
|
43418
43412
|
response_types_supported: string[];
|
|
@@ -45012,6 +45006,7 @@ export declare const sessionSchema: z.ZodObject<{
|
|
|
45012
45006
|
export type Session = z.infer<typeof sessionSchema>;
|
|
45013
45007
|
export declare const signingKeySchema: z.ZodObject<{
|
|
45014
45008
|
kid: z.ZodString;
|
|
45009
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
45015
45010
|
cert: z.ZodString;
|
|
45016
45011
|
fingerprint: z.ZodString;
|
|
45017
45012
|
thumbprint: z.ZodString;
|
|
@@ -45034,6 +45029,7 @@ export declare const signingKeySchema: z.ZodObject<{
|
|
|
45034
45029
|
cert: string;
|
|
45035
45030
|
fingerprint: string;
|
|
45036
45031
|
thumbprint: string;
|
|
45032
|
+
tenant_id?: string | undefined;
|
|
45037
45033
|
connection?: string | undefined;
|
|
45038
45034
|
revoked_at?: string | undefined;
|
|
45039
45035
|
pkcs7?: string | undefined;
|
|
@@ -45049,6 +45045,7 @@ export declare const signingKeySchema: z.ZodObject<{
|
|
|
45049
45045
|
cert: string;
|
|
45050
45046
|
fingerprint: string;
|
|
45051
45047
|
thumbprint: string;
|
|
45048
|
+
tenant_id?: string | undefined;
|
|
45052
45049
|
connection?: string | undefined;
|
|
45053
45050
|
revoked_at?: string | undefined;
|
|
45054
45051
|
pkcs7?: string | undefined;
|
|
@@ -48205,6 +48202,66 @@ export declare const emailProviderSchema: z.ZodObject<{
|
|
|
48205
48202
|
settings?: {} | undefined;
|
|
48206
48203
|
}>;
|
|
48207
48204
|
export type EmailProvider = z.infer<typeof emailProviderSchema>;
|
|
48205
|
+
export declare const emailTemplateNameSchema: z.ZodEnum<[
|
|
48206
|
+
"verify_email",
|
|
48207
|
+
"verify_email_by_code",
|
|
48208
|
+
"reset_email",
|
|
48209
|
+
"reset_email_by_code",
|
|
48210
|
+
"welcome_email",
|
|
48211
|
+
"blocked_account",
|
|
48212
|
+
"stolen_credentials",
|
|
48213
|
+
"enrollment_email",
|
|
48214
|
+
"mfa_oob_code",
|
|
48215
|
+
"change_password",
|
|
48216
|
+
"password_reset",
|
|
48217
|
+
"user_invitation"
|
|
48218
|
+
]>;
|
|
48219
|
+
export type EmailTemplateName = z.infer<typeof emailTemplateNameSchema>;
|
|
48220
|
+
export declare const emailTemplateSchema: z.ZodObject<{
|
|
48221
|
+
template: z.ZodEnum<[
|
|
48222
|
+
"verify_email",
|
|
48223
|
+
"verify_email_by_code",
|
|
48224
|
+
"reset_email",
|
|
48225
|
+
"reset_email_by_code",
|
|
48226
|
+
"welcome_email",
|
|
48227
|
+
"blocked_account",
|
|
48228
|
+
"stolen_credentials",
|
|
48229
|
+
"enrollment_email",
|
|
48230
|
+
"mfa_oob_code",
|
|
48231
|
+
"change_password",
|
|
48232
|
+
"password_reset",
|
|
48233
|
+
"user_invitation"
|
|
48234
|
+
]>;
|
|
48235
|
+
body: z.ZodString;
|
|
48236
|
+
from: z.ZodString;
|
|
48237
|
+
subject: z.ZodString;
|
|
48238
|
+
syntax: z.ZodDefault<z.ZodLiteral<"liquid">>;
|
|
48239
|
+
resultUrl: z.ZodOptional<z.ZodString>;
|
|
48240
|
+
urlLifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
48241
|
+
includeEmailInRedirect: z.ZodDefault<z.ZodBoolean>;
|
|
48242
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
48243
|
+
}, "strip", z.ZodTypeAny, {
|
|
48244
|
+
body: string;
|
|
48245
|
+
from: string;
|
|
48246
|
+
enabled: boolean;
|
|
48247
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
48248
|
+
subject: string;
|
|
48249
|
+
syntax: "liquid";
|
|
48250
|
+
includeEmailInRedirect: boolean;
|
|
48251
|
+
resultUrl?: string | undefined;
|
|
48252
|
+
urlLifetimeInSeconds?: number | undefined;
|
|
48253
|
+
}, {
|
|
48254
|
+
body: string;
|
|
48255
|
+
from: string;
|
|
48256
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
48257
|
+
subject: string;
|
|
48258
|
+
enabled?: boolean | undefined;
|
|
48259
|
+
syntax?: "liquid" | undefined;
|
|
48260
|
+
resultUrl?: string | undefined;
|
|
48261
|
+
urlLifetimeInSeconds?: number | undefined;
|
|
48262
|
+
includeEmailInRedirect?: boolean | undefined;
|
|
48263
|
+
}>;
|
|
48264
|
+
export type EmailTemplate = z.infer<typeof emailTemplateSchema>;
|
|
48208
48265
|
export declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
48209
48266
|
id: z.ZodString;
|
|
48210
48267
|
login_id: z.ZodString;
|
|
@@ -50140,6 +50197,7 @@ export declare const Strategy: {
|
|
|
50140
50197
|
readonly SAMLP: "samlp";
|
|
50141
50198
|
readonly WAAD: "waad";
|
|
50142
50199
|
readonly ADFS: "adfs";
|
|
50200
|
+
readonly AUTH0: "auth0";
|
|
50143
50201
|
};
|
|
50144
50202
|
export declare const StrategyType: {
|
|
50145
50203
|
readonly DATABASE: "database";
|
|
@@ -50725,6 +50783,13 @@ export interface EmailProvidersAdapter {
|
|
|
50725
50783
|
get: (tenant_id: string) => Promise<EmailProvider | null>;
|
|
50726
50784
|
remove: (tenant_id: string) => Promise<void>;
|
|
50727
50785
|
}
|
|
50786
|
+
export interface EmailTemplatesAdapter {
|
|
50787
|
+
get: (tenant_id: string, templateName: EmailTemplateName) => Promise<EmailTemplate | null>;
|
|
50788
|
+
list: (tenant_id: string) => Promise<EmailTemplate[]>;
|
|
50789
|
+
create: (tenant_id: string, template: EmailTemplate) => Promise<EmailTemplate>;
|
|
50790
|
+
update: (tenant_id: string, templateName: EmailTemplateName, template: Partial<EmailTemplate>) => Promise<boolean>;
|
|
50791
|
+
remove: (tenant_id: string, templateName: EmailTemplateName) => Promise<boolean>;
|
|
50792
|
+
}
|
|
50728
50793
|
export interface ListRefreshTokenResponse extends Totals {
|
|
50729
50794
|
refresh_tokens: RefreshToken[];
|
|
50730
50795
|
}
|
|
@@ -51104,6 +51169,7 @@ export interface DataAdapters {
|
|
|
51104
51169
|
connections: ConnectionsAdapter;
|
|
51105
51170
|
customDomains: CustomDomainsAdapter;
|
|
51106
51171
|
emailProviders: EmailProvidersAdapter;
|
|
51172
|
+
emailTemplates: EmailTemplatesAdapter;
|
|
51107
51173
|
flows: FlowsAdapter;
|
|
51108
51174
|
forms: FormsAdapter;
|
|
51109
51175
|
geo?: GeoAdapter;
|
|
@@ -54173,6 +54239,44 @@ export type UserLinkingModeResolver = (params: {
|
|
|
54173
54239
|
client_id?: string;
|
|
54174
54240
|
}) => UserLinkingMode | Promise<UserLinkingMode>;
|
|
54175
54241
|
export type UserLinkingModeOption = UserLinkingMode | UserLinkingModeResolver;
|
|
54242
|
+
/**
|
|
54243
|
+
* Resolver for the per-tenant username/password provider value.
|
|
54244
|
+
*
|
|
54245
|
+
* The native database provider has historically been written as `"auth2"`.
|
|
54246
|
+
* Returning `"auth0"` for selected tenants lets you migrate them onto the
|
|
54247
|
+
* `"auth0"` provider value (matching what the legacy Auth0 import format
|
|
54248
|
+
* used) one tenant at a time. Reads always accept both values, so existing
|
|
54249
|
+
* `auth2|*` rows keep resolving during and after the cutover.
|
|
54250
|
+
*
|
|
54251
|
+
* TRANSITIONAL: this resolver and the dual-read fallback can be removed
|
|
54252
|
+
* once every tenant has been migrated to a single value.
|
|
54253
|
+
*/
|
|
54254
|
+
export type UsernamePasswordProviderResolver = (params: {
|
|
54255
|
+
tenant_id: string;
|
|
54256
|
+
}) => "auth0" | "auth2" | Promise<"auth0" | "auth2">;
|
|
54257
|
+
/**
|
|
54258
|
+
* Mode for which signing-key bucket a tenant uses when minting and
|
|
54259
|
+
* publishing JWTs.
|
|
54260
|
+
*
|
|
54261
|
+
* - `"control-plane"` — tenant uses the shared control-plane keys (rows
|
|
54262
|
+
* with `tenant_id IS NULL`). This matches the legacy single-key-pool
|
|
54263
|
+
* behavior; existing data needs no migration.
|
|
54264
|
+
* - `"tenant"` — tenant uses its own keys (rows with `tenant_id =
|
|
54265
|
+
* tenantId`). Falls back to the control-plane bucket if the tenant has
|
|
54266
|
+
* no non-revoked key yet, so flipping a tenant on is safe even before
|
|
54267
|
+
* a tenant key has been minted. JWKS for that tenant publishes the
|
|
54268
|
+
* union of tenant + control-plane keys so tokens signed by either set
|
|
54269
|
+
* keep verifying during rotation.
|
|
54270
|
+
*/
|
|
54271
|
+
export type SigningKeyMode = "control-plane" | "tenant";
|
|
54272
|
+
/**
|
|
54273
|
+
* Resolver form for the per-tenant signing-key mode. Receives the
|
|
54274
|
+
* resolved `tenant_id` and returns which bucket to use. May be async.
|
|
54275
|
+
*/
|
|
54276
|
+
export type SigningKeyModeResolver = (params: {
|
|
54277
|
+
tenant_id: string;
|
|
54278
|
+
}) => SigningKeyMode | Promise<SigningKeyMode>;
|
|
54279
|
+
export type SigningKeyModeOption = SigningKeyMode | SigningKeyModeResolver;
|
|
54176
54280
|
export interface AuthHeroConfig {
|
|
54177
54281
|
dataAdapter: DataAdapters;
|
|
54178
54282
|
/**
|
|
@@ -54376,6 +54480,35 @@ export interface AuthHeroConfig {
|
|
|
54376
54480
|
* @default "builtin"
|
|
54377
54481
|
*/
|
|
54378
54482
|
userLinkingMode?: UserLinkingModeOption;
|
|
54483
|
+
/**
|
|
54484
|
+
* Per-tenant override for the username/password provider value used on
|
|
54485
|
+
* NEW user rows. Returning `"auth0"` for a tenant migrates new signups,
|
|
54486
|
+
* password resets, etc. onto the `auth0|*` user_id format. Existing
|
|
54487
|
+
* `auth2|*` rows keep working — reads accept either value.
|
|
54488
|
+
*
|
|
54489
|
+
* Omit to keep the legacy `"auth2"` value for every tenant.
|
|
54490
|
+
*
|
|
54491
|
+
* TRANSITIONAL: this hook and the dual-read fallback in the password
|
|
54492
|
+
* flows can be removed once all tenants have been backfilled.
|
|
54493
|
+
*/
|
|
54494
|
+
usernamePasswordProvider?: UsernamePasswordProviderResolver;
|
|
54495
|
+
/**
|
|
54496
|
+
* Per-tenant control over which signing-key bucket a tenant uses.
|
|
54497
|
+
*
|
|
54498
|
+
* Accepts either a static value or a resolver that receives
|
|
54499
|
+
* `{ tenant_id }` and returns the mode. Use the resolver form to
|
|
54500
|
+
* migrate tenants onto their own keys one at a time.
|
|
54501
|
+
*
|
|
54502
|
+
* Omit (or set to `"control-plane"`) to preserve the legacy behavior
|
|
54503
|
+
* where every tenant shares the control-plane keys.
|
|
54504
|
+
*
|
|
54505
|
+
* TRANSITIONAL: once every tenant is on `"tenant"` and the
|
|
54506
|
+
* control-plane bucket has been retired, this option and the
|
|
54507
|
+
* fallback path can be removed.
|
|
54508
|
+
*
|
|
54509
|
+
* @default "control-plane"
|
|
54510
|
+
*/
|
|
54511
|
+
signingKeyMode?: SigningKeyModeOption;
|
|
54379
54512
|
}
|
|
54380
54513
|
export type UserInfo = {
|
|
54381
54514
|
sub: string;
|
|
@@ -54437,6 +54570,8 @@ export type Bindings = {
|
|
|
54437
54570
|
webhookInvoker?: WebhookInvoker;
|
|
54438
54571
|
outbox?: OutboxConfig;
|
|
54439
54572
|
userLinkingMode?: UserLinkingModeOption;
|
|
54573
|
+
usernamePasswordProvider?: UsernamePasswordProviderResolver;
|
|
54574
|
+
signingKeyMode?: SigningKeyModeOption;
|
|
54440
54575
|
/**
|
|
54441
54576
|
* Allow outbound fetches (jwks_uri, request_uri) to localhost / private IP
|
|
54442
54577
|
* ranges and over plain http. Intended for tests and local development;
|
|
@@ -65098,6 +65233,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
65098
65233
|
cert: string;
|
|
65099
65234
|
fingerprint: string;
|
|
65100
65235
|
thumbprint: string;
|
|
65236
|
+
tenant_id?: string | undefined | undefined;
|
|
65101
65237
|
connection?: string | undefined | undefined;
|
|
65102
65238
|
revoked_at?: string | undefined | undefined;
|
|
65103
65239
|
pkcs7?: string | undefined | undefined;
|
|
@@ -65130,6 +65266,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
65130
65266
|
cert: string;
|
|
65131
65267
|
fingerprint: string;
|
|
65132
65268
|
thumbprint: string;
|
|
65269
|
+
tenant_id?: string | undefined | undefined;
|
|
65133
65270
|
connection?: string | undefined | undefined;
|
|
65134
65271
|
revoked_at?: string | undefined | undefined;
|
|
65135
65272
|
pkcs7?: string | undefined | undefined;
|
|
@@ -66243,20 +66380,219 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
66243
66380
|
};
|
|
66244
66381
|
}, "/users"> & import("hono/types").MergeSchemaPath<{
|
|
66245
66382
|
"/": {
|
|
66383
|
+
$post: {
|
|
66384
|
+
input: {
|
|
66385
|
+
header: {
|
|
66386
|
+
"tenant-id"?: string | undefined;
|
|
66387
|
+
};
|
|
66388
|
+
} & {
|
|
66389
|
+
json: {
|
|
66390
|
+
body: string;
|
|
66391
|
+
from: string;
|
|
66392
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
66393
|
+
subject: string;
|
|
66394
|
+
enabled?: boolean | undefined;
|
|
66395
|
+
syntax?: "liquid" | undefined;
|
|
66396
|
+
resultUrl?: string | undefined;
|
|
66397
|
+
urlLifetimeInSeconds?: number | undefined;
|
|
66398
|
+
includeEmailInRedirect?: boolean | undefined;
|
|
66399
|
+
};
|
|
66400
|
+
};
|
|
66401
|
+
output: {};
|
|
66402
|
+
outputFormat: string;
|
|
66403
|
+
status: 409;
|
|
66404
|
+
} | {
|
|
66405
|
+
input: {
|
|
66406
|
+
header: {
|
|
66407
|
+
"tenant-id"?: string | undefined;
|
|
66408
|
+
};
|
|
66409
|
+
} & {
|
|
66410
|
+
json: {
|
|
66411
|
+
body: string;
|
|
66412
|
+
from: string;
|
|
66413
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
66414
|
+
subject: string;
|
|
66415
|
+
enabled?: boolean | undefined;
|
|
66416
|
+
syntax?: "liquid" | undefined;
|
|
66417
|
+
resultUrl?: string | undefined;
|
|
66418
|
+
urlLifetimeInSeconds?: number | undefined;
|
|
66419
|
+
includeEmailInRedirect?: boolean | undefined;
|
|
66420
|
+
};
|
|
66421
|
+
};
|
|
66422
|
+
output: {
|
|
66423
|
+
body: string;
|
|
66424
|
+
from: string;
|
|
66425
|
+
enabled: boolean;
|
|
66426
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
66427
|
+
subject: string;
|
|
66428
|
+
syntax: "liquid";
|
|
66429
|
+
includeEmailInRedirect: boolean;
|
|
66430
|
+
resultUrl?: string | undefined | undefined;
|
|
66431
|
+
urlLifetimeInSeconds?: number | undefined | undefined;
|
|
66432
|
+
};
|
|
66433
|
+
outputFormat: "json";
|
|
66434
|
+
status: 201;
|
|
66435
|
+
};
|
|
66436
|
+
};
|
|
66437
|
+
} & {
|
|
66438
|
+
"/:templateName": {
|
|
66246
66439
|
$get: {
|
|
66247
66440
|
input: {
|
|
66441
|
+
param: {
|
|
66442
|
+
templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
|
|
66443
|
+
};
|
|
66444
|
+
} & {
|
|
66445
|
+
header: {
|
|
66446
|
+
"tenant-id"?: string | undefined;
|
|
66447
|
+
};
|
|
66448
|
+
};
|
|
66449
|
+
output: {};
|
|
66450
|
+
outputFormat: string;
|
|
66451
|
+
status: 404;
|
|
66452
|
+
} | {
|
|
66453
|
+
input: {
|
|
66454
|
+
param: {
|
|
66455
|
+
templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
|
|
66456
|
+
};
|
|
66457
|
+
} & {
|
|
66248
66458
|
header: {
|
|
66249
66459
|
"tenant-id"?: string | undefined;
|
|
66250
66460
|
};
|
|
66251
66461
|
};
|
|
66252
66462
|
output: {
|
|
66253
|
-
|
|
66463
|
+
body: string;
|
|
66464
|
+
from: string;
|
|
66254
66465
|
enabled: boolean;
|
|
66255
|
-
|
|
66256
|
-
|
|
66466
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
66467
|
+
subject: string;
|
|
66468
|
+
syntax: "liquid";
|
|
66469
|
+
includeEmailInRedirect: boolean;
|
|
66470
|
+
resultUrl?: string | undefined | undefined;
|
|
66471
|
+
urlLifetimeInSeconds?: number | undefined | undefined;
|
|
66472
|
+
};
|
|
66473
|
+
outputFormat: "json";
|
|
66474
|
+
status: 200;
|
|
66475
|
+
};
|
|
66476
|
+
};
|
|
66477
|
+
} & {
|
|
66478
|
+
"/:templateName": {
|
|
66479
|
+
$put: {
|
|
66480
|
+
input: {
|
|
66481
|
+
param: {
|
|
66482
|
+
templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
|
|
66257
66483
|
};
|
|
66258
|
-
|
|
66259
|
-
|
|
66484
|
+
} & {
|
|
66485
|
+
header: {
|
|
66486
|
+
"tenant-id"?: string | undefined;
|
|
66487
|
+
};
|
|
66488
|
+
} & {
|
|
66489
|
+
json: {
|
|
66490
|
+
body: string;
|
|
66491
|
+
from: string;
|
|
66492
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
66493
|
+
subject: string;
|
|
66494
|
+
enabled?: boolean | undefined;
|
|
66495
|
+
syntax?: "liquid" | undefined;
|
|
66496
|
+
resultUrl?: string | undefined;
|
|
66497
|
+
urlLifetimeInSeconds?: number | undefined;
|
|
66498
|
+
includeEmailInRedirect?: boolean | undefined;
|
|
66499
|
+
};
|
|
66500
|
+
};
|
|
66501
|
+
output: {
|
|
66502
|
+
body: string;
|
|
66503
|
+
from: string;
|
|
66504
|
+
enabled: boolean;
|
|
66505
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
66506
|
+
subject: string;
|
|
66507
|
+
syntax: "liquid";
|
|
66508
|
+
includeEmailInRedirect: boolean;
|
|
66509
|
+
resultUrl?: string | undefined | undefined;
|
|
66510
|
+
urlLifetimeInSeconds?: number | undefined | undefined;
|
|
66511
|
+
};
|
|
66512
|
+
outputFormat: "json";
|
|
66513
|
+
status: 200;
|
|
66514
|
+
};
|
|
66515
|
+
};
|
|
66516
|
+
} & {
|
|
66517
|
+
"/:templateName": {
|
|
66518
|
+
$patch: {
|
|
66519
|
+
input: {
|
|
66520
|
+
param: {
|
|
66521
|
+
templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
|
|
66522
|
+
};
|
|
66523
|
+
} & {
|
|
66524
|
+
header: {
|
|
66525
|
+
"tenant-id"?: string | undefined;
|
|
66526
|
+
};
|
|
66527
|
+
} & {
|
|
66528
|
+
json: {
|
|
66529
|
+
body?: string | undefined;
|
|
66530
|
+
from?: string | undefined;
|
|
66531
|
+
enabled?: boolean | undefined;
|
|
66532
|
+
template?: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation" | undefined;
|
|
66533
|
+
subject?: string | undefined;
|
|
66534
|
+
syntax?: "liquid" | undefined;
|
|
66535
|
+
resultUrl?: string | undefined;
|
|
66536
|
+
urlLifetimeInSeconds?: number | undefined;
|
|
66537
|
+
includeEmailInRedirect?: boolean | undefined;
|
|
66538
|
+
};
|
|
66539
|
+
};
|
|
66540
|
+
output: {};
|
|
66541
|
+
outputFormat: string;
|
|
66542
|
+
status: 404;
|
|
66543
|
+
} | {
|
|
66544
|
+
input: {
|
|
66545
|
+
param: {
|
|
66546
|
+
templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
|
|
66547
|
+
};
|
|
66548
|
+
} & {
|
|
66549
|
+
header: {
|
|
66550
|
+
"tenant-id"?: string | undefined;
|
|
66551
|
+
};
|
|
66552
|
+
} & {
|
|
66553
|
+
json: {
|
|
66554
|
+
body?: string | undefined;
|
|
66555
|
+
from?: string | undefined;
|
|
66556
|
+
enabled?: boolean | undefined;
|
|
66557
|
+
template?: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation" | undefined;
|
|
66558
|
+
subject?: string | undefined;
|
|
66559
|
+
syntax?: "liquid" | undefined;
|
|
66560
|
+
resultUrl?: string | undefined;
|
|
66561
|
+
urlLifetimeInSeconds?: number | undefined;
|
|
66562
|
+
includeEmailInRedirect?: boolean | undefined;
|
|
66563
|
+
};
|
|
66564
|
+
};
|
|
66565
|
+
output: {
|
|
66566
|
+
body: string;
|
|
66567
|
+
from: string;
|
|
66568
|
+
enabled: boolean;
|
|
66569
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
66570
|
+
subject: string;
|
|
66571
|
+
syntax: "liquid";
|
|
66572
|
+
includeEmailInRedirect: boolean;
|
|
66573
|
+
resultUrl?: string | undefined | undefined;
|
|
66574
|
+
urlLifetimeInSeconds?: number | undefined | undefined;
|
|
66575
|
+
};
|
|
66576
|
+
outputFormat: "json";
|
|
66577
|
+
status: 200;
|
|
66578
|
+
};
|
|
66579
|
+
};
|
|
66580
|
+
}, "/email-templates"> & import("hono/types").MergeSchemaPath<{
|
|
66581
|
+
"/": {
|
|
66582
|
+
$get: {
|
|
66583
|
+
input: {
|
|
66584
|
+
header: {
|
|
66585
|
+
"tenant-id"?: string | undefined;
|
|
66586
|
+
};
|
|
66587
|
+
};
|
|
66588
|
+
output: {
|
|
66589
|
+
name?: string | undefined;
|
|
66590
|
+
credentials?: {
|
|
66591
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
66592
|
+
} | undefined;
|
|
66593
|
+
settings?: {} | undefined;
|
|
66594
|
+
enabled?: boolean | undefined;
|
|
66595
|
+
default_from_address?: string | undefined;
|
|
66260
66596
|
};
|
|
66261
66597
|
outputFormat: "json";
|
|
66262
66598
|
status: 200;
|
|
@@ -66368,13 +66704,13 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
66368
66704
|
};
|
|
66369
66705
|
};
|
|
66370
66706
|
output: {
|
|
66371
|
-
name
|
|
66372
|
-
|
|
66373
|
-
credentials: {
|
|
66707
|
+
name?: string | undefined;
|
|
66708
|
+
credentials?: {
|
|
66374
66709
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
66375
|
-
};
|
|
66376
|
-
|
|
66377
|
-
|
|
66710
|
+
} | undefined;
|
|
66711
|
+
settings?: {} | undefined;
|
|
66712
|
+
enabled?: boolean | undefined;
|
|
66713
|
+
default_from_address?: string | undefined;
|
|
66378
66714
|
};
|
|
66379
66715
|
outputFormat: "json";
|
|
66380
66716
|
status: 200;
|
|
@@ -68077,7 +68413,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
68077
68413
|
organization?: string | undefined;
|
|
68078
68414
|
nonce?: string | undefined;
|
|
68079
68415
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
68080
|
-
response_type?:
|
|
68416
|
+
response_type?: unknown;
|
|
68081
68417
|
prompt?: string | undefined;
|
|
68082
68418
|
state?: string | undefined;
|
|
68083
68419
|
auth0Client?: string | undefined;
|
|
@@ -68110,7 +68446,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
68110
68446
|
organization?: string | undefined;
|
|
68111
68447
|
nonce?: string | undefined;
|
|
68112
68448
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
68113
|
-
response_type?:
|
|
68449
|
+
response_type?: unknown;
|
|
68114
68450
|
prompt?: string | undefined;
|
|
68115
68451
|
state?: string | undefined;
|
|
68116
68452
|
auth0Client?: string | undefined;
|
|
@@ -68143,7 +68479,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
68143
68479
|
organization?: string | undefined;
|
|
68144
68480
|
nonce?: string | undefined;
|
|
68145
68481
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
68146
|
-
response_type?:
|
|
68482
|
+
response_type?: unknown;
|
|
68147
68483
|
prompt?: string | undefined;
|
|
68148
68484
|
state?: string | undefined;
|
|
68149
68485
|
auth0Client?: string | undefined;
|
|
@@ -68184,7 +68520,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
68184
68520
|
organization?: string | undefined;
|
|
68185
68521
|
nonce?: string | undefined;
|
|
68186
68522
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
68187
|
-
response_type?:
|
|
68523
|
+
response_type?: unknown;
|
|
68188
68524
|
prompt?: string | undefined;
|
|
68189
68525
|
state?: string | undefined;
|
|
68190
68526
|
auth0Client?: string | undefined;
|
|
@@ -68219,7 +68555,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
68219
68555
|
organization?: string | undefined;
|
|
68220
68556
|
nonce?: string | undefined;
|
|
68221
68557
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
68222
|
-
response_type?:
|
|
68558
|
+
response_type?: unknown;
|
|
68223
68559
|
prompt?: string | undefined;
|
|
68224
68560
|
state?: string | undefined;
|
|
68225
68561
|
auth0Client?: string | undefined;
|
|
@@ -68981,8 +69317,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
68981
69317
|
userinfo_endpoint: string;
|
|
68982
69318
|
jwks_uri: string;
|
|
68983
69319
|
issuer: string;
|
|
68984
|
-
device_authorization_endpoint: string;
|
|
68985
|
-
mfa_challenge_endpoint: string;
|
|
68986
69320
|
revocation_endpoint: string;
|
|
68987
69321
|
scopes_supported: string[];
|
|
68988
69322
|
response_types_supported: string[];
|