simetra 0.2.0 → 0.3.0-next.10

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.
Files changed (35) hide show
  1. package/dist/channel-grant-BATD6oQu.js +15 -0
  2. package/dist/compiler/index.d.ts +732 -85
  3. package/dist/compiler/index.js +26488 -13752
  4. package/dist/data/centrifugo/index.d.ts +24 -0
  5. package/dist/data/centrifugo/index.js +173 -0
  6. package/dist/data/index.d.ts +27 -0
  7. package/dist/data/index.js +10115 -0
  8. package/dist/data/react/index.d.ts +103 -0
  9. package/dist/data/react/index.js +214 -0
  10. package/dist/grant-Zg0hmqK7.d.ts +11 -0
  11. package/dist/handle-C6PFsnUX.js +44 -0
  12. package/dist/holder-CkR-qRYU.d.ts +585 -0
  13. package/dist/model/index.d.ts +4396 -400
  14. package/dist/model/index.js +4425 -380
  15. package/dist/schema/index.d.ts +1545 -572
  16. package/dist/schema/index.js +8554 -4215
  17. package/dist/server/index.d.ts +710 -21
  18. package/dist/server/index.js +4663 -483
  19. package/dist/server/signals/index.d.ts +92 -0
  20. package/dist/server/signals/index.js +140 -0
  21. package/dist/shell/index.d.ts +112 -0
  22. package/dist/shell/index.js +159 -0
  23. package/dist/ui/index.d.ts +213 -0
  24. package/dist/ui/index.js +1098 -0
  25. package/package.json +75 -3
  26. package/schemas/accumulation-registers.schema.json +46 -5
  27. package/schemas/catalogs.schema.json +113 -33
  28. package/schemas/constants.schema.json +31 -5
  29. package/schemas/custom-tables.schema.json +24 -0
  30. package/schemas/documents.schema.json +86 -31
  31. package/schemas/functions.schema.json +129 -0
  32. package/schemas/information-registers.schema.json +47 -5
  33. package/schemas/project.schema.json +206 -1
  34. package/schemas/rights-sets.schema.json +19 -1
  35. package/schemas/roles.schema.json +23 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simetra",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-next.10",
4
4
  "description": "Metadata-driven platform for business applications on Postgres: metamodel, compiler and schema engine",
5
5
  "keywords": [
6
6
  "metadata",
@@ -33,13 +33,56 @@
33
33
  "libpg-query": "17.8.2",
34
34
  "zod": "^4.6.7"
35
35
  },
36
+ "peerDependencies": {
37
+ "centrifuge": "^5.8.0",
38
+ "@tanstack/react-form": "^1.33.5",
39
+ "@tanstack/react-router": "^1.170.46",
40
+ "@tanstack/react-virtual": "^3.14.26",
41
+ "react": "^19.3.1",
42
+ "react-dom": "^19.3.1"
43
+ },
44
+ "peerDependenciesMeta": {
45
+ "centrifuge": {
46
+ "optional": true
47
+ },
48
+ "@tanstack/react-form": {
49
+ "optional": true
50
+ },
51
+ "@tanstack/react-router": {
52
+ "optional": true
53
+ },
54
+ "@tanstack/react-virtual": {
55
+ "optional": true
56
+ },
57
+ "react": {
58
+ "optional": true
59
+ },
60
+ "react-dom": {
61
+ "optional": true
62
+ }
63
+ },
36
64
  "devDependencies": {
65
+ "@aws-sdk/client-s3": "3.1175.0",
37
66
  "@eslint/js": "^10.0.1",
67
+ "@tanstack/react-form": "1.33.5",
68
+ "@tanstack/react-router": "1.170.46",
69
+ "@tanstack/react-virtual": "3.14.26",
70
+ "@testing-library/dom": "10.4.2",
71
+ "@testing-library/react": "16.3.3",
38
72
  "@types/node": "^24.19.2",
39
73
  "@types/pg": "^8.23.1",
74
+ "@types/react": "19.3.0",
75
+ "@types/react-dom": "19.3.0",
40
76
  "@typescript/native": "npm:typescript@^7.0.2",
77
+ "better-auth": "1.7.12",
78
+ "centrifuge": "5.8.0",
41
79
  "eslint": "^10.14.0",
80
+ "fast-check": "4.10.2",
81
+ "jsdom": "31.0.1",
82
+ "kysely": "0.29.7",
42
83
  "pg": "8.23.1",
84
+ "react": "19.3.1",
85
+ "react-dom": "19.3.1",
43
86
  "tsdown": "0.23.5",
44
87
  "tsx": "4.23.15",
45
88
  "typescript": "npm:@typescript/typescript6@^6.0.2",
@@ -63,21 +106,50 @@
63
106
  "types": "./dist/server/index.d.ts",
64
107
  "import": "./dist/server/index.js"
65
108
  },
