@objectstack/platform-objects 0.1.0 → 4.0.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.
@@ -1,5 +1,6 @@
1
1
  import { S as StateNodeConfig } from '../state-machine.zod-BFg-VE0M.d-Ek3_yo9P.mjs';
2
2
  import * as _objectstack_spec_data from '@objectstack/spec/data';
3
+ import { PermissionSet } from '@objectstack/spec/security';
3
4
  import 'zod';
4
5
 
5
6
  /**
@@ -50,7 +51,23 @@ declare const SysRole: Omit<{
50
51
  reference?: string | undefined;
51
52
  referenceFilters?: string[] | undefined;
52
53
  writeRequiresMasterRead?: boolean | undefined;
53
- expression?: string | undefined;
54
+ expression?: {
55
+ dialect: "cel" | "js" | "cron" | "template";
56
+ source?: string | undefined;
57
+ ast?: unknown;
58
+ meta?: {
59
+ rationale?: string | undefined;
60
+ generatedBy?: string | undefined;
61
+ } | undefined;
62
+ } | {
63
+ dialect: "cel" | "js" | "cron" | "template";
64
+ source?: string | undefined;
65
+ ast?: unknown;
66
+ meta?: {
67
+ rationale?: string | undefined;
68
+ generatedBy?: string | undefined;
69
+ } | undefined;
70
+ } | undefined;
54
71
  summaryOperations?: {
55
72
  object: string;
56
73
  field: string;
@@ -168,7 +185,23 @@ declare const SysRole: Omit<{
168
185
  } | undefined;
169
186
  } | undefined;
170
187
  group?: string | undefined;
171
- conditionalRequired?: string | undefined;
188
+ conditionalRequired?: {
189
+ dialect: "cel" | "js" | "cron" | "template";
190
+ source?: string | undefined;
191
+ ast?: unknown;
192
+ meta?: {
193
+ rationale?: string | undefined;
194
+ generatedBy?: string | undefined;
195
+ } | undefined;
196
+ } | {
197
+ dialect: "cel" | "js" | "cron" | "template";
198
+ source?: string | undefined;
199
+ ast?: unknown;
200
+ meta?: {
201
+ rationale?: string | undefined;
202
+ generatedBy?: string | undefined;
203
+ } | undefined;
204
+ } | undefined;
172
205
  inlineHelpText?: string | undefined;
173
206
  trackFeedHistory?: boolean | undefined;
174
207
  caseSensitive?: boolean | undefined;
@@ -179,6 +212,12 @@ declare const SysRole: Omit<{
179
212
  description?: string | undefined;
180
213
  icon?: string | undefined;
181
214
  tags?: string[] | undefined;
215
+ managedBy?: "system" | "better-auth" | "platform" | undefined;
216
+ systemFields?: false | {
217
+ tenant?: boolean | undefined;
218
+ owner?: boolean | undefined;
219
+ audit?: boolean | undefined;
220
+ } | undefined;
182
221
  indexes?: {
183
222
  fields: string[];
184
223
  type: "hash" | "btree" | "gin" | "gist" | "fulltext";
@@ -192,7 +231,23 @@ declare const SysRole: Omit<{
192
231
  defaultExpanded: boolean;
193
232
  icon?: string | undefined;
194
233
  description?: string | undefined;
195
- visibleOn?: string | undefined;
234
+ visibleOn?: {
235
+ dialect: "cel" | "js" | "cron" | "template";
236
+ source?: string | undefined;
237
+ ast?: unknown;
238
+ meta?: {
239
+ rationale?: string | undefined;
240
+ generatedBy?: string | undefined;
241
+ } | undefined;
242
+ } | {
243
+ dialect: "cel" | "js" | "cron" | "template";
244
+ source?: string | undefined;
245
+ ast?: unknown;
246
+ meta?: {
247
+ rationale?: string | undefined;
248
+ generatedBy?: string | undefined;
249
+ } | undefined;
250
+ } | undefined;
196
251
  }[] | undefined;
197
252
  tenancy?: {
198
253
  enabled: boolean;
@@ -259,7 +314,23 @@ declare const SysRole: Omit<{
259
314
  displayFormat?: string | undefined;
260
315
  startNumber?: number | undefined;
261
316
  } | undefined;
262
- titleFormat?: string | undefined;
317
+ titleFormat?: {
318
+ dialect: "cel" | "js" | "cron" | "template";
319
+ source?: string | undefined;
320
+ ast?: unknown;
321
+ meta?: {
322
+ rationale?: string | undefined;
323
+ generatedBy?: string | undefined;
324
+ } | undefined;
325
+ } | {
326
+ dialect: "cel" | "js" | "cron" | "template";
327
+ source?: string | undefined;
328
+ ast?: unknown;
329
+ meta?: {
330
+ rationale?: string | undefined;
331
+ generatedBy?: string | undefined;
332
+ } | undefined;
333
+ } | undefined;
263
334
  compactLayout?: string[] | undefined;
264
335
  search?: {
265
336
  fields: string[];
@@ -315,8 +386,24 @@ declare const SysRole: Omit<{
315
386
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
316
387
  confirmText?: string | undefined;
317
388
  successMessage?: string | undefined;
318
- visible?: string | undefined;
319
- disabled?: string | boolean | undefined;
389
+ visible?: {
390
+ dialect: "cel" | "js" | "cron" | "template";
391
+ source?: string | undefined;
392
+ ast?: unknown;
393
+ meta?: {
394
+ rationale?: string | undefined;
395
+ generatedBy?: string | undefined;
396
+ } | undefined;
397
+ } | undefined;
398
+ disabled?: boolean | {
399
+ dialect: "cel" | "js" | "cron" | "template";
400
+ source?: string | undefined;
401
+ ast?: unknown;
402
+ meta?: {
403
+ rationale?: string | undefined;
404
+ generatedBy?: string | undefined;
405
+ } | undefined;
406
+ } | undefined;
320
407
  shortcut?: string | undefined;
321
408
  bulkEnabled?: boolean | undefined;
322
409
  timeout?: number | undefined;
@@ -386,7 +473,15 @@ declare const SysRole: Omit<{
386
473
  readonly referenceFilters?: string[] | undefined;
387
474
  readonly writeRequiresMasterRead?: boolean | undefined;
388
475
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
389
- readonly expression?: string | undefined;
476
+ readonly expression?: {
477
+ dialect: "cel" | "js" | "cron" | "template";
478
+ source?: string | undefined;
479
+ ast?: unknown;
480
+ meta?: {
481
+ rationale?: string | undefined;
482
+ generatedBy?: string | undefined;
483
+ } | undefined;
484
+ } | undefined;
390
485
  readonly summaryOperations?: {
391
486
  object: string;
392
487
  field: string;
@@ -485,7 +580,15 @@ declare const SysRole: Omit<{
485
580
  threshold: number;
486
581
  } | undefined;
487
582
  } | undefined;
488
- readonly conditionalRequired?: string | undefined;
583
+ readonly conditionalRequired?: {
584
+ dialect: "cel" | "js" | "cron" | "template";
585
+ source?: string | undefined;
586
+ ast?: unknown;
587
+ meta?: {
588
+ rationale?: string | undefined;
589
+ generatedBy?: string | undefined;
590
+ } | undefined;
591
+ } | undefined;
489
592
  readonly hidden?: boolean | undefined;
490
593
  readonly sortable?: boolean | undefined;
491
594
  readonly inlineHelpText?: string | undefined;
@@ -544,7 +647,15 @@ declare const SysRole: Omit<{
544
647
  readonly referenceFilters?: string[] | undefined;
545
648
  readonly writeRequiresMasterRead?: boolean | undefined;
546
649
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
547
- readonly expression?: string | undefined;
650
+ readonly expression?: {
651
+ dialect: "cel" | "js" | "cron" | "template";
652
+ source?: string | undefined;
653
+ ast?: unknown;
654
+ meta?: {
655
+ rationale?: string | undefined;
656
+ generatedBy?: string | undefined;
657
+ } | undefined;
658
+ } | undefined;
548
659
  readonly summaryOperations?: {
549
660
  object: string;
550
661
  field: string;
@@ -643,7 +754,15 @@ declare const SysRole: Omit<{
643
754
  threshold: number;
644
755
  } | undefined;
645
756
  } | undefined;
646
- readonly conditionalRequired?: string | undefined;
757
+ readonly conditionalRequired?: {
758
+ dialect: "cel" | "js" | "cron" | "template";
759
+ source?: string | undefined;
760
+ ast?: unknown;
761
+ meta?: {
762
+ rationale?: string | undefined;
763
+ generatedBy?: string | undefined;
764
+ } | undefined;
765
+ } | undefined;
647
766
  readonly hidden?: boolean | undefined;
648
767
  readonly sortable?: boolean | undefined;
649
768
  readonly inlineHelpText?: string | undefined;
@@ -702,7 +821,15 @@ declare const SysRole: Omit<{
702
821
  readonly referenceFilters?: string[] | undefined;
703
822
  readonly writeRequiresMasterRead?: boolean | undefined;
704
823
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
705
- readonly expression?: string | undefined;
824
+ readonly expression?: {
825
+ dialect: "cel" | "js" | "cron" | "template";
826
+ source?: string | undefined;
827
+ ast?: unknown;
828
+ meta?: {
829
+ rationale?: string | undefined;
830
+ generatedBy?: string | undefined;
831
+ } | undefined;
832
+ } | undefined;
706
833
  readonly summaryOperations?: {
707
834
  object: string;
708
835
  field: string;
@@ -801,7 +928,15 @@ declare const SysRole: Omit<{
801
928
  threshold: number;
802
929
  } | undefined;
803
930
  } | undefined;
804
- readonly conditionalRequired?: string | undefined;
931
+ readonly conditionalRequired?: {
932
+ dialect: "cel" | "js" | "cron" | "template";
933
+ source?: string | undefined;
934
+ ast?: unknown;
935
+ meta?: {
936
+ rationale?: string | undefined;
937
+ generatedBy?: string | undefined;
938
+ } | undefined;
939
+ } | undefined;
805
940
  readonly hidden?: boolean | undefined;
806
941
  readonly sortable?: boolean | undefined;
807
942
  readonly inlineHelpText?: string | undefined;
@@ -860,7 +995,15 @@ declare const SysRole: Omit<{
860
995
  readonly referenceFilters?: string[] | undefined;
861
996
  readonly writeRequiresMasterRead?: boolean | undefined;
862
997
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
863
- readonly expression?: string | undefined;
998
+ readonly expression?: {
999
+ dialect: "cel" | "js" | "cron" | "template";
1000
+ source?: string | undefined;
1001
+ ast?: unknown;
1002
+ meta?: {
1003
+ rationale?: string | undefined;
1004
+ generatedBy?: string | undefined;
1005
+ } | undefined;
1006
+ } | undefined;
864
1007
  readonly summaryOperations?: {
865
1008
  object: string;
866
1009
  field: string;
@@ -959,7 +1102,15 @@ declare const SysRole: Omit<{
959
1102
  threshold: number;
960
1103
  } | undefined;
961
1104
  } | undefined;
962
- readonly conditionalRequired?: string | undefined;
1105
+ readonly conditionalRequired?: {
1106
+ dialect: "cel" | "js" | "cron" | "template";
1107
+ source?: string | undefined;
1108
+ ast?: unknown;
1109
+ meta?: {
1110
+ rationale?: string | undefined;
1111
+ generatedBy?: string | undefined;
1112
+ } | undefined;
1113
+ } | undefined;
963
1114
  readonly hidden?: boolean | undefined;
964
1115
  readonly sortable?: boolean | undefined;
965
1116
  readonly inlineHelpText?: string | undefined;
@@ -1018,7 +1169,15 @@ declare const SysRole: Omit<{
1018
1169
  readonly referenceFilters?: string[] | undefined;
1019
1170
  readonly writeRequiresMasterRead?: boolean | undefined;
1020
1171
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1021
- readonly expression?: string | undefined;
1172
+ readonly expression?: {
1173
+ dialect: "cel" | "js" | "cron" | "template";
1174
+ source?: string | undefined;
1175
+ ast?: unknown;
1176
+ meta?: {
1177
+ rationale?: string | undefined;
1178
+ generatedBy?: string | undefined;
1179
+ } | undefined;
1180
+ } | undefined;
1022
1181
  readonly summaryOperations?: {
1023
1182
  object: string;
1024
1183
  field: string;
@@ -1117,7 +1276,15 @@ declare const SysRole: Omit<{
1117
1276
  threshold: number;
1118
1277
  } | undefined;
1119
1278
  } | undefined;
1120
- readonly conditionalRequired?: string | undefined;
1279
+ readonly conditionalRequired?: {
1280
+ dialect: "cel" | "js" | "cron" | "template";
1281
+ source?: string | undefined;
1282
+ ast?: unknown;
1283
+ meta?: {
1284
+ rationale?: string | undefined;
1285
+ generatedBy?: string | undefined;
1286
+ } | undefined;
1287
+ } | undefined;
1121
1288
  readonly hidden?: boolean | undefined;
1122
1289
  readonly sortable?: boolean | undefined;
1123
1290
  readonly inlineHelpText?: string | undefined;
@@ -1176,7 +1343,15 @@ declare const SysRole: Omit<{
1176
1343
  readonly referenceFilters?: string[] | undefined;
1177
1344
  readonly writeRequiresMasterRead?: boolean | undefined;
1178
1345
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1179
- readonly expression?: string | undefined;
1346
+ readonly expression?: {
1347
+ dialect: "cel" | "js" | "cron" | "template";
1348
+ source?: string | undefined;
1349
+ ast?: unknown;
1350
+ meta?: {
1351
+ rationale?: string | undefined;
1352
+ generatedBy?: string | undefined;
1353
+ } | undefined;
1354
+ } | undefined;
1180
1355
  readonly summaryOperations?: {
1181
1356
  object: string;
1182
1357
  field: string;
@@ -1275,7 +1450,15 @@ declare const SysRole: Omit<{
1275
1450
  threshold: number;
1276
1451
  } | undefined;
1277
1452
  } | undefined;
1278
- readonly conditionalRequired?: string | undefined;
1453
+ readonly conditionalRequired?: {
1454
+ dialect: "cel" | "js" | "cron" | "template";
1455
+ source?: string | undefined;
1456
+ ast?: unknown;
1457
+ meta?: {
1458
+ rationale?: string | undefined;
1459
+ generatedBy?: string | undefined;
1460
+ } | undefined;
1461
+ } | undefined;
1279
1462
  readonly hidden?: boolean | undefined;
1280
1463
  readonly sortable?: boolean | undefined;
1281
1464
  readonly inlineHelpText?: string | undefined;
@@ -1334,7 +1517,15 @@ declare const SysRole: Omit<{
1334
1517
  readonly referenceFilters?: string[] | undefined;
1335
1518
  readonly writeRequiresMasterRead?: boolean | undefined;
1336
1519
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1337
- readonly expression?: string | undefined;
1520
+ readonly expression?: {
1521
+ dialect: "cel" | "js" | "cron" | "template";
1522
+ source?: string | undefined;
1523
+ ast?: unknown;
1524
+ meta?: {
1525
+ rationale?: string | undefined;
1526
+ generatedBy?: string | undefined;
1527
+ } | undefined;
1528
+ } | undefined;
1338
1529
  readonly summaryOperations?: {
1339
1530
  object: string;
1340
1531
  field: string;
@@ -1433,7 +1624,15 @@ declare const SysRole: Omit<{
1433
1624
  threshold: number;
1434
1625
  } | undefined;
1435
1626
  } | undefined;
1436
- readonly conditionalRequired?: string | undefined;
1627
+ readonly conditionalRequired?: {
1628
+ dialect: "cel" | "js" | "cron" | "template";
1629
+ source?: string | undefined;
1630
+ ast?: unknown;
1631
+ meta?: {
1632
+ rationale?: string | undefined;
1633
+ generatedBy?: string | undefined;
1634
+ } | undefined;
1635
+ } | undefined;
1437
1636
  readonly hidden?: boolean | undefined;
1438
1637
  readonly sortable?: boolean | undefined;
1439
1638
  readonly inlineHelpText?: string | undefined;
@@ -1492,7 +1691,15 @@ declare const SysRole: Omit<{
1492
1691
  readonly referenceFilters?: string[] | undefined;
1493
1692
  readonly writeRequiresMasterRead?: boolean | undefined;
1494
1693
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1495
- readonly expression?: string | undefined;
1694
+ readonly expression?: {
1695
+ dialect: "cel" | "js" | "cron" | "template";
1696
+ source?: string | undefined;
1697
+ ast?: unknown;
1698
+ meta?: {
1699
+ rationale?: string | undefined;
1700
+ generatedBy?: string | undefined;
1701
+ } | undefined;
1702
+ } | undefined;
1496
1703
  readonly summaryOperations?: {
1497
1704
  object: string;
1498
1705
  field: string;
@@ -1591,7 +1798,15 @@ declare const SysRole: Omit<{
1591
1798
  threshold: number;
1592
1799
  } | undefined;
1593
1800
  } | undefined;
1594
- readonly conditionalRequired?: string | undefined;
1801
+ readonly conditionalRequired?: {
1802
+ dialect: "cel" | "js" | "cron" | "template";
1803
+ source?: string | undefined;
1804
+ ast?: unknown;
1805
+ meta?: {
1806
+ rationale?: string | undefined;
1807
+ generatedBy?: string | undefined;
1808
+ } | undefined;
1809
+ } | undefined;
1595
1810
  readonly hidden?: boolean | undefined;
1596
1811
  readonly sortable?: boolean | undefined;
1597
1812
  readonly inlineHelpText?: string | undefined;
@@ -1650,7 +1865,15 @@ declare const SysRole: Omit<{
1650
1865
  readonly referenceFilters?: string[] | undefined;
1651
1866
  readonly writeRequiresMasterRead?: boolean | undefined;
1652
1867
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1653
- readonly expression?: string | undefined;
1868
+ readonly expression?: {
1869
+ dialect: "cel" | "js" | "cron" | "template";
1870
+ source?: string | undefined;
1871
+ ast?: unknown;
1872
+ meta?: {
1873
+ rationale?: string | undefined;
1874
+ generatedBy?: string | undefined;
1875
+ } | undefined;
1876
+ } | undefined;
1654
1877
  readonly summaryOperations?: {
1655
1878
  object: string;
1656
1879
  field: string;
@@ -1749,7 +1972,15 @@ declare const SysRole: Omit<{
1749
1972
  threshold: number;
1750
1973
  } | undefined;
1751
1974
  } | undefined;
1752
- readonly conditionalRequired?: string | undefined;
1975
+ readonly conditionalRequired?: {
1976
+ dialect: "cel" | "js" | "cron" | "template";
1977
+ source?: string | undefined;
1978
+ ast?: unknown;
1979
+ meta?: {
1980
+ rationale?: string | undefined;
1981
+ generatedBy?: string | undefined;
1982
+ } | undefined;
1983
+ } | undefined;
1753
1984
  readonly hidden?: boolean | undefined;
1754
1985
  readonly sortable?: boolean | undefined;
1755
1986
  readonly inlineHelpText?: string | undefined;
@@ -1825,7 +2056,23 @@ declare const SysPermissionSet: Omit<{
1825
2056
  reference?: string | undefined;
1826
2057
  referenceFilters?: string[] | undefined;
1827
2058
  writeRequiresMasterRead?: boolean | undefined;
1828
- expression?: string | undefined;
2059
+ expression?: {
2060
+ dialect: "cel" | "js" | "cron" | "template";
2061
+ source?: string | undefined;
2062
+ ast?: unknown;
2063
+ meta?: {
2064
+ rationale?: string | undefined;
2065
+ generatedBy?: string | undefined;
2066
+ } | undefined;
2067
+ } | {
2068
+ dialect: "cel" | "js" | "cron" | "template";
2069
+ source?: string | undefined;
2070
+ ast?: unknown;
2071
+ meta?: {
2072
+ rationale?: string | undefined;
2073
+ generatedBy?: string | undefined;
2074
+ } | undefined;
2075
+ } | undefined;
1829
2076
  summaryOperations?: {
1830
2077
  object: string;
1831
2078
  field: string;
@@ -1943,7 +2190,23 @@ declare const SysPermissionSet: Omit<{
1943
2190
  } | undefined;
1944
2191
  } | undefined;
1945
2192
  group?: string | undefined;
1946
- conditionalRequired?: string | undefined;
2193
+ conditionalRequired?: {
2194
+ dialect: "cel" | "js" | "cron" | "template";
2195
+ source?: string | undefined;
2196
+ ast?: unknown;
2197
+ meta?: {
2198
+ rationale?: string | undefined;
2199
+ generatedBy?: string | undefined;
2200
+ } | undefined;
2201
+ } | {
2202
+ dialect: "cel" | "js" | "cron" | "template";
2203
+ source?: string | undefined;
2204
+ ast?: unknown;
2205
+ meta?: {
2206
+ rationale?: string | undefined;
2207
+ generatedBy?: string | undefined;
2208
+ } | undefined;
2209
+ } | undefined;
1947
2210
  inlineHelpText?: string | undefined;
1948
2211
  trackFeedHistory?: boolean | undefined;
1949
2212
  caseSensitive?: boolean | undefined;
@@ -1954,6 +2217,12 @@ declare const SysPermissionSet: Omit<{
1954
2217
  description?: string | undefined;
1955
2218
  icon?: string | undefined;
1956
2219
  tags?: string[] | undefined;
2220
+ managedBy?: "system" | "better-auth" | "platform" | undefined;
2221
+ systemFields?: false | {
2222
+ tenant?: boolean | undefined;
2223
+ owner?: boolean | undefined;
2224
+ audit?: boolean | undefined;
2225
+ } | undefined;
1957
2226
  indexes?: {
1958
2227
  fields: string[];
1959
2228
  type: "hash" | "btree" | "gin" | "gist" | "fulltext";
@@ -1967,7 +2236,23 @@ declare const SysPermissionSet: Omit<{
1967
2236
  defaultExpanded: boolean;
1968
2237
  icon?: string | undefined;
1969
2238
  description?: string | undefined;
1970
- visibleOn?: string | undefined;
2239
+ visibleOn?: {
2240
+ dialect: "cel" | "js" | "cron" | "template";
2241
+ source?: string | undefined;
2242
+ ast?: unknown;
2243
+ meta?: {
2244
+ rationale?: string | undefined;
2245
+ generatedBy?: string | undefined;
2246
+ } | undefined;
2247
+ } | {
2248
+ dialect: "cel" | "js" | "cron" | "template";
2249
+ source?: string | undefined;
2250
+ ast?: unknown;
2251
+ meta?: {
2252
+ rationale?: string | undefined;
2253
+ generatedBy?: string | undefined;
2254
+ } | undefined;
2255
+ } | undefined;
1971
2256
  }[] | undefined;
1972
2257
  tenancy?: {
1973
2258
  enabled: boolean;
@@ -2034,7 +2319,23 @@ declare const SysPermissionSet: Omit<{
2034
2319
  displayFormat?: string | undefined;
2035
2320
  startNumber?: number | undefined;
2036
2321
  } | undefined;
2037
- titleFormat?: string | undefined;
2322
+ titleFormat?: {
2323
+ dialect: "cel" | "js" | "cron" | "template";
2324
+ source?: string | undefined;
2325
+ ast?: unknown;
2326
+ meta?: {
2327
+ rationale?: string | undefined;
2328
+ generatedBy?: string | undefined;
2329
+ } | undefined;
2330
+ } | {
2331
+ dialect: "cel" | "js" | "cron" | "template";
2332
+ source?: string | undefined;
2333
+ ast?: unknown;
2334
+ meta?: {
2335
+ rationale?: string | undefined;
2336
+ generatedBy?: string | undefined;
2337
+ } | undefined;
2338
+ } | undefined;
2038
2339
  compactLayout?: string[] | undefined;
2039
2340
  search?: {
2040
2341
  fields: string[];
@@ -2090,8 +2391,24 @@ declare const SysPermissionSet: Omit<{
2090
2391
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
2091
2392
  confirmText?: string | undefined;
2092
2393
  successMessage?: string | undefined;
2093
- visible?: string | undefined;
2094
- disabled?: string | boolean | undefined;
2394
+ visible?: {
2395
+ dialect: "cel" | "js" | "cron" | "template";
2396
+ source?: string | undefined;
2397
+ ast?: unknown;
2398
+ meta?: {
2399
+ rationale?: string | undefined;
2400
+ generatedBy?: string | undefined;
2401
+ } | undefined;
2402
+ } | undefined;
2403
+ disabled?: boolean | {
2404
+ dialect: "cel" | "js" | "cron" | "template";
2405
+ source?: string | undefined;
2406
+ ast?: unknown;
2407
+ meta?: {
2408
+ rationale?: string | undefined;
2409
+ generatedBy?: string | undefined;
2410
+ } | undefined;
2411
+ } | undefined;
2095
2412
  shortcut?: string | undefined;
2096
2413
  bulkEnabled?: boolean | undefined;
2097
2414
  timeout?: number | undefined;
@@ -2161,7 +2478,15 @@ declare const SysPermissionSet: Omit<{
2161
2478
  readonly referenceFilters?: string[] | undefined;
2162
2479
  readonly writeRequiresMasterRead?: boolean | undefined;
2163
2480
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
2164
- readonly expression?: string | undefined;
2481
+ readonly expression?: {
2482
+ dialect: "cel" | "js" | "cron" | "template";
2483
+ source?: string | undefined;
2484
+ ast?: unknown;
2485
+ meta?: {
2486
+ rationale?: string | undefined;
2487
+ generatedBy?: string | undefined;
2488
+ } | undefined;
2489
+ } | undefined;
2165
2490
  readonly summaryOperations?: {
2166
2491
  object: string;
2167
2492
  field: string;
@@ -2260,7 +2585,15 @@ declare const SysPermissionSet: Omit<{
2260
2585
  threshold: number;
2261
2586
  } | undefined;
2262
2587
  } | undefined;
2263
- readonly conditionalRequired?: string | undefined;
2588
+ readonly conditionalRequired?: {
2589
+ dialect: "cel" | "js" | "cron" | "template";
2590
+ source?: string | undefined;
2591
+ ast?: unknown;
2592
+ meta?: {
2593
+ rationale?: string | undefined;
2594
+ generatedBy?: string | undefined;
2595
+ } | undefined;
2596
+ } | undefined;
2264
2597
  readonly hidden?: boolean | undefined;
2265
2598
  readonly sortable?: boolean | undefined;
2266
2599
  readonly inlineHelpText?: string | undefined;
@@ -2319,7 +2652,15 @@ declare const SysPermissionSet: Omit<{
2319
2652
  readonly referenceFilters?: string[] | undefined;
2320
2653
  readonly writeRequiresMasterRead?: boolean | undefined;
2321
2654
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
2322
- readonly expression?: string | undefined;
2655
+ readonly expression?: {
2656
+ dialect: "cel" | "js" | "cron" | "template";
2657
+ source?: string | undefined;
2658
+ ast?: unknown;
2659
+ meta?: {
2660
+ rationale?: string | undefined;
2661
+ generatedBy?: string | undefined;
2662
+ } | undefined;
2663
+ } | undefined;
2323
2664
  readonly summaryOperations?: {
2324
2665
  object: string;
2325
2666
  field: string;
@@ -2418,7 +2759,15 @@ declare const SysPermissionSet: Omit<{
2418
2759
  threshold: number;
2419
2760
  } | undefined;
2420
2761
  } | undefined;
2421
- readonly conditionalRequired?: string | undefined;
2762
+ readonly conditionalRequired?: {
2763
+ dialect: "cel" | "js" | "cron" | "template";
2764
+ source?: string | undefined;
2765
+ ast?: unknown;
2766
+ meta?: {
2767
+ rationale?: string | undefined;
2768
+ generatedBy?: string | undefined;
2769
+ } | undefined;
2770
+ } | undefined;
2422
2771
  readonly hidden?: boolean | undefined;
2423
2772
  readonly sortable?: boolean | undefined;
2424
2773
  readonly inlineHelpText?: string | undefined;
@@ -2477,7 +2826,15 @@ declare const SysPermissionSet: Omit<{
2477
2826
  readonly referenceFilters?: string[] | undefined;
2478
2827
  readonly writeRequiresMasterRead?: boolean | undefined;
2479
2828
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
2480
- readonly expression?: string | undefined;
2829
+ readonly expression?: {
2830
+ dialect: "cel" | "js" | "cron" | "template";
2831
+ source?: string | undefined;
2832
+ ast?: unknown;
2833
+ meta?: {
2834
+ rationale?: string | undefined;
2835
+ generatedBy?: string | undefined;
2836
+ } | undefined;
2837
+ } | undefined;
2481
2838
  readonly summaryOperations?: {
2482
2839
  object: string;
2483
2840
  field: string;
@@ -2576,7 +2933,15 @@ declare const SysPermissionSet: Omit<{
2576
2933
  threshold: number;
2577
2934
  } | undefined;
2578
2935
  } | undefined;
2579
- readonly conditionalRequired?: string | undefined;
2936
+ readonly conditionalRequired?: {
2937
+ dialect: "cel" | "js" | "cron" | "template";
2938
+ source?: string | undefined;
2939
+ ast?: unknown;
2940
+ meta?: {
2941
+ rationale?: string | undefined;
2942
+ generatedBy?: string | undefined;
2943
+ } | undefined;
2944
+ } | undefined;
2580
2945
  readonly hidden?: boolean | undefined;
2581
2946
  readonly sortable?: boolean | undefined;
2582
2947
  readonly inlineHelpText?: string | undefined;
@@ -2635,7 +3000,15 @@ declare const SysPermissionSet: Omit<{
2635
3000
  readonly referenceFilters?: string[] | undefined;
2636
3001
  readonly writeRequiresMasterRead?: boolean | undefined;
2637
3002
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
2638
- readonly expression?: string | undefined;
3003
+ readonly expression?: {
3004
+ dialect: "cel" | "js" | "cron" | "template";
3005
+ source?: string | undefined;
3006
+ ast?: unknown;
3007
+ meta?: {
3008
+ rationale?: string | undefined;
3009
+ generatedBy?: string | undefined;
3010
+ } | undefined;
3011
+ } | undefined;
2639
3012
  readonly summaryOperations?: {
2640
3013
  object: string;
2641
3014
  field: string;
@@ -2734,7 +3107,15 @@ declare const SysPermissionSet: Omit<{
2734
3107
  threshold: number;
2735
3108
  } | undefined;
2736
3109
  } | undefined;
2737
- readonly conditionalRequired?: string | undefined;
3110
+ readonly conditionalRequired?: {
3111
+ dialect: "cel" | "js" | "cron" | "template";
3112
+ source?: string | undefined;
3113
+ ast?: unknown;
3114
+ meta?: {
3115
+ rationale?: string | undefined;
3116
+ generatedBy?: string | undefined;
3117
+ } | undefined;
3118
+ } | undefined;
2738
3119
  readonly hidden?: boolean | undefined;
2739
3120
  readonly sortable?: boolean | undefined;
2740
3121
  readonly inlineHelpText?: string | undefined;
@@ -2793,7 +3174,15 @@ declare const SysPermissionSet: Omit<{
2793
3174
  readonly referenceFilters?: string[] | undefined;
2794
3175
  readonly writeRequiresMasterRead?: boolean | undefined;
2795
3176
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
2796
- readonly expression?: string | undefined;
3177
+ readonly expression?: {
3178
+ dialect: "cel" | "js" | "cron" | "template";
3179
+ source?: string | undefined;
3180
+ ast?: unknown;
3181
+ meta?: {
3182
+ rationale?: string | undefined;
3183
+ generatedBy?: string | undefined;
3184
+ } | undefined;
3185
+ } | undefined;
2797
3186
  readonly summaryOperations?: {
2798
3187
  object: string;
2799
3188
  field: string;
@@ -2892,7 +3281,15 @@ declare const SysPermissionSet: Omit<{
2892
3281
  threshold: number;
2893
3282
  } | undefined;
2894
3283
  } | undefined;
2895
- readonly conditionalRequired?: string | undefined;
3284
+ readonly conditionalRequired?: {
3285
+ dialect: "cel" | "js" | "cron" | "template";
3286
+ source?: string | undefined;
3287
+ ast?: unknown;
3288
+ meta?: {
3289
+ rationale?: string | undefined;
3290
+ generatedBy?: string | undefined;
3291
+ } | undefined;
3292
+ } | undefined;
2896
3293
  readonly hidden?: boolean | undefined;
2897
3294
  readonly sortable?: boolean | undefined;
2898
3295
  readonly inlineHelpText?: string | undefined;
@@ -2951,7 +3348,15 @@ declare const SysPermissionSet: Omit<{
2951
3348
  readonly referenceFilters?: string[] | undefined;
2952
3349
  readonly writeRequiresMasterRead?: boolean | undefined;
2953
3350
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
2954
- readonly expression?: string | undefined;
3351
+ readonly expression?: {
3352
+ dialect: "cel" | "js" | "cron" | "template";
3353
+ source?: string | undefined;
3354
+ ast?: unknown;
3355
+ meta?: {
3356
+ rationale?: string | undefined;
3357
+ generatedBy?: string | undefined;
3358
+ } | undefined;
3359
+ } | undefined;
2955
3360
  readonly summaryOperations?: {
2956
3361
  object: string;
2957
3362
  field: string;
@@ -3050,7 +3455,15 @@ declare const SysPermissionSet: Omit<{
3050
3455
  threshold: number;
3051
3456
  } | undefined;
3052
3457
  } | undefined;
3053
- readonly conditionalRequired?: string | undefined;
3458
+ readonly conditionalRequired?: {
3459
+ dialect: "cel" | "js" | "cron" | "template";
3460
+ source?: string | undefined;
3461
+ ast?: unknown;
3462
+ meta?: {
3463
+ rationale?: string | undefined;
3464
+ generatedBy?: string | undefined;
3465
+ } | undefined;
3466
+ } | undefined;
3054
3467
  readonly hidden?: boolean | undefined;
3055
3468
  readonly sortable?: boolean | undefined;
3056
3469
  readonly inlineHelpText?: string | undefined;
@@ -3109,7 +3522,15 @@ declare const SysPermissionSet: Omit<{
3109
3522
  readonly referenceFilters?: string[] | undefined;
3110
3523
  readonly writeRequiresMasterRead?: boolean | undefined;
3111
3524
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
3112
- readonly expression?: string | undefined;
3525
+ readonly expression?: {
3526
+ dialect: "cel" | "js" | "cron" | "template";
3527
+ source?: string | undefined;
3528
+ ast?: unknown;
3529
+ meta?: {
3530
+ rationale?: string | undefined;
3531
+ generatedBy?: string | undefined;
3532
+ } | undefined;
3533
+ } | undefined;
3113
3534
  readonly summaryOperations?: {
3114
3535
  object: string;
3115
3536
  field: string;
@@ -3208,7 +3629,15 @@ declare const SysPermissionSet: Omit<{
3208
3629
  threshold: number;
3209
3630
  } | undefined;
3210
3631
  } | undefined;
3211
- readonly conditionalRequired?: string | undefined;
3632
+ readonly conditionalRequired?: {
3633
+ dialect: "cel" | "js" | "cron" | "template";
3634
+ source?: string | undefined;
3635
+ ast?: unknown;
3636
+ meta?: {
3637
+ rationale?: string | undefined;
3638
+ generatedBy?: string | undefined;
3639
+ } | undefined;
3640
+ } | undefined;
3212
3641
  readonly hidden?: boolean | undefined;
3213
3642
  readonly sortable?: boolean | undefined;
3214
3643
  readonly inlineHelpText?: string | undefined;
@@ -3267,7 +3696,15 @@ declare const SysPermissionSet: Omit<{
3267
3696
  readonly referenceFilters?: string[] | undefined;
3268
3697
  readonly writeRequiresMasterRead?: boolean | undefined;
3269
3698
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
3270
- readonly expression?: string | undefined;
3699
+ readonly expression?: {
3700
+ dialect: "cel" | "js" | "cron" | "template";
3701
+ source?: string | undefined;
3702
+ ast?: unknown;
3703
+ meta?: {
3704
+ rationale?: string | undefined;
3705
+ generatedBy?: string | undefined;
3706
+ } | undefined;
3707
+ } | undefined;
3271
3708
  readonly summaryOperations?: {
3272
3709
  object: string;
3273
3710
  field: string;
@@ -3366,7 +3803,15 @@ declare const SysPermissionSet: Omit<{
3366
3803
  threshold: number;
3367
3804
  } | undefined;
3368
3805
  } | undefined;
3369
- readonly conditionalRequired?: string | undefined;
3806
+ readonly conditionalRequired?: {
3807
+ dialect: "cel" | "js" | "cron" | "template";
3808
+ source?: string | undefined;
3809
+ ast?: unknown;
3810
+ meta?: {
3811
+ rationale?: string | undefined;
3812
+ generatedBy?: string | undefined;
3813
+ } | undefined;
3814
+ } | undefined;
3370
3815
  readonly hidden?: boolean | undefined;
3371
3816
  readonly sortable?: boolean | undefined;
3372
3817
  readonly inlineHelpText?: string | undefined;
@@ -3425,7 +3870,15 @@ declare const SysPermissionSet: Omit<{
3425
3870
  readonly referenceFilters?: string[] | undefined;
3426
3871
  readonly writeRequiresMasterRead?: boolean | undefined;
3427
3872
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
3428
- readonly expression?: string | undefined;
3873
+ readonly expression?: {
3874
+ dialect: "cel" | "js" | "cron" | "template";
3875
+ source?: string | undefined;
3876
+ ast?: unknown;
3877
+ meta?: {
3878
+ rationale?: string | undefined;
3879
+ generatedBy?: string | undefined;
3880
+ } | undefined;
3881
+ } | undefined;
3429
3882
  readonly summaryOperations?: {
3430
3883
  object: string;
3431
3884
  field: string;
@@ -3524,7 +3977,15 @@ declare const SysPermissionSet: Omit<{
3524
3977
  threshold: number;
3525
3978
  } | undefined;
3526
3979
  } | undefined;
3527
- readonly conditionalRequired?: string | undefined;
3980
+ readonly conditionalRequired?: {
3981
+ dialect: "cel" | "js" | "cron" | "template";
3982
+ source?: string | undefined;
3983
+ ast?: unknown;
3984
+ meta?: {
3985
+ rationale?: string | undefined;
3986
+ generatedBy?: string | undefined;
3987
+ } | undefined;
3988
+ } | undefined;
3528
3989
  readonly hidden?: boolean | undefined;
3529
3990
  readonly sortable?: boolean | undefined;
3530
3991
  readonly inlineHelpText?: string | undefined;
@@ -3551,4 +4012,3010 @@ declare const SysPermissionSet: Omit<{
3551
4012
  };
3552
4013
  }, "fields">;
3553
4014
 
3554
- export { SysPermissionSet, SysRole };
4015
+ /**
4016
+ * sys_user_permission_set — User ↔ PermissionSet assignment.
4017
+ *
4018
+ * Salesforce-style additive permission grant: a user may be assigned any
4019
+ * number of `sys_permission_set` rows, optionally scoped to a specific
4020
+ * organization. The runtime resolver (`resolveExecutionContext` in
4021
+ * `@objectstack/runtime`) reads this table when building the per-request
4022
+ * `ExecutionContext.permissions[]`.
4023
+ *
4024
+ * Uniqueness is `(user_id, permission_set_id, organization_id)` so the
4025
+ * same permission set can be granted independently in each org context
4026
+ * the user belongs to.
4027
+ *
4028
+ * @namespace sys
4029
+ */
4030
+ declare const SysUserPermissionSet: Omit<{
4031
+ name: string;
4032
+ active: boolean;
4033
+ isSystem: boolean;
4034
+ abstract: boolean;
4035
+ datasource: string;
4036
+ fields: Record<string, {
4037
+ type: "number" | "boolean" | "tags" | "date" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "vector";
4038
+ required: boolean;
4039
+ searchable: boolean;
4040
+ multiple: boolean;
4041
+ unique: boolean;
4042
+ deleteBehavior: "set_null" | "cascade" | "restrict";
4043
+ auditTrail: boolean;
4044
+ hidden: boolean;
4045
+ readonly: boolean;
4046
+ sortable: boolean;
4047
+ index: boolean;
4048
+ externalId: boolean;
4049
+ name?: string | undefined;
4050
+ label?: string | undefined;
4051
+ description?: string | undefined;
4052
+ format?: string | undefined;
4053
+ columnName?: string | undefined;
4054
+ defaultValue?: unknown;
4055
+ maxLength?: number | undefined;
4056
+ minLength?: number | undefined;
4057
+ precision?: number | undefined;
4058
+ scale?: number | undefined;
4059
+ min?: number | undefined;
4060
+ max?: number | undefined;
4061
+ options?: {
4062
+ label: string;
4063
+ value: string;
4064
+ color?: string | undefined;
4065
+ default?: boolean | undefined;
4066
+ }[] | undefined;
4067
+ reference?: string | undefined;
4068
+ referenceFilters?: string[] | undefined;
4069
+ writeRequiresMasterRead?: boolean | undefined;
4070
+ expression?: {
4071
+ dialect: "cel" | "js" | "cron" | "template";
4072
+ source?: string | undefined;
4073
+ ast?: unknown;
4074
+ meta?: {
4075
+ rationale?: string | undefined;
4076
+ generatedBy?: string | undefined;
4077
+ } | undefined;
4078
+ } | {
4079
+ dialect: "cel" | "js" | "cron" | "template";
4080
+ source?: string | undefined;
4081
+ ast?: unknown;
4082
+ meta?: {
4083
+ rationale?: string | undefined;
4084
+ generatedBy?: string | undefined;
4085
+ } | undefined;
4086
+ } | undefined;
4087
+ summaryOperations?: {
4088
+ object: string;
4089
+ field: string;
4090
+ function: "min" | "max" | "count" | "sum" | "avg";
4091
+ } | undefined;
4092
+ language?: string | undefined;
4093
+ theme?: string | undefined;
4094
+ lineNumbers?: boolean | undefined;
4095
+ maxRating?: number | undefined;
4096
+ allowHalf?: boolean | undefined;
4097
+ displayMap?: boolean | undefined;
4098
+ allowGeocoding?: boolean | undefined;
4099
+ addressFormat?: "us" | "uk" | "international" | undefined;
4100
+ colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
4101
+ allowAlpha?: boolean | undefined;
4102
+ presetColors?: string[] | undefined;
4103
+ step?: number | undefined;
4104
+ showValue?: boolean | undefined;
4105
+ marks?: Record<string, string> | undefined;
4106
+ barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
4107
+ qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
4108
+ displayValue?: boolean | undefined;
4109
+ allowScanning?: boolean | undefined;
4110
+ currencyConfig?: {
4111
+ precision: number;
4112
+ currencyMode: "fixed" | "dynamic";
4113
+ defaultCurrency: string;
4114
+ } | undefined;
4115
+ vectorConfig?: {
4116
+ dimensions: number;
4117
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4118
+ normalized: boolean;
4119
+ indexed: boolean;
4120
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4121
+ } | undefined;
4122
+ fileAttachmentConfig?: {
4123
+ virusScan: boolean;
4124
+ virusScanOnUpload: boolean;
4125
+ quarantineOnThreat: boolean;
4126
+ allowMultiple: boolean;
4127
+ allowReplace: boolean;
4128
+ allowDelete: boolean;
4129
+ requireUpload: boolean;
4130
+ extractMetadata: boolean;
4131
+ extractText: boolean;
4132
+ versioningEnabled: boolean;
4133
+ publicRead: boolean;
4134
+ presignedUrlExpiry: number;
4135
+ minSize?: number | undefined;
4136
+ maxSize?: number | undefined;
4137
+ allowedTypes?: string[] | undefined;
4138
+ blockedTypes?: string[] | undefined;
4139
+ allowedMimeTypes?: string[] | undefined;
4140
+ blockedMimeTypes?: string[] | undefined;
4141
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4142
+ storageProvider?: string | undefined;
4143
+ storageBucket?: string | undefined;
4144
+ storagePrefix?: string | undefined;
4145
+ imageValidation?: {
4146
+ generateThumbnails: boolean;
4147
+ preserveMetadata: boolean;
4148
+ autoRotate: boolean;
4149
+ minWidth?: number | undefined;
4150
+ maxWidth?: number | undefined;
4151
+ minHeight?: number | undefined;
4152
+ maxHeight?: number | undefined;
4153
+ aspectRatio?: string | undefined;
4154
+ thumbnailSizes?: {
4155
+ name: string;
4156
+ width: number;
4157
+ height: number;
4158
+ crop: boolean;
4159
+ }[] | undefined;
4160
+ } | undefined;
4161
+ maxVersions?: number | undefined;
4162
+ } | undefined;
4163
+ encryptionConfig?: {
4164
+ enabled: boolean;
4165
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4166
+ keyManagement: {
4167
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4168
+ keyId?: string | undefined;
4169
+ rotationPolicy?: {
4170
+ enabled: boolean;
4171
+ frequencyDays: number;
4172
+ retainOldVersions: number;
4173
+ autoRotate: boolean;
4174
+ } | undefined;
4175
+ };
4176
+ scope: "field" | "record" | "table" | "database";
4177
+ deterministicEncryption: boolean;
4178
+ searchableEncryption: boolean;
4179
+ } | undefined;
4180
+ maskingRule?: {
4181
+ field: string;
4182
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
4183
+ preserveFormat: boolean;
4184
+ preserveLength: boolean;
4185
+ pattern?: string | undefined;
4186
+ roles?: string[] | undefined;
4187
+ exemptRoles?: string[] | undefined;
4188
+ } | undefined;
4189
+ dependencies?: string[] | undefined;
4190
+ cached?: {
4191
+ enabled: boolean;
4192
+ ttl: number;
4193
+ invalidateOn: string[];
4194
+ } | undefined;
4195
+ dataQuality?: {
4196
+ uniqueness: boolean;
4197
+ completeness: number;
4198
+ accuracy?: {
4199
+ source: string;
4200
+ threshold: number;
4201
+ } | undefined;
4202
+ } | undefined;
4203
+ group?: string | undefined;
4204
+ conditionalRequired?: {
4205
+ dialect: "cel" | "js" | "cron" | "template";
4206
+ source?: string | undefined;
4207
+ ast?: unknown;
4208
+ meta?: {
4209
+ rationale?: string | undefined;
4210
+ generatedBy?: string | undefined;
4211
+ } | undefined;
4212
+ } | {
4213
+ dialect: "cel" | "js" | "cron" | "template";
4214
+ source?: string | undefined;
4215
+ ast?: unknown;
4216
+ meta?: {
4217
+ rationale?: string | undefined;
4218
+ generatedBy?: string | undefined;
4219
+ } | undefined;
4220
+ } | undefined;
4221
+ inlineHelpText?: string | undefined;
4222
+ trackFeedHistory?: boolean | undefined;
4223
+ caseSensitive?: boolean | undefined;
4224
+ autonumberFormat?: string | undefined;
4225
+ }>;
4226
+ label?: string | undefined;
4227
+ pluralLabel?: string | undefined;
4228
+ description?: string | undefined;
4229
+ icon?: string | undefined;
4230
+ tags?: string[] | undefined;
4231
+ managedBy?: "system" | "better-auth" | "platform" | undefined;
4232
+ systemFields?: false | {
4233
+ tenant?: boolean | undefined;
4234
+ owner?: boolean | undefined;
4235
+ audit?: boolean | undefined;
4236
+ } | undefined;
4237
+ indexes?: {
4238
+ fields: string[];
4239
+ type: "hash" | "btree" | "gin" | "gist" | "fulltext";
4240
+ unique: boolean;
4241
+ name?: string | undefined;
4242
+ partial?: string | undefined;
4243
+ }[] | undefined;
4244
+ fieldGroups?: {
4245
+ key: string;
4246
+ label: string;
4247
+ defaultExpanded: boolean;
4248
+ icon?: string | undefined;
4249
+ description?: string | undefined;
4250
+ visibleOn?: {
4251
+ dialect: "cel" | "js" | "cron" | "template";
4252
+ source?: string | undefined;
4253
+ ast?: unknown;
4254
+ meta?: {
4255
+ rationale?: string | undefined;
4256
+ generatedBy?: string | undefined;
4257
+ } | undefined;
4258
+ } | {
4259
+ dialect: "cel" | "js" | "cron" | "template";
4260
+ source?: string | undefined;
4261
+ ast?: unknown;
4262
+ meta?: {
4263
+ rationale?: string | undefined;
4264
+ generatedBy?: string | undefined;
4265
+ } | undefined;
4266
+ } | undefined;
4267
+ }[] | undefined;
4268
+ tenancy?: {
4269
+ enabled: boolean;
4270
+ strategy: "hybrid" | "shared" | "isolated";
4271
+ tenantField: string;
4272
+ crossTenantAccess: boolean;
4273
+ } | undefined;
4274
+ softDelete?: {
4275
+ enabled: boolean;
4276
+ field: string;
4277
+ cascadeDelete: boolean;
4278
+ } | undefined;
4279
+ versioning?: {
4280
+ enabled: boolean;
4281
+ strategy: "snapshot" | "delta" | "event-sourcing";
4282
+ versionField: string;
4283
+ retentionDays?: number | undefined;
4284
+ } | undefined;
4285
+ partitioning?: {
4286
+ enabled: boolean;
4287
+ strategy: "hash" | "list" | "range";
4288
+ key: string;
4289
+ interval?: string | undefined;
4290
+ } | undefined;
4291
+ cdc?: {
4292
+ enabled: boolean;
4293
+ events: ("delete" | "update" | "insert")[];
4294
+ destination: string;
4295
+ } | undefined;
4296
+ validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
4297
+ stateMachines?: Record<string, {
4298
+ id: string;
4299
+ initial: string;
4300
+ states: Record<string, StateNodeConfig>;
4301
+ description?: string | undefined;
4302
+ contextSchema?: Record<string, unknown> | undefined;
4303
+ on?: Record<string, string | {
4304
+ target?: string | undefined;
4305
+ cond?: string | {
4306
+ type: string;
4307
+ params?: Record<string, unknown> | undefined;
4308
+ } | undefined;
4309
+ actions?: (string | {
4310
+ type: string;
4311
+ params?: Record<string, unknown> | undefined;
4312
+ })[] | undefined;
4313
+ description?: string | undefined;
4314
+ } | {
4315
+ target?: string | undefined;
4316
+ cond?: string | {
4317
+ type: string;
4318
+ params?: Record<string, unknown> | undefined;
4319
+ } | undefined;
4320
+ actions?: (string | {
4321
+ type: string;
4322
+ params?: Record<string, unknown> | undefined;
4323
+ })[] | undefined;
4324
+ description?: string | undefined;
4325
+ }[]> | undefined;
4326
+ }> | undefined;
4327
+ displayNameField?: string | undefined;
4328
+ recordName?: {
4329
+ type: "text" | "autonumber";
4330
+ displayFormat?: string | undefined;
4331
+ startNumber?: number | undefined;
4332
+ } | undefined;
4333
+ titleFormat?: {
4334
+ dialect: "cel" | "js" | "cron" | "template";
4335
+ source?: string | undefined;
4336
+ ast?: unknown;
4337
+ meta?: {
4338
+ rationale?: string | undefined;
4339
+ generatedBy?: string | undefined;
4340
+ } | undefined;
4341
+ } | {
4342
+ dialect: "cel" | "js" | "cron" | "template";
4343
+ source?: string | undefined;
4344
+ ast?: unknown;
4345
+ meta?: {
4346
+ rationale?: string | undefined;
4347
+ generatedBy?: string | undefined;
4348
+ } | undefined;
4349
+ } | undefined;
4350
+ compactLayout?: string[] | undefined;
4351
+ search?: {
4352
+ fields: string[];
4353
+ displayFields?: string[] | undefined;
4354
+ filters?: string[] | undefined;
4355
+ } | undefined;
4356
+ enable?: {
4357
+ trackHistory: boolean;
4358
+ searchable: boolean;
4359
+ apiEnabled: boolean;
4360
+ files: boolean;
4361
+ feeds: boolean;
4362
+ activities: boolean;
4363
+ trash: boolean;
4364
+ mru: boolean;
4365
+ clone: boolean;
4366
+ apiMethods?: ("search" | "list" | "get" | "delete" | "update" | "upsert" | "history" | "create" | "bulk" | "aggregate" | "restore" | "purge" | "import" | "export")[] | undefined;
4367
+ } | undefined;
4368
+ recordTypes?: string[] | undefined;
4369
+ sharingModel?: "full" | "private" | "read" | "read_write" | undefined;
4370
+ keyPrefix?: string | undefined;
4371
+ actions?: {
4372
+ name: string;
4373
+ label: string;
4374
+ type: "url" | "flow" | "api" | "script" | "modal";
4375
+ refreshAfter: boolean;
4376
+ objectName?: string | undefined;
4377
+ icon?: string | undefined;
4378
+ locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "global_nav")[] | undefined;
4379
+ component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined;
4380
+ target?: string | undefined;
4381
+ body?: {
4382
+ language: "expression";
4383
+ source: string;
4384
+ } | {
4385
+ language: "js";
4386
+ source: string;
4387
+ capabilities: ("api.read" | "api.write" | "crypto.uuid" | "crypto.hash" | "log")[];
4388
+ timeoutMs?: number | undefined;
4389
+ memoryMb?: number | undefined;
4390
+ } | undefined;
4391
+ execute?: string | undefined;
4392
+ params?: {
4393
+ name: string;
4394
+ label: string;
4395
+ type: "number" | "boolean" | "date" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
4396
+ required: boolean;
4397
+ options?: {
4398
+ label: string;
4399
+ value: string;
4400
+ }[] | undefined;
4401
+ }[] | undefined;
4402
+ variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
4403
+ confirmText?: string | undefined;
4404
+ successMessage?: string | undefined;
4405
+ visible?: {
4406
+ dialect: "cel" | "js" | "cron" | "template";
4407
+ source?: string | undefined;
4408
+ ast?: unknown;
4409
+ meta?: {
4410
+ rationale?: string | undefined;
4411
+ generatedBy?: string | undefined;
4412
+ } | undefined;
4413
+ } | undefined;
4414
+ disabled?: boolean | {
4415
+ dialect: "cel" | "js" | "cron" | "template";
4416
+ source?: string | undefined;
4417
+ ast?: unknown;
4418
+ meta?: {
4419
+ rationale?: string | undefined;
4420
+ generatedBy?: string | undefined;
4421
+ } | undefined;
4422
+ } | undefined;
4423
+ shortcut?: string | undefined;
4424
+ bulkEnabled?: boolean | undefined;
4425
+ timeout?: number | undefined;
4426
+ aria?: {
4427
+ ariaLabel?: string | undefined;
4428
+ ariaDescribedBy?: string | undefined;
4429
+ role?: string | undefined;
4430
+ } | undefined;
4431
+ }[] | undefined;
4432
+ }, "fields"> & Pick<{
4433
+ readonly name: "sys_user_permission_set";
4434
+ readonly label: "User Permission Set";
4435
+ readonly pluralLabel: "User Permission Sets";
4436
+ readonly icon: "user-check";
4437
+ readonly isSystem: true;
4438
+ readonly description: "Direct assignment of a permission set to a user (optionally scoped to an organization).";
4439
+ readonly titleFormat: "{user_id} → {permission_set_id}";
4440
+ readonly compactLayout: ["user_id", "permission_set_id", "organization_id"];
4441
+ readonly fields: {
4442
+ readonly id: {
4443
+ readonly readonly?: boolean | undefined;
4444
+ readonly format?: string | undefined;
4445
+ readonly options?: {
4446
+ label: string;
4447
+ value: string;
4448
+ color?: string | undefined;
4449
+ default?: boolean | undefined;
4450
+ }[] | undefined;
4451
+ readonly description?: string | undefined;
4452
+ readonly label?: string | undefined;
4453
+ readonly name?: string | undefined;
4454
+ readonly precision?: number | undefined;
4455
+ readonly required?: boolean | undefined;
4456
+ readonly multiple?: boolean | undefined;
4457
+ readonly dependencies?: string[] | undefined;
4458
+ readonly theme?: string | undefined;
4459
+ readonly externalId?: boolean | undefined;
4460
+ readonly min?: number | undefined;
4461
+ readonly max?: number | undefined;
4462
+ readonly group?: string | undefined;
4463
+ readonly encryptionConfig?: {
4464
+ enabled: boolean;
4465
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4466
+ keyManagement: {
4467
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4468
+ keyId?: string | undefined;
4469
+ rotationPolicy?: {
4470
+ enabled: boolean;
4471
+ frequencyDays: number;
4472
+ retainOldVersions: number;
4473
+ autoRotate: boolean;
4474
+ } | undefined;
4475
+ };
4476
+ scope: "record" | "field" | "table" | "database";
4477
+ deterministicEncryption: boolean;
4478
+ searchableEncryption: boolean;
4479
+ } | undefined;
4480
+ readonly columnName?: string | undefined;
4481
+ readonly searchable?: boolean | undefined;
4482
+ readonly unique?: boolean | undefined;
4483
+ readonly defaultValue?: unknown;
4484
+ readonly maxLength?: number | undefined;
4485
+ readonly minLength?: number | undefined;
4486
+ readonly scale?: number | undefined;
4487
+ readonly reference?: string | undefined;
4488
+ readonly referenceFilters?: string[] | undefined;
4489
+ readonly writeRequiresMasterRead?: boolean | undefined;
4490
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4491
+ readonly expression?: {
4492
+ dialect: "cel" | "js" | "cron" | "template";
4493
+ source?: string | undefined;
4494
+ ast?: unknown;
4495
+ meta?: {
4496
+ rationale?: string | undefined;
4497
+ generatedBy?: string | undefined;
4498
+ } | undefined;
4499
+ } | undefined;
4500
+ readonly summaryOperations?: {
4501
+ object: string;
4502
+ field: string;
4503
+ function: "min" | "max" | "count" | "sum" | "avg";
4504
+ } | undefined;
4505
+ readonly language?: string | undefined;
4506
+ readonly lineNumbers?: boolean | undefined;
4507
+ readonly maxRating?: number | undefined;
4508
+ readonly allowHalf?: boolean | undefined;
4509
+ readonly displayMap?: boolean | undefined;
4510
+ readonly allowGeocoding?: boolean | undefined;
4511
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
4512
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
4513
+ readonly allowAlpha?: boolean | undefined;
4514
+ readonly presetColors?: string[] | undefined;
4515
+ readonly step?: number | undefined;
4516
+ readonly showValue?: boolean | undefined;
4517
+ readonly marks?: Record<string, string> | undefined;
4518
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
4519
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
4520
+ readonly displayValue?: boolean | undefined;
4521
+ readonly allowScanning?: boolean | undefined;
4522
+ readonly currencyConfig?: {
4523
+ precision: number;
4524
+ currencyMode: "fixed" | "dynamic";
4525
+ defaultCurrency: string;
4526
+ } | undefined;
4527
+ readonly vectorConfig?: {
4528
+ dimensions: number;
4529
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4530
+ normalized: boolean;
4531
+ indexed: boolean;
4532
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4533
+ } | undefined;
4534
+ readonly fileAttachmentConfig?: {
4535
+ virusScan: boolean;
4536
+ virusScanOnUpload: boolean;
4537
+ quarantineOnThreat: boolean;
4538
+ allowMultiple: boolean;
4539
+ allowReplace: boolean;
4540
+ allowDelete: boolean;
4541
+ requireUpload: boolean;
4542
+ extractMetadata: boolean;
4543
+ extractText: boolean;
4544
+ versioningEnabled: boolean;
4545
+ publicRead: boolean;
4546
+ presignedUrlExpiry: number;
4547
+ minSize?: number | undefined;
4548
+ maxSize?: number | undefined;
4549
+ allowedTypes?: string[] | undefined;
4550
+ blockedTypes?: string[] | undefined;
4551
+ allowedMimeTypes?: string[] | undefined;
4552
+ blockedMimeTypes?: string[] | undefined;
4553
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4554
+ storageProvider?: string | undefined;
4555
+ storageBucket?: string | undefined;
4556
+ storagePrefix?: string | undefined;
4557
+ imageValidation?: {
4558
+ generateThumbnails: boolean;
4559
+ preserveMetadata: boolean;
4560
+ autoRotate: boolean;
4561
+ minWidth?: number | undefined;
4562
+ maxWidth?: number | undefined;
4563
+ minHeight?: number | undefined;
4564
+ maxHeight?: number | undefined;
4565
+ aspectRatio?: string | undefined;
4566
+ thumbnailSizes?: {
4567
+ name: string;
4568
+ width: number;
4569
+ height: number;
4570
+ crop: boolean;
4571
+ }[] | undefined;
4572
+ } | undefined;
4573
+ maxVersions?: number | undefined;
4574
+ } | undefined;
4575
+ readonly maskingRule?: {
4576
+ field: string;
4577
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
4578
+ preserveFormat: boolean;
4579
+ preserveLength: boolean;
4580
+ pattern?: string | undefined;
4581
+ roles?: string[] | undefined;
4582
+ exemptRoles?: string[] | undefined;
4583
+ } | undefined;
4584
+ readonly auditTrail?: boolean | undefined;
4585
+ readonly cached?: {
4586
+ enabled: boolean;
4587
+ ttl: number;
4588
+ invalidateOn: string[];
4589
+ } | undefined;
4590
+ readonly dataQuality?: {
4591
+ uniqueness: boolean;
4592
+ completeness: number;
4593
+ accuracy?: {
4594
+ source: string;
4595
+ threshold: number;
4596
+ } | undefined;
4597
+ } | undefined;
4598
+ readonly conditionalRequired?: {
4599
+ dialect: "cel" | "js" | "cron" | "template";
4600
+ source?: string | undefined;
4601
+ ast?: unknown;
4602
+ meta?: {
4603
+ rationale?: string | undefined;
4604
+ generatedBy?: string | undefined;
4605
+ } | undefined;
4606
+ } | undefined;
4607
+ readonly hidden?: boolean | undefined;
4608
+ readonly sortable?: boolean | undefined;
4609
+ readonly inlineHelpText?: string | undefined;
4610
+ readonly trackFeedHistory?: boolean | undefined;
4611
+ readonly caseSensitive?: boolean | undefined;
4612
+ readonly autonumberFormat?: string | undefined;
4613
+ readonly index?: boolean | undefined;
4614
+ readonly type: "text";
4615
+ };
4616
+ readonly user_id: {
4617
+ readonly readonly?: boolean | undefined;
4618
+ readonly format?: string | undefined;
4619
+ readonly options?: {
4620
+ label: string;
4621
+ value: string;
4622
+ color?: string | undefined;
4623
+ default?: boolean | undefined;
4624
+ }[] | undefined;
4625
+ readonly description?: string | undefined;
4626
+ readonly label?: string | undefined;
4627
+ readonly name?: string | undefined;
4628
+ readonly precision?: number | undefined;
4629
+ readonly required?: boolean | undefined;
4630
+ readonly multiple?: boolean | undefined;
4631
+ readonly dependencies?: string[] | undefined;
4632
+ readonly theme?: string | undefined;
4633
+ readonly externalId?: boolean | undefined;
4634
+ readonly min?: number | undefined;
4635
+ readonly max?: number | undefined;
4636
+ readonly group?: string | undefined;
4637
+ readonly encryptionConfig?: {
4638
+ enabled: boolean;
4639
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4640
+ keyManagement: {
4641
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4642
+ keyId?: string | undefined;
4643
+ rotationPolicy?: {
4644
+ enabled: boolean;
4645
+ frequencyDays: number;
4646
+ retainOldVersions: number;
4647
+ autoRotate: boolean;
4648
+ } | undefined;
4649
+ };
4650
+ scope: "record" | "field" | "table" | "database";
4651
+ deterministicEncryption: boolean;
4652
+ searchableEncryption: boolean;
4653
+ } | undefined;
4654
+ readonly columnName?: string | undefined;
4655
+ readonly searchable?: boolean | undefined;
4656
+ readonly unique?: boolean | undefined;
4657
+ readonly defaultValue?: unknown;
4658
+ readonly maxLength?: number | undefined;
4659
+ readonly minLength?: number | undefined;
4660
+ readonly scale?: number | undefined;
4661
+ reference: string;
4662
+ readonly referenceFilters?: string[] | undefined;
4663
+ readonly writeRequiresMasterRead?: boolean | undefined;
4664
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4665
+ readonly expression?: {
4666
+ dialect: "cel" | "js" | "cron" | "template";
4667
+ source?: string | undefined;
4668
+ ast?: unknown;
4669
+ meta?: {
4670
+ rationale?: string | undefined;
4671
+ generatedBy?: string | undefined;
4672
+ } | undefined;
4673
+ } | undefined;
4674
+ readonly summaryOperations?: {
4675
+ object: string;
4676
+ field: string;
4677
+ function: "min" | "max" | "count" | "sum" | "avg";
4678
+ } | undefined;
4679
+ readonly language?: string | undefined;
4680
+ readonly lineNumbers?: boolean | undefined;
4681
+ readonly maxRating?: number | undefined;
4682
+ readonly allowHalf?: boolean | undefined;
4683
+ readonly displayMap?: boolean | undefined;
4684
+ readonly allowGeocoding?: boolean | undefined;
4685
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
4686
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
4687
+ readonly allowAlpha?: boolean | undefined;
4688
+ readonly presetColors?: string[] | undefined;
4689
+ readonly step?: number | undefined;
4690
+ readonly showValue?: boolean | undefined;
4691
+ readonly marks?: Record<string, string> | undefined;
4692
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
4693
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
4694
+ readonly displayValue?: boolean | undefined;
4695
+ readonly allowScanning?: boolean | undefined;
4696
+ readonly currencyConfig?: {
4697
+ precision: number;
4698
+ currencyMode: "fixed" | "dynamic";
4699
+ defaultCurrency: string;
4700
+ } | undefined;
4701
+ readonly vectorConfig?: {
4702
+ dimensions: number;
4703
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4704
+ normalized: boolean;
4705
+ indexed: boolean;
4706
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4707
+ } | undefined;
4708
+ readonly fileAttachmentConfig?: {
4709
+ virusScan: boolean;
4710
+ virusScanOnUpload: boolean;
4711
+ quarantineOnThreat: boolean;
4712
+ allowMultiple: boolean;
4713
+ allowReplace: boolean;
4714
+ allowDelete: boolean;
4715
+ requireUpload: boolean;
4716
+ extractMetadata: boolean;
4717
+ extractText: boolean;
4718
+ versioningEnabled: boolean;
4719
+ publicRead: boolean;
4720
+ presignedUrlExpiry: number;
4721
+ minSize?: number | undefined;
4722
+ maxSize?: number | undefined;
4723
+ allowedTypes?: string[] | undefined;
4724
+ blockedTypes?: string[] | undefined;
4725
+ allowedMimeTypes?: string[] | undefined;
4726
+ blockedMimeTypes?: string[] | undefined;
4727
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4728
+ storageProvider?: string | undefined;
4729
+ storageBucket?: string | undefined;
4730
+ storagePrefix?: string | undefined;
4731
+ imageValidation?: {
4732
+ generateThumbnails: boolean;
4733
+ preserveMetadata: boolean;
4734
+ autoRotate: boolean;
4735
+ minWidth?: number | undefined;
4736
+ maxWidth?: number | undefined;
4737
+ minHeight?: number | undefined;
4738
+ maxHeight?: number | undefined;
4739
+ aspectRatio?: string | undefined;
4740
+ thumbnailSizes?: {
4741
+ name: string;
4742
+ width: number;
4743
+ height: number;
4744
+ crop: boolean;
4745
+ }[] | undefined;
4746
+ } | undefined;
4747
+ maxVersions?: number | undefined;
4748
+ } | undefined;
4749
+ readonly maskingRule?: {
4750
+ field: string;
4751
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
4752
+ preserveFormat: boolean;
4753
+ preserveLength: boolean;
4754
+ pattern?: string | undefined;
4755
+ roles?: string[] | undefined;
4756
+ exemptRoles?: string[] | undefined;
4757
+ } | undefined;
4758
+ readonly auditTrail?: boolean | undefined;
4759
+ readonly cached?: {
4760
+ enabled: boolean;
4761
+ ttl: number;
4762
+ invalidateOn: string[];
4763
+ } | undefined;
4764
+ readonly dataQuality?: {
4765
+ uniqueness: boolean;
4766
+ completeness: number;
4767
+ accuracy?: {
4768
+ source: string;
4769
+ threshold: number;
4770
+ } | undefined;
4771
+ } | undefined;
4772
+ readonly conditionalRequired?: {
4773
+ dialect: "cel" | "js" | "cron" | "template";
4774
+ source?: string | undefined;
4775
+ ast?: unknown;
4776
+ meta?: {
4777
+ rationale?: string | undefined;
4778
+ generatedBy?: string | undefined;
4779
+ } | undefined;
4780
+ } | undefined;
4781
+ readonly hidden?: boolean | undefined;
4782
+ readonly sortable?: boolean | undefined;
4783
+ readonly inlineHelpText?: string | undefined;
4784
+ readonly trackFeedHistory?: boolean | undefined;
4785
+ readonly caseSensitive?: boolean | undefined;
4786
+ readonly autonumberFormat?: string | undefined;
4787
+ readonly index?: boolean | undefined;
4788
+ readonly type: "lookup";
4789
+ };
4790
+ readonly permission_set_id: {
4791
+ readonly readonly?: boolean | undefined;
4792
+ readonly format?: string | undefined;
4793
+ readonly options?: {
4794
+ label: string;
4795
+ value: string;
4796
+ color?: string | undefined;
4797
+ default?: boolean | undefined;
4798
+ }[] | undefined;
4799
+ readonly description?: string | undefined;
4800
+ readonly label?: string | undefined;
4801
+ readonly name?: string | undefined;
4802
+ readonly precision?: number | undefined;
4803
+ readonly required?: boolean | undefined;
4804
+ readonly multiple?: boolean | undefined;
4805
+ readonly dependencies?: string[] | undefined;
4806
+ readonly theme?: string | undefined;
4807
+ readonly externalId?: boolean | undefined;
4808
+ readonly min?: number | undefined;
4809
+ readonly max?: number | undefined;
4810
+ readonly group?: string | undefined;
4811
+ readonly encryptionConfig?: {
4812
+ enabled: boolean;
4813
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4814
+ keyManagement: {
4815
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4816
+ keyId?: string | undefined;
4817
+ rotationPolicy?: {
4818
+ enabled: boolean;
4819
+ frequencyDays: number;
4820
+ retainOldVersions: number;
4821
+ autoRotate: boolean;
4822
+ } | undefined;
4823
+ };
4824
+ scope: "record" | "field" | "table" | "database";
4825
+ deterministicEncryption: boolean;
4826
+ searchableEncryption: boolean;
4827
+ } | undefined;
4828
+ readonly columnName?: string | undefined;
4829
+ readonly searchable?: boolean | undefined;
4830
+ readonly unique?: boolean | undefined;
4831
+ readonly defaultValue?: unknown;
4832
+ readonly maxLength?: number | undefined;
4833
+ readonly minLength?: number | undefined;
4834
+ readonly scale?: number | undefined;
4835
+ reference: string;
4836
+ readonly referenceFilters?: string[] | undefined;
4837
+ readonly writeRequiresMasterRead?: boolean | undefined;
4838
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4839
+ readonly expression?: {
4840
+ dialect: "cel" | "js" | "cron" | "template";
4841
+ source?: string | undefined;
4842
+ ast?: unknown;
4843
+ meta?: {
4844
+ rationale?: string | undefined;
4845
+ generatedBy?: string | undefined;
4846
+ } | undefined;
4847
+ } | undefined;
4848
+ readonly summaryOperations?: {
4849
+ object: string;
4850
+ field: string;
4851
+ function: "min" | "max" | "count" | "sum" | "avg";
4852
+ } | undefined;
4853
+ readonly language?: string | undefined;
4854
+ readonly lineNumbers?: boolean | undefined;
4855
+ readonly maxRating?: number | undefined;
4856
+ readonly allowHalf?: boolean | undefined;
4857
+ readonly displayMap?: boolean | undefined;
4858
+ readonly allowGeocoding?: boolean | undefined;
4859
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
4860
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
4861
+ readonly allowAlpha?: boolean | undefined;
4862
+ readonly presetColors?: string[] | undefined;
4863
+ readonly step?: number | undefined;
4864
+ readonly showValue?: boolean | undefined;
4865
+ readonly marks?: Record<string, string> | undefined;
4866
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
4867
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
4868
+ readonly displayValue?: boolean | undefined;
4869
+ readonly allowScanning?: boolean | undefined;
4870
+ readonly currencyConfig?: {
4871
+ precision: number;
4872
+ currencyMode: "fixed" | "dynamic";
4873
+ defaultCurrency: string;
4874
+ } | undefined;
4875
+ readonly vectorConfig?: {
4876
+ dimensions: number;
4877
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4878
+ normalized: boolean;
4879
+ indexed: boolean;
4880
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4881
+ } | undefined;
4882
+ readonly fileAttachmentConfig?: {
4883
+ virusScan: boolean;
4884
+ virusScanOnUpload: boolean;
4885
+ quarantineOnThreat: boolean;
4886
+ allowMultiple: boolean;
4887
+ allowReplace: boolean;
4888
+ allowDelete: boolean;
4889
+ requireUpload: boolean;
4890
+ extractMetadata: boolean;
4891
+ extractText: boolean;
4892
+ versioningEnabled: boolean;
4893
+ publicRead: boolean;
4894
+ presignedUrlExpiry: number;
4895
+ minSize?: number | undefined;
4896
+ maxSize?: number | undefined;
4897
+ allowedTypes?: string[] | undefined;
4898
+ blockedTypes?: string[] | undefined;
4899
+ allowedMimeTypes?: string[] | undefined;
4900
+ blockedMimeTypes?: string[] | undefined;
4901
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4902
+ storageProvider?: string | undefined;
4903
+ storageBucket?: string | undefined;
4904
+ storagePrefix?: string | undefined;
4905
+ imageValidation?: {
4906
+ generateThumbnails: boolean;
4907
+ preserveMetadata: boolean;
4908
+ autoRotate: boolean;
4909
+ minWidth?: number | undefined;
4910
+ maxWidth?: number | undefined;
4911
+ minHeight?: number | undefined;
4912
+ maxHeight?: number | undefined;
4913
+ aspectRatio?: string | undefined;
4914
+ thumbnailSizes?: {
4915
+ name: string;
4916
+ width: number;
4917
+ height: number;
4918
+ crop: boolean;
4919
+ }[] | undefined;
4920
+ } | undefined;
4921
+ maxVersions?: number | undefined;
4922
+ } | undefined;
4923
+ readonly maskingRule?: {
4924
+ field: string;
4925
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
4926
+ preserveFormat: boolean;
4927
+ preserveLength: boolean;
4928
+ pattern?: string | undefined;
4929
+ roles?: string[] | undefined;
4930
+ exemptRoles?: string[] | undefined;
4931
+ } | undefined;
4932
+ readonly auditTrail?: boolean | undefined;
4933
+ readonly cached?: {
4934
+ enabled: boolean;
4935
+ ttl: number;
4936
+ invalidateOn: string[];
4937
+ } | undefined;
4938
+ readonly dataQuality?: {
4939
+ uniqueness: boolean;
4940
+ completeness: number;
4941
+ accuracy?: {
4942
+ source: string;
4943
+ threshold: number;
4944
+ } | undefined;
4945
+ } | undefined;
4946
+ readonly conditionalRequired?: {
4947
+ dialect: "cel" | "js" | "cron" | "template";
4948
+ source?: string | undefined;
4949
+ ast?: unknown;
4950
+ meta?: {
4951
+ rationale?: string | undefined;
4952
+ generatedBy?: string | undefined;
4953
+ } | undefined;
4954
+ } | undefined;
4955
+ readonly hidden?: boolean | undefined;
4956
+ readonly sortable?: boolean | undefined;
4957
+ readonly inlineHelpText?: string | undefined;
4958
+ readonly trackFeedHistory?: boolean | undefined;
4959
+ readonly caseSensitive?: boolean | undefined;
4960
+ readonly autonumberFormat?: string | undefined;
4961
+ readonly index?: boolean | undefined;
4962
+ readonly type: "lookup";
4963
+ };
4964
+ readonly organization_id: {
4965
+ readonly readonly?: boolean | undefined;
4966
+ readonly format?: string | undefined;
4967
+ readonly options?: {
4968
+ label: string;
4969
+ value: string;
4970
+ color?: string | undefined;
4971
+ default?: boolean | undefined;
4972
+ }[] | undefined;
4973
+ readonly description?: string | undefined;
4974
+ readonly label?: string | undefined;
4975
+ readonly name?: string | undefined;
4976
+ readonly precision?: number | undefined;
4977
+ readonly required?: boolean | undefined;
4978
+ readonly multiple?: boolean | undefined;
4979
+ readonly dependencies?: string[] | undefined;
4980
+ readonly theme?: string | undefined;
4981
+ readonly externalId?: boolean | undefined;
4982
+ readonly min?: number | undefined;
4983
+ readonly max?: number | undefined;
4984
+ readonly group?: string | undefined;
4985
+ readonly encryptionConfig?: {
4986
+ enabled: boolean;
4987
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4988
+ keyManagement: {
4989
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4990
+ keyId?: string | undefined;
4991
+ rotationPolicy?: {
4992
+ enabled: boolean;
4993
+ frequencyDays: number;
4994
+ retainOldVersions: number;
4995
+ autoRotate: boolean;
4996
+ } | undefined;
4997
+ };
4998
+ scope: "record" | "field" | "table" | "database";
4999
+ deterministicEncryption: boolean;
5000
+ searchableEncryption: boolean;
5001
+ } | undefined;
5002
+ readonly columnName?: string | undefined;
5003
+ readonly searchable?: boolean | undefined;
5004
+ readonly unique?: boolean | undefined;
5005
+ readonly defaultValue?: unknown;
5006
+ readonly maxLength?: number | undefined;
5007
+ readonly minLength?: number | undefined;
5008
+ readonly scale?: number | undefined;
5009
+ reference: string;
5010
+ readonly referenceFilters?: string[] | undefined;
5011
+ readonly writeRequiresMasterRead?: boolean | undefined;
5012
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
5013
+ readonly expression?: {
5014
+ dialect: "cel" | "js" | "cron" | "template";
5015
+ source?: string | undefined;
5016
+ ast?: unknown;
5017
+ meta?: {
5018
+ rationale?: string | undefined;
5019
+ generatedBy?: string | undefined;
5020
+ } | undefined;
5021
+ } | undefined;
5022
+ readonly summaryOperations?: {
5023
+ object: string;
5024
+ field: string;
5025
+ function: "min" | "max" | "count" | "sum" | "avg";
5026
+ } | undefined;
5027
+ readonly language?: string | undefined;
5028
+ readonly lineNumbers?: boolean | undefined;
5029
+ readonly maxRating?: number | undefined;
5030
+ readonly allowHalf?: boolean | undefined;
5031
+ readonly displayMap?: boolean | undefined;
5032
+ readonly allowGeocoding?: boolean | undefined;
5033
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
5034
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
5035
+ readonly allowAlpha?: boolean | undefined;
5036
+ readonly presetColors?: string[] | undefined;
5037
+ readonly step?: number | undefined;
5038
+ readonly showValue?: boolean | undefined;
5039
+ readonly marks?: Record<string, string> | undefined;
5040
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
5041
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
5042
+ readonly displayValue?: boolean | undefined;
5043
+ readonly allowScanning?: boolean | undefined;
5044
+ readonly currencyConfig?: {
5045
+ precision: number;
5046
+ currencyMode: "fixed" | "dynamic";
5047
+ defaultCurrency: string;
5048
+ } | undefined;
5049
+ readonly vectorConfig?: {
5050
+ dimensions: number;
5051
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5052
+ normalized: boolean;
5053
+ indexed: boolean;
5054
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5055
+ } | undefined;
5056
+ readonly fileAttachmentConfig?: {
5057
+ virusScan: boolean;
5058
+ virusScanOnUpload: boolean;
5059
+ quarantineOnThreat: boolean;
5060
+ allowMultiple: boolean;
5061
+ allowReplace: boolean;
5062
+ allowDelete: boolean;
5063
+ requireUpload: boolean;
5064
+ extractMetadata: boolean;
5065
+ extractText: boolean;
5066
+ versioningEnabled: boolean;
5067
+ publicRead: boolean;
5068
+ presignedUrlExpiry: number;
5069
+ minSize?: number | undefined;
5070
+ maxSize?: number | undefined;
5071
+ allowedTypes?: string[] | undefined;
5072
+ blockedTypes?: string[] | undefined;
5073
+ allowedMimeTypes?: string[] | undefined;
5074
+ blockedMimeTypes?: string[] | undefined;
5075
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5076
+ storageProvider?: string | undefined;
5077
+ storageBucket?: string | undefined;
5078
+ storagePrefix?: string | undefined;
5079
+ imageValidation?: {
5080
+ generateThumbnails: boolean;
5081
+ preserveMetadata: boolean;
5082
+ autoRotate: boolean;
5083
+ minWidth?: number | undefined;
5084
+ maxWidth?: number | undefined;
5085
+ minHeight?: number | undefined;
5086
+ maxHeight?: number | undefined;
5087
+ aspectRatio?: string | undefined;
5088
+ thumbnailSizes?: {
5089
+ name: string;
5090
+ width: number;
5091
+ height: number;
5092
+ crop: boolean;
5093
+ }[] | undefined;
5094
+ } | undefined;
5095
+ maxVersions?: number | undefined;
5096
+ } | undefined;
5097
+ readonly maskingRule?: {
5098
+ field: string;
5099
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
5100
+ preserveFormat: boolean;
5101
+ preserveLength: boolean;
5102
+ pattern?: string | undefined;
5103
+ roles?: string[] | undefined;
5104
+ exemptRoles?: string[] | undefined;
5105
+ } | undefined;
5106
+ readonly auditTrail?: boolean | undefined;
5107
+ readonly cached?: {
5108
+ enabled: boolean;
5109
+ ttl: number;
5110
+ invalidateOn: string[];
5111
+ } | undefined;
5112
+ readonly dataQuality?: {
5113
+ uniqueness: boolean;
5114
+ completeness: number;
5115
+ accuracy?: {
5116
+ source: string;
5117
+ threshold: number;
5118
+ } | undefined;
5119
+ } | undefined;
5120
+ readonly conditionalRequired?: {
5121
+ dialect: "cel" | "js" | "cron" | "template";
5122
+ source?: string | undefined;
5123
+ ast?: unknown;
5124
+ meta?: {
5125
+ rationale?: string | undefined;
5126
+ generatedBy?: string | undefined;
5127
+ } | undefined;
5128
+ } | undefined;
5129
+ readonly hidden?: boolean | undefined;
5130
+ readonly sortable?: boolean | undefined;
5131
+ readonly inlineHelpText?: string | undefined;
5132
+ readonly trackFeedHistory?: boolean | undefined;
5133
+ readonly caseSensitive?: boolean | undefined;
5134
+ readonly autonumberFormat?: string | undefined;
5135
+ readonly index?: boolean | undefined;
5136
+ readonly type: "lookup";
5137
+ };
5138
+ readonly granted_by: {
5139
+ readonly readonly?: boolean | undefined;
5140
+ readonly format?: string | undefined;
5141
+ readonly options?: {
5142
+ label: string;
5143
+ value: string;
5144
+ color?: string | undefined;
5145
+ default?: boolean | undefined;
5146
+ }[] | undefined;
5147
+ readonly description?: string | undefined;
5148
+ readonly label?: string | undefined;
5149
+ readonly name?: string | undefined;
5150
+ readonly precision?: number | undefined;
5151
+ readonly required?: boolean | undefined;
5152
+ readonly multiple?: boolean | undefined;
5153
+ readonly dependencies?: string[] | undefined;
5154
+ readonly theme?: string | undefined;
5155
+ readonly externalId?: boolean | undefined;
5156
+ readonly min?: number | undefined;
5157
+ readonly max?: number | undefined;
5158
+ readonly group?: string | undefined;
5159
+ readonly encryptionConfig?: {
5160
+ enabled: boolean;
5161
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
5162
+ keyManagement: {
5163
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
5164
+ keyId?: string | undefined;
5165
+ rotationPolicy?: {
5166
+ enabled: boolean;
5167
+ frequencyDays: number;
5168
+ retainOldVersions: number;
5169
+ autoRotate: boolean;
5170
+ } | undefined;
5171
+ };
5172
+ scope: "record" | "field" | "table" | "database";
5173
+ deterministicEncryption: boolean;
5174
+ searchableEncryption: boolean;
5175
+ } | undefined;
5176
+ readonly columnName?: string | undefined;
5177
+ readonly searchable?: boolean | undefined;
5178
+ readonly unique?: boolean | undefined;
5179
+ readonly defaultValue?: unknown;
5180
+ readonly maxLength?: number | undefined;
5181
+ readonly minLength?: number | undefined;
5182
+ readonly scale?: number | undefined;
5183
+ reference: string;
5184
+ readonly referenceFilters?: string[] | undefined;
5185
+ readonly writeRequiresMasterRead?: boolean | undefined;
5186
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
5187
+ readonly expression?: {
5188
+ dialect: "cel" | "js" | "cron" | "template";
5189
+ source?: string | undefined;
5190
+ ast?: unknown;
5191
+ meta?: {
5192
+ rationale?: string | undefined;
5193
+ generatedBy?: string | undefined;
5194
+ } | undefined;
5195
+ } | undefined;
5196
+ readonly summaryOperations?: {
5197
+ object: string;
5198
+ field: string;
5199
+ function: "min" | "max" | "count" | "sum" | "avg";
5200
+ } | undefined;
5201
+ readonly language?: string | undefined;
5202
+ readonly lineNumbers?: boolean | undefined;
5203
+ readonly maxRating?: number | undefined;
5204
+ readonly allowHalf?: boolean | undefined;
5205
+ readonly displayMap?: boolean | undefined;
5206
+ readonly allowGeocoding?: boolean | undefined;
5207
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
5208
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
5209
+ readonly allowAlpha?: boolean | undefined;
5210
+ readonly presetColors?: string[] | undefined;
5211
+ readonly step?: number | undefined;
5212
+ readonly showValue?: boolean | undefined;
5213
+ readonly marks?: Record<string, string> | undefined;
5214
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
5215
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
5216
+ readonly displayValue?: boolean | undefined;
5217
+ readonly allowScanning?: boolean | undefined;
5218
+ readonly currencyConfig?: {
5219
+ precision: number;
5220
+ currencyMode: "fixed" | "dynamic";
5221
+ defaultCurrency: string;
5222
+ } | undefined;
5223
+ readonly vectorConfig?: {
5224
+ dimensions: number;
5225
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5226
+ normalized: boolean;
5227
+ indexed: boolean;
5228
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5229
+ } | undefined;
5230
+ readonly fileAttachmentConfig?: {
5231
+ virusScan: boolean;
5232
+ virusScanOnUpload: boolean;
5233
+ quarantineOnThreat: boolean;
5234
+ allowMultiple: boolean;
5235
+ allowReplace: boolean;
5236
+ allowDelete: boolean;
5237
+ requireUpload: boolean;
5238
+ extractMetadata: boolean;
5239
+ extractText: boolean;
5240
+ versioningEnabled: boolean;
5241
+ publicRead: boolean;
5242
+ presignedUrlExpiry: number;
5243
+ minSize?: number | undefined;
5244
+ maxSize?: number | undefined;
5245
+ allowedTypes?: string[] | undefined;
5246
+ blockedTypes?: string[] | undefined;
5247
+ allowedMimeTypes?: string[] | undefined;
5248
+ blockedMimeTypes?: string[] | undefined;
5249
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5250
+ storageProvider?: string | undefined;
5251
+ storageBucket?: string | undefined;
5252
+ storagePrefix?: string | undefined;
5253
+ imageValidation?: {
5254
+ generateThumbnails: boolean;
5255
+ preserveMetadata: boolean;
5256
+ autoRotate: boolean;
5257
+ minWidth?: number | undefined;
5258
+ maxWidth?: number | undefined;
5259
+ minHeight?: number | undefined;
5260
+ maxHeight?: number | undefined;
5261
+ aspectRatio?: string | undefined;
5262
+ thumbnailSizes?: {
5263
+ name: string;
5264
+ width: number;
5265
+ height: number;
5266
+ crop: boolean;
5267
+ }[] | undefined;
5268
+ } | undefined;
5269
+ maxVersions?: number | undefined;
5270
+ } | undefined;
5271
+ readonly maskingRule?: {
5272
+ field: string;
5273
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
5274
+ preserveFormat: boolean;
5275
+ preserveLength: boolean;
5276
+ pattern?: string | undefined;
5277
+ roles?: string[] | undefined;
5278
+ exemptRoles?: string[] | undefined;
5279
+ } | undefined;
5280
+ readonly auditTrail?: boolean | undefined;
5281
+ readonly cached?: {
5282
+ enabled: boolean;
5283
+ ttl: number;
5284
+ invalidateOn: string[];
5285
+ } | undefined;
5286
+ readonly dataQuality?: {
5287
+ uniqueness: boolean;
5288
+ completeness: number;
5289
+ accuracy?: {
5290
+ source: string;
5291
+ threshold: number;
5292
+ } | undefined;
5293
+ } | undefined;
5294
+ readonly conditionalRequired?: {
5295
+ dialect: "cel" | "js" | "cron" | "template";
5296
+ source?: string | undefined;
5297
+ ast?: unknown;
5298
+ meta?: {
5299
+ rationale?: string | undefined;
5300
+ generatedBy?: string | undefined;
5301
+ } | undefined;
5302
+ } | undefined;
5303
+ readonly hidden?: boolean | undefined;
5304
+ readonly sortable?: boolean | undefined;
5305
+ readonly inlineHelpText?: string | undefined;
5306
+ readonly trackFeedHistory?: boolean | undefined;
5307
+ readonly caseSensitive?: boolean | undefined;
5308
+ readonly autonumberFormat?: string | undefined;
5309
+ readonly index?: boolean | undefined;
5310
+ readonly type: "lookup";
5311
+ };
5312
+ readonly created_at: {
5313
+ readonly readonly?: boolean | undefined;
5314
+ readonly format?: string | undefined;
5315
+ readonly options?: {
5316
+ label: string;
5317
+ value: string;
5318
+ color?: string | undefined;
5319
+ default?: boolean | undefined;
5320
+ }[] | undefined;
5321
+ readonly description?: string | undefined;
5322
+ readonly label?: string | undefined;
5323
+ readonly name?: string | undefined;
5324
+ readonly precision?: number | undefined;
5325
+ readonly required?: boolean | undefined;
5326
+ readonly multiple?: boolean | undefined;
5327
+ readonly dependencies?: string[] | undefined;
5328
+ readonly theme?: string | undefined;
5329
+ readonly externalId?: boolean | undefined;
5330
+ readonly min?: number | undefined;
5331
+ readonly max?: number | undefined;
5332
+ readonly group?: string | undefined;
5333
+ readonly encryptionConfig?: {
5334
+ enabled: boolean;
5335
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
5336
+ keyManagement: {
5337
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
5338
+ keyId?: string | undefined;
5339
+ rotationPolicy?: {
5340
+ enabled: boolean;
5341
+ frequencyDays: number;
5342
+ retainOldVersions: number;
5343
+ autoRotate: boolean;
5344
+ } | undefined;
5345
+ };
5346
+ scope: "record" | "field" | "table" | "database";
5347
+ deterministicEncryption: boolean;
5348
+ searchableEncryption: boolean;
5349
+ } | undefined;
5350
+ readonly columnName?: string | undefined;
5351
+ readonly searchable?: boolean | undefined;
5352
+ readonly unique?: boolean | undefined;
5353
+ readonly defaultValue?: unknown;
5354
+ readonly maxLength?: number | undefined;
5355
+ readonly minLength?: number | undefined;
5356
+ readonly scale?: number | undefined;
5357
+ readonly reference?: string | undefined;
5358
+ readonly referenceFilters?: string[] | undefined;
5359
+ readonly writeRequiresMasterRead?: boolean | undefined;
5360
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
5361
+ readonly expression?: {
5362
+ dialect: "cel" | "js" | "cron" | "template";
5363
+ source?: string | undefined;
5364
+ ast?: unknown;
5365
+ meta?: {
5366
+ rationale?: string | undefined;
5367
+ generatedBy?: string | undefined;
5368
+ } | undefined;
5369
+ } | undefined;
5370
+ readonly summaryOperations?: {
5371
+ object: string;
5372
+ field: string;
5373
+ function: "min" | "max" | "count" | "sum" | "avg";
5374
+ } | undefined;
5375
+ readonly language?: string | undefined;
5376
+ readonly lineNumbers?: boolean | undefined;
5377
+ readonly maxRating?: number | undefined;
5378
+ readonly allowHalf?: boolean | undefined;
5379
+ readonly displayMap?: boolean | undefined;
5380
+ readonly allowGeocoding?: boolean | undefined;
5381
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
5382
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
5383
+ readonly allowAlpha?: boolean | undefined;
5384
+ readonly presetColors?: string[] | undefined;
5385
+ readonly step?: number | undefined;
5386
+ readonly showValue?: boolean | undefined;
5387
+ readonly marks?: Record<string, string> | undefined;
5388
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
5389
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
5390
+ readonly displayValue?: boolean | undefined;
5391
+ readonly allowScanning?: boolean | undefined;
5392
+ readonly currencyConfig?: {
5393
+ precision: number;
5394
+ currencyMode: "fixed" | "dynamic";
5395
+ defaultCurrency: string;
5396
+ } | undefined;
5397
+ readonly vectorConfig?: {
5398
+ dimensions: number;
5399
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5400
+ normalized: boolean;
5401
+ indexed: boolean;
5402
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5403
+ } | undefined;
5404
+ readonly fileAttachmentConfig?: {
5405
+ virusScan: boolean;
5406
+ virusScanOnUpload: boolean;
5407
+ quarantineOnThreat: boolean;
5408
+ allowMultiple: boolean;
5409
+ allowReplace: boolean;
5410
+ allowDelete: boolean;
5411
+ requireUpload: boolean;
5412
+ extractMetadata: boolean;
5413
+ extractText: boolean;
5414
+ versioningEnabled: boolean;
5415
+ publicRead: boolean;
5416
+ presignedUrlExpiry: number;
5417
+ minSize?: number | undefined;
5418
+ maxSize?: number | undefined;
5419
+ allowedTypes?: string[] | undefined;
5420
+ blockedTypes?: string[] | undefined;
5421
+ allowedMimeTypes?: string[] | undefined;
5422
+ blockedMimeTypes?: string[] | undefined;
5423
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5424
+ storageProvider?: string | undefined;
5425
+ storageBucket?: string | undefined;
5426
+ storagePrefix?: string | undefined;
5427
+ imageValidation?: {
5428
+ generateThumbnails: boolean;
5429
+ preserveMetadata: boolean;
5430
+ autoRotate: boolean;
5431
+ minWidth?: number | undefined;
5432
+ maxWidth?: number | undefined;
5433
+ minHeight?: number | undefined;
5434
+ maxHeight?: number | undefined;
5435
+ aspectRatio?: string | undefined;
5436
+ thumbnailSizes?: {
5437
+ name: string;
5438
+ width: number;
5439
+ height: number;
5440
+ crop: boolean;
5441
+ }[] | undefined;
5442
+ } | undefined;
5443
+ maxVersions?: number | undefined;
5444
+ } | undefined;
5445
+ readonly maskingRule?: {
5446
+ field: string;
5447
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
5448
+ preserveFormat: boolean;
5449
+ preserveLength: boolean;
5450
+ pattern?: string | undefined;
5451
+ roles?: string[] | undefined;
5452
+ exemptRoles?: string[] | undefined;
5453
+ } | undefined;
5454
+ readonly auditTrail?: boolean | undefined;
5455
+ readonly cached?: {
5456
+ enabled: boolean;
5457
+ ttl: number;
5458
+ invalidateOn: string[];
5459
+ } | undefined;
5460
+ readonly dataQuality?: {
5461
+ uniqueness: boolean;
5462
+ completeness: number;
5463
+ accuracy?: {
5464
+ source: string;
5465
+ threshold: number;
5466
+ } | undefined;
5467
+ } | undefined;
5468
+ readonly conditionalRequired?: {
5469
+ dialect: "cel" | "js" | "cron" | "template";
5470
+ source?: string | undefined;
5471
+ ast?: unknown;
5472
+ meta?: {
5473
+ rationale?: string | undefined;
5474
+ generatedBy?: string | undefined;
5475
+ } | undefined;
5476
+ } | undefined;
5477
+ readonly hidden?: boolean | undefined;
5478
+ readonly sortable?: boolean | undefined;
5479
+ readonly inlineHelpText?: string | undefined;
5480
+ readonly trackFeedHistory?: boolean | undefined;
5481
+ readonly caseSensitive?: boolean | undefined;
5482
+ readonly autonumberFormat?: string | undefined;
5483
+ readonly index?: boolean | undefined;
5484
+ readonly type: "datetime";
5485
+ };
5486
+ readonly updated_at: {
5487
+ readonly readonly?: boolean | undefined;
5488
+ readonly format?: string | undefined;
5489
+ readonly options?: {
5490
+ label: string;
5491
+ value: string;
5492
+ color?: string | undefined;
5493
+ default?: boolean | undefined;
5494
+ }[] | undefined;
5495
+ readonly description?: string | undefined;
5496
+ readonly label?: string | undefined;
5497
+ readonly name?: string | undefined;
5498
+ readonly precision?: number | undefined;
5499
+ readonly required?: boolean | undefined;
5500
+ readonly multiple?: boolean | undefined;
5501
+ readonly dependencies?: string[] | undefined;
5502
+ readonly theme?: string | undefined;
5503
+ readonly externalId?: boolean | undefined;
5504
+ readonly min?: number | undefined;
5505
+ readonly max?: number | undefined;
5506
+ readonly group?: string | undefined;
5507
+ readonly encryptionConfig?: {
5508
+ enabled: boolean;
5509
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
5510
+ keyManagement: {
5511
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
5512
+ keyId?: string | undefined;
5513
+ rotationPolicy?: {
5514
+ enabled: boolean;
5515
+ frequencyDays: number;
5516
+ retainOldVersions: number;
5517
+ autoRotate: boolean;
5518
+ } | undefined;
5519
+ };
5520
+ scope: "record" | "field" | "table" | "database";
5521
+ deterministicEncryption: boolean;
5522
+ searchableEncryption: boolean;
5523
+ } | undefined;
5524
+ readonly columnName?: string | undefined;
5525
+ readonly searchable?: boolean | undefined;
5526
+ readonly unique?: boolean | undefined;
5527
+ readonly defaultValue?: unknown;
5528
+ readonly maxLength?: number | undefined;
5529
+ readonly minLength?: number | undefined;
5530
+ readonly scale?: number | undefined;
5531
+ readonly reference?: string | undefined;
5532
+ readonly referenceFilters?: string[] | undefined;
5533
+ readonly writeRequiresMasterRead?: boolean | undefined;
5534
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
5535
+ readonly expression?: {
5536
+ dialect: "cel" | "js" | "cron" | "template";
5537
+ source?: string | undefined;
5538
+ ast?: unknown;
5539
+ meta?: {
5540
+ rationale?: string | undefined;
5541
+ generatedBy?: string | undefined;
5542
+ } | undefined;
5543
+ } | undefined;
5544
+ readonly summaryOperations?: {
5545
+ object: string;
5546
+ field: string;
5547
+ function: "min" | "max" | "count" | "sum" | "avg";
5548
+ } | undefined;
5549
+ readonly language?: string | undefined;
5550
+ readonly lineNumbers?: boolean | undefined;
5551
+ readonly maxRating?: number | undefined;
5552
+ readonly allowHalf?: boolean | undefined;
5553
+ readonly displayMap?: boolean | undefined;
5554
+ readonly allowGeocoding?: boolean | undefined;
5555
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
5556
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
5557
+ readonly allowAlpha?: boolean | undefined;
5558
+ readonly presetColors?: string[] | undefined;
5559
+ readonly step?: number | undefined;
5560
+ readonly showValue?: boolean | undefined;
5561
+ readonly marks?: Record<string, string> | undefined;
5562
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
5563
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
5564
+ readonly displayValue?: boolean | undefined;
5565
+ readonly allowScanning?: boolean | undefined;
5566
+ readonly currencyConfig?: {
5567
+ precision: number;
5568
+ currencyMode: "fixed" | "dynamic";
5569
+ defaultCurrency: string;
5570
+ } | undefined;
5571
+ readonly vectorConfig?: {
5572
+ dimensions: number;
5573
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5574
+ normalized: boolean;
5575
+ indexed: boolean;
5576
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5577
+ } | undefined;
5578
+ readonly fileAttachmentConfig?: {
5579
+ virusScan: boolean;
5580
+ virusScanOnUpload: boolean;
5581
+ quarantineOnThreat: boolean;
5582
+ allowMultiple: boolean;
5583
+ allowReplace: boolean;
5584
+ allowDelete: boolean;
5585
+ requireUpload: boolean;
5586
+ extractMetadata: boolean;
5587
+ extractText: boolean;
5588
+ versioningEnabled: boolean;
5589
+ publicRead: boolean;
5590
+ presignedUrlExpiry: number;
5591
+ minSize?: number | undefined;
5592
+ maxSize?: number | undefined;
5593
+ allowedTypes?: string[] | undefined;
5594
+ blockedTypes?: string[] | undefined;
5595
+ allowedMimeTypes?: string[] | undefined;
5596
+ blockedMimeTypes?: string[] | undefined;
5597
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5598
+ storageProvider?: string | undefined;
5599
+ storageBucket?: string | undefined;
5600
+ storagePrefix?: string | undefined;
5601
+ imageValidation?: {
5602
+ generateThumbnails: boolean;
5603
+ preserveMetadata: boolean;
5604
+ autoRotate: boolean;
5605
+ minWidth?: number | undefined;
5606
+ maxWidth?: number | undefined;
5607
+ minHeight?: number | undefined;
5608
+ maxHeight?: number | undefined;
5609
+ aspectRatio?: string | undefined;
5610
+ thumbnailSizes?: {
5611
+ name: string;
5612
+ width: number;
5613
+ height: number;
5614
+ crop: boolean;
5615
+ }[] | undefined;
5616
+ } | undefined;
5617
+ maxVersions?: number | undefined;
5618
+ } | undefined;
5619
+ readonly maskingRule?: {
5620
+ field: string;
5621
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
5622
+ preserveFormat: boolean;
5623
+ preserveLength: boolean;
5624
+ pattern?: string | undefined;
5625
+ roles?: string[] | undefined;
5626
+ exemptRoles?: string[] | undefined;
5627
+ } | undefined;
5628
+ readonly auditTrail?: boolean | undefined;
5629
+ readonly cached?: {
5630
+ enabled: boolean;
5631
+ ttl: number;
5632
+ invalidateOn: string[];
5633
+ } | undefined;
5634
+ readonly dataQuality?: {
5635
+ uniqueness: boolean;
5636
+ completeness: number;
5637
+ accuracy?: {
5638
+ source: string;
5639
+ threshold: number;
5640
+ } | undefined;
5641
+ } | undefined;
5642
+ readonly conditionalRequired?: {
5643
+ dialect: "cel" | "js" | "cron" | "template";
5644
+ source?: string | undefined;
5645
+ ast?: unknown;
5646
+ meta?: {
5647
+ rationale?: string | undefined;
5648
+ generatedBy?: string | undefined;
5649
+ } | undefined;
5650
+ } | undefined;
5651
+ readonly hidden?: boolean | undefined;
5652
+ readonly sortable?: boolean | undefined;
5653
+ readonly inlineHelpText?: string | undefined;
5654
+ readonly trackFeedHistory?: boolean | undefined;
5655
+ readonly caseSensitive?: boolean | undefined;
5656
+ readonly autonumberFormat?: string | undefined;
5657
+ readonly index?: boolean | undefined;
5658
+ readonly type: "datetime";
5659
+ };
5660
+ };
5661
+ readonly indexes: [{
5662
+ readonly fields: ["user_id", "permission_set_id", "organization_id"];
5663
+ readonly unique: true;
5664
+ }, {
5665
+ readonly fields: ["user_id"];
5666
+ }, {
5667
+ readonly fields: ["organization_id"];
5668
+ }, {
5669
+ readonly fields: ["permission_set_id"];
5670
+ }];
5671
+ readonly enable: {
5672
+ readonly trackHistory: true;
5673
+ readonly searchable: true;
5674
+ readonly apiEnabled: true;
5675
+ readonly apiMethods: ["get", "list", "create", "update", "delete"];
5676
+ readonly trash: true;
5677
+ readonly mru: false;
5678
+ };
5679
+ }, "fields">;
5680
+
5681
+ /**
5682
+ * sys_role_permission_set — Role ↔ PermissionSet binding.
5683
+ *
5684
+ * Allows administrators to compose a `sys_role` from one or more
5685
+ * `sys_permission_set` rows. At request time, the runtime resolver
5686
+ * (`resolveExecutionContext`) collects every permission set bound to
5687
+ * the user's roles via this table and injects their names into
5688
+ * `ExecutionContext.permissions[]` for downstream RBAC evaluation.
5689
+ *
5690
+ * @namespace sys
5691
+ */
5692
+ declare const SysRolePermissionSet: Omit<{
5693
+ name: string;
5694
+ active: boolean;
5695
+ isSystem: boolean;
5696
+ abstract: boolean;
5697
+ datasource: string;
5698
+ fields: Record<string, {
5699
+ type: "number" | "boolean" | "tags" | "date" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "vector";
5700
+ required: boolean;
5701
+ searchable: boolean;
5702
+ multiple: boolean;
5703
+ unique: boolean;
5704
+ deleteBehavior: "set_null" | "cascade" | "restrict";
5705
+ auditTrail: boolean;
5706
+ hidden: boolean;
5707
+ readonly: boolean;
5708
+ sortable: boolean;
5709
+ index: boolean;
5710
+ externalId: boolean;
5711
+ name?: string | undefined;
5712
+ label?: string | undefined;
5713
+ description?: string | undefined;
5714
+ format?: string | undefined;
5715
+ columnName?: string | undefined;
5716
+ defaultValue?: unknown;
5717
+ maxLength?: number | undefined;
5718
+ minLength?: number | undefined;
5719
+ precision?: number | undefined;
5720
+ scale?: number | undefined;
5721
+ min?: number | undefined;
5722
+ max?: number | undefined;
5723
+ options?: {
5724
+ label: string;
5725
+ value: string;
5726
+ color?: string | undefined;
5727
+ default?: boolean | undefined;
5728
+ }[] | undefined;
5729
+ reference?: string | undefined;
5730
+ referenceFilters?: string[] | undefined;
5731
+ writeRequiresMasterRead?: boolean | undefined;
5732
+ expression?: {
5733
+ dialect: "cel" | "js" | "cron" | "template";
5734
+ source?: string | undefined;
5735
+ ast?: unknown;
5736
+ meta?: {
5737
+ rationale?: string | undefined;
5738
+ generatedBy?: string | undefined;
5739
+ } | undefined;
5740
+ } | {
5741
+ dialect: "cel" | "js" | "cron" | "template";
5742
+ source?: string | undefined;
5743
+ ast?: unknown;
5744
+ meta?: {
5745
+ rationale?: string | undefined;
5746
+ generatedBy?: string | undefined;
5747
+ } | undefined;
5748
+ } | undefined;
5749
+ summaryOperations?: {
5750
+ object: string;
5751
+ field: string;
5752
+ function: "min" | "max" | "count" | "sum" | "avg";
5753
+ } | undefined;
5754
+ language?: string | undefined;
5755
+ theme?: string | undefined;
5756
+ lineNumbers?: boolean | undefined;
5757
+ maxRating?: number | undefined;
5758
+ allowHalf?: boolean | undefined;
5759
+ displayMap?: boolean | undefined;
5760
+ allowGeocoding?: boolean | undefined;
5761
+ addressFormat?: "us" | "uk" | "international" | undefined;
5762
+ colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
5763
+ allowAlpha?: boolean | undefined;
5764
+ presetColors?: string[] | undefined;
5765
+ step?: number | undefined;
5766
+ showValue?: boolean | undefined;
5767
+ marks?: Record<string, string> | undefined;
5768
+ barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
5769
+ qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
5770
+ displayValue?: boolean | undefined;
5771
+ allowScanning?: boolean | undefined;
5772
+ currencyConfig?: {
5773
+ precision: number;
5774
+ currencyMode: "fixed" | "dynamic";
5775
+ defaultCurrency: string;
5776
+ } | undefined;
5777
+ vectorConfig?: {
5778
+ dimensions: number;
5779
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5780
+ normalized: boolean;
5781
+ indexed: boolean;
5782
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5783
+ } | undefined;
5784
+ fileAttachmentConfig?: {
5785
+ virusScan: boolean;
5786
+ virusScanOnUpload: boolean;
5787
+ quarantineOnThreat: boolean;
5788
+ allowMultiple: boolean;
5789
+ allowReplace: boolean;
5790
+ allowDelete: boolean;
5791
+ requireUpload: boolean;
5792
+ extractMetadata: boolean;
5793
+ extractText: boolean;
5794
+ versioningEnabled: boolean;
5795
+ publicRead: boolean;
5796
+ presignedUrlExpiry: number;
5797
+ minSize?: number | undefined;
5798
+ maxSize?: number | undefined;
5799
+ allowedTypes?: string[] | undefined;
5800
+ blockedTypes?: string[] | undefined;
5801
+ allowedMimeTypes?: string[] | undefined;
5802
+ blockedMimeTypes?: string[] | undefined;
5803
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5804
+ storageProvider?: string | undefined;
5805
+ storageBucket?: string | undefined;
5806
+ storagePrefix?: string | undefined;
5807
+ imageValidation?: {
5808
+ generateThumbnails: boolean;
5809
+ preserveMetadata: boolean;
5810
+ autoRotate: boolean;
5811
+ minWidth?: number | undefined;
5812
+ maxWidth?: number | undefined;
5813
+ minHeight?: number | undefined;
5814
+ maxHeight?: number | undefined;
5815
+ aspectRatio?: string | undefined;
5816
+ thumbnailSizes?: {
5817
+ name: string;
5818
+ width: number;
5819
+ height: number;
5820
+ crop: boolean;
5821
+ }[] | undefined;
5822
+ } | undefined;
5823
+ maxVersions?: number | undefined;
5824
+ } | undefined;
5825
+ encryptionConfig?: {
5826
+ enabled: boolean;
5827
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
5828
+ keyManagement: {
5829
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
5830
+ keyId?: string | undefined;
5831
+ rotationPolicy?: {
5832
+ enabled: boolean;
5833
+ frequencyDays: number;
5834
+ retainOldVersions: number;
5835
+ autoRotate: boolean;
5836
+ } | undefined;
5837
+ };
5838
+ scope: "field" | "record" | "table" | "database";
5839
+ deterministicEncryption: boolean;
5840
+ searchableEncryption: boolean;
5841
+ } | undefined;
5842
+ maskingRule?: {
5843
+ field: string;
5844
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
5845
+ preserveFormat: boolean;
5846
+ preserveLength: boolean;
5847
+ pattern?: string | undefined;
5848
+ roles?: string[] | undefined;
5849
+ exemptRoles?: string[] | undefined;
5850
+ } | undefined;
5851
+ dependencies?: string[] | undefined;
5852
+ cached?: {
5853
+ enabled: boolean;
5854
+ ttl: number;
5855
+ invalidateOn: string[];
5856
+ } | undefined;
5857
+ dataQuality?: {
5858
+ uniqueness: boolean;
5859
+ completeness: number;
5860
+ accuracy?: {
5861
+ source: string;
5862
+ threshold: number;
5863
+ } | undefined;
5864
+ } | undefined;
5865
+ group?: string | undefined;
5866
+ conditionalRequired?: {
5867
+ dialect: "cel" | "js" | "cron" | "template";
5868
+ source?: string | undefined;
5869
+ ast?: unknown;
5870
+ meta?: {
5871
+ rationale?: string | undefined;
5872
+ generatedBy?: string | undefined;
5873
+ } | undefined;
5874
+ } | {
5875
+ dialect: "cel" | "js" | "cron" | "template";
5876
+ source?: string | undefined;
5877
+ ast?: unknown;
5878
+ meta?: {
5879
+ rationale?: string | undefined;
5880
+ generatedBy?: string | undefined;
5881
+ } | undefined;
5882
+ } | undefined;
5883
+ inlineHelpText?: string | undefined;
5884
+ trackFeedHistory?: boolean | undefined;
5885
+ caseSensitive?: boolean | undefined;
5886
+ autonumberFormat?: string | undefined;
5887
+ }>;
5888
+ label?: string | undefined;
5889
+ pluralLabel?: string | undefined;
5890
+ description?: string | undefined;
5891
+ icon?: string | undefined;
5892
+ tags?: string[] | undefined;
5893
+ managedBy?: "system" | "better-auth" | "platform" | undefined;
5894
+ systemFields?: false | {
5895
+ tenant?: boolean | undefined;
5896
+ owner?: boolean | undefined;
5897
+ audit?: boolean | undefined;
5898
+ } | undefined;
5899
+ indexes?: {
5900
+ fields: string[];
5901
+ type: "hash" | "btree" | "gin" | "gist" | "fulltext";
5902
+ unique: boolean;
5903
+ name?: string | undefined;
5904
+ partial?: string | undefined;
5905
+ }[] | undefined;
5906
+ fieldGroups?: {
5907
+ key: string;
5908
+ label: string;
5909
+ defaultExpanded: boolean;
5910
+ icon?: string | undefined;
5911
+ description?: string | undefined;
5912
+ visibleOn?: {
5913
+ dialect: "cel" | "js" | "cron" | "template";
5914
+ source?: string | undefined;
5915
+ ast?: unknown;
5916
+ meta?: {
5917
+ rationale?: string | undefined;
5918
+ generatedBy?: string | undefined;
5919
+ } | undefined;
5920
+ } | {
5921
+ dialect: "cel" | "js" | "cron" | "template";
5922
+ source?: string | undefined;
5923
+ ast?: unknown;
5924
+ meta?: {
5925
+ rationale?: string | undefined;
5926
+ generatedBy?: string | undefined;
5927
+ } | undefined;
5928
+ } | undefined;
5929
+ }[] | undefined;
5930
+ tenancy?: {
5931
+ enabled: boolean;
5932
+ strategy: "hybrid" | "shared" | "isolated";
5933
+ tenantField: string;
5934
+ crossTenantAccess: boolean;
5935
+ } | undefined;
5936
+ softDelete?: {
5937
+ enabled: boolean;
5938
+ field: string;
5939
+ cascadeDelete: boolean;
5940
+ } | undefined;
5941
+ versioning?: {
5942
+ enabled: boolean;
5943
+ strategy: "snapshot" | "delta" | "event-sourcing";
5944
+ versionField: string;
5945
+ retentionDays?: number | undefined;
5946
+ } | undefined;
5947
+ partitioning?: {
5948
+ enabled: boolean;
5949
+ strategy: "hash" | "list" | "range";
5950
+ key: string;
5951
+ interval?: string | undefined;
5952
+ } | undefined;
5953
+ cdc?: {
5954
+ enabled: boolean;
5955
+ events: ("delete" | "update" | "insert")[];
5956
+ destination: string;
5957
+ } | undefined;
5958
+ validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
5959
+ stateMachines?: Record<string, {
5960
+ id: string;
5961
+ initial: string;
5962
+ states: Record<string, StateNodeConfig>;
5963
+ description?: string | undefined;
5964
+ contextSchema?: Record<string, unknown> | undefined;
5965
+ on?: Record<string, string | {
5966
+ target?: string | undefined;
5967
+ cond?: string | {
5968
+ type: string;
5969
+ params?: Record<string, unknown> | undefined;
5970
+ } | undefined;
5971
+ actions?: (string | {
5972
+ type: string;
5973
+ params?: Record<string, unknown> | undefined;
5974
+ })[] | undefined;
5975
+ description?: string | undefined;
5976
+ } | {
5977
+ target?: string | undefined;
5978
+ cond?: string | {
5979
+ type: string;
5980
+ params?: Record<string, unknown> | undefined;
5981
+ } | undefined;
5982
+ actions?: (string | {
5983
+ type: string;
5984
+ params?: Record<string, unknown> | undefined;
5985
+ })[] | undefined;
5986
+ description?: string | undefined;
5987
+ }[]> | undefined;
5988
+ }> | undefined;
5989
+ displayNameField?: string | undefined;
5990
+ recordName?: {
5991
+ type: "text" | "autonumber";
5992
+ displayFormat?: string | undefined;
5993
+ startNumber?: number | undefined;
5994
+ } | undefined;
5995
+ titleFormat?: {
5996
+ dialect: "cel" | "js" | "cron" | "template";
5997
+ source?: string | undefined;
5998
+ ast?: unknown;
5999
+ meta?: {
6000
+ rationale?: string | undefined;
6001
+ generatedBy?: string | undefined;
6002
+ } | undefined;
6003
+ } | {
6004
+ dialect: "cel" | "js" | "cron" | "template";
6005
+ source?: string | undefined;
6006
+ ast?: unknown;
6007
+ meta?: {
6008
+ rationale?: string | undefined;
6009
+ generatedBy?: string | undefined;
6010
+ } | undefined;
6011
+ } | undefined;
6012
+ compactLayout?: string[] | undefined;
6013
+ search?: {
6014
+ fields: string[];
6015
+ displayFields?: string[] | undefined;
6016
+ filters?: string[] | undefined;
6017
+ } | undefined;
6018
+ enable?: {
6019
+ trackHistory: boolean;
6020
+ searchable: boolean;
6021
+ apiEnabled: boolean;
6022
+ files: boolean;
6023
+ feeds: boolean;
6024
+ activities: boolean;
6025
+ trash: boolean;
6026
+ mru: boolean;
6027
+ clone: boolean;
6028
+ apiMethods?: ("search" | "list" | "get" | "delete" | "update" | "upsert" | "history" | "create" | "bulk" | "aggregate" | "restore" | "purge" | "import" | "export")[] | undefined;
6029
+ } | undefined;
6030
+ recordTypes?: string[] | undefined;
6031
+ sharingModel?: "full" | "private" | "read" | "read_write" | undefined;
6032
+ keyPrefix?: string | undefined;
6033
+ actions?: {
6034
+ name: string;
6035
+ label: string;
6036
+ type: "url" | "flow" | "api" | "script" | "modal";
6037
+ refreshAfter: boolean;
6038
+ objectName?: string | undefined;
6039
+ icon?: string | undefined;
6040
+ locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "global_nav")[] | undefined;
6041
+ component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined;
6042
+ target?: string | undefined;
6043
+ body?: {
6044
+ language: "expression";
6045
+ source: string;
6046
+ } | {
6047
+ language: "js";
6048
+ source: string;
6049
+ capabilities: ("api.read" | "api.write" | "crypto.uuid" | "crypto.hash" | "log")[];
6050
+ timeoutMs?: number | undefined;
6051
+ memoryMb?: number | undefined;
6052
+ } | undefined;
6053
+ execute?: string | undefined;
6054
+ params?: {
6055
+ name: string;
6056
+ label: string;
6057
+ type: "number" | "boolean" | "date" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
6058
+ required: boolean;
6059
+ options?: {
6060
+ label: string;
6061
+ value: string;
6062
+ }[] | undefined;
6063
+ }[] | undefined;
6064
+ variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
6065
+ confirmText?: string | undefined;
6066
+ successMessage?: string | undefined;
6067
+ visible?: {
6068
+ dialect: "cel" | "js" | "cron" | "template";
6069
+ source?: string | undefined;
6070
+ ast?: unknown;
6071
+ meta?: {
6072
+ rationale?: string | undefined;
6073
+ generatedBy?: string | undefined;
6074
+ } | undefined;
6075
+ } | undefined;
6076
+ disabled?: boolean | {
6077
+ dialect: "cel" | "js" | "cron" | "template";
6078
+ source?: string | undefined;
6079
+ ast?: unknown;
6080
+ meta?: {
6081
+ rationale?: string | undefined;
6082
+ generatedBy?: string | undefined;
6083
+ } | undefined;
6084
+ } | undefined;
6085
+ shortcut?: string | undefined;
6086
+ bulkEnabled?: boolean | undefined;
6087
+ timeout?: number | undefined;
6088
+ aria?: {
6089
+ ariaLabel?: string | undefined;
6090
+ ariaDescribedBy?: string | undefined;
6091
+ role?: string | undefined;
6092
+ } | undefined;
6093
+ }[] | undefined;
6094
+ }, "fields"> & Pick<{
6095
+ readonly name: "sys_role_permission_set";
6096
+ readonly label: "Role Permission Set";
6097
+ readonly pluralLabel: "Role Permission Sets";
6098
+ readonly icon: "shield-plus";
6099
+ readonly isSystem: true;
6100
+ readonly description: "Binds a permission set to a role.";
6101
+ readonly titleFormat: "{role_id} → {permission_set_id}";
6102
+ readonly compactLayout: ["role_id", "permission_set_id"];
6103
+ readonly fields: {
6104
+ readonly id: {
6105
+ readonly readonly?: boolean | undefined;
6106
+ readonly format?: string | undefined;
6107
+ readonly options?: {
6108
+ label: string;
6109
+ value: string;
6110
+ color?: string | undefined;
6111
+ default?: boolean | undefined;
6112
+ }[] | undefined;
6113
+ readonly description?: string | undefined;
6114
+ readonly label?: string | undefined;
6115
+ readonly name?: string | undefined;
6116
+ readonly precision?: number | undefined;
6117
+ readonly required?: boolean | undefined;
6118
+ readonly multiple?: boolean | undefined;
6119
+ readonly dependencies?: string[] | undefined;
6120
+ readonly theme?: string | undefined;
6121
+ readonly externalId?: boolean | undefined;
6122
+ readonly min?: number | undefined;
6123
+ readonly max?: number | undefined;
6124
+ readonly group?: string | undefined;
6125
+ readonly encryptionConfig?: {
6126
+ enabled: boolean;
6127
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
6128
+ keyManagement: {
6129
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
6130
+ keyId?: string | undefined;
6131
+ rotationPolicy?: {
6132
+ enabled: boolean;
6133
+ frequencyDays: number;
6134
+ retainOldVersions: number;
6135
+ autoRotate: boolean;
6136
+ } | undefined;
6137
+ };
6138
+ scope: "record" | "field" | "table" | "database";
6139
+ deterministicEncryption: boolean;
6140
+ searchableEncryption: boolean;
6141
+ } | undefined;
6142
+ readonly columnName?: string | undefined;
6143
+ readonly searchable?: boolean | undefined;
6144
+ readonly unique?: boolean | undefined;
6145
+ readonly defaultValue?: unknown;
6146
+ readonly maxLength?: number | undefined;
6147
+ readonly minLength?: number | undefined;
6148
+ readonly scale?: number | undefined;
6149
+ readonly reference?: string | undefined;
6150
+ readonly referenceFilters?: string[] | undefined;
6151
+ readonly writeRequiresMasterRead?: boolean | undefined;
6152
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
6153
+ readonly expression?: {
6154
+ dialect: "cel" | "js" | "cron" | "template";
6155
+ source?: string | undefined;
6156
+ ast?: unknown;
6157
+ meta?: {
6158
+ rationale?: string | undefined;
6159
+ generatedBy?: string | undefined;
6160
+ } | undefined;
6161
+ } | undefined;
6162
+ readonly summaryOperations?: {
6163
+ object: string;
6164
+ field: string;
6165
+ function: "min" | "max" | "count" | "sum" | "avg";
6166
+ } | undefined;
6167
+ readonly language?: string | undefined;
6168
+ readonly lineNumbers?: boolean | undefined;
6169
+ readonly maxRating?: number | undefined;
6170
+ readonly allowHalf?: boolean | undefined;
6171
+ readonly displayMap?: boolean | undefined;
6172
+ readonly allowGeocoding?: boolean | undefined;
6173
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
6174
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
6175
+ readonly allowAlpha?: boolean | undefined;
6176
+ readonly presetColors?: string[] | undefined;
6177
+ readonly step?: number | undefined;
6178
+ readonly showValue?: boolean | undefined;
6179
+ readonly marks?: Record<string, string> | undefined;
6180
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
6181
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
6182
+ readonly displayValue?: boolean | undefined;
6183
+ readonly allowScanning?: boolean | undefined;
6184
+ readonly currencyConfig?: {
6185
+ precision: number;
6186
+ currencyMode: "fixed" | "dynamic";
6187
+ defaultCurrency: string;
6188
+ } | undefined;
6189
+ readonly vectorConfig?: {
6190
+ dimensions: number;
6191
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
6192
+ normalized: boolean;
6193
+ indexed: boolean;
6194
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
6195
+ } | undefined;
6196
+ readonly fileAttachmentConfig?: {
6197
+ virusScan: boolean;
6198
+ virusScanOnUpload: boolean;
6199
+ quarantineOnThreat: boolean;
6200
+ allowMultiple: boolean;
6201
+ allowReplace: boolean;
6202
+ allowDelete: boolean;
6203
+ requireUpload: boolean;
6204
+ extractMetadata: boolean;
6205
+ extractText: boolean;
6206
+ versioningEnabled: boolean;
6207
+ publicRead: boolean;
6208
+ presignedUrlExpiry: number;
6209
+ minSize?: number | undefined;
6210
+ maxSize?: number | undefined;
6211
+ allowedTypes?: string[] | undefined;
6212
+ blockedTypes?: string[] | undefined;
6213
+ allowedMimeTypes?: string[] | undefined;
6214
+ blockedMimeTypes?: string[] | undefined;
6215
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
6216
+ storageProvider?: string | undefined;
6217
+ storageBucket?: string | undefined;
6218
+ storagePrefix?: string | undefined;
6219
+ imageValidation?: {
6220
+ generateThumbnails: boolean;
6221
+ preserveMetadata: boolean;
6222
+ autoRotate: boolean;
6223
+ minWidth?: number | undefined;
6224
+ maxWidth?: number | undefined;
6225
+ minHeight?: number | undefined;
6226
+ maxHeight?: number | undefined;
6227
+ aspectRatio?: string | undefined;
6228
+ thumbnailSizes?: {
6229
+ name: string;
6230
+ width: number;
6231
+ height: number;
6232
+ crop: boolean;
6233
+ }[] | undefined;
6234
+ } | undefined;
6235
+ maxVersions?: number | undefined;
6236
+ } | undefined;
6237
+ readonly maskingRule?: {
6238
+ field: string;
6239
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
6240
+ preserveFormat: boolean;
6241
+ preserveLength: boolean;
6242
+ pattern?: string | undefined;
6243
+ roles?: string[] | undefined;
6244
+ exemptRoles?: string[] | undefined;
6245
+ } | undefined;
6246
+ readonly auditTrail?: boolean | undefined;
6247
+ readonly cached?: {
6248
+ enabled: boolean;
6249
+ ttl: number;
6250
+ invalidateOn: string[];
6251
+ } | undefined;
6252
+ readonly dataQuality?: {
6253
+ uniqueness: boolean;
6254
+ completeness: number;
6255
+ accuracy?: {
6256
+ source: string;
6257
+ threshold: number;
6258
+ } | undefined;
6259
+ } | undefined;
6260
+ readonly conditionalRequired?: {
6261
+ dialect: "cel" | "js" | "cron" | "template";
6262
+ source?: string | undefined;
6263
+ ast?: unknown;
6264
+ meta?: {
6265
+ rationale?: string | undefined;
6266
+ generatedBy?: string | undefined;
6267
+ } | undefined;
6268
+ } | undefined;
6269
+ readonly hidden?: boolean | undefined;
6270
+ readonly sortable?: boolean | undefined;
6271
+ readonly inlineHelpText?: string | undefined;
6272
+ readonly trackFeedHistory?: boolean | undefined;
6273
+ readonly caseSensitive?: boolean | undefined;
6274
+ readonly autonumberFormat?: string | undefined;
6275
+ readonly index?: boolean | undefined;
6276
+ readonly type: "text";
6277
+ };
6278
+ readonly role_id: {
6279
+ readonly readonly?: boolean | undefined;
6280
+ readonly format?: string | undefined;
6281
+ readonly options?: {
6282
+ label: string;
6283
+ value: string;
6284
+ color?: string | undefined;
6285
+ default?: boolean | undefined;
6286
+ }[] | undefined;
6287
+ readonly description?: string | undefined;
6288
+ readonly label?: string | undefined;
6289
+ readonly name?: string | undefined;
6290
+ readonly precision?: number | undefined;
6291
+ readonly required?: boolean | undefined;
6292
+ readonly multiple?: boolean | undefined;
6293
+ readonly dependencies?: string[] | undefined;
6294
+ readonly theme?: string | undefined;
6295
+ readonly externalId?: boolean | undefined;
6296
+ readonly min?: number | undefined;
6297
+ readonly max?: number | undefined;
6298
+ readonly group?: string | undefined;
6299
+ readonly encryptionConfig?: {
6300
+ enabled: boolean;
6301
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
6302
+ keyManagement: {
6303
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
6304
+ keyId?: string | undefined;
6305
+ rotationPolicy?: {
6306
+ enabled: boolean;
6307
+ frequencyDays: number;
6308
+ retainOldVersions: number;
6309
+ autoRotate: boolean;
6310
+ } | undefined;
6311
+ };
6312
+ scope: "record" | "field" | "table" | "database";
6313
+ deterministicEncryption: boolean;
6314
+ searchableEncryption: boolean;
6315
+ } | undefined;
6316
+ readonly columnName?: string | undefined;
6317
+ readonly searchable?: boolean | undefined;
6318
+ readonly unique?: boolean | undefined;
6319
+ readonly defaultValue?: unknown;
6320
+ readonly maxLength?: number | undefined;
6321
+ readonly minLength?: number | undefined;
6322
+ readonly scale?: number | undefined;
6323
+ reference: string;
6324
+ readonly referenceFilters?: string[] | undefined;
6325
+ readonly writeRequiresMasterRead?: boolean | undefined;
6326
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
6327
+ readonly expression?: {
6328
+ dialect: "cel" | "js" | "cron" | "template";
6329
+ source?: string | undefined;
6330
+ ast?: unknown;
6331
+ meta?: {
6332
+ rationale?: string | undefined;
6333
+ generatedBy?: string | undefined;
6334
+ } | undefined;
6335
+ } | undefined;
6336
+ readonly summaryOperations?: {
6337
+ object: string;
6338
+ field: string;
6339
+ function: "min" | "max" | "count" | "sum" | "avg";
6340
+ } | undefined;
6341
+ readonly language?: string | undefined;
6342
+ readonly lineNumbers?: boolean | undefined;
6343
+ readonly maxRating?: number | undefined;
6344
+ readonly allowHalf?: boolean | undefined;
6345
+ readonly displayMap?: boolean | undefined;
6346
+ readonly allowGeocoding?: boolean | undefined;
6347
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
6348
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
6349
+ readonly allowAlpha?: boolean | undefined;
6350
+ readonly presetColors?: string[] | undefined;
6351
+ readonly step?: number | undefined;
6352
+ readonly showValue?: boolean | undefined;
6353
+ readonly marks?: Record<string, string> | undefined;
6354
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
6355
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
6356
+ readonly displayValue?: boolean | undefined;
6357
+ readonly allowScanning?: boolean | undefined;
6358
+ readonly currencyConfig?: {
6359
+ precision: number;
6360
+ currencyMode: "fixed" | "dynamic";
6361
+ defaultCurrency: string;
6362
+ } | undefined;
6363
+ readonly vectorConfig?: {
6364
+ dimensions: number;
6365
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
6366
+ normalized: boolean;
6367
+ indexed: boolean;
6368
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
6369
+ } | undefined;
6370
+ readonly fileAttachmentConfig?: {
6371
+ virusScan: boolean;
6372
+ virusScanOnUpload: boolean;
6373
+ quarantineOnThreat: boolean;
6374
+ allowMultiple: boolean;
6375
+ allowReplace: boolean;
6376
+ allowDelete: boolean;
6377
+ requireUpload: boolean;
6378
+ extractMetadata: boolean;
6379
+ extractText: boolean;
6380
+ versioningEnabled: boolean;
6381
+ publicRead: boolean;
6382
+ presignedUrlExpiry: number;
6383
+ minSize?: number | undefined;
6384
+ maxSize?: number | undefined;
6385
+ allowedTypes?: string[] | undefined;
6386
+ blockedTypes?: string[] | undefined;
6387
+ allowedMimeTypes?: string[] | undefined;
6388
+ blockedMimeTypes?: string[] | undefined;
6389
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
6390
+ storageProvider?: string | undefined;
6391
+ storageBucket?: string | undefined;
6392
+ storagePrefix?: string | undefined;
6393
+ imageValidation?: {
6394
+ generateThumbnails: boolean;
6395
+ preserveMetadata: boolean;
6396
+ autoRotate: boolean;
6397
+ minWidth?: number | undefined;
6398
+ maxWidth?: number | undefined;
6399
+ minHeight?: number | undefined;
6400
+ maxHeight?: number | undefined;
6401
+ aspectRatio?: string | undefined;
6402
+ thumbnailSizes?: {
6403
+ name: string;
6404
+ width: number;
6405
+ height: number;
6406
+ crop: boolean;
6407
+ }[] | undefined;
6408
+ } | undefined;
6409
+ maxVersions?: number | undefined;
6410
+ } | undefined;
6411
+ readonly maskingRule?: {
6412
+ field: string;
6413
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
6414
+ preserveFormat: boolean;
6415
+ preserveLength: boolean;
6416
+ pattern?: string | undefined;
6417
+ roles?: string[] | undefined;
6418
+ exemptRoles?: string[] | undefined;
6419
+ } | undefined;
6420
+ readonly auditTrail?: boolean | undefined;
6421
+ readonly cached?: {
6422
+ enabled: boolean;
6423
+ ttl: number;
6424
+ invalidateOn: string[];
6425
+ } | undefined;
6426
+ readonly dataQuality?: {
6427
+ uniqueness: boolean;
6428
+ completeness: number;
6429
+ accuracy?: {
6430
+ source: string;
6431
+ threshold: number;
6432
+ } | undefined;
6433
+ } | undefined;
6434
+ readonly conditionalRequired?: {
6435
+ dialect: "cel" | "js" | "cron" | "template";
6436
+ source?: string | undefined;
6437
+ ast?: unknown;
6438
+ meta?: {
6439
+ rationale?: string | undefined;
6440
+ generatedBy?: string | undefined;
6441
+ } | undefined;
6442
+ } | undefined;
6443
+ readonly hidden?: boolean | undefined;
6444
+ readonly sortable?: boolean | undefined;
6445
+ readonly inlineHelpText?: string | undefined;
6446
+ readonly trackFeedHistory?: boolean | undefined;
6447
+ readonly caseSensitive?: boolean | undefined;
6448
+ readonly autonumberFormat?: string | undefined;
6449
+ readonly index?: boolean | undefined;
6450
+ readonly type: "lookup";
6451
+ };
6452
+ readonly permission_set_id: {
6453
+ readonly readonly?: boolean | undefined;
6454
+ readonly format?: string | undefined;
6455
+ readonly options?: {
6456
+ label: string;
6457
+ value: string;
6458
+ color?: string | undefined;
6459
+ default?: boolean | undefined;
6460
+ }[] | undefined;
6461
+ readonly description?: string | undefined;
6462
+ readonly label?: string | undefined;
6463
+ readonly name?: string | undefined;
6464
+ readonly precision?: number | undefined;
6465
+ readonly required?: boolean | undefined;
6466
+ readonly multiple?: boolean | undefined;
6467
+ readonly dependencies?: string[] | undefined;
6468
+ readonly theme?: string | undefined;
6469
+ readonly externalId?: boolean | undefined;
6470
+ readonly min?: number | undefined;
6471
+ readonly max?: number | undefined;
6472
+ readonly group?: string | undefined;
6473
+ readonly encryptionConfig?: {
6474
+ enabled: boolean;
6475
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
6476
+ keyManagement: {
6477
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
6478
+ keyId?: string | undefined;
6479
+ rotationPolicy?: {
6480
+ enabled: boolean;
6481
+ frequencyDays: number;
6482
+ retainOldVersions: number;
6483
+ autoRotate: boolean;
6484
+ } | undefined;
6485
+ };
6486
+ scope: "record" | "field" | "table" | "database";
6487
+ deterministicEncryption: boolean;
6488
+ searchableEncryption: boolean;
6489
+ } | undefined;
6490
+ readonly columnName?: string | undefined;
6491
+ readonly searchable?: boolean | undefined;
6492
+ readonly unique?: boolean | undefined;
6493
+ readonly defaultValue?: unknown;
6494
+ readonly maxLength?: number | undefined;
6495
+ readonly minLength?: number | undefined;
6496
+ readonly scale?: number | undefined;
6497
+ reference: string;
6498
+ readonly referenceFilters?: string[] | undefined;
6499
+ readonly writeRequiresMasterRead?: boolean | undefined;
6500
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
6501
+ readonly expression?: {
6502
+ dialect: "cel" | "js" | "cron" | "template";
6503
+ source?: string | undefined;
6504
+ ast?: unknown;
6505
+ meta?: {
6506
+ rationale?: string | undefined;
6507
+ generatedBy?: string | undefined;
6508
+ } | undefined;
6509
+ } | undefined;
6510
+ readonly summaryOperations?: {
6511
+ object: string;
6512
+ field: string;
6513
+ function: "min" | "max" | "count" | "sum" | "avg";
6514
+ } | undefined;
6515
+ readonly language?: string | undefined;
6516
+ readonly lineNumbers?: boolean | undefined;
6517
+ readonly maxRating?: number | undefined;
6518
+ readonly allowHalf?: boolean | undefined;
6519
+ readonly displayMap?: boolean | undefined;
6520
+ readonly allowGeocoding?: boolean | undefined;
6521
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
6522
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
6523
+ readonly allowAlpha?: boolean | undefined;
6524
+ readonly presetColors?: string[] | undefined;
6525
+ readonly step?: number | undefined;
6526
+ readonly showValue?: boolean | undefined;
6527
+ readonly marks?: Record<string, string> | undefined;
6528
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
6529
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
6530
+ readonly displayValue?: boolean | undefined;
6531
+ readonly allowScanning?: boolean | undefined;
6532
+ readonly currencyConfig?: {
6533
+ precision: number;
6534
+ currencyMode: "fixed" | "dynamic";
6535
+ defaultCurrency: string;
6536
+ } | undefined;
6537
+ readonly vectorConfig?: {
6538
+ dimensions: number;
6539
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
6540
+ normalized: boolean;
6541
+ indexed: boolean;
6542
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
6543
+ } | undefined;
6544
+ readonly fileAttachmentConfig?: {
6545
+ virusScan: boolean;
6546
+ virusScanOnUpload: boolean;
6547
+ quarantineOnThreat: boolean;
6548
+ allowMultiple: boolean;
6549
+ allowReplace: boolean;
6550
+ allowDelete: boolean;
6551
+ requireUpload: boolean;
6552
+ extractMetadata: boolean;
6553
+ extractText: boolean;
6554
+ versioningEnabled: boolean;
6555
+ publicRead: boolean;
6556
+ presignedUrlExpiry: number;
6557
+ minSize?: number | undefined;
6558
+ maxSize?: number | undefined;
6559
+ allowedTypes?: string[] | undefined;
6560
+ blockedTypes?: string[] | undefined;
6561
+ allowedMimeTypes?: string[] | undefined;
6562
+ blockedMimeTypes?: string[] | undefined;
6563
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
6564
+ storageProvider?: string | undefined;
6565
+ storageBucket?: string | undefined;
6566
+ storagePrefix?: string | undefined;
6567
+ imageValidation?: {
6568
+ generateThumbnails: boolean;
6569
+ preserveMetadata: boolean;
6570
+ autoRotate: boolean;
6571
+ minWidth?: number | undefined;
6572
+ maxWidth?: number | undefined;
6573
+ minHeight?: number | undefined;
6574
+ maxHeight?: number | undefined;
6575
+ aspectRatio?: string | undefined;
6576
+ thumbnailSizes?: {
6577
+ name: string;
6578
+ width: number;
6579
+ height: number;
6580
+ crop: boolean;
6581
+ }[] | undefined;
6582
+ } | undefined;
6583
+ maxVersions?: number | undefined;
6584
+ } | undefined;
6585
+ readonly maskingRule?: {
6586
+ field: string;
6587
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
6588
+ preserveFormat: boolean;
6589
+ preserveLength: boolean;
6590
+ pattern?: string | undefined;
6591
+ roles?: string[] | undefined;
6592
+ exemptRoles?: string[] | undefined;
6593
+ } | undefined;
6594
+ readonly auditTrail?: boolean | undefined;
6595
+ readonly cached?: {
6596
+ enabled: boolean;
6597
+ ttl: number;
6598
+ invalidateOn: string[];
6599
+ } | undefined;
6600
+ readonly dataQuality?: {
6601
+ uniqueness: boolean;
6602
+ completeness: number;
6603
+ accuracy?: {
6604
+ source: string;
6605
+ threshold: number;
6606
+ } | undefined;
6607
+ } | undefined;
6608
+ readonly conditionalRequired?: {
6609
+ dialect: "cel" | "js" | "cron" | "template";
6610
+ source?: string | undefined;
6611
+ ast?: unknown;
6612
+ meta?: {
6613
+ rationale?: string | undefined;
6614
+ generatedBy?: string | undefined;
6615
+ } | undefined;
6616
+ } | undefined;
6617
+ readonly hidden?: boolean | undefined;
6618
+ readonly sortable?: boolean | undefined;
6619
+ readonly inlineHelpText?: string | undefined;
6620
+ readonly trackFeedHistory?: boolean | undefined;
6621
+ readonly caseSensitive?: boolean | undefined;
6622
+ readonly autonumberFormat?: string | undefined;
6623
+ readonly index?: boolean | undefined;
6624
+ readonly type: "lookup";
6625
+ };
6626
+ readonly created_at: {
6627
+ readonly readonly?: boolean | undefined;
6628
+ readonly format?: string | undefined;
6629
+ readonly options?: {
6630
+ label: string;
6631
+ value: string;
6632
+ color?: string | undefined;
6633
+ default?: boolean | undefined;
6634
+ }[] | undefined;
6635
+ readonly description?: string | undefined;
6636
+ readonly label?: string | undefined;
6637
+ readonly name?: string | undefined;
6638
+ readonly precision?: number | undefined;
6639
+ readonly required?: boolean | undefined;
6640
+ readonly multiple?: boolean | undefined;
6641
+ readonly dependencies?: string[] | undefined;
6642
+ readonly theme?: string | undefined;
6643
+ readonly externalId?: boolean | undefined;
6644
+ readonly min?: number | undefined;
6645
+ readonly max?: number | undefined;
6646
+ readonly group?: string | undefined;
6647
+ readonly encryptionConfig?: {
6648
+ enabled: boolean;
6649
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
6650
+ keyManagement: {
6651
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
6652
+ keyId?: string | undefined;
6653
+ rotationPolicy?: {
6654
+ enabled: boolean;
6655
+ frequencyDays: number;
6656
+ retainOldVersions: number;
6657
+ autoRotate: boolean;
6658
+ } | undefined;
6659
+ };
6660
+ scope: "record" | "field" | "table" | "database";
6661
+ deterministicEncryption: boolean;
6662
+ searchableEncryption: boolean;
6663
+ } | undefined;
6664
+ readonly columnName?: string | undefined;
6665
+ readonly searchable?: boolean | undefined;
6666
+ readonly unique?: boolean | undefined;
6667
+ readonly defaultValue?: unknown;
6668
+ readonly maxLength?: number | undefined;
6669
+ readonly minLength?: number | undefined;
6670
+ readonly scale?: number | undefined;
6671
+ readonly reference?: string | undefined;
6672
+ readonly referenceFilters?: string[] | undefined;
6673
+ readonly writeRequiresMasterRead?: boolean | undefined;
6674
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
6675
+ readonly expression?: {
6676
+ dialect: "cel" | "js" | "cron" | "template";
6677
+ source?: string | undefined;
6678
+ ast?: unknown;
6679
+ meta?: {
6680
+ rationale?: string | undefined;
6681
+ generatedBy?: string | undefined;
6682
+ } | undefined;
6683
+ } | undefined;
6684
+ readonly summaryOperations?: {
6685
+ object: string;
6686
+ field: string;
6687
+ function: "min" | "max" | "count" | "sum" | "avg";
6688
+ } | undefined;
6689
+ readonly language?: string | undefined;
6690
+ readonly lineNumbers?: boolean | undefined;
6691
+ readonly maxRating?: number | undefined;
6692
+ readonly allowHalf?: boolean | undefined;
6693
+ readonly displayMap?: boolean | undefined;
6694
+ readonly allowGeocoding?: boolean | undefined;
6695
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
6696
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
6697
+ readonly allowAlpha?: boolean | undefined;
6698
+ readonly presetColors?: string[] | undefined;
6699
+ readonly step?: number | undefined;
6700
+ readonly showValue?: boolean | undefined;
6701
+ readonly marks?: Record<string, string> | undefined;
6702
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
6703
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
6704
+ readonly displayValue?: boolean | undefined;
6705
+ readonly allowScanning?: boolean | undefined;
6706
+ readonly currencyConfig?: {
6707
+ precision: number;
6708
+ currencyMode: "fixed" | "dynamic";
6709
+ defaultCurrency: string;
6710
+ } | undefined;
6711
+ readonly vectorConfig?: {
6712
+ dimensions: number;
6713
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
6714
+ normalized: boolean;
6715
+ indexed: boolean;
6716
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
6717
+ } | undefined;
6718
+ readonly fileAttachmentConfig?: {
6719
+ virusScan: boolean;
6720
+ virusScanOnUpload: boolean;
6721
+ quarantineOnThreat: boolean;
6722
+ allowMultiple: boolean;
6723
+ allowReplace: boolean;
6724
+ allowDelete: boolean;
6725
+ requireUpload: boolean;
6726
+ extractMetadata: boolean;
6727
+ extractText: boolean;
6728
+ versioningEnabled: boolean;
6729
+ publicRead: boolean;
6730
+ presignedUrlExpiry: number;
6731
+ minSize?: number | undefined;
6732
+ maxSize?: number | undefined;
6733
+ allowedTypes?: string[] | undefined;
6734
+ blockedTypes?: string[] | undefined;
6735
+ allowedMimeTypes?: string[] | undefined;
6736
+ blockedMimeTypes?: string[] | undefined;
6737
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
6738
+ storageProvider?: string | undefined;
6739
+ storageBucket?: string | undefined;
6740
+ storagePrefix?: string | undefined;
6741
+ imageValidation?: {
6742
+ generateThumbnails: boolean;
6743
+ preserveMetadata: boolean;
6744
+ autoRotate: boolean;
6745
+ minWidth?: number | undefined;
6746
+ maxWidth?: number | undefined;
6747
+ minHeight?: number | undefined;
6748
+ maxHeight?: number | undefined;
6749
+ aspectRatio?: string | undefined;
6750
+ thumbnailSizes?: {
6751
+ name: string;
6752
+ width: number;
6753
+ height: number;
6754
+ crop: boolean;
6755
+ }[] | undefined;
6756
+ } | undefined;
6757
+ maxVersions?: number | undefined;
6758
+ } | undefined;
6759
+ readonly maskingRule?: {
6760
+ field: string;
6761
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
6762
+ preserveFormat: boolean;
6763
+ preserveLength: boolean;
6764
+ pattern?: string | undefined;
6765
+ roles?: string[] | undefined;
6766
+ exemptRoles?: string[] | undefined;
6767
+ } | undefined;
6768
+ readonly auditTrail?: boolean | undefined;
6769
+ readonly cached?: {
6770
+ enabled: boolean;
6771
+ ttl: number;
6772
+ invalidateOn: string[];
6773
+ } | undefined;
6774
+ readonly dataQuality?: {
6775
+ uniqueness: boolean;
6776
+ completeness: number;
6777
+ accuracy?: {
6778
+ source: string;
6779
+ threshold: number;
6780
+ } | undefined;
6781
+ } | undefined;
6782
+ readonly conditionalRequired?: {
6783
+ dialect: "cel" | "js" | "cron" | "template";
6784
+ source?: string | undefined;
6785
+ ast?: unknown;
6786
+ meta?: {
6787
+ rationale?: string | undefined;
6788
+ generatedBy?: string | undefined;
6789
+ } | undefined;
6790
+ } | undefined;
6791
+ readonly hidden?: boolean | undefined;
6792
+ readonly sortable?: boolean | undefined;
6793
+ readonly inlineHelpText?: string | undefined;
6794
+ readonly trackFeedHistory?: boolean | undefined;
6795
+ readonly caseSensitive?: boolean | undefined;
6796
+ readonly autonumberFormat?: string | undefined;
6797
+ readonly index?: boolean | undefined;
6798
+ readonly type: "datetime";
6799
+ };
6800
+ readonly updated_at: {
6801
+ readonly readonly?: boolean | undefined;
6802
+ readonly format?: string | undefined;
6803
+ readonly options?: {
6804
+ label: string;
6805
+ value: string;
6806
+ color?: string | undefined;
6807
+ default?: boolean | undefined;
6808
+ }[] | undefined;
6809
+ readonly description?: string | undefined;
6810
+ readonly label?: string | undefined;
6811
+ readonly name?: string | undefined;
6812
+ readonly precision?: number | undefined;
6813
+ readonly required?: boolean | undefined;
6814
+ readonly multiple?: boolean | undefined;
6815
+ readonly dependencies?: string[] | undefined;
6816
+ readonly theme?: string | undefined;
6817
+ readonly externalId?: boolean | undefined;
6818
+ readonly min?: number | undefined;
6819
+ readonly max?: number | undefined;
6820
+ readonly group?: string | undefined;
6821
+ readonly encryptionConfig?: {
6822
+ enabled: boolean;
6823
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
6824
+ keyManagement: {
6825
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
6826
+ keyId?: string | undefined;
6827
+ rotationPolicy?: {
6828
+ enabled: boolean;
6829
+ frequencyDays: number;
6830
+ retainOldVersions: number;
6831
+ autoRotate: boolean;
6832
+ } | undefined;
6833
+ };
6834
+ scope: "record" | "field" | "table" | "database";
6835
+ deterministicEncryption: boolean;
6836
+ searchableEncryption: boolean;
6837
+ } | undefined;
6838
+ readonly columnName?: string | undefined;
6839
+ readonly searchable?: boolean | undefined;
6840
+ readonly unique?: boolean | undefined;
6841
+ readonly defaultValue?: unknown;
6842
+ readonly maxLength?: number | undefined;
6843
+ readonly minLength?: number | undefined;
6844
+ readonly scale?: number | undefined;
6845
+ readonly reference?: string | undefined;
6846
+ readonly referenceFilters?: string[] | undefined;
6847
+ readonly writeRequiresMasterRead?: boolean | undefined;
6848
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
6849
+ readonly expression?: {
6850
+ dialect: "cel" | "js" | "cron" | "template";
6851
+ source?: string | undefined;
6852
+ ast?: unknown;
6853
+ meta?: {
6854
+ rationale?: string | undefined;
6855
+ generatedBy?: string | undefined;
6856
+ } | undefined;
6857
+ } | undefined;
6858
+ readonly summaryOperations?: {
6859
+ object: string;
6860
+ field: string;
6861
+ function: "min" | "max" | "count" | "sum" | "avg";
6862
+ } | undefined;
6863
+ readonly language?: string | undefined;
6864
+ readonly lineNumbers?: boolean | undefined;
6865
+ readonly maxRating?: number | undefined;
6866
+ readonly allowHalf?: boolean | undefined;
6867
+ readonly displayMap?: boolean | undefined;
6868
+ readonly allowGeocoding?: boolean | undefined;
6869
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
6870
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
6871
+ readonly allowAlpha?: boolean | undefined;
6872
+ readonly presetColors?: string[] | undefined;
6873
+ readonly step?: number | undefined;
6874
+ readonly showValue?: boolean | undefined;
6875
+ readonly marks?: Record<string, string> | undefined;
6876
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
6877
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
6878
+ readonly displayValue?: boolean | undefined;
6879
+ readonly allowScanning?: boolean | undefined;
6880
+ readonly currencyConfig?: {
6881
+ precision: number;
6882
+ currencyMode: "fixed" | "dynamic";
6883
+ defaultCurrency: string;
6884
+ } | undefined;
6885
+ readonly vectorConfig?: {
6886
+ dimensions: number;
6887
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
6888
+ normalized: boolean;
6889
+ indexed: boolean;
6890
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
6891
+ } | undefined;
6892
+ readonly fileAttachmentConfig?: {
6893
+ virusScan: boolean;
6894
+ virusScanOnUpload: boolean;
6895
+ quarantineOnThreat: boolean;
6896
+ allowMultiple: boolean;
6897
+ allowReplace: boolean;
6898
+ allowDelete: boolean;
6899
+ requireUpload: boolean;
6900
+ extractMetadata: boolean;
6901
+ extractText: boolean;
6902
+ versioningEnabled: boolean;
6903
+ publicRead: boolean;
6904
+ presignedUrlExpiry: number;
6905
+ minSize?: number | undefined;
6906
+ maxSize?: number | undefined;
6907
+ allowedTypes?: string[] | undefined;
6908
+ blockedTypes?: string[] | undefined;
6909
+ allowedMimeTypes?: string[] | undefined;
6910
+ blockedMimeTypes?: string[] | undefined;
6911
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
6912
+ storageProvider?: string | undefined;
6913
+ storageBucket?: string | undefined;
6914
+ storagePrefix?: string | undefined;
6915
+ imageValidation?: {
6916
+ generateThumbnails: boolean;
6917
+ preserveMetadata: boolean;
6918
+ autoRotate: boolean;
6919
+ minWidth?: number | undefined;
6920
+ maxWidth?: number | undefined;
6921
+ minHeight?: number | undefined;
6922
+ maxHeight?: number | undefined;
6923
+ aspectRatio?: string | undefined;
6924
+ thumbnailSizes?: {
6925
+ name: string;
6926
+ width: number;
6927
+ height: number;
6928
+ crop: boolean;
6929
+ }[] | undefined;
6930
+ } | undefined;
6931
+ maxVersions?: number | undefined;
6932
+ } | undefined;
6933
+ readonly maskingRule?: {
6934
+ field: string;
6935
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
6936
+ preserveFormat: boolean;
6937
+ preserveLength: boolean;
6938
+ pattern?: string | undefined;
6939
+ roles?: string[] | undefined;
6940
+ exemptRoles?: string[] | undefined;
6941
+ } | undefined;
6942
+ readonly auditTrail?: boolean | undefined;
6943
+ readonly cached?: {
6944
+ enabled: boolean;
6945
+ ttl: number;
6946
+ invalidateOn: string[];
6947
+ } | undefined;
6948
+ readonly dataQuality?: {
6949
+ uniqueness: boolean;
6950
+ completeness: number;
6951
+ accuracy?: {
6952
+ source: string;
6953
+ threshold: number;
6954
+ } | undefined;
6955
+ } | undefined;
6956
+ readonly conditionalRequired?: {
6957
+ dialect: "cel" | "js" | "cron" | "template";
6958
+ source?: string | undefined;
6959
+ ast?: unknown;
6960
+ meta?: {
6961
+ rationale?: string | undefined;
6962
+ generatedBy?: string | undefined;
6963
+ } | undefined;
6964
+ } | undefined;
6965
+ readonly hidden?: boolean | undefined;
6966
+ readonly sortable?: boolean | undefined;
6967
+ readonly inlineHelpText?: string | undefined;
6968
+ readonly trackFeedHistory?: boolean | undefined;
6969
+ readonly caseSensitive?: boolean | undefined;
6970
+ readonly autonumberFormat?: string | undefined;
6971
+ readonly index?: boolean | undefined;
6972
+ readonly type: "datetime";
6973
+ };
6974
+ };
6975
+ readonly indexes: [{
6976
+ readonly fields: ["role_id", "permission_set_id"];
6977
+ readonly unique: true;
6978
+ }, {
6979
+ readonly fields: ["role_id"];
6980
+ }, {
6981
+ readonly fields: ["permission_set_id"];
6982
+ }];
6983
+ readonly enable: {
6984
+ readonly trackHistory: true;
6985
+ readonly searchable: true;
6986
+ readonly apiEnabled: true;
6987
+ readonly apiMethods: ["get", "list", "create", "update", "delete"];
6988
+ readonly trash: true;
6989
+ readonly mru: false;
6990
+ };
6991
+ }, "fields">;
6992
+
6993
+ /**
6994
+ * Default permission sets seeded by the platform.
6995
+ *
6996
+ * These are referenced by name (`admin_full_access`, `member_default`,
6997
+ * `viewer_readonly`) from `sys_role_permission_set` rows or assigned
6998
+ * directly to users via `sys_user_permission_set`.
6999
+ *
7000
+ * The runtime SecurityPlugin reads these via the metadata service when a
7001
+ * permission set name appears in the request `ExecutionContext.permissions[]`.
7002
+ *
7003
+ * Each entry is run through `PermissionSetSchema.parse(...)` so Zod fills
7004
+ * in the boolean/`priority`/`enabled` defaults — keeping the literal
7005
+ * source readable while still satisfying the strict output type.
7006
+ *
7007
+ * `objects: { '*': … }` uses the wildcard sentinel honoured by
7008
+ * `PermissionEvaluator` — admins do not need an explicit row per object.
7009
+ * Per-object entries fully override the wildcard for that object (see
7010
+ * `PermissionEvaluator.checkObjectPermission` — lookup, not merge).
7011
+ *
7012
+ * RLS policies use the canonical `current_user.*` placeholders compiled
7013
+ * by `RLSCompiler`. The active organization is exposed under
7014
+ * `current_user.organization_id` (sourced from
7015
+ * `ExecutionContext.tenantId` at request time) — there is no rewrite
7016
+ * step or `tenantField` indirection in SecurityPlugin. Schemas with a
7017
+ * different physical tenant column should fork these defaults.
7018
+ */
7019
+ declare const defaultPermissionSets: PermissionSet[];
7020
+
7021
+ export { SysPermissionSet, SysRole, SysRolePermissionSet, SysUserPermissionSet, defaultPermissionSets };