@authhero/kysely-adapter 10.131.2 → 10.131.4
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/kysely-adapter.cjs +14 -14
- package/dist/kysely-adapter.d.ts +157 -16
- package/dist/kysely-adapter.mjs +1555 -1515
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -1881,6 +1881,10 @@ declare const clientInsertSchema: z.ZodObject<{
|
|
|
1881
1881
|
"iat_dcr"
|
|
1882
1882
|
]>>;
|
|
1883
1883
|
registration_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1884
|
+
user_linking_mode: z.ZodOptional<z.ZodEnum<[
|
|
1885
|
+
"builtin",
|
|
1886
|
+
"off"
|
|
1887
|
+
]>>;
|
|
1884
1888
|
}, "strip", z.ZodTypeAny, {
|
|
1885
1889
|
name: string;
|
|
1886
1890
|
client_id: string;
|
|
@@ -1933,6 +1937,7 @@ declare const clientInsertSchema: z.ZodObject<{
|
|
|
1933
1937
|
owner_user_id?: string | undefined;
|
|
1934
1938
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
1935
1939
|
registration_metadata?: Record<string, any> | undefined;
|
|
1940
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
1936
1941
|
}, {
|
|
1937
1942
|
name: string;
|
|
1938
1943
|
client_id: string;
|
|
@@ -1985,6 +1990,7 @@ declare const clientInsertSchema: z.ZodObject<{
|
|
|
1985
1990
|
owner_user_id?: string | undefined;
|
|
1986
1991
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
1987
1992
|
registration_metadata?: Record<string, any> | undefined;
|
|
1993
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
1988
1994
|
}>;
|
|
1989
1995
|
export type ClientInsert = z.input<typeof clientInsertSchema>;
|
|
1990
1996
|
declare const clientSchema: z.ZodObject<{
|
|
@@ -2087,6 +2093,10 @@ declare const clientSchema: z.ZodObject<{
|
|
|
2087
2093
|
"iat_dcr"
|
|
2088
2094
|
]>>;
|
|
2089
2095
|
registration_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2096
|
+
user_linking_mode: z.ZodOptional<z.ZodEnum<[
|
|
2097
|
+
"builtin",
|
|
2098
|
+
"off"
|
|
2099
|
+
]>>;
|
|
2090
2100
|
created_at: z.ZodString;
|
|
2091
2101
|
updated_at: z.ZodString;
|
|
2092
2102
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2143,6 +2153,7 @@ declare const clientSchema: z.ZodObject<{
|
|
|
2143
2153
|
owner_user_id?: string | undefined;
|
|
2144
2154
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
2145
2155
|
registration_metadata?: Record<string, any> | undefined;
|
|
2156
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
2146
2157
|
}, {
|
|
2147
2158
|
created_at: string;
|
|
2148
2159
|
updated_at: string;
|
|
@@ -2197,6 +2208,7 @@ declare const clientSchema: z.ZodObject<{
|
|
|
2197
2208
|
owner_user_id?: string | undefined;
|
|
2198
2209
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
2199
2210
|
registration_metadata?: Record<string, any> | undefined;
|
|
2211
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
2200
2212
|
}>;
|
|
2201
2213
|
export type Client = z.infer<typeof clientSchema>;
|
|
2202
2214
|
declare const clientGrantInsertSchema: z.ZodObject<{
|
|
@@ -15342,6 +15354,7 @@ declare const hookInsertSchema: z.ZodUnion<[
|
|
|
15342
15354
|
"pre-user-registration",
|
|
15343
15355
|
"post-user-registration",
|
|
15344
15356
|
"post-user-login",
|
|
15357
|
+
"post-user-update",
|
|
15345
15358
|
"validate-registration-username",
|
|
15346
15359
|
"pre-user-deletion",
|
|
15347
15360
|
"post-user-deletion"
|
|
@@ -15351,17 +15364,31 @@ declare const hookInsertSchema: z.ZodUnion<[
|
|
|
15351
15364
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
15352
15365
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
15353
15366
|
hook_id: z.ZodOptional<z.ZodString>;
|
|
15367
|
+
/**
|
|
15368
|
+
* Free-form key/value bag for hook properties. Two well-known keys:
|
|
15369
|
+
*
|
|
15370
|
+
* - `inheritable: true` — when set on a hook on the control-plane tenant,
|
|
15371
|
+
* the multi-tenancy sync surfaces this hook to sub-tenants (Phase 2).
|
|
15372
|
+
* - Template-specific options. Templates read their config here, e.g.
|
|
15373
|
+
* `account-linking` reads `copy_user_metadata: true` to merge secondary
|
|
15374
|
+
* user_metadata into the primary on link.
|
|
15375
|
+
*
|
|
15376
|
+
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
15377
|
+
*/
|
|
15378
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15354
15379
|
}, "strip", z.ZodTypeAny, {
|
|
15355
15380
|
url: string;
|
|
15356
15381
|
enabled: boolean;
|
|
15357
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15382
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15358
15383
|
synchronous: boolean;
|
|
15384
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15359
15385
|
priority?: number | undefined;
|
|
15360
15386
|
hook_id?: string | undefined;
|
|
15361
15387
|
}, {
|
|
15362
15388
|
url: string;
|
|
15363
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15389
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15364
15390
|
enabled?: boolean | undefined;
|
|
15391
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15365
15392
|
synchronous?: boolean | undefined;
|
|
15366
15393
|
priority?: number | undefined;
|
|
15367
15394
|
hook_id?: string | undefined;
|
|
@@ -15380,17 +15407,31 @@ declare const hookInsertSchema: z.ZodUnion<[
|
|
|
15380
15407
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
15381
15408
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
15382
15409
|
hook_id: z.ZodOptional<z.ZodString>;
|
|
15410
|
+
/**
|
|
15411
|
+
* Free-form key/value bag for hook properties. Two well-known keys:
|
|
15412
|
+
*
|
|
15413
|
+
* - `inheritable: true` — when set on a hook on the control-plane tenant,
|
|
15414
|
+
* the multi-tenancy sync surfaces this hook to sub-tenants (Phase 2).
|
|
15415
|
+
* - Template-specific options. Templates read their config here, e.g.
|
|
15416
|
+
* `account-linking` reads `copy_user_metadata: true` to merge secondary
|
|
15417
|
+
* user_metadata into the primary on link.
|
|
15418
|
+
*
|
|
15419
|
+
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
15420
|
+
*/
|
|
15421
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15383
15422
|
}, "strip", z.ZodTypeAny, {
|
|
15384
15423
|
enabled: boolean;
|
|
15385
15424
|
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15386
15425
|
synchronous: boolean;
|
|
15387
15426
|
form_id: string;
|
|
15427
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15388
15428
|
priority?: number | undefined;
|
|
15389
15429
|
hook_id?: string | undefined;
|
|
15390
15430
|
}, {
|
|
15391
15431
|
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15392
15432
|
form_id: string;
|
|
15393
15433
|
enabled?: boolean | undefined;
|
|
15434
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15394
15435
|
synchronous?: boolean | undefined;
|
|
15395
15436
|
priority?: number | undefined;
|
|
15396
15437
|
hook_id?: string | undefined;
|
|
@@ -15398,27 +15439,44 @@ declare const hookInsertSchema: z.ZodUnion<[
|
|
|
15398
15439
|
z.ZodObject<{
|
|
15399
15440
|
trigger_id: z.ZodEnum<[
|
|
15400
15441
|
"post-user-login",
|
|
15442
|
+
"post-user-registration",
|
|
15443
|
+
"post-user-update",
|
|
15401
15444
|
"credentials-exchange"
|
|
15402
15445
|
]>;
|
|
15403
15446
|
template_id: z.ZodEnum<[
|
|
15404
15447
|
"ensure-username",
|
|
15405
|
-
"set-preferred-username"
|
|
15448
|
+
"set-preferred-username",
|
|
15449
|
+
"account-linking"
|
|
15406
15450
|
]>;
|
|
15407
15451
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
15408
15452
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
15409
15453
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
15410
15454
|
hook_id: z.ZodOptional<z.ZodString>;
|
|
15455
|
+
/**
|
|
15456
|
+
* Free-form key/value bag for hook properties. Two well-known keys:
|
|
15457
|
+
*
|
|
15458
|
+
* - `inheritable: true` — when set on a hook on the control-plane tenant,
|
|
15459
|
+
* the multi-tenancy sync surfaces this hook to sub-tenants (Phase 2).
|
|
15460
|
+
* - Template-specific options. Templates read their config here, e.g.
|
|
15461
|
+
* `account-linking` reads `copy_user_metadata: true` to merge secondary
|
|
15462
|
+
* user_metadata into the primary on link.
|
|
15463
|
+
*
|
|
15464
|
+
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
15465
|
+
*/
|
|
15466
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15411
15467
|
}, "strip", z.ZodTypeAny, {
|
|
15412
15468
|
enabled: boolean;
|
|
15413
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
15469
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
15414
15470
|
synchronous: boolean;
|
|
15415
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
15471
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
15472
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15416
15473
|
priority?: number | undefined;
|
|
15417
15474
|
hook_id?: string | undefined;
|
|
15418
15475
|
}, {
|
|
15419
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
15420
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
15476
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
15477
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
15421
15478
|
enabled?: boolean | undefined;
|
|
15479
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15422
15480
|
synchronous?: boolean | undefined;
|
|
15423
15481
|
priority?: number | undefined;
|
|
15424
15482
|
hook_id?: string | undefined;
|
|
@@ -15435,17 +15493,31 @@ declare const hookInsertSchema: z.ZodUnion<[
|
|
|
15435
15493
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
15436
15494
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
15437
15495
|
hook_id: z.ZodOptional<z.ZodString>;
|
|
15496
|
+
/**
|
|
15497
|
+
* Free-form key/value bag for hook properties. Two well-known keys:
|
|
15498
|
+
*
|
|
15499
|
+
* - `inheritable: true` — when set on a hook on the control-plane tenant,
|
|
15500
|
+
* the multi-tenancy sync surfaces this hook to sub-tenants (Phase 2).
|
|
15501
|
+
* - Template-specific options. Templates read their config here, e.g.
|
|
15502
|
+
* `account-linking` reads `copy_user_metadata: true` to merge secondary
|
|
15503
|
+
* user_metadata into the primary on link.
|
|
15504
|
+
*
|
|
15505
|
+
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
15506
|
+
*/
|
|
15507
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15438
15508
|
}, "strip", z.ZodTypeAny, {
|
|
15439
15509
|
code_id: string;
|
|
15440
15510
|
enabled: boolean;
|
|
15441
15511
|
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
15442
15512
|
synchronous: boolean;
|
|
15513
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15443
15514
|
priority?: number | undefined;
|
|
15444
15515
|
hook_id?: string | undefined;
|
|
15445
15516
|
}, {
|
|
15446
15517
|
code_id: string;
|
|
15447
15518
|
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
15448
15519
|
enabled?: boolean | undefined;
|
|
15520
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15449
15521
|
synchronous?: boolean | undefined;
|
|
15450
15522
|
priority?: number | undefined;
|
|
15451
15523
|
hook_id?: string | undefined;
|
|
@@ -15462,6 +15534,7 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15462
15534
|
"pre-user-registration",
|
|
15463
15535
|
"post-user-registration",
|
|
15464
15536
|
"post-user-login",
|
|
15537
|
+
"post-user-update",
|
|
15465
15538
|
"validate-registration-username",
|
|
15466
15539
|
"pre-user-deletion",
|
|
15467
15540
|
"post-user-deletion"
|
|
@@ -15469,22 +15542,36 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15469
15542
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
15470
15543
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
15471
15544
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
15545
|
+
/**
|
|
15546
|
+
* Free-form key/value bag for hook properties. Two well-known keys:
|
|
15547
|
+
*
|
|
15548
|
+
* - `inheritable: true` — when set on a hook on the control-plane tenant,
|
|
15549
|
+
* the multi-tenancy sync surfaces this hook to sub-tenants (Phase 2).
|
|
15550
|
+
* - Template-specific options. Templates read their config here, e.g.
|
|
15551
|
+
* `account-linking` reads `copy_user_metadata: true` to merge secondary
|
|
15552
|
+
* user_metadata into the primary on link.
|
|
15553
|
+
*
|
|
15554
|
+
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
15555
|
+
*/
|
|
15556
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15472
15557
|
}, "strip", z.ZodTypeAny, {
|
|
15473
15558
|
created_at: string;
|
|
15474
15559
|
updated_at: string;
|
|
15475
15560
|
url: string;
|
|
15476
15561
|
enabled: boolean;
|
|
15477
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15562
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15478
15563
|
synchronous: boolean;
|
|
15479
15564
|
hook_id: string;
|
|
15565
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15480
15566
|
priority?: number | undefined;
|
|
15481
15567
|
}, {
|
|
15482
15568
|
created_at: string;
|
|
15483
15569
|
updated_at: string;
|
|
15484
15570
|
url: string;
|
|
15485
|
-
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15571
|
+
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
|
|
15486
15572
|
hook_id: string;
|
|
15487
15573
|
enabled?: boolean | undefined;
|
|
15574
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15488
15575
|
synchronous?: boolean | undefined;
|
|
15489
15576
|
priority?: number | undefined;
|
|
15490
15577
|
}>,
|
|
@@ -15504,6 +15591,18 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15504
15591
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
15505
15592
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
15506
15593
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
15594
|
+
/**
|
|
15595
|
+
* Free-form key/value bag for hook properties. Two well-known keys:
|
|
15596
|
+
*
|
|
15597
|
+
* - `inheritable: true` — when set on a hook on the control-plane tenant,
|
|
15598
|
+
* the multi-tenancy sync surfaces this hook to sub-tenants (Phase 2).
|
|
15599
|
+
* - Template-specific options. Templates read their config here, e.g.
|
|
15600
|
+
* `account-linking` reads `copy_user_metadata: true` to merge secondary
|
|
15601
|
+
* user_metadata into the primary on link.
|
|
15602
|
+
*
|
|
15603
|
+
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
15604
|
+
*/
|
|
15605
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15507
15606
|
}, "strip", z.ZodTypeAny, {
|
|
15508
15607
|
created_at: string;
|
|
15509
15608
|
updated_at: string;
|
|
@@ -15512,6 +15611,7 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15512
15611
|
synchronous: boolean;
|
|
15513
15612
|
hook_id: string;
|
|
15514
15613
|
form_id: string;
|
|
15614
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15515
15615
|
priority?: number | undefined;
|
|
15516
15616
|
}, {
|
|
15517
15617
|
created_at: string;
|
|
@@ -15520,6 +15620,7 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15520
15620
|
hook_id: string;
|
|
15521
15621
|
form_id: string;
|
|
15522
15622
|
enabled?: boolean | undefined;
|
|
15623
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15523
15624
|
synchronous?: boolean | undefined;
|
|
15524
15625
|
priority?: number | undefined;
|
|
15525
15626
|
}>,
|
|
@@ -15527,33 +15628,50 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15527
15628
|
hook_id: z.ZodString;
|
|
15528
15629
|
template_id: z.ZodEnum<[
|
|
15529
15630
|
"ensure-username",
|
|
15530
|
-
"set-preferred-username"
|
|
15631
|
+
"set-preferred-username",
|
|
15632
|
+
"account-linking"
|
|
15531
15633
|
]>;
|
|
15532
15634
|
created_at: z.ZodString;
|
|
15533
15635
|
updated_at: z.ZodString;
|
|
15534
15636
|
trigger_id: z.ZodEnum<[
|
|
15535
15637
|
"post-user-login",
|
|
15638
|
+
"post-user-registration",
|
|
15639
|
+
"post-user-update",
|
|
15536
15640
|
"credentials-exchange"
|
|
15537
15641
|
]>;
|
|
15538
15642
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
15539
15643
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
15540
15644
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
15645
|
+
/**
|
|
15646
|
+
* Free-form key/value bag for hook properties. Two well-known keys:
|
|
15647
|
+
*
|
|
15648
|
+
* - `inheritable: true` — when set on a hook on the control-plane tenant,
|
|
15649
|
+
* the multi-tenancy sync surfaces this hook to sub-tenants (Phase 2).
|
|
15650
|
+
* - Template-specific options. Templates read their config here, e.g.
|
|
15651
|
+
* `account-linking` reads `copy_user_metadata: true` to merge secondary
|
|
15652
|
+
* user_metadata into the primary on link.
|
|
15653
|
+
*
|
|
15654
|
+
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
15655
|
+
*/
|
|
15656
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15541
15657
|
}, "strip", z.ZodTypeAny, {
|
|
15542
15658
|
created_at: string;
|
|
15543
15659
|
updated_at: string;
|
|
15544
15660
|
enabled: boolean;
|
|
15545
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
15661
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
15546
15662
|
synchronous: boolean;
|
|
15547
15663
|
hook_id: string;
|
|
15548
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
15664
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
15665
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15549
15666
|
priority?: number | undefined;
|
|
15550
15667
|
}, {
|
|
15551
15668
|
created_at: string;
|
|
15552
15669
|
updated_at: string;
|
|
15553
|
-
trigger_id: "post-user-login" | "credentials-exchange";
|
|
15670
|
+
trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
|
|
15554
15671
|
hook_id: string;
|
|
15555
|
-
template_id: "ensure-username" | "set-preferred-username";
|
|
15672
|
+
template_id: "ensure-username" | "set-preferred-username" | "account-linking";
|
|
15556
15673
|
enabled?: boolean | undefined;
|
|
15674
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15557
15675
|
synchronous?: boolean | undefined;
|
|
15558
15676
|
priority?: number | undefined;
|
|
15559
15677
|
}>,
|
|
@@ -15571,6 +15689,18 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15571
15689
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
15572
15690
|
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
15573
15691
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
15692
|
+
/**
|
|
15693
|
+
* Free-form key/value bag for hook properties. Two well-known keys:
|
|
15694
|
+
*
|
|
15695
|
+
* - `inheritable: true` — when set on a hook on the control-plane tenant,
|
|
15696
|
+
* the multi-tenancy sync surfaces this hook to sub-tenants (Phase 2).
|
|
15697
|
+
* - Template-specific options. Templates read their config here, e.g.
|
|
15698
|
+
* `account-linking` reads `copy_user_metadata: true` to merge secondary
|
|
15699
|
+
* user_metadata into the primary on link.
|
|
15700
|
+
*
|
|
15701
|
+
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
15702
|
+
*/
|
|
15703
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15574
15704
|
}, "strip", z.ZodTypeAny, {
|
|
15575
15705
|
created_at: string;
|
|
15576
15706
|
updated_at: string;
|
|
@@ -15579,6 +15709,7 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15579
15709
|
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
15580
15710
|
synchronous: boolean;
|
|
15581
15711
|
hook_id: string;
|
|
15712
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15582
15713
|
priority?: number | undefined;
|
|
15583
15714
|
}, {
|
|
15584
15715
|
created_at: string;
|
|
@@ -15587,6 +15718,7 @@ declare const hookSchema: z.ZodUnion<[
|
|
|
15587
15718
|
trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
|
|
15588
15719
|
hook_id: string;
|
|
15589
15720
|
enabled?: boolean | undefined;
|
|
15721
|
+
metadata?: Record<string, unknown> | undefined;
|
|
15590
15722
|
synchronous?: boolean | undefined;
|
|
15591
15723
|
priority?: number | undefined;
|
|
15592
15724
|
}>
|
|
@@ -20344,6 +20476,7 @@ declare const sqlHookSchema: z.ZodObject<{
|
|
|
20344
20476
|
form_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20345
20477
|
template_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20346
20478
|
code_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20479
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20347
20480
|
}, "strip", z.ZodTypeAny, {
|
|
20348
20481
|
tenant_id: string;
|
|
20349
20482
|
created_at_ts: number;
|
|
@@ -20357,6 +20490,7 @@ declare const sqlHookSchema: z.ZodObject<{
|
|
|
20357
20490
|
form_id?: string | null | undefined;
|
|
20358
20491
|
template_id?: string | null | undefined;
|
|
20359
20492
|
code_id?: string | null | undefined;
|
|
20493
|
+
metadata?: string | null | undefined;
|
|
20360
20494
|
}, {
|
|
20361
20495
|
tenant_id: string;
|
|
20362
20496
|
created_at_ts: number;
|
|
@@ -20370,6 +20504,7 @@ declare const sqlHookSchema: z.ZodObject<{
|
|
|
20370
20504
|
form_id?: string | null | undefined;
|
|
20371
20505
|
template_id?: string | null | undefined;
|
|
20372
20506
|
code_id?: string | null | undefined;
|
|
20507
|
+
metadata?: string | null | undefined;
|
|
20373
20508
|
}>;
|
|
20374
20509
|
declare const sqlActionSchema: z.ZodObject<{
|
|
20375
20510
|
id: z.ZodString;
|
|
@@ -21032,9 +21167,9 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
|
21032
21167
|
token_lifetime_for_web: number;
|
|
21033
21168
|
is_system?: number | undefined;
|
|
21034
21169
|
id?: string | undefined;
|
|
21170
|
+
metadata?: string | undefined;
|
|
21035
21171
|
skip_consent_for_verifiable_first_party_clients?: number | undefined;
|
|
21036
21172
|
allow_offline_access?: number | undefined;
|
|
21037
|
-
metadata?: string | undefined;
|
|
21038
21173
|
verification_key?: string | undefined;
|
|
21039
21174
|
signing_alg?: string | undefined;
|
|
21040
21175
|
signing_secret?: string | undefined;
|
|
@@ -21047,10 +21182,10 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
|
21047
21182
|
options?: string | undefined;
|
|
21048
21183
|
is_system?: number | undefined;
|
|
21049
21184
|
id?: string | undefined;
|
|
21185
|
+
metadata?: string | undefined;
|
|
21050
21186
|
scopes?: string | undefined;
|
|
21051
21187
|
skip_consent_for_verifiable_first_party_clients?: number | undefined;
|
|
21052
21188
|
allow_offline_access?: number | undefined;
|
|
21053
|
-
metadata?: string | undefined;
|
|
21054
21189
|
verification_key?: string | undefined;
|
|
21055
21190
|
signing_alg?: string | undefined;
|
|
21056
21191
|
signing_secret?: string | undefined;
|
|
@@ -22014,6 +22149,10 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
22014
22149
|
"fapi2_sp_mtls_mtls"
|
|
22015
22150
|
]>>;
|
|
22016
22151
|
par_request_expiry: z.ZodOptional<z.ZodNumber>;
|
|
22152
|
+
user_linking_mode: z.ZodOptional<z.ZodEnum<[
|
|
22153
|
+
"builtin",
|
|
22154
|
+
"off"
|
|
22155
|
+
]>>;
|
|
22017
22156
|
created_at: z.ZodString;
|
|
22018
22157
|
updated_at: z.ZodString;
|
|
22019
22158
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22071,6 +22210,7 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
22071
22210
|
organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
|
|
22072
22211
|
compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
|
|
22073
22212
|
par_request_expiry?: number | undefined;
|
|
22213
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
22074
22214
|
}, {
|
|
22075
22215
|
tenant_id: string;
|
|
22076
22216
|
created_at: string;
|
|
@@ -22126,6 +22266,7 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
22126
22266
|
organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
|
|
22127
22267
|
compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
|
|
22128
22268
|
par_request_expiry?: number | undefined;
|
|
22269
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
22129
22270
|
}>;
|
|
22130
22271
|
declare const sqlClientRegistrationTokenSchema: z.ZodObject<{
|
|
22131
22272
|
id: z.ZodString;
|