109
+ "./server/signals": {
110
+ "types": "./dist/server/signals/index.d.ts",
111
+ "import": "./dist/server/signals/index.js"
112
+ },
113
+ "./data": {
114
+ "types": "./dist/data/index.d.ts",
115
+ "import": "./dist/data/index.js"
116
+ },
117
+ "./data/react": {
118
+ "types": "./dist/data/react/index.d.ts",
119
+ "import": "./dist/data/react/index.js"
120
+ },
121
+ "./data/centrifugo": {
122
+ "types": "./dist/data/centrifugo/index.d.ts",
123
+ "import": "./dist/data/centrifugo/index.js"
124
+ },
125
+ "./ui": {
126
+ "types": "./dist/ui/index.d.ts",
127
+ "import": "./dist/ui/index.js"
128
+ },
129
+ "./shell": {
130
+ "types": "./dist/shell/index.d.ts",
131
+ "import": "./dist/shell/index.js"
132
+ },
66
133
  "./schemas/*": "./schemas/*"
67
134
  },
68
135
  "publishConfig": {
69
136
  "access": "public"
70
137
  },
138
+ "gitHead": "08adc247b23c7a9e52872db1a9f7318689f06fc6",
71
139
  "scripts": {
72
140
  "build": "tsc --noEmit",
73
141
  "build:package": "tsdown",
74
142
  "lint": "eslint",
75
143
  "format": "prettier --write \"**/*.{ts,tsx}\"",
76
- "typecheck": "tsc --noEmit",
144
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.dom.json",
77
145
  "test": "vitest run --project unit",
146
+ "test:docs": "vitest run --project unit .docs.test.",
78
147
  "test:watch": "vitest --project unit",
79
148
  "test:db": "vitest run --project db",
80
- "bench:rights": "vitest run --project bench",
149
+ "test:db:supabase": "vitest run --project db-supabase",
150
+ "schemas:update": "UPDATE_JSON_SCHEMAS=1 vitest run --project unit json-schema",
151
+ "bench:rights": "vitest run --project bench rights",
152
+ "bench:tabular": "vitest run --project bench tabular",
81
153
  "catalog-functions": "node scripts/catalog-functions.ts",
82
154
  "builtin-functions": "node scripts/builtin-functions.ts"
83
155
  }
@@ -135,11 +135,36 @@
135
135
  "additionalProperties": false
136
136
  },
137
137
  "publicRead": {
138
- "description": "API role that may read every row of the object: authenticated users or anonymous visitors. Absent means no public read.",
139
- "type": "string",
140
- "enum": [
141
- "authenticated",
142
- "anon"
138
+ "description": "API role that may read the object: authenticated users or anonymous visitors. A string opens every row; an object { role, published: true } opens only rows marked published. Absent means no public read.",
139
+ "anyOf": [
140
+ {
141
+ "type": "string",
142
+ "enum": [
143
+ "authenticated",
144
+ "anon"
145
+ ]
146
+ },
147
+ {
148
+ "type": "object",
149
+ "properties": {
150
+ "role": {
151
+ "type": "string",
152
+ "enum": [
153
+ "authenticated",
154
+ "anon"
155
+ ]
156
+ },
157
+ "published": {
158
+ "type": "boolean",
159
+ "const": true
160
+ }
161
+ },
162
+ "required": [
163
+ "role",
164
+ "published"
165
+ ],
166
+ "additionalProperties": false
167
+ }
143
168
  ]
144
169
  },
145
170
  "customActions": {
@@ -381,6 +406,7 @@
381
406
  "DateTime",
382
407
  "Bytes",
383
408
  "Json",
409
+ "RichText",
384
410
  "Ref"
385
411
  ],
386
412
  "description": "Logical value type."
@@ -756,6 +782,7 @@
756
782
  "DateTime",
757
783
  "Bytes",
758
784
  "Json",
785
+ "RichText",
759
786
  "Ref"
760
787
  ],
