authhero 4.106.0 → 4.106.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.
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +87 -87
- package/dist/authhero.d.ts +110 -36
- package/dist/authhero.mjs +9059 -8977
- package/dist/stats.html +1 -1
- package/package.json +5 -5
package/dist/authhero.d.ts
CHANGED
|
@@ -3101,6 +3101,10 @@ export declare const clientInsertSchema: z.ZodObject<{
|
|
|
3101
3101
|
"iat_dcr"
|
|
3102
3102
|
]>>;
|
|
3103
3103
|
registration_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3104
|
+
user_linking_mode: z.ZodOptional<z.ZodEnum<[
|
|
3105
|
+
"builtin",
|
|
3106
|
+
"off"
|
|
3107
|
+
]>>;
|
|
3104
3108
|
}, "strip", z.ZodTypeAny, {
|
|
3105
3109
|
name: string;
|
|
3106
3110
|
client_id: string;
|
|
@@ -3153,6 +3157,7 @@ export declare const clientInsertSchema: z.ZodObject<{
|
|
|
3153
3157
|
owner_user_id?: string | undefined;
|
|
3154
3158
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
3155
3159
|
registration_metadata?: Record<string, any> | undefined;
|
|
3160
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
3156
3161
|
}, {
|
|
3157
3162
|
name: string;
|
|
3158
3163
|
client_id: string;
|
|
@@ -3205,6 +3210,7 @@ export declare const clientInsertSchema: z.ZodObject<{
|
|
|
3205
3210
|
owner_user_id?: string | undefined;
|
|
3206
3211
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
3207
3212
|
registration_metadata?: Record<string, any> | undefined;
|
|
3213
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
3208
3214
|
}>;
|
|
3209
3215
|
export type ClientInsert = z.input<typeof clientInsertSchema>;
|
|
3210
3216
|
export declare const clientSchema: z.ZodObject<{
|
|
@@ -3307,6 +3313,10 @@ export declare const clientSchema: z.ZodObject<{
|
|
|
3307
3313
|
"iat_dcr"
|
|
3308
3314
|
]>>;
|
|
3309
3315
|
registration_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3316
|
+
user_linking_mode: z.ZodOptional<z.ZodEnum<[
|
|
3317
|
+
"builtin",
|
|
3318
|
+
"off"
|
|
3319
|
+
]>>;
|
|
3310
3320
|
created_at: z.ZodString;
|
|
3311
3321
|
updated_at: z.ZodString;
|
|
3312
3322
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3363,6 +3373,7 @@ export declare const clientSchema: z.ZodObject<{
|
|
|
3363
3373
|
owner_user_id?: string | undefined;
|
|
3364
3374
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
3365
3375
|
registration_metadata?: Record<string, any> | undefined;
|
|
3376
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
3366
3377
|
}, {
|
|
3367
3378
|
created_at: string;
|
|
3368
3379
|
updated_at: string;
|
|
@@ -3417,6 +3428,7 @@ export declare const clientSchema: z.ZodObject<{
|
|
|
3417
3428
|
owner_user_id?: string | undefined;
|
|
3418
3429
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
3419
3430
|
registration_metadata?: Record<string, any> | undefined;
|
|
3431
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
3420
3432
|
}>;
|
|
3421
3433
|
export type Client = z.infer<typeof clientSchema>;
|
|
3422
3434
|
export declare const clientGrantInsertSchema: z.ZodObject<{
|
|
@@ -42344,17 +42356,20 @@ export declare function isWidgetComponent(component: FormNodeComponent): compone
|
|
|
42344
42356
|
export declare function isFieldComponent(component: FormNodeComponent): component is FieldComponent$1;
|
|
42345
42357
|
export declare const hookTemplateId: z.ZodEnum<[
|
|
42346
42358
|
"ensure-username",
|
|
42347
|
-
"set-preferred-username"
|
|
42359
|
+
"set-preferred-username",
|
|
42360
|
+
"account-linking"
|
|
42348
42361
|
]>;
|
|
42349
42362
|
export type HookTemplateId = z.infer<typeof hookTemplateId>;
|
|
42350
42363
|
/**
|
|
42351
42364
|
* Registry of available hook templates.
|
|
42352
|
-
* Maps template IDs to their metadata and allowed triggers.
|
|
42365
|
+
* Maps template IDs to their metadata and allowed triggers. Some templates
|
|
42366
|
+
* (e.g. `account-linking`) can bind to more than one trigger; in that case
|
|
42367
|
+
* `trigger_ids` lists every trigger the template supports.
|
|
42353
42368
|
*/
|
|
42354
42369
|
export declare const hookTemplates: Record<HookTemplateId, {
|
|
42355
42370
|
name: string;
|
|
42356
42371
|
description: string;
|
|
42357
|
-
|
|
42372
|
+
trigger_ids: string[];
|
|
42358
42373
|
}>;
|
|
42359
42374
|
export declare const hookInsertSchema: z.ZodUnion<[
|
|
42360
42375
|
z.ZodObject<{
|
|
@@ -42362,6 +42377,7 @@ export declare const hookInsertSchema: z.ZodUnion<[
|
|
|
42362
42377
|
"pre-user-registration",
|
|
42363
42378
|
"post-user-registration",
|
|
42364
42379
|
"post-user-login",
|
|
42380
|
+
"post-user-update",
|
|
42365
42381
|
"validate-registration-username",
|
|
42366
42382
|
"pre-user-deletion",
|
|
42367
42383
|
"post-user-deletion"
|
|
@@ -42374,13 +42390,13 @@ export declare const hookInsertSchema: z.ZodUnion<[
|
|
|
42374
42390
|
}, "strip", z.ZodTypeAny, {
|
|
42375
42391
|
url: string;
|
|
42376
42392
|
enabled: boolean;
|
|
42377
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
42393
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
42378
42394
|
synchronous: boolean;
|
|
42379
42395
|
priority?: number | undefined;
|
|
42380
42396
|
hook_id?: string | undefined;
|
|
42381
42397
|
}, {
|
|
42382
42398
|
url: string;
|
|
42383
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
42399
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
42384
42400
|
enabled?: boolean | undefined;
|
|
42385
42401
|
synchronous?: boolean | undefined;
|
|
42386
42402
|
priority?: number | undefined;
|
|
@@ -42418,11 +42434,14 @@ export declare const hookInsertSchema: z.ZodUnion<[
|
|
|
42418
42434
|
z.ZodObject<{
|
|
42419
42435
|
trigger_id: z.ZodEnum<[
|
|
42420
42436
|
"post-user-login",
|
|
42437
|
+
"post-user-registration",
|
|
42438
|
+
"post-user-update",
|
|
42421
42439
|
"credentials-exchange"
|
|
42422
42440
|
]>;
|
|
42423
42441
|
template_id: z.ZodEnum<[
|
|
42424
42442
|
"ensure-username",
|
|
42425
|
-
"set-preferred-username"
|
|
42443
|
+
"set-preferred-username",
|
|
42444
|
+
"account-linking"
|
|
42426
42445
|
]>;
|
|
42427
42446
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
42428
42447
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -42430,14 +42449,14 @@ export declare const hookInsertSchema: z.ZodUnion<[
|
|
|
42430
42449
|
hook_id: z.ZodOptional<z.ZodString>;
|
|
42431
42450
|
}, "strip", z.ZodTypeAny, {
|
|
42432
42451
|
enabled: boolean;
|
|
42433
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
42452
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
42434
42453
|
synchronous: boolean;
|
|
42435
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
42454
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
42436
42455
|
priority?: number | undefined;
|
|
42437
42456
|
hook_id?: string | undefined;
|
|
42438
42457
|
}, {
|
|
42439
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
42440
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
42458
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
42459
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
42441
42460
|
enabled?: boolean | undefined;
|
|
42442
42461
|
synchronous?: boolean | undefined;
|
|
42443
42462
|
priority?: number | undefined;
|
|
@@ -42482,6 +42501,7 @@ export declare const hookSchema: z.ZodUnion<[
|
|
|
42482
42501
|
"pre-user-registration",
|
|
42483
42502
|
"post-user-registration",
|
|
42484
42503
|
"post-user-login",
|
|
42504
|
+
"post-user-update",
|
|
42485
42505
|
"validate-registration-username",
|
|
42486
42506
|
"pre-user-deletion",
|
|
42487
42507
|
"post-user-deletion"
|
|
@@ -42494,7 +42514,7 @@ export declare const hookSchema: z.ZodUnion<[
|
|
|
42494
42514
|
updated_at: string;
|
|
42495
42515
|
url: string;
|
|
42496
42516
|
enabled: boolean;
|
|
42497
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
42517
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
42498
42518
|
synchronous: boolean;
|
|
42499
42519
|
hook_id: string;
|
|
42500
42520
|
priority?: number | undefined;
|
|
@@ -42502,7 +42522,7 @@ export declare const hookSchema: z.ZodUnion<[
|
|
|
42502
42522
|
created_at: string;
|
|
42503
42523
|
updated_at: string;
|
|
42504
42524
|
url: string;
|
|
42505
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
42525
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
42506
42526
|
hook_id: string;
|
|
42507
42527
|
enabled?: boolean | undefined;
|
|
42508
42528
|
synchronous?: boolean | undefined;
|
|
@@ -42547,12 +42567,15 @@ export declare const hookSchema: z.ZodUnion<[
|
|
|
42547
42567
|
hook_id: z.ZodString;
|
|
42548
42568
|
template_id: z.ZodEnum<[
|
|
42549
42569
|
"ensure-username",
|
|
42550
|
-
"set-preferred-username"
|
|
42570
|
+
"set-preferred-username",
|
|
42571
|
+
"account-linking"
|
|
42551
42572
|
]>;
|
|
42552
42573
|
created_at: z.ZodString;
|
|
42553
42574
|
updated_at: z.ZodString;
|
|
42554
42575
|
trigger_id: z.ZodEnum<[
|
|
42555
42576
|
"post-user-login",
|
|
42577
|
+
"post-user-registration",
|
|
42578
|
+
"post-user-update",
|
|
42556
42579
|
"credentials-exchange"
|
|
42557
42580
|
]>;
|
|
42558
42581
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -42562,17 +42585,17 @@ export declare const hookSchema: z.ZodUnion<[
|
|
|
42562
42585
|
created_at: string;
|
|
42563
42586
|
updated_at: string;
|
|
42564
42587
|
enabled: boolean;
|
|
42565
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
42588
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
42566
42589
|
synchronous: boolean;
|
|
42567
42590
|
hook_id: string;
|
|
42568
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
42591
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
42569
42592
|
priority?: number | undefined;
|
|
42570
42593
|
}, {
|
|
42571
42594
|
created_at: string;
|
|
42572
42595
|
updated_at: string;
|
|
42573
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
42596
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
42574
42597
|
hook_id: string;
|
|
42575
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
42598
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
42576
42599
|
enabled?: boolean | undefined;
|
|
42577
42600
|
synchronous?: boolean | undefined;
|
|
42578
42601
|
priority?: number | undefined;
|
|
@@ -51206,6 +51229,10 @@ declare const enrichedClientSchema: z.ZodObject<{
|
|
|
51206
51229
|
"iat_dcr"
|
|
51207
51230
|
]>>;
|
|
51208
51231
|
registration_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
51232
|
+
user_linking_mode: z.ZodOptional<z.ZodEnum<[
|
|
51233
|
+
"builtin",
|
|
51234
|
+
"off"
|
|
51235
|
+
]>>;
|
|
51209
51236
|
created_at: z.ZodString;
|
|
51210
51237
|
updated_at: z.ZodString;
|
|
51211
51238
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -51510,6 +51537,7 @@ declare const enrichedClientSchema: z.ZodObject<{
|
|
|
51510
51537
|
owner_user_id?: string | undefined;
|
|
51511
51538
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
51512
51539
|
registration_metadata?: Record<string, any> | undefined;
|
|
51540
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
51513
51541
|
}, {
|
|
51514
51542
|
name: string;
|
|
51515
51543
|
tenant: {
|
|
@@ -51812,6 +51840,7 @@ declare const enrichedClientSchema: z.ZodObject<{
|
|
|
51812
51840
|
owner_user_id?: string | undefined;
|
|
51813
51841
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
51814
51842
|
registration_metadata?: Record<string, any> | undefined;
|
|
51843
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
51815
51844
|
}>;
|
|
51816
51845
|
export type EnrichedClient = z.infer<typeof enrichedClientSchema>;
|
|
51817
51846
|
/** Context passed to entity hooks */
|
|
@@ -52157,6 +52186,26 @@ export interface OutboxConfig {
|
|
|
52157
52186
|
/** Max delivery retries before giving up on an event (default: 5) */
|
|
52158
52187
|
maxRetries?: number;
|
|
52159
52188
|
}
|
|
52189
|
+
/**
|
|
52190
|
+
* Mode for the built-in email-based user linking path.
|
|
52191
|
+
*
|
|
52192
|
+
* - `"builtin"` — `commitUserHook` runs the email→primary lookup at user
|
|
52193
|
+
* creation and email update, linking by verified email match. Default
|
|
52194
|
+
* for backwards compatibility.
|
|
52195
|
+
* - `"off"` — built-in lookup is skipped. Linking only happens if the
|
|
52196
|
+
* tenant has enabled the `account-linking` template hook for the
|
|
52197
|
+
* relevant trigger (`post-user-registration`, `post-user-update`, or
|
|
52198
|
+
* `post-user-login`).
|
|
52199
|
+
*
|
|
52200
|
+
* The template hook is controlled independently via the management API,
|
|
52201
|
+
* so a tenant on `"builtin"` mode can still enable the template at
|
|
52202
|
+
* `post-user-login` to catch legacy unlinked accounts. Running both at
|
|
52203
|
+
* the same trigger is harmless but redundant — the template no-ops once
|
|
52204
|
+
* the built-in has set `linked_to`.
|
|
52205
|
+
*
|
|
52206
|
+
* A per-client `user_linking_mode` overrides this service-level default.
|
|
52207
|
+
*/
|
|
52208
|
+
export type UserLinkingMode = "builtin" | "off";
|
|
52160
52209
|
export interface AuthHeroConfig {
|
|
52161
52210
|
dataAdapter: DataAdapters;
|
|
52162
52211
|
/**
|
|
@@ -52343,6 +52392,16 @@ export interface AuthHeroConfig {
|
|
|
52343
52392
|
* by a background relay to the logs table (and other destinations).
|
|
52344
52393
|
*/
|
|
52345
52394
|
outbox?: OutboxConfig;
|
|
52395
|
+
/**
|
|
52396
|
+
* Default mode for the built-in email-based user-linking path.
|
|
52397
|
+
*
|
|
52398
|
+
* Controls whether `linkUsersHook` performs an automatic primary-user
|
|
52399
|
+
* lookup by verified email at user creation and email update. A per-client
|
|
52400
|
+
* `user_linking_mode` setting overrides this default.
|
|
52401
|
+
*
|
|
52402
|
+
* @default "builtin"
|
|
52403
|
+
*/
|
|
52404
|
+
userLinkingMode?: UserLinkingMode;
|
|
52346
52405
|
}
|
|
52347
52406
|
export type UserInfo = {
|
|
52348
52407
|
sub: string;
|
|
@@ -52402,6 +52461,7 @@ export type Bindings = {
|
|
|
52402
52461
|
codeExecutor?: CodeExecutor;
|
|
52403
52462
|
webhookInvoker?: WebhookInvoker;
|
|
52404
52463
|
outbox?: OutboxConfig;
|
|
52464
|
+
userLinkingMode?: UserLinkingMode;
|
|
52405
52465
|
};
|
|
52406
52466
|
export interface CreateX509CertificateParams {
|
|
52407
52467
|
name: string;
|
|
@@ -53229,7 +53289,14 @@ export interface AccountLinkingOptions {
|
|
|
53229
53289
|
*/
|
|
53230
53290
|
requireVerifiedEmail?: boolean;
|
|
53231
53291
|
}
|
|
53232
|
-
|
|
53292
|
+
/**
|
|
53293
|
+
* Trigger-agnostic event handler used by all `account-linking` template
|
|
53294
|
+
* dispatch sites. It accepts the same shape as `OnExecutePostLogin` but
|
|
53295
|
+
* ignores the trigger-specific `api` object, which lets the same function
|
|
53296
|
+
* back `post-user-login`, `post-user-registration`, and `post-user-update`.
|
|
53297
|
+
*/
|
|
53298
|
+
export type AccountLinkingHandler = (event: HookEvent) => Promise<void>;
|
|
53299
|
+
declare function accountLinking(options?: AccountLinkingOptions): OnExecutePostLogin & AccountLinkingHandler;
|
|
53233
53300
|
/**
|
|
53234
53301
|
* Local code executor using `new Function()`.
|
|
53235
53302
|
* Suitable for local development only — no isolation or sandboxing.
|
|
@@ -60814,7 +60881,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
60814
60881
|
updated_at: string;
|
|
60815
60882
|
url: string;
|
|
60816
60883
|
enabled: boolean;
|
|
60817
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
60884
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
60818
60885
|
synchronous: boolean;
|
|
60819
60886
|
hook_id: string;
|
|
60820
60887
|
priority?: number | undefined | undefined;
|
|
@@ -60831,10 +60898,10 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
60831
60898
|
created_at: string;
|
|
60832
60899
|
updated_at: string;
|
|
60833
60900
|
enabled: boolean;
|
|
60834
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
60901
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
60835
60902
|
synchronous: boolean;
|
|
60836
60903
|
hook_id: string;
|
|
60837
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
60904
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
60838
60905
|
priority?: number | undefined | undefined;
|
|
60839
60906
|
} | {
|
|
60840
60907
|
created_at: string;
|
|
@@ -60854,7 +60921,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
60854
60921
|
updated_at: string;
|
|
60855
60922
|
url: string;
|
|
60856
60923
|
enabled: boolean;
|
|
60857
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
60924
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
60858
60925
|
synchronous: boolean;
|
|
60859
60926
|
hook_id: string;
|
|
60860
60927
|
priority?: number | undefined | undefined;
|
|
@@ -60871,10 +60938,10 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
60871
60938
|
created_at: string;
|
|
60872
60939
|
updated_at: string;
|
|
60873
60940
|
enabled: boolean;
|
|
60874
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
60941
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
60875
60942
|
synchronous: boolean;
|
|
60876
60943
|
hook_id: string;
|
|
60877
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
60944
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
60878
60945
|
priority?: number | undefined | undefined;
|
|
60879
60946
|
} | {
|
|
60880
60947
|
created_at: string;
|
|
@@ -60902,7 +60969,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
60902
60969
|
} & {
|
|
60903
60970
|
json: {
|
|
60904
60971
|
url: string;
|
|
60905
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
60972
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
60906
60973
|
enabled?: boolean | undefined;
|
|
60907
60974
|
synchronous?: boolean | undefined;
|
|
60908
60975
|
priority?: number | undefined;
|
|
@@ -60915,8 +60982,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
60915
60982
|
priority?: number | undefined;
|
|
60916
60983
|
hook_id?: string | undefined;
|
|
60917
60984
|
} | {
|
|
60918
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
60919
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
60985
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
60986
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
60920
60987
|
enabled?: boolean | undefined;
|
|
60921
60988
|
synchronous?: boolean | undefined;
|
|
60922
60989
|
priority?: number | undefined;
|
|
@@ -60935,7 +61002,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
60935
61002
|
updated_at: string;
|
|
60936
61003
|
url: string;
|
|
60937
61004
|
enabled: boolean;
|
|
60938
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
61005
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
60939
61006
|
synchronous: boolean;
|
|
60940
61007
|
hook_id: string;
|
|
60941
61008
|
priority?: number | undefined | undefined;
|
|
@@ -60952,10 +61019,10 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
60952
61019
|
created_at: string;
|
|
60953
61020
|
updated_at: string;
|
|
60954
61021
|
enabled: boolean;
|
|
60955
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
61022
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
60956
61023
|
synchronous: boolean;
|
|
60957
61024
|
hook_id: string;
|
|
60958
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
61025
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
60959
61026
|
priority?: number | undefined | undefined;
|
|
60960
61027
|
} | {
|
|
60961
61028
|
created_at: string;
|
|
@@ -61005,7 +61072,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
61005
61072
|
updated_at: string;
|
|
61006
61073
|
url: string;
|
|
61007
61074
|
enabled: boolean;
|
|
61008
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
61075
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
61009
61076
|
synchronous: boolean;
|
|
61010
61077
|
hook_id: string;
|
|
61011
61078
|
priority?: number | undefined | undefined;
|
|
@@ -61022,10 +61089,10 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
61022
61089
|
created_at: string;
|
|
61023
61090
|
updated_at: string;
|
|
61024
61091
|
enabled: boolean;
|
|
61025
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
61092
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
61026
61093
|
synchronous: boolean;
|
|
61027
61094
|
hook_id: string;
|
|
61028
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
61095
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
61029
61096
|
priority?: number | undefined | undefined;
|
|
61030
61097
|
} | {
|
|
61031
61098
|
created_at: string;
|
|
@@ -61071,7 +61138,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
61071
61138
|
updated_at: string;
|
|
61072
61139
|
url: string;
|
|
61073
61140
|
enabled: boolean;
|
|
61074
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
61141
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
61075
61142
|
synchronous: boolean;
|
|
61076
61143
|
hook_id: string;
|
|
61077
61144
|
priority?: number | undefined | undefined;
|
|
@@ -61088,10 +61155,10 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
61088
61155
|
created_at: string;
|
|
61089
61156
|
updated_at: string;
|
|
61090
61157
|
enabled: boolean;
|
|
61091
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
61158
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
61092
61159
|
synchronous: boolean;
|
|
61093
61160
|
hook_id: string;
|
|
61094
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
61161
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
61095
61162
|
priority?: number | undefined | undefined;
|
|
61096
61163
|
} | {
|
|
61097
61164
|
created_at: string;
|
|
@@ -61721,6 +61788,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
61721
61788
|
registration_metadata?: {
|
|
61722
61789
|
[x: string]: any;
|
|
61723
61790
|
} | undefined;
|
|
61791
|
+
user_linking_mode?: "builtin" | "off" | undefined | undefined;
|
|
61724
61792
|
}[] | {
|
|
61725
61793
|
length: number;
|
|
61726
61794
|
start: number;
|
|
@@ -61809,6 +61877,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
61809
61877
|
registration_metadata?: {
|
|
61810
61878
|
[x: string]: any;
|
|
61811
61879
|
} | undefined;
|
|
61880
|
+
user_linking_mode?: "builtin" | "off" | undefined | undefined;
|
|
61812
61881
|
}[];
|
|
61813
61882
|
total?: number | undefined;
|
|
61814
61883
|
};
|
|
@@ -61912,6 +61981,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
61912
61981
|
registration_metadata?: {
|
|
61913
61982
|
[x: string]: any;
|
|
61914
61983
|
} | undefined;
|
|
61984
|
+
user_linking_mode?: "builtin" | "off" | undefined | undefined;
|
|
61915
61985
|
};
|
|
61916
61986
|
outputFormat: "json";
|
|
61917
61987
|
status: 200;
|
|
@@ -61998,6 +62068,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
61998
62068
|
owner_user_id?: string | undefined;
|
|
61999
62069
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
62000
62070
|
registration_metadata?: Record<string, any> | undefined;
|
|
62071
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
62001
62072
|
};
|
|
62002
62073
|
};
|
|
62003
62074
|
output: {
|
|
@@ -62084,6 +62155,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
62084
62155
|
registration_metadata?: {
|
|
62085
62156
|
[x: string]: any;
|
|
62086
62157
|
} | undefined;
|
|
62158
|
+
user_linking_mode?: "builtin" | "off" | undefined | undefined;
|
|
62087
62159
|
};
|
|
62088
62160
|
outputFormat: "json";
|
|
62089
62161
|
status: 200;
|
|
@@ -62149,6 +62221,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
62149
62221
|
owner_user_id?: string | undefined;
|
|
62150
62222
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
62151
62223
|
registration_metadata?: Record<string, any> | undefined;
|
|
62224
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
62152
62225
|
};
|
|
62153
62226
|
};
|
|
62154
62227
|
output: {
|
|
@@ -62235,6 +62308,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
62235
62308
|
registration_metadata?: {
|
|
62236
62309
|
[x: string]: any;
|
|
62237
62310
|
} | undefined;
|
|
62311
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
62238
62312
|
};
|
|
62239
62313
|
outputFormat: "json";
|
|
62240
62314
|
status: 201;
|