@objectstack/plugin-security 9.8.0 → 9.9.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/index.d.mts +54 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +68 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +68 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -125,6 +125,15 @@ declare class SecurityPlugin implements Plugin {
|
|
|
125
125
|
* underlying metadata/db resolution fails (callers fail-closed).
|
|
126
126
|
*/
|
|
127
127
|
private resolvePermissionSetsForContext;
|
|
128
|
+
/**
|
|
129
|
+
* Resolve a single scalar primary-key id from an update/delete operation
|
|
130
|
+
* context, mirroring the engine's "single-id vs predicate" rule
|
|
131
|
+
* (`engine.ts` update/delete): only a scalar `data.id` or `where.id`
|
|
132
|
+
* identifies one row. An operator object (`{ $in: [...] }`, …) is a
|
|
133
|
+
* multi-row predicate and returns `null` (multi-row writes route through the
|
|
134
|
+
* `*Many` paths, out of scope for the by-id pre-image check).
|
|
135
|
+
*/
|
|
136
|
+
private extractSingleId;
|
|
128
137
|
/**
|
|
129
138
|
* Compile the applicable RLS policies for (object, operation) into a single
|
|
130
139
|
* `FilterCondition`, applying the field-existence safety net (wildcard
|
|
@@ -415,6 +424,7 @@ declare const securityObjects: ((Omit<{
|
|
|
415
424
|
currencyMode: "fixed" | "dynamic";
|
|
416
425
|
defaultCurrency: string;
|
|
417
426
|
} | undefined;
|
|
427
|
+
dimensions?: number | undefined;
|
|
418
428
|
vectorConfig?: {
|
|
419
429
|
dimensions: number;
|
|
420
430
|
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
@@ -999,6 +1009,8 @@ declare const securityObjects: ((Omit<{
|
|
|
999
1009
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
1000
1010
|
confirmText?: string | undefined;
|
|
1001
1011
|
successMessage?: string | undefined;
|
|
1012
|
+
errorMessage?: string | undefined;
|
|
1013
|
+
undoable?: boolean | undefined;
|
|
1002
1014
|
resultDialog?: {
|
|
1003
1015
|
title?: string | undefined;
|
|
1004
1016
|
description?: string | undefined;
|
|
@@ -1271,6 +1283,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1271
1283
|
readonly system?: boolean | undefined;
|
|
1272
1284
|
readonly min?: number | undefined;
|
|
1273
1285
|
readonly max?: number | undefined;
|
|
1286
|
+
readonly dimensions?: number | undefined;
|
|
1274
1287
|
readonly columnName?: string | undefined;
|
|
1275
1288
|
readonly searchable?: boolean | undefined;
|
|
1276
1289
|
readonly unique?: boolean | undefined;
|
|
@@ -1425,6 +1438,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1425
1438
|
readonly system?: boolean | undefined;
|
|
1426
1439
|
readonly min?: number | undefined;
|
|
1427
1440
|
readonly max?: number | undefined;
|
|
1441
|
+
readonly dimensions?: number | undefined;
|
|
1428
1442
|
readonly columnName?: string | undefined;
|
|
1429
1443
|
readonly searchable?: boolean | undefined;
|
|
1430
1444
|
readonly unique?: boolean | undefined;
|
|
@@ -1579,6 +1593,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1579
1593
|
readonly system?: boolean | undefined;
|
|
1580
1594
|
readonly min?: number | undefined;
|
|
1581
1595
|
readonly max?: number | undefined;
|
|
1596
|
+
readonly dimensions?: number | undefined;
|
|
1582
1597
|
readonly columnName?: string | undefined;
|
|
1583
1598
|
readonly searchable?: boolean | undefined;
|
|
1584
1599
|
readonly unique?: boolean | undefined;
|
|
@@ -1733,6 +1748,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1733
1748
|
readonly system?: boolean | undefined;
|
|
1734
1749
|
readonly min?: number | undefined;
|
|
1735
1750
|
readonly max?: number | undefined;
|
|
1751
|
+
readonly dimensions?: number | undefined;
|
|
1736
1752
|
readonly columnName?: string | undefined;
|
|
1737
1753
|
readonly searchable?: boolean | undefined;
|
|
1738
1754
|
readonly unique?: boolean | undefined;
|
|
@@ -1887,6 +1903,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1887
1903
|
readonly system?: boolean | undefined;
|
|
1888
1904
|
readonly min?: number | undefined;
|
|
1889
1905
|
readonly max?: number | undefined;
|
|
1906
|
+
readonly dimensions?: number | undefined;
|
|
1890
1907
|
readonly columnName?: string | undefined;
|
|
1891
1908
|
readonly searchable?: boolean | undefined;
|
|
1892
1909
|
readonly unique?: boolean | undefined;
|
|
@@ -2041,6 +2058,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2041
2058
|
readonly system?: boolean | undefined;
|
|
2042
2059
|
readonly min?: number | undefined;
|
|
2043
2060
|
readonly max?: number | undefined;
|
|
2061
|
+
readonly dimensions?: number | undefined;
|
|
2044
2062
|
readonly columnName?: string | undefined;
|
|
2045
2063
|
readonly searchable?: boolean | undefined;
|
|
2046
2064
|
readonly unique?: boolean | undefined;
|
|
@@ -2195,6 +2213,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2195
2213
|
readonly system?: boolean | undefined;
|
|
2196
2214
|
readonly min?: number | undefined;
|
|
2197
2215
|
readonly max?: number | undefined;
|
|
2216
|
+
readonly dimensions?: number | undefined;
|
|
2198
2217
|
readonly columnName?: string | undefined;
|
|
2199
2218
|
readonly searchable?: boolean | undefined;
|
|
2200
2219
|
readonly unique?: boolean | undefined;
|
|
@@ -2349,6 +2368,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2349
2368
|
readonly system?: boolean | undefined;
|
|
2350
2369
|
readonly min?: number | undefined;
|
|
2351
2370
|
readonly max?: number | undefined;
|
|
2371
|
+
readonly dimensions?: number | undefined;
|
|
2352
2372
|
readonly columnName?: string | undefined;
|
|
2353
2373
|
readonly searchable?: boolean | undefined;
|
|
2354
2374
|
readonly unique?: boolean | undefined;
|
|
@@ -2503,6 +2523,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2503
2523
|
readonly system?: boolean | undefined;
|
|
2504
2524
|
readonly min?: number | undefined;
|
|
2505
2525
|
readonly max?: number | undefined;
|
|
2526
|
+
readonly dimensions?: number | undefined;
|
|
2506
2527
|
readonly columnName?: string | undefined;
|
|
2507
2528
|
readonly searchable?: boolean | undefined;
|
|
2508
2529
|
readonly unique?: boolean | undefined;
|
|
@@ -2725,6 +2746,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2725
2746
|
currencyMode: "fixed" | "dynamic";
|
|
2726
2747
|
defaultCurrency: string;
|
|
2727
2748
|
} | undefined;
|
|
2749
|
+
dimensions?: number | undefined;
|
|
2728
2750
|
vectorConfig?: {
|
|
2729
2751
|
dimensions: number;
|
|
2730
2752
|
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
@@ -3309,6 +3331,8 @@ declare const securityObjects: ((Omit<{
|
|
|
3309
3331
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
3310
3332
|
confirmText?: string | undefined;
|
|
3311
3333
|
successMessage?: string | undefined;
|
|
3334
|
+
errorMessage?: string | undefined;
|
|
3335
|
+
undoable?: boolean | undefined;
|
|
3312
3336
|
resultDialog?: {
|
|
3313
3337
|
title?: string | undefined;
|
|
3314
3338
|
description?: string | undefined;
|
|
@@ -3545,6 +3569,7 @@ declare const securityObjects: ((Omit<{
|
|
|
3545
3569
|
readonly system?: boolean | undefined;
|
|
3546
3570
|
readonly min?: number | undefined;
|
|
3547
3571
|
readonly max?: number | undefined;
|
|
3572
|
+
readonly dimensions?: number | undefined;
|
|
3548
3573
|
readonly columnName?: string | undefined;
|
|
3549
3574
|
readonly searchable?: boolean | undefined;
|
|
3550
3575
|
readonly unique?: boolean | undefined;
|
|
@@ -3699,6 +3724,7 @@ declare const securityObjects: ((Omit<{
|
|
|
3699
3724
|
readonly system?: boolean | undefined;
|
|
3700
3725
|
readonly min?: number | undefined;
|
|
3701
3726
|
readonly max?: number | undefined;
|
|
3727
|
+
readonly dimensions?: number | undefined;
|
|
3702
3728
|
readonly columnName?: string | undefined;
|
|
3703
3729
|
readonly searchable?: boolean | undefined;
|
|
3704
3730
|
readonly unique?: boolean | undefined;
|
|
@@ -3853,6 +3879,7 @@ declare const securityObjects: ((Omit<{
|
|
|
3853
3879
|
readonly system?: boolean | undefined;
|
|
3854
3880
|
readonly min?: number | undefined;
|
|
3855
3881
|
readonly max?: number | undefined;
|
|
3882
|
+
readonly dimensions?: number | undefined;
|
|
3856
3883
|
readonly columnName?: string | undefined;
|
|
3857
3884
|
readonly searchable?: boolean | undefined;
|
|
3858
3885
|
readonly unique?: boolean | undefined;
|
|
@@ -4007,6 +4034,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4007
4034
|
readonly system?: boolean | undefined;
|
|
4008
4035
|
readonly min?: number | undefined;
|
|
4009
4036
|
readonly max?: number | undefined;
|
|
4037
|
+
readonly dimensions?: number | undefined;
|
|
4010
4038
|
readonly columnName?: string | undefined;
|
|
4011
4039
|
readonly searchable?: boolean | undefined;
|
|
4012
4040
|
readonly unique?: boolean | undefined;
|
|
@@ -4161,6 +4189,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4161
4189
|
readonly system?: boolean | undefined;
|
|
4162
4190
|
readonly min?: number | undefined;
|
|
4163
4191
|
readonly max?: number | undefined;
|
|
4192
|
+
readonly dimensions?: number | undefined;
|
|
4164
4193
|
readonly columnName?: string | undefined;
|
|
4165
4194
|
readonly searchable?: boolean | undefined;
|
|
4166
4195
|
readonly unique?: boolean | undefined;
|
|
@@ -4315,6 +4344,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4315
4344
|
readonly system?: boolean | undefined;
|
|
4316
4345
|
readonly min?: number | undefined;
|
|
4317
4346
|
readonly max?: number | undefined;
|
|
4347
|
+
readonly dimensions?: number | undefined;
|
|
4318
4348
|
readonly columnName?: string | undefined;
|
|
4319
4349
|
readonly searchable?: boolean | undefined;
|
|
4320
4350
|
readonly unique?: boolean | undefined;
|
|
@@ -4469,6 +4499,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4469
4499
|
readonly system?: boolean | undefined;
|
|
4470
4500
|
readonly min?: number | undefined;
|
|
4471
4501
|
readonly max?: number | undefined;
|
|
4502
|
+
readonly dimensions?: number | undefined;
|
|
4472
4503
|
readonly columnName?: string | undefined;
|
|
4473
4504
|
readonly searchable?: boolean | undefined;
|
|
4474
4505
|
readonly unique?: boolean | undefined;
|
|
@@ -4623,6 +4654,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4623
4654
|
readonly system?: boolean | undefined;
|
|
4624
4655
|
readonly min?: number | undefined;
|
|
4625
4656
|
readonly max?: number | undefined;
|
|
4657
|
+
readonly dimensions?: number | undefined;
|
|
4626
4658
|
readonly columnName?: string | undefined;
|
|
4627
4659
|
readonly searchable?: boolean | undefined;
|
|
4628
4660
|
readonly unique?: boolean | undefined;
|
|
@@ -4777,6 +4809,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4777
4809
|
readonly system?: boolean | undefined;
|
|
4778
4810
|
readonly min?: number | undefined;
|
|
4779
4811
|
readonly max?: number | undefined;
|
|
4812
|
+
readonly dimensions?: number | undefined;
|
|
4780
4813
|
readonly columnName?: string | undefined;
|
|
4781
4814
|
readonly searchable?: boolean | undefined;
|
|
4782
4815
|
readonly unique?: boolean | undefined;
|
|
@@ -4931,6 +4964,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4931
4964
|
readonly system?: boolean | undefined;
|
|
4932
4965
|
readonly min?: number | undefined;
|
|
4933
4966
|
readonly max?: number | undefined;
|
|
4967
|
+
readonly dimensions?: number | undefined;
|
|
4934
4968
|
readonly columnName?: string | undefined;
|
|
4935
4969
|
readonly searchable?: boolean | undefined;
|
|
4936
4970
|
readonly unique?: boolean | undefined;
|
|
@@ -5085,6 +5119,7 @@ declare const securityObjects: ((Omit<{
|
|
|
5085
5119
|
readonly system?: boolean | undefined;
|
|
5086
5120
|
readonly min?: number | undefined;
|
|
5087
5121
|
readonly max?: number | undefined;
|
|
5122
|
+
readonly dimensions?: number | undefined;
|
|
5088
5123
|
readonly columnName?: string | undefined;
|
|
5089
5124
|
readonly searchable?: boolean | undefined;
|
|
5090
5125
|
readonly unique?: boolean | undefined;
|
|
@@ -5239,6 +5274,7 @@ declare const securityObjects: ((Omit<{
|
|
|
5239
5274
|
readonly system?: boolean | undefined;
|
|
5240
5275
|
readonly min?: number | undefined;
|
|
5241
5276
|
readonly max?: number | undefined;
|
|
5277
|
+
readonly dimensions?: number | undefined;
|
|
5242
5278
|
readonly columnName?: string | undefined;
|
|
5243
5279
|
readonly searchable?: boolean | undefined;
|
|
5244
5280
|
readonly unique?: boolean | undefined;
|
|
@@ -5461,6 +5497,7 @@ declare const securityObjects: ((Omit<{
|
|
|
5461
5497
|
currencyMode: "fixed" | "dynamic";
|
|
5462
5498
|
defaultCurrency: string;
|
|
5463
5499
|
} | undefined;
|
|
5500
|
+
dimensions?: number | undefined;
|
|
5464
5501
|
vectorConfig?: {
|
|
5465
5502
|
dimensions: number;
|
|
5466
5503
|
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
@@ -6045,6 +6082,8 @@ declare const securityObjects: ((Omit<{
|
|
|
6045
6082
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
6046
6083
|
confirmText?: string | undefined;
|
|
6047
6084
|
successMessage?: string | undefined;
|
|
6085
|
+
errorMessage?: string | undefined;
|
|
6086
|
+
undoable?: boolean | undefined;
|
|
6048
6087
|
resultDialog?: {
|
|
6049
6088
|
title?: string | undefined;
|
|
6050
6089
|
description?: string | undefined;
|
|
@@ -6144,6 +6183,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6144
6183
|
readonly system?: boolean | undefined;
|
|
6145
6184
|
readonly min?: number | undefined;
|
|
6146
6185
|
readonly max?: number | undefined;
|
|
6186
|
+
readonly dimensions?: number | undefined;
|
|
6147
6187
|
readonly columnName?: string | undefined;
|
|
6148
6188
|
readonly searchable?: boolean | undefined;
|
|
6149
6189
|
readonly unique?: boolean | undefined;
|
|
@@ -6298,6 +6338,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6298
6338
|
readonly system?: boolean | undefined;
|
|
6299
6339
|
readonly min?: number | undefined;
|
|
6300
6340
|
readonly max?: number | undefined;
|
|
6341
|
+
readonly dimensions?: number | undefined;
|
|
6301
6342
|
readonly columnName?: string | undefined;
|
|
6302
6343
|
readonly searchable?: boolean | undefined;
|
|
6303
6344
|
readonly unique?: boolean | undefined;
|
|
@@ -6452,6 +6493,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6452
6493
|
readonly system?: boolean | undefined;
|
|
6453
6494
|
readonly min?: number | undefined;
|
|
6454
6495
|
readonly max?: number | undefined;
|
|
6496
|
+
readonly dimensions?: number | undefined;
|
|
6455
6497
|
readonly columnName?: string | undefined;
|
|
6456
6498
|
readonly searchable?: boolean | undefined;
|
|
6457
6499
|
readonly unique?: boolean | undefined;
|
|
@@ -6606,6 +6648,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6606
6648
|
readonly system?: boolean | undefined;
|
|
6607
6649
|
readonly min?: number | undefined;
|
|
6608
6650
|
readonly max?: number | undefined;
|
|
6651
|
+
readonly dimensions?: number | undefined;
|
|
6609
6652
|
readonly columnName?: string | undefined;
|
|
6610
6653
|
readonly searchable?: boolean | undefined;
|
|
6611
6654
|
readonly unique?: boolean | undefined;
|
|
@@ -6760,6 +6803,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6760
6803
|
readonly system?: boolean | undefined;
|
|
6761
6804
|
readonly min?: number | undefined;
|
|
6762
6805
|
readonly max?: number | undefined;
|
|
6806
|
+
readonly dimensions?: number | undefined;
|
|
6763
6807
|
readonly columnName?: string | undefined;
|
|
6764
6808
|
readonly searchable?: boolean | undefined;
|
|
6765
6809
|
readonly unique?: boolean | undefined;
|
|
@@ -6914,6 +6958,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6914
6958
|
readonly system?: boolean | undefined;
|
|
6915
6959
|
readonly min?: number | undefined;
|
|
6916
6960
|
readonly max?: number | undefined;
|
|
6961
|
+
readonly dimensions?: number | undefined;
|
|
6917
6962
|
readonly columnName?: string | undefined;
|
|
6918
6963
|
readonly searchable?: boolean | undefined;
|
|
6919
6964
|
readonly unique?: boolean | undefined;
|
|
@@ -7068,6 +7113,7 @@ declare const securityObjects: ((Omit<{
|
|
|
7068
7113
|
readonly system?: boolean | undefined;
|
|
7069
7114
|
readonly min?: number | undefined;
|
|
7070
7115
|
readonly max?: number | undefined;
|
|
7116
|
+
readonly dimensions?: number | undefined;
|
|
7071
7117
|
readonly columnName?: string | undefined;
|
|
7072
7118
|
readonly searchable?: boolean | undefined;
|
|
7073
7119
|
readonly unique?: boolean | undefined;
|
|
@@ -7294,6 +7340,7 @@ declare const securityObjects: ((Omit<{
|
|
|
7294
7340
|
currencyMode: "fixed" | "dynamic";
|
|
7295
7341
|
defaultCurrency: string;
|
|
7296
7342
|
} | undefined;
|
|
7343
|
+
dimensions?: number | undefined;
|
|
7297
7344
|
vectorConfig?: {
|
|
7298
7345
|
dimensions: number;
|
|
7299
7346
|
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
@@ -7878,6 +7925,8 @@ declare const securityObjects: ((Omit<{
|
|
|
7878
7925
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
7879
7926
|
confirmText?: string | undefined;
|
|
7880
7927
|
successMessage?: string | undefined;
|
|
7928
|
+
errorMessage?: string | undefined;
|
|
7929
|
+
undoable?: boolean | undefined;
|
|
7881
7930
|
resultDialog?: {
|
|
7882
7931
|
title?: string | undefined;
|
|
7883
7932
|
description?: string | undefined;
|
|
@@ -7977,6 +8026,7 @@ declare const securityObjects: ((Omit<{
|
|
|
7977
8026
|
readonly system?: boolean | undefined;
|
|
7978
8027
|
readonly min?: number | undefined;
|
|
7979
8028
|
readonly max?: number | undefined;
|
|
8029
|
+
readonly dimensions?: number | undefined;
|
|
7980
8030
|
readonly columnName?: string | undefined;
|
|
7981
8031
|
readonly searchable?: boolean | undefined;
|
|
7982
8032
|
readonly unique?: boolean | undefined;
|
|
@@ -8131,6 +8181,7 @@ declare const securityObjects: ((Omit<{
|
|
|
8131
8181
|
readonly system?: boolean | undefined;
|
|
8132
8182
|
readonly min?: number | undefined;
|
|
8133
8183
|
readonly max?: number | undefined;
|
|
8184
|
+
readonly dimensions?: number | undefined;
|
|
8134
8185
|
readonly columnName?: string | undefined;
|
|
8135
8186
|
readonly searchable?: boolean | undefined;
|
|
8136
8187
|
readonly unique?: boolean | undefined;
|
|
@@ -8285,6 +8336,7 @@ declare const securityObjects: ((Omit<{
|
|
|
8285
8336
|
readonly system?: boolean | undefined;
|
|
8286
8337
|
readonly min?: number | undefined;
|
|
8287
8338
|
readonly max?: number | undefined;
|
|
8339
|
+
readonly dimensions?: number | undefined;
|
|
8288
8340
|
readonly columnName?: string | undefined;
|
|
8289
8341
|
readonly searchable?: boolean | undefined;
|
|
8290
8342
|
readonly unique?: boolean | undefined;
|
|
@@ -8439,6 +8491,7 @@ declare const securityObjects: ((Omit<{
|
|
|
8439
8491
|
readonly system?: boolean | undefined;
|
|
8440
8492
|
readonly min?: number | undefined;
|
|
8441
8493
|
readonly max?: number | undefined;
|
|
8494
|
+
readonly dimensions?: number | undefined;
|
|
8442
8495
|
readonly columnName?: string | undefined;
|
|
8443
8496
|
readonly searchable?: boolean | undefined;
|
|
8444
8497
|
readonly unique?: boolean | undefined;
|
|
@@ -8593,6 +8646,7 @@ declare const securityObjects: ((Omit<{
|
|
|
8593
8646
|
readonly system?: boolean | undefined;
|
|
8594
8647
|
readonly min?: number | undefined;
|
|
8595
8648
|
readonly max?: number | undefined;
|
|
8649
|
+
readonly dimensions?: number | undefined;
|
|
8596
8650
|
readonly columnName?: string | undefined;
|
|
8597
8651
|
readonly searchable?: boolean | undefined;
|
|
8598
8652
|
readonly unique?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -125,6 +125,15 @@ declare class SecurityPlugin implements Plugin {
|
|
|
125
125
|
* underlying metadata/db resolution fails (callers fail-closed).
|
|
126
126
|
*/
|
|
127
127
|
private resolvePermissionSetsForContext;
|
|
128
|
+
/**
|
|
129
|
+
* Resolve a single scalar primary-key id from an update/delete operation
|
|
130
|
+
* context, mirroring the engine's "single-id vs predicate" rule
|
|
131
|
+
* (`engine.ts` update/delete): only a scalar `data.id` or `where.id`
|
|
132
|
+
* identifies one row. An operator object (`{ $in: [...] }`, …) is a
|
|
133
|
+
* multi-row predicate and returns `null` (multi-row writes route through the
|
|
134
|
+
* `*Many` paths, out of scope for the by-id pre-image check).
|
|
135
|
+
*/
|
|
136
|
+
private extractSingleId;
|
|
128
137
|
/**
|
|
129
138
|
* Compile the applicable RLS policies for (object, operation) into a single
|
|
130
139
|
* `FilterCondition`, applying the field-existence safety net (wildcard
|
|
@@ -415,6 +424,7 @@ declare const securityObjects: ((Omit<{
|
|
|
415
424
|
currencyMode: "fixed" | "dynamic";
|
|
416
425
|
defaultCurrency: string;
|
|
417
426
|
} | undefined;
|
|
427
|
+
dimensions?: number | undefined;
|
|
418
428
|
vectorConfig?: {
|
|
419
429
|
dimensions: number;
|
|
420
430
|
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
@@ -999,6 +1009,8 @@ declare const securityObjects: ((Omit<{
|
|
|
999
1009
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
1000
1010
|
confirmText?: string | undefined;
|
|
1001
1011
|
successMessage?: string | undefined;
|
|
1012
|
+
errorMessage?: string | undefined;
|
|
1013
|
+
undoable?: boolean | undefined;
|
|
1002
1014
|
resultDialog?: {
|
|
1003
1015
|
title?: string | undefined;
|
|
1004
1016
|
description?: string | undefined;
|
|
@@ -1271,6 +1283,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1271
1283
|
readonly system?: boolean | undefined;
|
|
1272
1284
|
readonly min?: number | undefined;
|
|
1273
1285
|
readonly max?: number | undefined;
|
|
1286
|
+
readonly dimensions?: number | undefined;
|
|
1274
1287
|
readonly columnName?: string | undefined;
|
|
1275
1288
|
readonly searchable?: boolean | undefined;
|
|
1276
1289
|
readonly unique?: boolean | undefined;
|
|
@@ -1425,6 +1438,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1425
1438
|
readonly system?: boolean | undefined;
|
|
1426
1439
|
readonly min?: number | undefined;
|
|
1427
1440
|
readonly max?: number | undefined;
|
|
1441
|
+
readonly dimensions?: number | undefined;
|
|
1428
1442
|
readonly columnName?: string | undefined;
|
|
1429
1443
|
readonly searchable?: boolean | undefined;
|
|
1430
1444
|
readonly unique?: boolean | undefined;
|
|
@@ -1579,6 +1593,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1579
1593
|
readonly system?: boolean | undefined;
|
|
1580
1594
|
readonly min?: number | undefined;
|
|
1581
1595
|
readonly max?: number | undefined;
|
|
1596
|
+
readonly dimensions?: number | undefined;
|
|
1582
1597
|
readonly columnName?: string | undefined;
|
|
1583
1598
|
readonly searchable?: boolean | undefined;
|
|
1584
1599
|
readonly unique?: boolean | undefined;
|
|
@@ -1733,6 +1748,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1733
1748
|
readonly system?: boolean | undefined;
|
|
1734
1749
|
readonly min?: number | undefined;
|
|
1735
1750
|
readonly max?: number | undefined;
|
|
1751
|
+
readonly dimensions?: number | undefined;
|
|
1736
1752
|
readonly columnName?: string | undefined;
|
|
1737
1753
|
readonly searchable?: boolean | undefined;
|
|
1738
1754
|
readonly unique?: boolean | undefined;
|
|
@@ -1887,6 +1903,7 @@ declare const securityObjects: ((Omit<{
|
|
|
1887
1903
|
readonly system?: boolean | undefined;
|
|
1888
1904
|
readonly min?: number | undefined;
|
|
1889
1905
|
readonly max?: number | undefined;
|
|
1906
|
+
readonly dimensions?: number | undefined;
|
|
1890
1907
|
readonly columnName?: string | undefined;
|
|
1891
1908
|
readonly searchable?: boolean | undefined;
|
|
1892
1909
|
readonly unique?: boolean | undefined;
|
|
@@ -2041,6 +2058,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2041
2058
|
readonly system?: boolean | undefined;
|
|
2042
2059
|
readonly min?: number | undefined;
|
|
2043
2060
|
readonly max?: number | undefined;
|
|
2061
|
+
readonly dimensions?: number | undefined;
|
|
2044
2062
|
readonly columnName?: string | undefined;
|
|
2045
2063
|
readonly searchable?: boolean | undefined;
|
|
2046
2064
|
readonly unique?: boolean | undefined;
|
|
@@ -2195,6 +2213,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2195
2213
|
readonly system?: boolean | undefined;
|
|
2196
2214
|
readonly min?: number | undefined;
|
|
2197
2215
|
readonly max?: number | undefined;
|
|
2216
|
+
readonly dimensions?: number | undefined;
|
|
2198
2217
|
readonly columnName?: string | undefined;
|
|
2199
2218
|
readonly searchable?: boolean | undefined;
|
|
2200
2219
|
readonly unique?: boolean | undefined;
|
|
@@ -2349,6 +2368,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2349
2368
|
readonly system?: boolean | undefined;
|
|
2350
2369
|
readonly min?: number | undefined;
|
|
2351
2370
|
readonly max?: number | undefined;
|
|
2371
|
+
readonly dimensions?: number | undefined;
|
|
2352
2372
|
readonly columnName?: string | undefined;
|
|
2353
2373
|
readonly searchable?: boolean | undefined;
|
|
2354
2374
|
readonly unique?: boolean | undefined;
|
|
@@ -2503,6 +2523,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2503
2523
|
readonly system?: boolean | undefined;
|
|
2504
2524
|
readonly min?: number | undefined;
|
|
2505
2525
|
readonly max?: number | undefined;
|
|
2526
|
+
readonly dimensions?: number | undefined;
|
|
2506
2527
|
readonly columnName?: string | undefined;
|
|
2507
2528
|
readonly searchable?: boolean | undefined;
|
|
2508
2529
|
readonly unique?: boolean | undefined;
|
|
@@ -2725,6 +2746,7 @@ declare const securityObjects: ((Omit<{
|
|
|
2725
2746
|
currencyMode: "fixed" | "dynamic";
|
|
2726
2747
|
defaultCurrency: string;
|
|
2727
2748
|
} | undefined;
|
|
2749
|
+
dimensions?: number | undefined;
|
|
2728
2750
|
vectorConfig?: {
|
|
2729
2751
|
dimensions: number;
|
|
2730
2752
|
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
@@ -3309,6 +3331,8 @@ declare const securityObjects: ((Omit<{
|
|
|
3309
3331
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
3310
3332
|
confirmText?: string | undefined;
|
|
3311
3333
|
successMessage?: string | undefined;
|
|
3334
|
+
errorMessage?: string | undefined;
|
|
3335
|
+
undoable?: boolean | undefined;
|
|
3312
3336
|
resultDialog?: {
|
|
3313
3337
|
title?: string | undefined;
|
|
3314
3338
|
description?: string | undefined;
|
|
@@ -3545,6 +3569,7 @@ declare const securityObjects: ((Omit<{
|
|
|
3545
3569
|
readonly system?: boolean | undefined;
|
|
3546
3570
|
readonly min?: number | undefined;
|
|
3547
3571
|
readonly max?: number | undefined;
|
|
3572
|
+
readonly dimensions?: number | undefined;
|
|
3548
3573
|
readonly columnName?: string | undefined;
|
|
3549
3574
|
readonly searchable?: boolean | undefined;
|
|
3550
3575
|
readonly unique?: boolean | undefined;
|
|
@@ -3699,6 +3724,7 @@ declare const securityObjects: ((Omit<{
|
|
|
3699
3724
|
readonly system?: boolean | undefined;
|
|
3700
3725
|
readonly min?: number | undefined;
|
|
3701
3726
|
readonly max?: number | undefined;
|
|
3727
|
+
readonly dimensions?: number | undefined;
|
|
3702
3728
|
readonly columnName?: string | undefined;
|
|
3703
3729
|
readonly searchable?: boolean | undefined;
|
|
3704
3730
|
readonly unique?: boolean | undefined;
|
|
@@ -3853,6 +3879,7 @@ declare const securityObjects: ((Omit<{
|
|
|
3853
3879
|
readonly system?: boolean | undefined;
|
|
3854
3880
|
readonly min?: number | undefined;
|
|
3855
3881
|
readonly max?: number | undefined;
|
|
3882
|
+
readonly dimensions?: number | undefined;
|
|
3856
3883
|
readonly columnName?: string | undefined;
|
|
3857
3884
|
readonly searchable?: boolean | undefined;
|
|
3858
3885
|
readonly unique?: boolean | undefined;
|
|
@@ -4007,6 +4034,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4007
4034
|
readonly system?: boolean | undefined;
|
|
4008
4035
|
readonly min?: number | undefined;
|
|
4009
4036
|
readonly max?: number | undefined;
|
|
4037
|
+
readonly dimensions?: number | undefined;
|
|
4010
4038
|
readonly columnName?: string | undefined;
|
|
4011
4039
|
readonly searchable?: boolean | undefined;
|
|
4012
4040
|
readonly unique?: boolean | undefined;
|
|
@@ -4161,6 +4189,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4161
4189
|
readonly system?: boolean | undefined;
|
|
4162
4190
|
readonly min?: number | undefined;
|
|
4163
4191
|
readonly max?: number | undefined;
|
|
4192
|
+
readonly dimensions?: number | undefined;
|
|
4164
4193
|
readonly columnName?: string | undefined;
|
|
4165
4194
|
readonly searchable?: boolean | undefined;
|
|
4166
4195
|
readonly unique?: boolean | undefined;
|
|
@@ -4315,6 +4344,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4315
4344
|
readonly system?: boolean | undefined;
|
|
4316
4345
|
readonly min?: number | undefined;
|
|
4317
4346
|
readonly max?: number | undefined;
|
|
4347
|
+
readonly dimensions?: number | undefined;
|
|
4318
4348
|
readonly columnName?: string | undefined;
|
|
4319
4349
|
readonly searchable?: boolean | undefined;
|
|
4320
4350
|
readonly unique?: boolean | undefined;
|
|
@@ -4469,6 +4499,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4469
4499
|
readonly system?: boolean | undefined;
|
|
4470
4500
|
readonly min?: number | undefined;
|
|
4471
4501
|
readonly max?: number | undefined;
|
|
4502
|
+
readonly dimensions?: number | undefined;
|
|
4472
4503
|
readonly columnName?: string | undefined;
|
|
4473
4504
|
readonly searchable?: boolean | undefined;
|
|
4474
4505
|
readonly unique?: boolean | undefined;
|
|
@@ -4623,6 +4654,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4623
4654
|
readonly system?: boolean | undefined;
|
|
4624
4655
|
readonly min?: number | undefined;
|
|
4625
4656
|
readonly max?: number | undefined;
|
|
4657
|
+
readonly dimensions?: number | undefined;
|
|
4626
4658
|
readonly columnName?: string | undefined;
|
|
4627
4659
|
readonly searchable?: boolean | undefined;
|
|
4628
4660
|
readonly unique?: boolean | undefined;
|
|
@@ -4777,6 +4809,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4777
4809
|
readonly system?: boolean | undefined;
|
|
4778
4810
|
readonly min?: number | undefined;
|
|
4779
4811
|
readonly max?: number | undefined;
|
|
4812
|
+
readonly dimensions?: number | undefined;
|
|
4780
4813
|
readonly columnName?: string | undefined;
|
|
4781
4814
|
readonly searchable?: boolean | undefined;
|
|
4782
4815
|
readonly unique?: boolean | undefined;
|
|
@@ -4931,6 +4964,7 @@ declare const securityObjects: ((Omit<{
|
|
|
4931
4964
|
readonly system?: boolean | undefined;
|
|
4932
4965
|
readonly min?: number | undefined;
|
|
4933
4966
|
readonly max?: number | undefined;
|
|
4967
|
+
readonly dimensions?: number | undefined;
|
|
4934
4968
|
readonly columnName?: string | undefined;
|
|
4935
4969
|
readonly searchable?: boolean | undefined;
|
|
4936
4970
|
readonly unique?: boolean | undefined;
|
|
@@ -5085,6 +5119,7 @@ declare const securityObjects: ((Omit<{
|
|
|
5085
5119
|
readonly system?: boolean | undefined;
|
|
5086
5120
|
readonly min?: number | undefined;
|
|
5087
5121
|
readonly max?: number | undefined;
|
|
5122
|
+
readonly dimensions?: number | undefined;
|
|
5088
5123
|
readonly columnName?: string | undefined;
|
|
5089
5124
|
readonly searchable?: boolean | undefined;
|
|
5090
5125
|
readonly unique?: boolean | undefined;
|
|
@@ -5239,6 +5274,7 @@ declare const securityObjects: ((Omit<{
|
|
|
5239
5274
|
readonly system?: boolean | undefined;
|
|
5240
5275
|
readonly min?: number | undefined;
|
|
5241
5276
|
readonly max?: number | undefined;
|
|
5277
|
+
readonly dimensions?: number | undefined;
|
|
5242
5278
|
readonly columnName?: string | undefined;
|
|
5243
5279
|
readonly searchable?: boolean | undefined;
|
|
5244
5280
|
readonly unique?: boolean | undefined;
|
|
@@ -5461,6 +5497,7 @@ declare const securityObjects: ((Omit<{
|
|
|
5461
5497
|
currencyMode: "fixed" | "dynamic";
|
|
5462
5498
|
defaultCurrency: string;
|
|
5463
5499
|
} | undefined;
|
|
5500
|
+
dimensions?: number | undefined;
|
|
5464
5501
|
vectorConfig?: {
|
|
5465
5502
|
dimensions: number;
|
|
5466
5503
|
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
@@ -6045,6 +6082,8 @@ declare const securityObjects: ((Omit<{
|
|
|
6045
6082
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
6046
6083
|
confirmText?: string | undefined;
|
|
6047
6084
|
successMessage?: string | undefined;
|
|
6085
|
+
errorMessage?: string | undefined;
|
|
6086
|
+
undoable?: boolean | undefined;
|
|
6048
6087
|
resultDialog?: {
|
|
6049
6088
|
title?: string | undefined;
|
|
6050
6089
|
description?: string | undefined;
|
|
@@ -6144,6 +6183,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6144
6183
|
readonly system?: boolean | undefined;
|
|
6145
6184
|
readonly min?: number | undefined;
|
|
6146
6185
|
readonly max?: number | undefined;
|
|
6186
|
+
readonly dimensions?: number | undefined;
|
|
6147
6187
|
readonly columnName?: string | undefined;
|
|
6148
6188
|
readonly searchable?: boolean | undefined;
|
|
6149
6189
|
readonly unique?: boolean | undefined;
|
|
@@ -6298,6 +6338,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6298
6338
|
readonly system?: boolean | undefined;
|
|
6299
6339
|
readonly min?: number | undefined;
|
|
6300
6340
|
readonly max?: number | undefined;
|
|
6341
|
+
readonly dimensions?: number | undefined;
|
|
6301
6342
|
readonly columnName?: string | undefined;
|
|
6302
6343
|
readonly searchable?: boolean | undefined;
|
|
6303
6344
|
readonly unique?: boolean | undefined;
|
|
@@ -6452,6 +6493,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6452
6493
|
readonly system?: boolean | undefined;
|
|
6453
6494
|
readonly min?: number | undefined;
|
|
6454
6495
|
readonly max?: number | undefined;
|
|
6496
|
+
readonly dimensions?: number | undefined;
|
|
6455
6497
|
readonly columnName?: string | undefined;
|
|
6456
6498
|
readonly searchable?: boolean | undefined;
|
|
6457
6499
|
readonly unique?: boolean | undefined;
|
|
@@ -6606,6 +6648,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6606
6648
|
readonly system?: boolean | undefined;
|
|
6607
6649
|
readonly min?: number | undefined;
|
|
6608
6650
|
readonly max?: number | undefined;
|
|
6651
|
+
readonly dimensions?: number | undefined;
|
|
6609
6652
|
readonly columnName?: string | undefined;
|
|
6610
6653
|
readonly searchable?: boolean | undefined;
|
|
6611
6654
|
readonly unique?: boolean | undefined;
|
|
@@ -6760,6 +6803,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6760
6803
|
readonly system?: boolean | undefined;
|
|
6761
6804
|
readonly min?: number | undefined;
|
|
6762
6805
|
readonly max?: number | undefined;
|
|
6806
|
+
readonly dimensions?: number | undefined;
|
|
6763
6807
|
readonly columnName?: string | undefined;
|
|
6764
6808
|
readonly searchable?: boolean | undefined;
|
|
6765
6809
|
readonly unique?: boolean | undefined;
|
|
@@ -6914,6 +6958,7 @@ declare const securityObjects: ((Omit<{
|
|
|
6914
6958
|
readonly system?: boolean | undefined;
|
|
6915
6959
|
readonly min?: number | undefined;
|
|
6916
6960
|
readonly max?: number | undefined;
|
|
6961
|
+
readonly dimensions?: number | undefined;
|
|
6917
6962
|
readonly columnName?: string | undefined;
|
|
6918
6963
|
readonly searchable?: boolean | undefined;
|
|
6919
6964
|
readonly unique?: boolean | undefined;
|
|
@@ -7068,6 +7113,7 @@ declare const securityObjects: ((Omit<{
|
|
|
7068
7113
|
readonly system?: boolean | undefined;
|
|
7069
7114
|
readonly min?: number | undefined;
|
|
7070
7115
|
readonly max?: number | undefined;
|
|
7116
|
+
readonly dimensions?: number | undefined;
|
|
7071
7117
|
readonly columnName?: string | undefined;
|
|
7072
7118
|
readonly searchable?: boolean | undefined;
|
|
7073
7119
|
readonly unique?: boolean | undefined;
|
|
@@ -7294,6 +7340,7 @@ declare const securityObjects: ((Omit<{
|
|
|
7294
7340
|
currencyMode: "fixed" | "dynamic";
|
|
7295
7341
|
defaultCurrency: string;
|
|
7296
7342
|
} | undefined;
|
|
7343
|
+
dimensions?: number | undefined;
|
|
7297
7344
|
vectorConfig?: {
|
|
7298
7345
|
dimensions: number;
|
|
7299
7346
|
distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
|
|
@@ -7878,6 +7925,8 @@ declare const securityObjects: ((Omit<{
|
|
|
7878
7925
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
7879
7926
|
confirmText?: string | undefined;
|
|
7880
7927
|
successMessage?: string | undefined;
|
|
7928
|
+
errorMessage?: string | undefined;
|
|
7929
|
+
undoable?: boolean | undefined;
|
|
7881
7930
|
resultDialog?: {
|
|
7882
7931
|
title?: string | undefined;
|
|
7883
7932
|
description?: string | undefined;
|
|
@@ -7977,6 +8026,7 @@ declare const securityObjects: ((Omit<{
|
|
|
7977
8026
|
readonly system?: boolean | undefined;
|
|
7978
8027
|
readonly min?: number | undefined;
|
|
7979
8028
|
readonly max?: number | undefined;
|
|
8029
|
+
readonly dimensions?: number | undefined;
|
|
7980
8030
|
readonly columnName?: string | undefined;
|
|
7981
8031
|
readonly searchable?: boolean | undefined;
|
|
7982
8032
|
readonly unique?: boolean | undefined;
|
|
@@ -8131,6 +8181,7 @@ declare const securityObjects: ((Omit<{
|
|
|
8131
8181
|
readonly system?: boolean | undefined;
|
|
8132
8182
|
readonly min?: number | undefined;
|
|
8133
8183
|
readonly max?: number | undefined;
|
|
8184
|
+
readonly dimensions?: number | undefined;
|
|
8134
8185
|
readonly columnName?: string | undefined;
|
|
8135
8186
|
readonly searchable?: boolean | undefined;
|
|
8136
8187
|
readonly unique?: boolean | undefined;
|
|
@@ -8285,6 +8336,7 @@ declare const securityObjects: ((Omit<{
|
|
|
8285
8336
|
readonly system?: boolean | undefined;
|
|
8286
8337
|
readonly min?: number | undefined;
|
|
8287
8338
|
readonly max?: number | undefined;
|
|
8339
|
+
readonly dimensions?: number | undefined;
|
|
8288
8340
|
readonly columnName?: string | undefined;
|
|
8289
8341
|
readonly searchable?: boolean | undefined;
|
|
8290
8342
|
readonly unique?: boolean | undefined;
|
|
@@ -8439,6 +8491,7 @@ declare const securityObjects: ((Omit<{
|
|
|
8439
8491
|
readonly system?: boolean | undefined;
|
|
8440
8492
|
readonly min?: number | undefined;
|
|
8441
8493
|
readonly max?: number | undefined;
|
|
8494
|
+
readonly dimensions?: number | undefined;
|
|
8442
8495
|
readonly columnName?: string | undefined;
|
|
8443
8496
|
readonly searchable?: boolean | undefined;
|
|
8444
8497
|
readonly unique?: boolean | undefined;
|
|
@@ -8593,6 +8646,7 @@ declare const securityObjects: ((Omit<{
|
|
|
8593
8646
|
readonly system?: boolean | undefined;
|
|
8594
8647
|
readonly min?: number | undefined;
|
|
8595
8648
|
readonly max?: number | undefined;
|
|
8649
|
+
readonly dimensions?: number | undefined;
|
|
8596
8650
|
readonly columnName?: string | undefined;
|
|
8597
8651
|
readonly searchable?: boolean | undefined;
|
|
8598
8652
|
readonly unique?: boolean | undefined;
|