761
788
  "description": "Logical value type."
@@ -977,6 +1004,20 @@
977
1004
  "description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
978
1005
  "type": "boolean",
979
1006
  "const": true
1007
+ },
1008
+ "load": {
1009
+ "description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
1010
+ "type": "string",
1011
+ "enum": [
1012
+ "eager",
1013
+ "lazy"
1014
+ ]
1015
+ },
1016
+ "maxBytes": {
1017
+ "description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
1018
+ "type": "integer",
1019
+ "exclusiveMinimum": 0,
1020
+ "maximum": 9007199254740991
980
1021
  }
981
1022
  },
982
1023
  "required": [
@@ -71,12 +71,13 @@
71
71
  "minLength": 1
72
72
  },
73
73
  "role": {
74
- "description": "System role of the catalog: users marks the users catalog that the platform layer provisions and references (at most one per project, unscoped); rightsRoles and roleAssignments mark the custom roles and role assignments catalogs of a rights level, the level being the catalog's own scope (at most one per role and level).",
74
+ "description": "System role of the catalog: users marks the users catalog that the platform layer provisions and references (at most one per project, unscoped); rightsRoles and roleAssignments mark the custom roles and role assignments catalogs of a rights level, the level being the catalog's own scope (at most one per role and level); languages marks the catalog of data languages (unscoped, at most one per project, a code of the form language[-Script][-REGION]).",
75
75
  "type": "string",
76
76
  "enum": [
77
77
  "users",
78
78
  "rightsRoles",
79
- "roleAssignments"
79
+ "roleAssignments",
80
+ "languages"
80
81
  ]
81
82
  },
82
83
  "codeLength": {
@@ -235,11 +236,36 @@
235
236
  "additionalProperties": false
236
237
  },
237
238
  "publicRead": {
238
- "description": "API role that may read every row of the object: authenticated users or anonymous visitors. Absent means no public read.",
239
- "type": "string",
240
- "enum": [
241
- "authenticated",
242
- "anon"
239
+ "description": "API role that may read the object: authenticated users or anonymous visitors. A string opens every row; an object { role, published: true } opens only rows marked published. Absent means no public read.",
240
+ "anyOf": [
241
+ {
242
+ "type": "string",
243
+ "enum": [
244
+ "authenticated",
245
+ "anon"
246
+ ]
247
+ },
248
+ {
249
+ "type": "object",
250
+ "properties": {
251
+ "role": {
252
+ "type": "string",
253
+ "enum": [
254
+ "authenticated",
255
+ "anon"
256
+ ]
257
+ },
258
+ "published": {
259
+ "type": "boolean",
260
+ "const": true
261
+ }
262
+ },
263
+ "required": [
264
+ "role",
265
+ "published"
266
+ ],
267
+ "additionalProperties": false
268
+ }
243
269
  ]
244
270
  },
245
271
  "customActions": {
@@ -403,37 +429,38 @@
403
429
  }
404
430
  },
