@authhero/kysely-adapter 10.33.0 → 10.35.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/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +188 -224
- package/dist/kysely-adapter.mjs +1784 -1655
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -5540,62 +5540,41 @@ declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
5540
5540
|
}, {
|
|
5541
5541
|
bound_access_tokens?: boolean | undefined;
|
|
5542
5542
|
}>>;
|
|
5543
|
-
}, "
|
|
5544
|
-
token_dialect
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
5552
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
5553
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
5554
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
5555
|
-
}, "strip", z.ZodTypeAny, {
|
|
5556
|
-
bound_access_tokens?: boolean | undefined;
|
|
5557
|
-
}, {
|
|
5558
|
-
bound_access_tokens?: boolean | undefined;
|
|
5559
|
-
}>>;
|
|
5560
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5561
|
-
token_dialect: z.ZodOptional<z.ZodEnum<[
|
|
5562
|
-
"access_token",
|
|
5563
|
-
"access_token_authz"
|
|
5564
|
-
]>>;
|
|
5565
|
-
enforce_policies: z.ZodOptional<z.ZodBoolean>;
|
|
5566
|
-
allow_skipping_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
5567
|
-
skip_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
5568
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
5569
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
5570
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
5571
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
5572
|
-
}, "strip", z.ZodTypeAny, {
|
|
5543
|
+
}, "strip", z.ZodTypeAny, {
|
|
5544
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
5545
|
+
enforce_policies?: boolean | undefined;
|
|
5546
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
5547
|
+
skip_userinfo?: boolean | undefined;
|
|
5548
|
+
persist_client_authorization?: boolean | undefined;
|
|
5549
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
5550
|
+
mtls?: {
|
|
5573
5551
|
bound_access_tokens?: boolean | undefined;
|
|
5574
|
-
}
|
|
5552
|
+
} | undefined;
|
|
5553
|
+
}, {
|
|
5554
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
5555
|
+
enforce_policies?: boolean | undefined;
|
|
5556
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
5557
|
+
skip_userinfo?: boolean | undefined;
|
|
5558
|
+
persist_client_authorization?: boolean | undefined;
|
|
5559
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
5560
|
+
mtls?: {
|
|
5575
5561
|
bound_access_tokens?: boolean | undefined;
|
|
5576
|
-
}
|
|
5577
|
-
}
|
|
5562
|
+
} | undefined;
|
|
5563
|
+
}>>;
|
|
5578
5564
|
}, "strip", z.ZodTypeAny, {
|
|
5579
5565
|
name: string;
|
|
5580
5566
|
identifier: string;
|
|
5581
|
-
options?:
|
|
5582
|
-
token_dialect
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
5590
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
5591
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
5592
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
5593
|
-
}, "strip", z.ZodTypeAny, {
|
|
5594
|
-
bound_access_tokens?: boolean | undefined;
|
|
5595
|
-
}, {
|
|
5567
|
+
options?: {
|
|
5568
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
5569
|
+
enforce_policies?: boolean | undefined;
|
|
5570
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
5571
|
+
skip_userinfo?: boolean | undefined;
|
|
5572
|
+
persist_client_authorization?: boolean | undefined;
|
|
5573
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
5574
|
+
mtls?: {
|
|
5596
5575
|
bound_access_tokens?: boolean | undefined;
|
|
5597
|
-
}
|
|
5598
|
-
}
|
|
5576
|
+
} | undefined;
|
|
5577
|
+
} | undefined;
|
|
5599
5578
|
scopes?: {
|
|
5600
5579
|
value: string;
|
|
5601
5580
|
description?: string | undefined;
|
|
@@ -5610,24 +5589,17 @@ declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
5610
5589
|
}, {
|
|
5611
5590
|
name: string;
|
|
5612
5591
|
identifier: string;
|
|
5613
|
-
options?:
|
|
5614
|
-
token_dialect
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
5622
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
5623
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
5624
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
5625
|
-
}, "strip", z.ZodTypeAny, {
|
|
5626
|
-
bound_access_tokens?: boolean | undefined;
|
|
5627
|
-
}, {
|
|
5592
|
+
options?: {
|
|
5593
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
5594
|
+
enforce_policies?: boolean | undefined;
|
|
5595
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
5596
|
+
skip_userinfo?: boolean | undefined;
|
|
5597
|
+
persist_client_authorization?: boolean | undefined;
|
|
5598
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
5599
|
+
mtls?: {
|
|
5628
5600
|
bound_access_tokens?: boolean | undefined;
|
|
5629
|
-
}
|
|
5630
|
-
}
|
|
5601
|
+
} | undefined;
|
|
5602
|
+
} | undefined;
|
|
5631
5603
|
scopes?: {
|
|
5632
5604
|
value: string;
|
|
5633
5605
|
description?: string | undefined;
|
|
@@ -5680,63 +5652,42 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
5680
5652
|
}, {
|
|
5681
5653
|
bound_access_tokens?: boolean | undefined;
|
|
5682
5654
|
}>>;
|
|
5683
|
-
}, "
|
|
5684
|
-
token_dialect
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
5692
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
5693
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
5694
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
5695
|
-
}, "strip", z.ZodTypeAny, {
|
|
5696
|
-
bound_access_tokens?: boolean | undefined;
|
|
5697
|
-
}, {
|
|
5698
|
-
bound_access_tokens?: boolean | undefined;
|
|
5699
|
-
}>>;
|
|
5700
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5701
|
-
token_dialect: z.ZodOptional<z.ZodEnum<[
|
|
5702
|
-
"access_token",
|
|
5703
|
-
"access_token_authz"
|
|
5704
|
-
]>>;
|
|
5705
|
-
enforce_policies: z.ZodOptional<z.ZodBoolean>;
|
|
5706
|
-
allow_skipping_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
5707
|
-
skip_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
5708
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
5709
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
5710
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
5711
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
5712
|
-
}, "strip", z.ZodTypeAny, {
|
|
5655
|
+
}, "strip", z.ZodTypeAny, {
|
|
5656
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
5657
|
+
enforce_policies?: boolean | undefined;
|
|
5658
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
5659
|
+
skip_userinfo?: boolean | undefined;
|
|
5660
|
+
persist_client_authorization?: boolean | undefined;
|
|
5661
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
5662
|
+
mtls?: {
|
|
5713
5663
|
bound_access_tokens?: boolean | undefined;
|
|
5714
|
-
}
|
|
5664
|
+
} | undefined;
|
|
5665
|
+
}, {
|
|
5666
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
5667
|
+
enforce_policies?: boolean | undefined;
|
|
5668
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
5669
|
+
skip_userinfo?: boolean | undefined;
|
|
5670
|
+
persist_client_authorization?: boolean | undefined;
|
|
5671
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
5672
|
+
mtls?: {
|
|
5715
5673
|
bound_access_tokens?: boolean | undefined;
|
|
5716
|
-
}
|
|
5717
|
-
}
|
|
5674
|
+
} | undefined;
|
|
5675
|
+
}>>;
|
|
5718
5676
|
id: z.ZodOptional<z.ZodString>;
|
|
5719
5677
|
}, "strip", z.ZodTypeAny, {
|
|
5720
5678
|
name: string;
|
|
5721
5679
|
identifier: string;
|
|
5722
|
-
options?:
|
|
5723
|
-
token_dialect
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
5731
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
5732
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
5733
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
5734
|
-
}, "strip", z.ZodTypeAny, {
|
|
5735
|
-
bound_access_tokens?: boolean | undefined;
|
|
5736
|
-
}, {
|
|
5680
|
+
options?: {
|
|
5681
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
5682
|
+
enforce_policies?: boolean | undefined;
|
|
5683
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
5684
|
+
skip_userinfo?: boolean | undefined;
|
|
5685
|
+
persist_client_authorization?: boolean | undefined;
|
|
5686
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
5687
|
+
mtls?: {
|
|
5737
5688
|
bound_access_tokens?: boolean | undefined;
|
|
5738
|
-
}
|
|
5739
|
-
}
|
|
5689
|
+
} | undefined;
|
|
5690
|
+
} | undefined;
|
|
5740
5691
|
created_at?: string | undefined;
|
|
5741
5692
|
updated_at?: string | undefined;
|
|
5742
5693
|
id?: string | undefined;
|
|
@@ -5754,24 +5705,17 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
5754
5705
|
}, {
|
|
5755
5706
|
name: string;
|
|
5756
5707
|
identifier: string;
|
|
5757
|
-
options?:
|
|
5758
|
-
token_dialect
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
5766
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
5767
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
5768
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
5769
|
-
}, "strip", z.ZodTypeAny, {
|
|
5770
|
-
bound_access_tokens?: boolean | undefined;
|
|
5771
|
-
}, {
|
|
5708
|
+
options?: {
|
|
5709
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
5710
|
+
enforce_policies?: boolean | undefined;
|
|
5711
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
5712
|
+
skip_userinfo?: boolean | undefined;
|
|
5713
|
+
persist_client_authorization?: boolean | undefined;
|
|
5714
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
5715
|
+
mtls?: {
|
|
5772
5716
|
bound_access_tokens?: boolean | undefined;
|
|
5773
|
-
}
|
|
5774
|
-
}
|
|
5717
|
+
} | undefined;
|
|
5718
|
+
} | undefined;
|
|
5775
5719
|
created_at?: string | undefined;
|
|
5776
5720
|
updated_at?: string | undefined;
|
|
5777
5721
|
id?: string | undefined;
|
|
@@ -5788,69 +5732,80 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
5788
5732
|
verificationKey?: string | undefined;
|
|
5789
5733
|
}>;
|
|
5790
5734
|
export type ResourceServer = z.infer<typeof resourceServerSchema>;
|
|
5791
|
-
declare const
|
|
5735
|
+
declare const rolePermissionInsertSchema: z.ZodObject<{
|
|
5736
|
+
role_id: z.ZodString;
|
|
5737
|
+
resource_server_identifier: z.ZodString;
|
|
5792
5738
|
permission_name: z.ZodString;
|
|
5793
|
-
|
|
5739
|
+
}, "strip", z.ZodTypeAny, {
|
|
5740
|
+
role_id: string;
|
|
5741
|
+
resource_server_identifier: string;
|
|
5742
|
+
permission_name: string;
|
|
5743
|
+
}, {
|
|
5744
|
+
role_id: string;
|
|
5745
|
+
resource_server_identifier: string;
|
|
5746
|
+
permission_name: string;
|
|
5747
|
+
}>;
|
|
5748
|
+
export type RolePermissionInsert = z.infer<typeof rolePermissionInsertSchema>;
|
|
5749
|
+
declare const rolePermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
|
|
5750
|
+
role_id: z.ZodString;
|
|
5794
5751
|
resource_server_identifier: z.ZodString;
|
|
5795
5752
|
resource_server_name: z.ZodString;
|
|
5796
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5797
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
5798
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5799
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5800
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5801
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
5802
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5803
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5804
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5805
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
5806
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5807
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5808
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5809
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
5810
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
5811
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5812
5753
|
permission_name: z.ZodString;
|
|
5813
5754
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5814
|
-
resource_server_identifier: z.ZodString;
|
|
5815
|
-
resource_server_name: z.ZodString;
|
|
5816
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5817
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
5818
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5819
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5820
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5821
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
5822
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5823
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5824
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5825
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
5826
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5827
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5828
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5829
5755
|
created_at: z.ZodOptional<z.ZodString>;
|
|
5830
|
-
|
|
5831
|
-
|
|
5756
|
+
}, "strip", z.ZodTypeAny, {
|
|
5757
|
+
role_id: string;
|
|
5758
|
+
resource_server_identifier: string;
|
|
5759
|
+
permission_name: string;
|
|
5760
|
+
resource_server_name: string;
|
|
5761
|
+
description?: string | null | undefined;
|
|
5762
|
+
created_at?: string | undefined;
|
|
5763
|
+
}, {
|
|
5764
|
+
role_id: string;
|
|
5765
|
+
resource_server_identifier: string;
|
|
5766
|
+
permission_name: string;
|
|
5767
|
+
resource_server_name: string;
|
|
5768
|
+
description?: string | null | undefined;
|
|
5769
|
+
created_at?: string | undefined;
|
|
5770
|
+
}>, "many">;
|
|
5771
|
+
export type RolePermissionWithDetailsList = z.infer<typeof rolePermissionWithDetailsListSchema>;
|
|
5772
|
+
declare const userPermissionInsertSchema: z.ZodObject<{
|
|
5773
|
+
user_id: z.ZodString;
|
|
5774
|
+
resource_server_identifier: z.ZodString;
|
|
5832
5775
|
permission_name: z.ZodString;
|
|
5833
|
-
|
|
5776
|
+
}, "strip", z.ZodTypeAny, {
|
|
5777
|
+
user_id: string;
|
|
5778
|
+
resource_server_identifier: string;
|
|
5779
|
+
permission_name: string;
|
|
5780
|
+
}, {
|
|
5781
|
+
user_id: string;
|
|
5782
|
+
resource_server_identifier: string;
|
|
5783
|
+
permission_name: string;
|
|
5784
|
+
}>;
|
|
5785
|
+
export type UserPermissionInsert = z.infer<typeof userPermissionInsertSchema>;
|
|
5786
|
+
declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
|
|
5787
|
+
user_id: z.ZodString;
|
|
5834
5788
|
resource_server_identifier: z.ZodString;
|
|
5835
5789
|
resource_server_name: z.ZodString;
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5839
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5840
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5841
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
5842
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5843
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5844
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5845
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
5846
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
5847
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
5848
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
5790
|
+
permission_name: z.ZodString;
|
|
5791
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5849
5792
|
created_at: z.ZodOptional<z.ZodString>;
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5793
|
+
}, "strip", z.ZodTypeAny, {
|
|
5794
|
+
user_id: string;
|
|
5795
|
+
resource_server_identifier: string;
|
|
5796
|
+
permission_name: string;
|
|
5797
|
+
resource_server_name: string;
|
|
5798
|
+
description?: string | null | undefined;
|
|
5799
|
+
created_at?: string | undefined;
|
|
5800
|
+
}, {
|
|
5801
|
+
user_id: string;
|
|
5802
|
+
resource_server_identifier: string;
|
|
5803
|
+
permission_name: string;
|
|
5804
|
+
resource_server_name: string;
|
|
5805
|
+
description?: string | null | undefined;
|
|
5806
|
+
created_at?: string | undefined;
|
|
5807
|
+
}>, "many">;
|
|
5808
|
+
export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
|
|
5854
5809
|
declare const roleInsertSchema: z.ZodObject<{
|
|
5855
5810
|
name: z.ZodString;
|
|
5856
5811
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -6044,15 +5999,15 @@ export interface ResourceServersAdapter {
|
|
|
6044
5999
|
update(tenant_id: string, id: string, resourceServer: Partial<ResourceServerInsert>): Promise<boolean>;
|
|
6045
6000
|
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
6046
6001
|
}
|
|
6047
|
-
export interface
|
|
6048
|
-
permissions:
|
|
6002
|
+
export interface RolePermissionsAdapter {
|
|
6003
|
+
assign(tenant_id: string, role_id: string, permissions: RolePermissionInsert[]): Promise<boolean>;
|
|
6004
|
+
remove(tenant_id: string, role_id: string, permissions: Pick<RolePermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
|
|
6005
|
+
list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionWithDetailsList>;
|
|
6049
6006
|
}
|
|
6050
|
-
export interface
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
list(tenant_id: string, params?: ListParams): Promise<
|
|
6054
|
-
update(tenant_id: string, permission_id: string, permission: Partial<PermissionInsert>): Promise<boolean>;
|
|
6055
|
-
remove(tenant_id: string, permission_id: string): Promise<boolean>;
|
|
6007
|
+
export interface UserPermissionsAdapter {
|
|
6008
|
+
assign(tenant_id: string, user_id: string, permissions: UserPermissionInsert[]): Promise<boolean>;
|
|
6009
|
+
remove(tenant_id: string, user_id: string, permissions: Pick<UserPermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
|
|
6010
|
+
list(tenant_id: string, user_id: string, params?: ListParams): Promise<UserPermissionWithDetailsList>;
|
|
6056
6011
|
}
|
|
6057
6012
|
export interface ListRolesResponse {
|
|
6058
6013
|
roles: Role[];
|
|
@@ -6085,7 +6040,8 @@ export interface DataAdapters {
|
|
|
6085
6040
|
promptSettings: PromptSettingsAdapter;
|
|
6086
6041
|
refreshTokens: RefreshTokensAdapter;
|
|
6087
6042
|
resourceServers: ResourceServersAdapter;
|
|
6088
|
-
|
|
6043
|
+
rolePermissions: RolePermissionsAdapter;
|
|
6044
|
+
userPermissions: UserPermissionsAdapter;
|
|
6089
6045
|
roles: RolesAdapter;
|
|
6090
6046
|
sessions: SessionsAdapter;
|
|
6091
6047
|
tenants: TenantsDataAdapter;
|
|
@@ -6806,58 +6762,65 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
|
6806
6762
|
token_lifetime?: number | undefined;
|
|
6807
6763
|
token_lifetime_for_web?: number | undefined;
|
|
6808
6764
|
}>;
|
|
6809
|
-
declare const
|
|
6765
|
+
declare const sqlRoleSchema: z.ZodObject<{
|
|
6810
6766
|
tenant_id: z.ZodString;
|
|
6811
|
-
sources: z.ZodOptional<z.ZodString>;
|
|
6812
6767
|
created_at: z.ZodString;
|
|
6813
6768
|
updated_at: z.ZodString;
|
|
6814
|
-
|
|
6815
|
-
description: z.ZodOptional<z.
|
|
6816
|
-
resource_server_identifier: z.ZodString;
|
|
6817
|
-
resource_server_name: z.ZodString;
|
|
6769
|
+
name: z.ZodString;
|
|
6770
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6818
6771
|
id: z.ZodString;
|
|
6819
6772
|
}, "strip", z.ZodTypeAny, {
|
|
6820
6773
|
tenant_id: string;
|
|
6821
6774
|
id: string;
|
|
6775
|
+
name: string;
|
|
6822
6776
|
created_at: string;
|
|
6823
6777
|
updated_at: string;
|
|
6824
|
-
|
|
6825
|
-
resource_server_identifier: string;
|
|
6826
|
-
resource_server_name: string;
|
|
6827
|
-
description?: string | null | undefined;
|
|
6828
|
-
sources?: string | undefined;
|
|
6778
|
+
description?: string | undefined;
|
|
6829
6779
|
}, {
|
|
6830
6780
|
tenant_id: string;
|
|
6831
6781
|
id: string;
|
|
6782
|
+
name: string;
|
|
6832
6783
|
created_at: string;
|
|
6833
6784
|
updated_at: string;
|
|
6785
|
+
description?: string | undefined;
|
|
6786
|
+
}>;
|
|
6787
|
+
declare const sqlRolePermissionSchema: z.ZodObject<{
|
|
6788
|
+
tenant_id: z.ZodString;
|
|
6789
|
+
role_id: z.ZodString;
|
|
6790
|
+
resource_server_identifier: z.ZodString;
|
|
6791
|
+
permission_name: z.ZodString;
|
|
6792
|
+
created_at: z.ZodString;
|
|
6793
|
+
}, "strip", z.ZodTypeAny, {
|
|
6794
|
+
tenant_id: string;
|
|
6795
|
+
created_at: string;
|
|
6796
|
+
role_id: string;
|
|
6797
|
+
resource_server_identifier: string;
|
|
6834
6798
|
permission_name: string;
|
|
6799
|
+
}, {
|
|
6800
|
+
tenant_id: string;
|
|
6801
|
+
created_at: string;
|
|
6802
|
+
role_id: string;
|
|
6835
6803
|
resource_server_identifier: string;
|
|
6836
|
-
|
|
6837
|
-
description?: string | null | undefined;
|
|
6838
|
-
sources?: string | undefined;
|
|
6804
|
+
permission_name: string;
|
|
6839
6805
|
}>;
|
|
6840
|
-
declare const
|
|
6806
|
+
declare const sqlUserPermissionSchema: z.ZodObject<{
|
|
6841
6807
|
tenant_id: z.ZodString;
|
|
6808
|
+
user_id: z.ZodString;
|
|
6809
|
+
resource_server_identifier: z.ZodString;
|
|
6810
|
+
permission_name: z.ZodString;
|
|
6842
6811
|
created_at: z.ZodString;
|
|
6843
|
-
updated_at: z.ZodString;
|
|
6844
|
-
name: z.ZodString;
|
|
6845
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6846
|
-
id: z.ZodString;
|
|
6847
6812
|
}, "strip", z.ZodTypeAny, {
|
|
6848
6813
|
tenant_id: string;
|
|
6849
|
-
id: string;
|
|
6850
|
-
name: string;
|
|
6851
6814
|
created_at: string;
|
|
6852
|
-
|
|
6853
|
-
|
|
6815
|
+
user_id: string;
|
|
6816
|
+
resource_server_identifier: string;
|
|
6817
|
+
permission_name: string;
|
|
6854
6818
|
}, {
|
|
6855
6819
|
tenant_id: string;
|
|
6856
|
-
id: string;
|
|
6857
|
-
name: string;
|
|
6858
6820
|
created_at: string;
|
|
6859
|
-
|
|
6860
|
-
|
|
6821
|
+
user_id: string;
|
|
6822
|
+
resource_server_identifier: string;
|
|
6823
|
+
permission_name: string;
|
|
6861
6824
|
}>;
|
|
6862
6825
|
export interface Database {
|
|
6863
6826
|
applications: z.infer<typeof sqlApplicationSchema>;
|
|
@@ -6885,7 +6848,8 @@ export interface Database {
|
|
|
6885
6848
|
tenants: Tenant;
|
|
6886
6849
|
themes: z.infer<typeof sqlThemeSchema>;
|
|
6887
6850
|
resource_servers: z.infer<typeof sqlResourceServerSchema>;
|
|
6888
|
-
|
|
6851
|
+
role_permissions: z.infer<typeof sqlRolePermissionSchema>;
|
|
6852
|
+
user_permissions: z.infer<typeof sqlUserPermissionSchema>;
|
|
6889
6853
|
roles: z.infer<typeof sqlRoleSchema>;
|
|
6890
6854
|
}
|
|
6891
6855
|
export declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;
|