simetra 0.2.0 → 0.3.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channel-grant-BATD6oQu.js +15 -0
- package/dist/compiler/index.d.ts +684 -77
- package/dist/compiler/index.js +24598 -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 +9779 -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 +1523 -572
- package/dist/schema/index.js +11698 -7402
- 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 +74 -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
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"$schema": {
|
|
6
|
+
"description": "Editor hint: path to the JSON Schema of this file.",
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"functions": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "uuid",
|
|
17
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
18
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
19
|
+
},
|
|
20
|
+
"function": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"schema": {
|
|
24
|
+
"description": "PostgreSQL schema of the function; defaultSchema when absent.",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1
|
|
27
|
+
},
|
|
28
|
+
"name": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1,
|
|
31
|
+
"description": "Name of the function in its CREATE FUNCTION statement."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"name"
|
|
36
|
+
],
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"description": "SQL function of the sibling .sql file."
|
|
39
|
+
},
|
|
40
|
+
"callers": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": [
|
|
45
|
+
"user",
|
|
46
|
+
"anonymous",
|
|
47
|
+
"service",
|
|
48
|
+
"command"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"description": "Role purposes that get EXECUTE on the function; empty — no application role, only other functions of the owner call it."
|
|
52
|
+
},
|
|
53
|
+
"check": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"action": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
59
|
+
"description": "A word of the action vocabulary or the name of a custom action of the object."
|
|
60
|
+
},
|
|
61
|
+
"object": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"kind": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"enum": [
|
|
67
|
+
"Catalog",
|
|
68
|
+
"Document",
|
|
69
|
+
"Enumeration",
|
|
70
|
+
"InformationRegister",
|
|
71
|
+
"AccumulationRegister",
|
|
72
|
+
"Constant",
|
|
73
|
+
"CustomTable",
|
|
74
|
+
"PgEnum",
|
|
75
|
+
"EventSubscription",
|
|
76
|
+
"RightsSet",
|
|
77
|
+
"Role"
|
|
78
|
+
],
|
|
79
|
+
"description": "Kind of the referenced metadata object."
|
|
80
|
+
},
|
|
81
|
+
"name": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
84
|
+
"description": "Logical name of the referenced object."
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"kind",
|
|
89
|
+
"name"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"description": "Metadata object whose rights contract is checked."
|
|
93
|
+
},
|
|
94
|
+
"row": {
|
|
95
|
+
"description": "Name of the uuid IN parameter that holds the primary key of the checked row.",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"minLength": 1
|
|
98
|
+
},
|
|
99
|
+
"scope": {
|
|
100
|
+
"description": "Name of the uuid IN parameter that holds the scope value of the check.",
|
|
101
|
+
"type": "string",
|
|
102
|
+
"minLength": 1
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [
|
|
106
|
+
"action",
|
|
107
|
+
"object"
|
|
108
|
+
],
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"description": "Rights check the function applies before it acts on behalf of the caller."
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"function",
|
|
115
|
+
"callers"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"description": "Declaration of one function of the sibling .sql file."
|
|
119
|
+
},
|
|
120
|
+
"description": "Declarations of functions of the sibling .sql file, sorted by function (entries without schema first, then by schema and name) and without duplicates."
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"functions"
|
|
125
|
+
],
|
|
126
|
+
"additionalProperties": false,
|
|
127
|
+
"description": "Declarations of SQL functions: who may execute them and which rights check they apply.",
|
|
128
|
+
"$id": "functions.schema.json"
|
|
129
|
+
}
|
|
@@ -130,11 +130,36 @@
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
"publicRead": {
|
|
133
|
-
"description": "API role that may read
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
"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.",
|
|
134
|
+
"anyOf": [
|
|
135
|
+
{
|
|
136
|
+
"type": "string",
|
|
137
|
+
"enum": [
|
|
138
|
+
"authenticated",
|
|
139
|
+
"anon"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"role": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"enum": [
|
|
148
|
+
"authenticated",
|
|
149
|
+
"anon"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"published": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"const": true
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": [
|
|
158
|
+
"role",
|
|
159
|
+
"published"
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": false
|
|
162
|
+
}
|
|
138
163
|
]
|
|
139
164
|
},
|
|
140
165
|
"customActions": {
|
|
@@ -376,6 +401,7 @@
|
|
|
376
401
|
"DateTime",
|
|
377
402
|
"Bytes",
|
|
378
403
|
"Json",
|
|
404
|
+
"RichText",
|
|
379
405
|
"Ref"
|
|
380
406
|
],
|
|
381
407
|
"description": "Logical value type."
|
|
@@ -669,6 +695,7 @@
|
|
|
669
695
|
"DateTime",
|
|
670
696
|
"Bytes",
|
|
671
697
|
"Json",
|
|
698
|
+
"RichText",
|
|
672
699
|
"Ref"
|
|
673
700
|
],
|
|
674
701
|
"description": "Logical value type."
|
|
@@ -962,6 +989,7 @@
|
|
|
962
989
|
"DateTime",
|
|
963
990
|
"Bytes",
|
|
964
991
|
"Json",
|
|
992
|
+
"RichText",
|
|
965
993
|
"Ref"
|
|
966
994
|
],
|
|
967
995
|
"description": "Logical value type."
|
|
@@ -1183,6 +1211,20 @@
|
|
|
1183
1211
|
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
1184
1212
|
"type": "boolean",
|
|
1185
1213
|
"const": true
|
|
1214
|
+
},
|
|
1215
|
+
"load": {
|
|
1216
|
+
"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.",
|
|
1217
|
+
"type": "string",
|
|
1218
|
+
"enum": [
|
|
1219
|
+
"eager",
|
|
1220
|
+
"lazy"
|
|
1221
|
+
]
|
|
1222
|
+
},
|
|
1223
|
+
"maxBytes": {
|
|
1224
|
+
"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.",
|
|
1225
|
+
"type": "integer",
|
|
1226
|
+
"exclusiveMinimum": 0,
|
|
1227
|
+
"maximum": 9007199254740991
|
|
1186
1228
|
}
|
|
1187
1229
|
},
|
|
1188
1230
|
"required": [
|
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
"en"
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
+
"primaryDataLanguage": {
|
|
38
|
+
"description": "Primary data language: code of the primary row of the languages catalog. Assigned once.",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^[a-z]{2,3}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$"
|
|
41
|
+
},
|
|
37
42
|
"defaultSchema": {
|
|
38
43
|
"default": "public",
|
|
39
44
|
"description": "PostgreSQL schema for objects that declare none.",
|
|
@@ -45,7 +50,8 @@
|
|
|
45
50
|
"provider": {
|
|
46
51
|
"type": "string",
|
|
47
52
|
"enum": [
|
|
48
|
-
"supabase"
|
|
53
|
+
"supabase",
|
|
54
|
+
"postgres"
|
|
49
55
|
],
|
|
50
56
|
"description": "Database provider preset that defines the management boundary."
|
|
51
57
|
}
|
|
@@ -81,6 +87,10 @@
|
|
|
81
87
|
"type": "string",
|
|
82
88
|
"minLength": 1
|
|
83
89
|
},
|
|
90
|
+
"selfSignUp": {
|
|
91
|
+
"description": "Whether users may register themselves; enables the self sign-up warning and host start check.",
|
|
92
|
+
"type": "boolean"
|
|
93
|
+
},
|
|
84
94
|
"scopeKinds": {
|
|
85
95
|
"default": [],
|
|
86
96
|
"description": "Scope kinds of the application; leave empty for a single-tenant application.",
|
|
@@ -297,7 +297,9 @@
|
|
|
297
297
|
"delete",
|
|
298
298
|
"post",
|
|
299
299
|
"unpost",
|
|
300
|
-
"write"
|
|
300
|
+
"write",
|
|
301
|
+
"publish",
|
|
302
|
+
"unpublish"
|
|
301
303
|
],
|
|
302
304
|
"description": "Standard action word; selects every object of the role level that has it."
|
|
303
305
|
}
|
|
@@ -420,7 +422,9 @@
|
|
|
420
422
|
"delete",
|
|
421
423
|
"post",
|
|
422
424
|
"unpost",
|
|
423
|
-
"write"
|
|
425
|
+
"write",
|
|
426
|
+
"publish",
|
|
427
|
+
"unpublish"
|
|
424
428
|
],
|
|
425
429
|
"description": "Standard action word; selects every object of the role level that has it."
|
|
426
430
|
}
|