405
431
  "containerBinding": {
406
- "description": "Attribute (or a two-step path of attributes) that binds a row to its rights container: the catalog flagged rightsContainer.",
407
- "anyOf": [
408
- {
409
- "type": "string",
410
- "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
411
- "description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
412
- },
413
- {
414
- "type": "array",
415
- "prefixItems": [
416
- {
417
- "type": "string",
418
- "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
419
- "description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
420
- },
421
- {
422
- "type": "string",
423
- "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
424
- "description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
425
- }
426
- ],
427
- "items": false,
428
- "minItems": 2,
429
- "maxItems": 2
430
- }
431
- ]
432
+ "description": "Attribute that binds a row to its rights container (the catalog flagged rightsContainer) or to an object that is itself bound: a chain of bindings.",
433
+ "type": "string",
434
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
432
435
  },
433
436
  "rightsContainer": {
434
437
  "description": "Marks the catalog as a rights container: objects bind to its rows with containerBinding, and a grant on the container covers them.",
435
438
  "type": "boolean"
436
439
  },
440
+ "storage": {
441
+ "type": "object",
442
+ "properties": {
443
+ "maxBytes": {
444
+ "type": "integer",
445
+ "minimum": 1,
446
+ "maximum": 104857600,
447
+ "description": "Largest accepted file size in bytes, 1 to the platform ceiling."
448
+ },
449
+ "mediaTypes": {
450
+ "type": "array",
451
+ "items": {
452
+ "type": "string"
453
+ },
454
+ "description": "Accepted content types: a non-empty list of unique lowercase type/subtype strings without parameters."
455
+ }
456
+ },
457
+ "required": [
458
+ "maxBytes",
459
+ "mediaTypes"
460
+ ],
461
+ "additionalProperties": false,
462
+ "description": "File storage of a catalog: each row is one file, its bytes live outside the database."
463
+ },
437
464
  "standardAttributeOverrides": {
438
465
  "default": {},
439
466
  "description": "Custom titles and descriptions of derived standard attributes, keyed by standard attribute name.",
@@ -546,6 +573,7 @@
546
573
  "DateTime",
547
574
  "Bytes",
548
575
  "Json",
576
+ "RichText",
549
577
  "Ref"
550
578
  ],
551
579
  "description": "Logical value type."
@@ -768,6 +796,20 @@
768
796
  "type": "boolean",
769
797
  "const": true
770
798
  },
799
+ "load": {
800
+ "description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
801
+ "type": "string",
802
+ "enum": [
803
+ "eager",
804
+ "lazy"
805
+ ]
806
+ },
807
+ "maxBytes": {
808
+ "description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
809
+ "type": "integer",
810
+ "exclusiveMinimum": 0,
811
+ "maximum": 9007199254740991
812
+ },
771
813
  "uniqueWithin": {
772
814
  "description": "Narrows uniqueness to the owner or the parent of the object (needs unique; own attributes of an object whose kind has that standard attribute).",
773
815
  "type": "string",
@@ -934,6 +976,7 @@
934
976
  "DateTime",
935
977
  "Bytes",
936
978
  "Json",
979
+ "RichText",
937
980
  "Ref"
938
981
  ],
939
982
  "description": "Logical value type."
@@ -1155,6 +1198,20 @@
1155
1198
  "description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
1156
1199
  "type": "boolean",
1157
1200
  "const": true
1201
+ },
1202
+ "load": {
1203
+ "description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
1204
+ "type": "string",
1205
+ "enum": [
1206
+ "eager",
1207
+ "lazy"
1208
+ ]
1209
+ },
1210
+ "maxBytes": {
1211
+ "description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
1212
+ "type": "integer",
1213
+ "exclusiveMinimum": 0,
1214
+ "maximum": 9007199254740991
1158
1215
  }
1159
1216
  },
1160
1217
  "required": [
@@ -1267,6 +1324,29 @@
1267
1324
  "additionalProperties": false,
1268
1325
  "description": "Non-unique btree index over attributes of the same table; the scope carrier is added first automatically."
1269
1326
  }
