@authhero/kysely-adapter 10.131.3 → 10.131.5

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.
@@ -15364,17 +15364,31 @@ declare const hookInsertSchema: z.ZodUnion<[
15364
15364
  synchronous: z.ZodDefault<z.ZodBoolean>;
15365
15365
  priority: z.ZodOptional<z.ZodNumber>;
15366
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>>;
15367
15379
  }, "strip", z.ZodTypeAny, {
15368
15380
  url: string;
15369
15381
  enabled: boolean;
15370
15382
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
15371
15383
  synchronous: boolean;
15384
+ metadata?: Record<string, unknown> | undefined;
15372
15385
  priority?: number | undefined;
15373
15386
  hook_id?: string | undefined;
15374
15387
  }, {
15375
15388
  url: string;
15376
15389
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
15377
15390
  enabled?: boolean | undefined;
15391
+ metadata?: Record<string, unknown> | undefined;
15378
15392
  synchronous?: boolean | undefined;
15379
15393
  priority?: number | undefined;
15380
15394
  hook_id?: string | undefined;
@@ -15393,17 +15407,31 @@ declare const hookInsertSchema: z.ZodUnion<[
15393
15407
  synchronous: z.ZodDefault<z.ZodBoolean>;
15394
15408
  priority: z.ZodOptional<z.ZodNumber>;
15395
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>>;
15396
15422
  }, "strip", z.ZodTypeAny, {
15397
15423
  enabled: boolean;
15398
15424
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
15399
15425
  synchronous: boolean;
15400
15426
  form_id: string;
15427
+ metadata?: Record<string, unknown> | undefined;
15401
15428
  priority?: number | undefined;
15402
15429
  hook_id?: string | undefined;
15403
15430
  }, {
15404
15431
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
15405
15432
  form_id: string;
15406
15433
  enabled?: boolean | undefined;
15434
+ metadata?: Record<string, unknown> | undefined;
15407
15435
  synchronous?: boolean | undefined;
15408
15436
  priority?: number | undefined;
15409
15437
  hook_id?: string | undefined;
@@ -15424,17 +15452,31 @@ declare const hookInsertSchema: z.ZodUnion<[
15424
15452
  synchronous: z.ZodDefault<z.ZodBoolean>;
15425
15453
  priority: z.ZodOptional<z.ZodNumber>;
15426
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>>;
15427
15467
  }, "strip", z.ZodTypeAny, {
15428
15468
  enabled: boolean;
15429
15469
  trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
15430
15470
  synchronous: boolean;
15431
15471
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
15472
+ metadata?: Record<string, unknown> | undefined;
15432
15473
  priority?: number | undefined;
15433
15474
  hook_id?: string | undefined;
15434
15475
  }, {
15435
15476
  trigger_id: "post-user-registration" | "post-user-login" | "post-user-update" | "credentials-exchange";
15436
15477
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
15437
15478
  enabled?: boolean | undefined;
15479
+ metadata?: Record<string, unknown> | undefined;
15438
15480
  synchronous?: boolean | undefined;
15439
15481
  priority?: number | undefined;
15440
15482
  hook_id?: string | undefined;
@@ -15451,17 +15493,31 @@ declare const hookInsertSchema: z.ZodUnion<[
15451
15493
  synchronous: z.ZodDefault<z.ZodBoolean>;
15452
15494
  priority: z.ZodOptional<z.ZodNumber>;
15453
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>>;
15454
15508
  }, "strip", z.ZodTypeAny, {
15455
15509
  code_id: string;
15456
15510
  enabled: boolean;
15457
15511
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
15458
15512
  synchronous: boolean;
15513
+ metadata?: Record<string, unknown> | undefined;
15459
15514
  priority?: number | undefined;
15460
15515
  hook_id?: string | undefined;
15461
15516
  }, {
15462
15517
  code_id: string;
15463
15518
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
15464
15519
  enabled?: boolean | undefined;
15520
+ metadata?: Record<string, unknown> | undefined;
15465
15521
  synchronous?: boolean | undefined;
15466
15522
  priority?: number | undefined;
15467
15523
  hook_id?: string | undefined;
@@ -15486,6 +15542,18 @@ declare const hookSchema: z.ZodUnion<[
15486
15542
  enabled: z.ZodDefault<z.ZodBoolean>;
15487
15543
  synchronous: z.ZodDefault<z.ZodBoolean>;
15488
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>>;
15489
15557
  }, "strip", z.ZodTypeAny, {
15490
15558
  created_at: string;
15491
15559
  updated_at: string;
@@ -15494,6 +15562,7 @@ declare const hookSchema: z.ZodUnion<[
15494
15562
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
15495
15563
  synchronous: boolean;
15496
15564
  hook_id: string;
15565
+ metadata?: Record<string, unknown> | undefined;
15497
15566
  priority?: number | undefined;
15498
15567
  }, {
15499
15568
  created_at: string;
@@ -15502,6 +15571,7 @@ declare const hookSchema: z.ZodUnion<[
15502
15571
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "post-user-update" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
15503
15572
  hook_id: string;
15504
15573
  enabled?: boolean | undefined;
15574
+ metadata?: Record<string, unknown> | undefined;
15505
15575
  synchronous?: boolean | undefined;
15506
15576
  priority?: number | undefined;
15507
15577
  }>,
@@ -15521,6 +15591,18 @@ declare const hookSchema: z.ZodUnion<[
15521
15591
  enabled: z.ZodDefault<z.ZodBoolean>;
15522
15592
  synchronous: z.ZodDefault<z.ZodBoolean>;
15523
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>>;
15524
15606
  }, "strip", z.ZodTypeAny, {
15525
15607
  created_at: string;
15526
15608
  updated_at: string;
@@ -15529,6 +15611,7 @@ declare const hookSchema: z.ZodUnion<[
15529
15611
  synchronous: boolean;
15530
15612
  hook_id: string;
15531
15613
  form_id: string;
15614
+ metadata?: Record<string, unknown> | undefined;
15532
15615
  priority?: number | undefined;
15533
15616
  }, {
15534
15617
  created_at: string;
@@ -15537,6 +15620,7 @@ declare const hookSchema: z.ZodUnion<[
15537
15620
  hook_id: string;
15538
15621
  form_id: string;
15539
15622
  enabled?: boolean | undefined;
15623
+ metadata?: Record<string, unknown> | undefined;
15540
15624
  synchronous?: boolean | undefined;
15541
15625
  priority?: number | undefined;
15542
15626
  }>,
@@ -15558,6 +15642,18 @@ declare const hookSchema: z.ZodUnion<[
15558
15642
  enabled: z.ZodDefault<z.ZodBoolean>;
15559
15643
  synchronous: z.ZodDefault<z.ZodBoolean>;
15560
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>>;
15561
15657
  }, "strip", z.ZodTypeAny, {
15562
15658
  created_at: string;
15563
15659
  updated_at: string;
@@ -15566,6 +15662,7 @@ declare const hookSchema: z.ZodUnion<[
15566
15662
  synchronous: boolean;
15567
15663
  hook_id: string;
15568
15664
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
15665
+ metadata?: Record<string, unknown> | undefined;
15569
15666
  priority?: number | undefined;
15570
15667
  }, {
15571
15668
  created_at: string;
@@ -15574,6 +15671,7 @@ declare const hookSchema: z.ZodUnion<[
15574
15671
  hook_id: string;
15575
15672
  template_id: "ensure-username" | "set-preferred-username" | "account-linking";
15576
15673
  enabled?: boolean | undefined;
15674
+ metadata?: Record<string, unknown> | undefined;
15577
15675
  synchronous?: boolean | undefined;
15578
15676
  priority?: number | undefined;
15579
15677
  }>,
@@ -15591,6 +15689,18 @@ declare const hookSchema: z.ZodUnion<[
15591
15689
  enabled: z.ZodDefault<z.ZodBoolean>;
15592
15690
  synchronous: z.ZodDefault<z.ZodBoolean>;
15593
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>>;
15594
15704
  }, "strip", z.ZodTypeAny, {
15595
15705
  created_at: string;
15596
15706
  updated_at: string;
@@ -15599,6 +15709,7 @@ declare const hookSchema: z.ZodUnion<[
15599
15709
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
15600
15710
  synchronous: boolean;
15601
15711
  hook_id: string;
15712
+ metadata?: Record<string, unknown> | undefined;
15602
15713
  priority?: number | undefined;
15603
15714
  }, {
15604
15715
  created_at: string;
@@ -15607,6 +15718,7 @@ declare const hookSchema: z.ZodUnion<[
15607
15718
  trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "credentials-exchange";
15608
15719
  hook_id: string;
15609
15720
  enabled?: boolean | undefined;
15721
+ metadata?: Record<string, unknown> | undefined;
15610
15722
  synchronous?: boolean | undefined;
15611
15723
  priority?: number | undefined;
15612
15724
  }>
@@ -20364,6 +20476,7 @@ declare const sqlHookSchema: z.ZodObject<{
20364
20476
  form_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20365
20477
  template_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20366
20478
  code_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20479
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20367
20480
  }, "strip", z.ZodTypeAny, {
20368
20481
  tenant_id: string;
20369
20482
  created_at_ts: number;
@@ -20377,6 +20490,7 @@ declare const sqlHookSchema: z.ZodObject<{
20377
20490
  form_id?: string | null | undefined;
20378
20491
  template_id?: string | null | undefined;
20379
20492
  code_id?: string | null | undefined;
20493
+ metadata?: string | null | undefined;
20380
20494
  }, {
20381
20495
  tenant_id: string;
20382
20496
  created_at_ts: number;
@@ -20390,6 +20504,7 @@ declare const sqlHookSchema: z.ZodObject<{
20390
20504
  form_id?: string | null | undefined;
20391
20505
  template_id?: string | null | undefined;
20392
20506
  code_id?: string | null | undefined;
20507
+ metadata?: string | null | undefined;
20393
20508
  }>;
20394
20509
  declare const sqlActionSchema: z.ZodObject<{
20395
20510
  id: z.ZodString;
@@ -21052,9 +21167,9 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
21052
21167
  token_lifetime_for_web: number;
21053
21168
  is_system?: number | undefined;
21054
21169
  id?: string | undefined;
21170
+ metadata?: string | undefined;
21055
21171
  skip_consent_for_verifiable_first_party_clients?: number | undefined;
21056
21172
  allow_offline_access?: number | undefined;
21057
- metadata?: string | undefined;
21058
21173
  verification_key?: string | undefined;
21059
21174
  signing_alg?: string | undefined;
21060
21175
  signing_secret?: string | undefined;
@@ -21067,10 +21182,10 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
21067
21182
  options?: string | undefined;
21068
21183
  is_system?: number | undefined;
21069
21184
  id?: string | undefined;
21185
+ metadata?: string | undefined;
21070
21186
  scopes?: string | undefined;
21071
21187
  skip_consent_for_verifiable_first_party_clients?: number | undefined;
21072
21188
  allow_offline_access?: number | undefined;
21073
- metadata?: string | undefined;
21074
21189
  verification_key?: string | undefined;
21075
21190
  signing_alg?: string | undefined;
21076
21191
  signing_secret?: string | undefined;