simetra 0.2.0 → 0.3.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channel-grant-BATD6oQu.js +15 -0
- package/dist/compiler/index.d.ts +684 -77
- package/dist/compiler/index.js +24643 -13501
- package/dist/data/centrifugo/index.d.ts +24 -0
- package/dist/data/centrifugo/index.js +173 -0
- package/dist/data/index.d.ts +27 -0
- package/dist/data/index.js +9910 -0
- package/dist/data/react/index.d.ts +103 -0
- package/dist/data/react/index.js +214 -0
- package/dist/grant-Zg0hmqK7.d.ts +11 -0
- package/dist/handle-C6PFsnUX.js +44 -0
- package/dist/holder-CkR-qRYU.d.ts +585 -0
- package/dist/model/index.d.ts +4118 -476
- package/dist/model/index.js +4267 -380
- package/dist/schema/index.d.ts +1545 -572
- package/dist/schema/index.js +8554 -4215
- package/dist/server/index.d.ts +665 -21
- package/dist/server/index.js +4279 -426
- package/dist/server/signals/index.d.ts +92 -0
- package/dist/server/signals/index.js +140 -0
- package/dist/shell/index.d.ts +100 -0
- package/dist/shell/index.js +148 -0
- package/dist/ui/index.d.ts +213 -0
- package/dist/ui/index.js +1075 -0
- package/package.json +75 -3
- package/schemas/accumulation-registers.schema.json +46 -5
- package/schemas/catalogs.schema.json +110 -7
- package/schemas/constants.schema.json +31 -5
- package/schemas/custom-tables.schema.json +24 -0
- package/schemas/documents.schema.json +83 -5
- package/schemas/functions.schema.json +129 -0
- package/schemas/information-registers.schema.json +47 -5
- package/schemas/project.schema.json +11 -1
- package/schemas/rights-sets.schema.json +3 -1
- package/schemas/roles.schema.json +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simetra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-next.2",
|
|
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": "bd2da08175642d706b7879ed34da1619e20c4951",
|
|
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
|
-
"
|
|
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
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
|
239
|
-
"
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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": {
|
|
@@ -434,6 +460,30 @@
|
|
|
434
460
|
"description": "Marks the catalog as a rights container: objects bind to its rows with containerBinding, and a grant on the container covers them.",
|
|
435
461
|
"type": "boolean"
|
|
436
462
|
},
|
|
463
|
+
"storage": {
|
|
464
|
+
"type": "object",
|
|
465
|
+
"properties": {
|
|
466
|
+
"maxBytes": {
|
|
467
|
+
"type": "integer",
|
|
468
|
+
"minimum": 1,
|
|
469
|
+
"maximum": 104857600,
|
|
470
|
+
"description": "Largest accepted file size in bytes, 1 to the platform ceiling."
|
|
471
|
+
},
|
|
472
|
+
"mediaTypes": {
|
|
473
|
+
"type": "array",
|
|
474
|
+
"items": {
|
|
475
|
+
"type": "string"
|
|
476
|
+
},
|
|
477
|
+
"description": "Accepted content types: a non-empty list of unique lowercase type/subtype strings without parameters."
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": [
|
|
481
|
+
"maxBytes",
|
|
482
|
+
"mediaTypes"
|
|
483
|
+
],
|
|
484
|
+
"additionalProperties": false,
|
|
485
|
+
"description": "File storage of a catalog: each row is one file, its bytes live outside the database."
|
|
486
|
+
},
|
|
437
487
|
"standardAttributeOverrides": {
|
|
438
488
|
"default": {},
|
|
439
489
|
"description": "Custom titles and descriptions of derived standard attributes, keyed by standard attribute name.",
|
|
@@ -546,6 +596,7 @@
|
|
|
546
596
|
"DateTime",
|
|
547
597
|
"Bytes",
|
|
548
598
|
"Json",
|
|
599
|
+
"RichText",
|
|
549
600
|
"Ref"
|
|
550
601
|
],
|
|
551
602
|
"description": "Logical value type."
|
|
@@ -768,6 +819,20 @@
|
|
|
768
819
|
"type": "boolean",
|
|
769
820
|
"const": true
|
|
770
821
|
},
|
|
822
|
+
"load": {
|
|
823
|
+
"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.",
|
|
824
|
+
"type": "string",
|
|
825
|
+
"enum": [
|
|
826
|
+
"eager",
|
|
827
|
+
"lazy"
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
"maxBytes": {
|
|
831
|
+
"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.",
|
|
832
|
+
"type": "integer",
|
|
833
|
+
"exclusiveMinimum": 0,
|
|
834
|
+
"maximum": 9007199254740991
|
|
835
|
+
},
|
|
771
836
|
"uniqueWithin": {
|
|
772
837
|
"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
838
|
"type": "string",
|
|
@@ -934,6 +999,7 @@
|
|
|
934
999
|
"DateTime",
|
|
935
1000
|
"Bytes",
|
|
936
1001
|
"Json",
|
|
1002
|
+
"RichText",
|
|
937
1003
|
"Ref"
|
|
938
1004
|
],
|
|
939
1005
|
"description": "Logical value type."
|
|
@@ -1155,6 +1221,20 @@
|
|
|
1155
1221
|
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
1156
1222
|
"type": "boolean",
|
|
1157
1223
|
"const": true
|
|
1224
|
+
},
|
|
1225
|
+
"load": {
|
|
1226
|
+
"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.",
|
|
1227
|
+
"type": "string",
|
|
1228
|
+
"enum": [
|
|
1229
|
+
"eager",
|
|
1230
|
+
"lazy"
|
|
1231
|
+
]
|
|
1232
|
+
},
|
|
1233
|
+
"maxBytes": {
|
|
1234
|
+
"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.",
|
|
1235
|
+
"type": "integer",
|
|
1236
|
+
"exclusiveMinimum": 0,
|
|
1237
|
+
"maximum": 9007199254740991
|
|
1158
1238
|
}
|
|
1159
1239
|
},
|
|
1160
1240
|
"required": [
|
|
@@ -1267,6 +1347,29 @@
|
|
|
1267
1347
|
"additionalProperties": false,
|
|
1268
1348
|
"description": "Non-unique btree index over attributes of the same table; the scope carrier is added first automatically."
|
|
1269
1349
|
}
|
|
1350
|
+
},
|
|
1351
|
+
"search": {
|
|
1352
|
+
"type": "object",
|
|
1353
|
+
"properties": {
|
|
1354
|
+
"fields": {
|
|
1355
|
+
"description": "Logical names of header attributes (standard and custom) to search by; omitted means the kind's default presentation fields.",
|
|
1356
|
+
"type": "array",
|
|
1357
|
+
"items": {
|
|
1358
|
+
"type": "string",
|
|
1359
|
+
"minLength": 1
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
"mode": {
|
|
1363
|
+
"description": "Search mode: startsWith (prefix, indexed) or contains (substring, scope scan); contains by default.",
|
|
1364
|
+
"type": "string",
|
|
1365
|
+
"enum": [
|
|
1366
|
+
"startsWith",
|
|
1367
|
+
"contains"
|
|
1368
|
+
]
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
"additionalProperties": false,
|
|
1372
|
+
"description": "Search fields and mode of the object."
|
|
1270
1373
|
}
|
|
1271
1374
|
},
|
|
1272
1375
|
"required": [
|
|
@@ -71,11 +71,36 @@
|
|
|
71
71
|
"minLength": 1
|
|
72
72
|
},
|
|
73
73
|
"publicRead": {
|
|
74
|
-
"description": "API role that may read
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
|
258
|
-
"
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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": {
|
|
@@ -561,6 +586,7 @@
|
|
|
561
586
|
"DateTime",
|
|
562
587
|
"Bytes",
|
|
563
588
|
"Json",
|
|
589
|
+
"RichText",
|
|
564
590
|
"Ref"
|
|
565
591
|
],
|
|
566
592
|
"description": "Logical value type."
|
|
@@ -782,6 +808,20 @@
|
|
|
782
808
|
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
783
809
|
"type": "boolean",
|
|
784
810
|
"const": true
|
|
811
|
+
},
|
|
812
|
+
"load": {
|
|
813
|
+
"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.",
|
|
814
|
+
"type": "string",
|
|
815
|
+
"enum": [
|
|
816
|
+
"eager",
|
|
817
|
+
"lazy"
|
|
818
|
+
]
|
|
819
|
+
},
|
|
820
|
+
"maxBytes": {
|
|
821
|
+
"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.",
|
|
822
|
+
"type": "integer",
|
|
823
|
+
"exclusiveMinimum": 0,
|
|
824
|
+
"maximum": 9007199254740991
|
|
785
825
|
}
|
|
786
826
|
},
|
|
787
827
|
"required": [
|
|
@@ -941,6 +981,7 @@
|
|
|
941
981
|
"DateTime",
|
|
942
982
|
"Bytes",
|
|
943
983
|
"Json",
|
|
984
|
+
"RichText",
|
|
944
985
|
"Ref"
|
|
945
986
|
],
|
|
946
987
|
"description": "Logical value type."
|
|
@@ -1162,6 +1203,20 @@
|
|
|
1162
1203
|
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
1163
1204
|
"type": "boolean",
|
|
1164
1205
|
"const": true
|
|
1206
|
+
},
|
|
1207
|
+
"load": {
|
|
1208
|
+
"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.",
|
|
1209
|
+
"type": "string",
|
|
1210
|
+
"enum": [
|
|
1211
|
+
"eager",
|
|
1212
|
+
"lazy"
|
|
1213
|
+
]
|
|
1214
|
+
},
|
|
1215
|
+
"maxBytes": {
|
|
1216
|
+
"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.",
|
|
1217
|
+
"type": "integer",
|
|
1218
|
+
"exclusiveMinimum": 0,
|
|
1219
|
+
"maximum": 9007199254740991
|
|
1165
1220
|
}
|
|
1166
1221
|
},
|
|
1167
1222
|
"required": [
|
|
@@ -1274,6 +1329,29 @@
|
|
|
1274
1329
|
"additionalProperties": false,
|
|
1275
1330
|
"description": "Non-unique btree index over attributes of the same table; the scope carrier is added first automatically."
|
|
1276
1331
|
}
|
|
1332
|
+
},
|
|
1333
|
+
"search": {
|
|
1334
|
+
"type": "object",
|
|
1335
|
+
"properties": {
|
|
1336
|
+
"fields": {
|
|
1337
|
+
"description": "Logical names of header attributes (standard and custom) to search by; omitted means the kind's default presentation fields.",
|
|
1338
|
+
"type": "array",
|
|
1339
|
+
"items": {
|
|
1340
|
+
"type": "string",
|
|
1341
|
+
"minLength": 1
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
"mode": {
|
|
1345
|
+
"description": "Search mode: startsWith (prefix, indexed) or contains (substring, scope scan); contains by default.",
|
|
1346
|
+
"type": "string",
|
|
1347
|
+
"enum": [
|
|
1348
|
+
"startsWith",
|
|
1349
|
+
"contains"
|
|
1350
|
+
]
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
"additionalProperties": false,
|
|
1354
|
+
"description": "Search fields and mode of the object."
|
|
1277
1355
|
}
|
|
1278
1356
|
},
|
|
1279
1357
|
"required": [
|