1327
+ },
1328
+ "search": {
1329
+ "type": "object",
1330
+ "properties": {
1331
+ "fields": {
1332
+ "description": "Logical names of header attributes (standard and custom) to search by; omitted means the kind's default presentation fields.",
1333
+ "type": "array",
1334
+ "items": {
1335
+ "type": "string",
1336
+ "minLength": 1
1337
+ }
1338
+ },
1339
+ "mode": {
1340
+ "description": "Search mode: startsWith (prefix, indexed) or contains (substring, scope scan); contains by default.",
1341
+ "type": "string",
1342
+ "enum": [
1343
+ "startsWith",
1344
+ "contains"
1345
+ ]
1346
+ }
1347
+ },
1348
+ "additionalProperties": false,
1349
+ "description": "Search fields and mode of the object."
1270
1350
  }
1271
1351
  },
1272
1352
  "required": [
@@ -71,11 +71,36 @@
71
71
  "minLength": 1
72
72
  },
73
73
  "publicRead": {
74
- "description": "API role that may read every row of the object: authenticated users or anonymous visitors. Absent means no public read.",
75
- "type": "string",
76
- "enum": [
77
- "authenticated",
78
- "anon"
74
+ "description": "API role that may read the object: authenticated users or anonymous visitors. A string opens every row; an object { role, published: true } opens only rows marked published. Absent means no public read.",
75
+ "anyOf": [
76
+ {
77
+ "type": "string",
78
+ "enum": [
79
+ "authenticated",
80
+ "anon"
81
+ ]
82
+ },
83
+ {
84
+ "type": "object",
85
+ "properties": {
86
+ "role": {
87
+ "type": "string",
88
+ "enum": [
89
+ "authenticated",
90
+ "anon"
91
+ ]
92
+ },
93
+ "published": {
94
+ "type": "boolean",
95
+ "const": true
96
+ }
97
+ },
98
+ "required": [
99
+ "role",
100
+ "published"
101
+ ],
102
+ "additionalProperties": false
103
+ }
79
104
  ]
80
105
  },
81
106
  "customActions": {
@@ -157,6 +182,7 @@
157
182
  "DateTime",
158
183
  "Bytes",
159
184
  "Json",
185
+ "RichText",
160
186
  "Ref"
161
187
  ],
162
188
  "description": "Logical value type."
@@ -182,6 +182,7 @@
182
182
  "DateTime",
183
183
  "Bytes",
184
184
  "Json",
185
+ "RichText",
185
186
  "Ref",
186
187
  "PgEnum",
187
188
  "Raw"
@@ -848,6 +849,29 @@
848
849
  "enabled",
849
850
  "forced"
850
851
  ]
852
+ },
853
+ "search": {
854
+ "type": "object",
855
+ "properties": {
856
+ "fields": {
857
+ "description": "Logical names of header attributes (standard and custom) to search by; omitted means the kind's default presentation fields.",
858
+ "type": "array",
859
+ "items": {
860
+ "type": "string",
861
+ "minLength": 1
862
+ }
863
+ },
864
+ "mode": {
865
+ "description": "Search mode: startsWith (prefix, indexed) or contains (substring, scope scan); contains by default.",
866
+ "type": "string",
867
+ "enum": [
868
+ "startsWith",
869
+ "contains"
870
+ ]
871
+ }
872
+ },
873
+ "additionalProperties": false,
874
+ "description": "Search fields and mode of the object."
851
875
  }
852
876
  },
853
877
  "required": [
@@ -254,11 +254,36 @@
254
254
  "type": "boolean"
255
255
  },
256
256
  "publicRead": {
257
- "description": "API role that may read every row of the object: authenticated users or anonymous visitors. Absent means no public read.",
258
- "type": "string",
259
- "enum": [
260
- "authenticated",
261
- "anon"
257
+ "description": "API role that may read the object: authenticated users or anonymous visitors. A string opens every row; an object { role, published: true } opens only rows marked published. Absent means no public read.",
258
+ "anyOf": [
259
+ {
260
+ "type": "string",
261
+ "enum": [
262
+ "authenticated",
263
+ "anon"
264
+ ]
265
+ },
266
+ {
267
+ "type": "object",
268
+ "properties": {
269
+ "role": {
270
+ "type": "string",
271
+ "enum": [
272
+ "authenticated",
273
+ "anon"
274
+ ]
275
+ },
276
+ "published": {
277
+ "type": "boolean",
278
+ "const": true
279
+ }
280
+ },
281
+ "required": [
282
+ "role",
283
+ "published"
284
+ ],
285
+ "additionalProperties": false
286
+ }
262
287
  ]
263
288
  },
264
289
  "customActions": {
@@ -422,32 +447,9 @@
422
447
  }
423
448
  },
424
449
  "containerBinding": {
425
- "description": "Attribute (or a two-step path of attributes) that binds a row to its rights container: the catalog flagged rightsContainer.",
426
- "anyOf": [
427
- {
428
- "type": "string",
429
- "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
430
- "description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
431
- },
432
- {
433
- "type": "array",
434
- "prefixItems": [
435
- {
436
- "type": "string",
437
- "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
438
- "description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
439
- },
440
- {
441
- "type": "string",
442
- "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
443
- "description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
444
- }
445
- ],
446
- "items": false,
447
- "minItems": 2,
448
- "maxItems": 2
449
- }
450
- ]
450
+ "description": "Attribute that binds a row to its rights container (the catalog flagged rightsContainer) or to an object that is itself bound: a chain of bindings.",
451
+ "type": "string",
452
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
451
453
  },
452
454
  "standardAttributeOverrides": {
453
455
  "default": {},
@@ -561,6 +563,7 @@
561
563
  "DateTime",
562
564
  "Bytes",
563
565
  "Json",
566
+ "RichText",
564
567
  "Ref"
565
568
  ],
566
569
  "description": "Logical value type."
@@ -782,6 +785,20 @@
782
785
  "description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
783
786
  "type": "boolean",
784
787
  "const": true
788
+ },
789
+ "load": {
790
+ "description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
791
+ "type": "string",
792
+ "enum": [
793
+ "eager",
794
+ "lazy"
795
+ ]
796
+ },
797
+ "maxBytes": {
798
+ "description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
799
+ "type": "integer",
800
+ "exclusiveMinimum": 0,
801
+ "maximum": 9007199254740991
785
802
  }
786
803
  },
787
804
  "required": [
@@ -941,6 +958,7 @@
941
958
  "DateTime",
942
959
  "Bytes",
943
960
  "Json",
961
+ "RichText",
944
962
  "Ref"
945
963
  ],
946
964
  "description": "Logical value type."
@@ -1162,6 +1180,20 @@
1162
1180
  "description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
1163
1181
  "type": "boolean",
1164
1182
  "const": true
1183
+ },
1184
+ "load": {
1185
+ "description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
1186
+ "type": "string",
1187
+ "enum": [
1188
+ "eager",
1189
+ "lazy"
1190
+ ]
1191
+ },
1192
+ "maxBytes": {
1193
+ "description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
1194
+ "type": "integer",
1195
+ "exclusiveMinimum": 0,
1196
+ "maximum": 9007199254740991
1165
1197
  }
1166
1198
  },
1167
1199
  "required": [
@@ -1274,6 +1306,29 @@
1274
1306
  "additionalProperties": false,
1275
1307
  "description": "Non-unique btree index over attributes of the same table; the scope carrier is added first automatically."
1276
1308
  }
1309
+ },
1310
+ "search": {
1311
+ "type": "object",
1312
+ "properties": {
1313
+ "fields": {
1314
+ "description": "Logical names of header attributes (standard and custom) to search by; omitted means the kind's default presentation fields.",
1315
+ "type": "array",
1316
+ "items": {
1317
+ "type": "string",
1318
+ "minLength": 1
1319
+ }
1320
+ },
1321
+ "mode": {
1322
+ "description": "Search mode: startsWith (prefix, indexed) or contains (substring, scope scan); contains by default.",
1323
+ "type": "string",
1324
+ "enum": [
1325
+ "startsWith",
1326
+ "contains"
1327
+ ]
1328
+ }
1329
+ },
1330
+ "additionalProperties": false,
1331
+ "description": "Search fields and mode of the object."
1277
1332
  }
1278
1333
  },
1279
1334
  "required": [