simetra 0.0.0-stage → 0.1.0
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/LICENSE +190 -0
- package/README.md +39 -2
- package/dist/compiler/index.d.ts +1896 -0
- package/dist/compiler/index.js +24104 -0
- package/dist/model/index.d.ts +4462 -0
- package/dist/model/index.js +3951 -0
- package/dist/schema/index.d.ts +2872 -0
- package/dist/schema/index.js +10706 -0
- package/package.json +75 -3
- package/schemas/accumulation-registers.schema.json +996 -0
- package/schemas/catalogs.schema.json +1274 -0
- package/schemas/constants.schema.json +327 -0
- package/schemas/custom-tables.schema.json +809 -0
- package/schemas/documents.schema.json +1285 -0
- package/schemas/enumerations.schema.json +121 -0
- package/schemas/event-subscriptions.schema.json +165 -0
- package/schemas/information-registers.schema.json +1202 -0
- package/schemas/pg-enums.schema.json +81 -0
- package/schemas/project.schema.json +693 -0
- package/schemas/rights-sets.schema.json +248 -0
- package/schemas/roles.schema.json +498 -0
- package/schemas/sql-debt.schema.json +23 -0
|
@@ -0,0 +1,693 @@
|
|
|
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
|
+
"name": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Application name."
|
|
12
|
+
},
|
|
13
|
+
"title": {
|
|
14
|
+
"description": "Human-readable title of the application.",
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"uk": {
|
|
18
|
+
"description": "Ukrainian text.",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"en": {
|
|
22
|
+
"description": "English text.",
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
},
|
|
28
|
+
"defaultLocale": {
|
|
29
|
+
"default": "uk",
|
|
30
|
+
"description": "Locale used when none is requested.",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": [
|
|
33
|
+
"uk",
|
|
34
|
+
"en"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"defaultSchema": {
|
|
38
|
+
"default": "public",
|
|
39
|
+
"description": "PostgreSQL schema for objects that declare none.",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"database": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"provider": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": [
|
|
48
|
+
"supabase"
|
|
49
|
+
],
|
|
50
|
+
"description": "Database provider preset that defines the management boundary."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"provider"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"description": "Database of the application."
|
|
58
|
+
},
|
|
59
|
+
"naming": {
|
|
60
|
+
"default": {
|
|
61
|
+
"attributeCase": "camelCase"
|
|
62
|
+
},
|
|
63
|
+
"description": "Naming rules of the application.",
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"attributeCase": {
|
|
67
|
+
"default": "camelCase",
|
|
68
|
+
"description": "Casing style of logical attribute names.",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"enum": [
|
|
71
|
+
"camelCase",
|
|
72
|
+
"snake_case"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
},
|
|
78
|
+
"timezone": {
|
|
79
|
+
"default": "UTC",
|
|
80
|
+
"description": "IANA time zone in which the platform determines day, month, quarter and year.",
|
|
81
|
+
"type": "string",
|
|
82
|
+
"minLength": 1
|
|
83
|
+
},
|
|
84
|
+
"scopeKinds": {
|
|
85
|
+
"default": [],
|
|
86
|
+
"description": "Scope kinds of the application; leave empty for a single-tenant application.",
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"id": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"format": "uuid",
|
|
94
|
+
"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})$",
|
|
95
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
96
|
+
},
|
|
97
|
+
"name": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
100
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
101
|
+
},
|
|
102
|
+
"physicalName": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"minLength": 1,
|
|
105
|
+
"description": "Physical database name. Assigned once at creation and never changed, so a rename emits no DDL. At most 63 bytes in UTF-8."
|
|
106
|
+
},
|
|
107
|
+
"title": {
|
|
108
|
+
"description": "Human-readable title of the scope kind.",
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"uk": {
|
|
112
|
+
"description": "Ukrainian text.",
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"en": {
|
|
116
|
+
"description": "English text.",
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"additionalProperties": false
|
|
121
|
+
},
|
|
122
|
+
"root": {
|
|
123
|
+
"anyOf": [
|
|
124
|
+
{
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"object": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"properties": {
|
|
130
|
+
"kind": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"enum": [
|
|
133
|
+
"Catalog",
|
|
134
|
+
"Document",
|
|
135
|
+
"Enumeration",
|
|
136
|
+
"InformationRegister",
|
|
137
|
+
"AccumulationRegister",
|
|
138
|
+
"Constant",
|
|
139
|
+
"CustomTable",
|
|
140
|
+
"PgEnum",
|
|
141
|
+
"EventSubscription",
|
|
142
|
+
"RightsSet",
|
|
143
|
+
"Role"
|
|
144
|
+
],
|
|
145
|
+
"description": "Kind of the referenced metadata object."
|
|
146
|
+
},
|
|
147
|
+
"name": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
150
|
+
"description": "Logical name of the referenced object."
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": [
|
|
154
|
+
"kind",
|
|
155
|
+
"name"
|
|
156
|
+
],
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"description": "Metadata object that is the scope root."
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"required": [
|
|
162
|
+
"object"
|
|
163
|
+
],
|
|
164
|
+
"additionalProperties": false
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "object",
|
|
168
|
+
"properties": {
|
|
169
|
+
"external": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"properties": {
|
|
172
|
+
"schema": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"minLength": 1,
|
|
175
|
+
"description": "PostgreSQL schema of the external root table."
|
|
176
|
+
},
|
|
177
|
+
"table": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"minLength": 1,
|
|
180
|
+
"description": "Physical name of the external root table."
|
|
181
|
+
},
|
|
182
|
+
"column": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"minLength": 1,
|
|
185
|
+
"description": "Physical key column of the external root table."
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"required": [
|
|
189
|
+
"schema",
|
|
190
|
+
"table",
|
|
191
|
+
"column"
|
|
192
|
+
],
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"description": "Root table outside the metadata."
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"external"
|
|
199
|
+
],
|
|
200
|
+
"additionalProperties": false
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"description": "Root of the scope: a metadata object or an external table."
|
|
204
|
+
},
|
|
205
|
+
"setFunction": {
|
|
206
|
+
"anyOf": [
|
|
207
|
+
{
|
|
208
|
+
"type": "object",
|
|
209
|
+
"properties": {
|
|
210
|
+
"schema": {
|
|
211
|
+
"description": "PostgreSQL schema of the function; defaultSchema when absent.",
|
|
212
|
+
"type": "string",
|
|
213
|
+
"minLength": 1
|
|
214
|
+
},
|
|
215
|
+
"name": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"minLength": 1,
|
|
218
|
+
"description": "Physical name of the function."
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"required": [
|
|
222
|
+
"name"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"description": "SQL function defined in a .sql file."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "string",
|
|
229
|
+
"const": "membership",
|
|
230
|
+
"description": "Generated from the membership catalog of this scope kind: the scope values where the current user is a member."
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"description": "SQL function that returns the set of scope values visible to the current user."
|
|
234
|
+
},
|
|
235
|
+
"onRootDelete": {
|
|
236
|
+
"default": "restrict",
|
|
237
|
+
"description": "What happens to scoped rows when the scope root is deleted.",
|
|
238
|
+
"type": "string",
|
|
239
|
+
"enum": [
|
|
240
|
+
"restrict",
|
|
241
|
+
"cascade"
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": [
|
|
246
|
+
"name",
|
|
247
|
+
"root",
|
|
248
|
+
"setFunction"
|
|
249
|
+
],
|
|
250
|
+
"additionalProperties": false,
|
|
251
|
+
"description": "Scope kind of the application (tenant dimension)."
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"accessDimensions": {
|
|
255
|
+
"default": [],
|
|
256
|
+
"description": "Access dimensions of the application: value catalogs that grants may restrict rows by.",
|
|
257
|
+
"type": "array",
|
|
258
|
+
"items": {
|
|
259
|
+
"type": "object",
|
|
260
|
+
"properties": {
|
|
261
|
+
"id": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"format": "uuid",
|
|
264
|
+
"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})$",
|
|
265
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
266
|
+
},
|
|
267
|
+
"name": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
270
|
+
"description": "Logical name of the access dimension, unique among all named elements of the project."
|
|
271
|
+
},
|
|
272
|
+
"target": {
|
|
273
|
+
"type": "object",
|
|
274
|
+
"properties": {
|
|
275
|
+
"kind": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"enum": [
|
|
278
|
+
"Catalog",
|
|
279
|
+
"Document",
|
|
280
|
+
"Enumeration",
|
|
281
|
+
"InformationRegister",
|
|
282
|
+
"AccumulationRegister",
|
|
283
|
+
"Constant",
|
|
284
|
+
"CustomTable",
|
|
285
|
+
"PgEnum",
|
|
286
|
+
"EventSubscription",
|
|
287
|
+
"RightsSet",
|
|
288
|
+
"Role"
|
|
289
|
+
],
|
|
290
|
+
"description": "Kind of the referenced metadata object."
|
|
291
|
+
},
|
|
292
|
+
"name": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
295
|
+
"description": "Logical name of the referenced object."
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"required": [
|
|
299
|
+
"kind",
|
|
300
|
+
"name"
|
|
301
|
+
],
|
|
302
|
+
"additionalProperties": false,
|
|
303
|
+
"description": "Catalog of the dimension values; scoped when the project has scope kinds."
|
|
304
|
+
},
|
|
305
|
+
"values": {
|
|
306
|
+
"anyOf": [
|
|
307
|
+
{
|
|
308
|
+
"type": "object",
|
|
309
|
+
"properties": {
|
|
310
|
+
"relation": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"properties": {
|
|
313
|
+
"object": {
|
|
314
|
+
"type": "object",
|
|
315
|
+
"properties": {
|
|
316
|
+
"kind": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"enum": [
|
|
319
|
+
"Catalog",
|
|
320
|
+
"Document",
|
|
321
|
+
"Enumeration",
|
|
322
|
+
"InformationRegister",
|
|
323
|
+
"AccumulationRegister",
|
|
324
|
+
"Constant",
|
|
325
|
+
"CustomTable",
|
|
326
|
+
"PgEnum",
|
|
327
|
+
"EventSubscription",
|
|
328
|
+
"RightsSet",
|
|
329
|
+
"Role"
|
|
330
|
+
],
|
|
331
|
+
"description": "Kind of the referenced metadata object."
|
|
332
|
+
},
|
|
333
|
+
"name": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
336
|
+
"description": "Logical name of the referenced object."
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"required": [
|
|
340
|
+
"kind",
|
|
341
|
+
"name"
|
|
342
|
+
],
|
|
343
|
+
"additionalProperties": false,
|
|
344
|
+
"description": "Object whose rows link a user or a member to a value of the dimension."
|
|
345
|
+
},
|
|
346
|
+
"subject": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
349
|
+
"description": "Reference of the relation object to the users catalog or to the membership catalog."
|
|
350
|
+
},
|
|
351
|
+
"value": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
354
|
+
"description": "Reference of the relation object to the target catalog."
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"required": [
|
|
358
|
+
"object",
|
|
359
|
+
"subject",
|
|
360
|
+
"value"
|
|
361
|
+
],
|
|
362
|
+
"additionalProperties": false,
|
|
363
|
+
"description": "Values of a user read from a relation."
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"required": [
|
|
367
|
+
"relation"
|
|
368
|
+
],
|
|
369
|
+
"additionalProperties": false
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"type": "object",
|
|
373
|
+
"properties": {
|
|
374
|
+
"function": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"properties": {
|
|
377
|
+
"schema": {
|
|
378
|
+
"description": "PostgreSQL schema of the function; the project default schema when omitted.",
|
|
379
|
+
"type": "string",
|
|
380
|
+
"minLength": 1
|
|
381
|
+
},
|
|
382
|
+
"name": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"minLength": 1,
|
|
385
|
+
"description": "Name of a verbatim SQL function that returns the value ids of the current user."
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"required": [
|
|
389
|
+
"name"
|
|
390
|
+
],
|
|
391
|
+
"additionalProperties": false,
|
|
392
|
+
"description": "Values of a user returned by a function."
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"required": [
|
|
396
|
+
"function"
|
|
397
|
+
],
|
|
398
|
+
"additionalProperties": false
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"description": "Where the values of the current user come from."
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"required": [
|
|
405
|
+
"name",
|
|
406
|
+
"target",
|
|
407
|
+
"values"
|
|
408
|
+
],
|
|
409
|
+
"additionalProperties": false
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"membershipSources": {
|
|
413
|
+
"default": [],
|
|
414
|
+
"description": "Adopted tables that hold the membership of a scope kind instead of a membership catalog.",
|
|
415
|
+
"type": "array",
|
|
416
|
+
"items": {
|
|
417
|
+
"type": "object",
|
|
418
|
+
"properties": {
|
|
419
|
+
"id": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"format": "uuid",
|
|
422
|
+
"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})$",
|
|
423
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
424
|
+
},
|
|
425
|
+
"name": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
428
|
+
"description": "Logical name of the membership source, unique among all named elements of the project."
|
|
429
|
+
},
|
|
430
|
+
"scopeKind": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
433
|
+
"description": "Name of the project scope kind whose membership the table holds."
|
|
434
|
+
},
|
|
435
|
+
"table": {
|
|
436
|
+
"type": "object",
|
|
437
|
+
"properties": {
|
|
438
|
+
"kind": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"enum": [
|
|
441
|
+
"Catalog",
|
|
442
|
+
"Document",
|
|
443
|
+
"Enumeration",
|
|
444
|
+
"InformationRegister",
|
|
445
|
+
"AccumulationRegister",
|
|
446
|
+
"Constant",
|
|
447
|
+
"CustomTable",
|
|
448
|
+
"PgEnum",
|
|
449
|
+
"EventSubscription",
|
|
450
|
+
"RightsSet",
|
|
451
|
+
"Role"
|
|
452
|
+
],
|
|
453
|
+
"description": "Kind of the referenced metadata object."
|
|
454
|
+
},
|
|
455
|
+
"name": {
|
|
456
|
+
"type": "string",
|
|
457
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
458
|
+
"description": "Logical name of the referenced object."
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"required": [
|
|
462
|
+
"kind",
|
|
463
|
+
"name"
|
|
464
|
+
],
|
|
465
|
+
"additionalProperties": false,
|
|
466
|
+
"description": "Adopted table (CustomTable) with the membership rows."
|
|
467
|
+
},
|
|
468
|
+
"columns": {
|
|
469
|
+
"type": "object",
|
|
470
|
+
"properties": {
|
|
471
|
+
"scope": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
474
|
+
"description": "Column with the scope value."
|
|
475
|
+
},
|
|
476
|
+
"user": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
479
|
+
"description": "Column with the user id."
|
|
480
|
+
},
|
|
481
|
+
"active": {
|
|
482
|
+
"description": "Boolean column; only active rows count as membership.",
|
|
483
|
+
"type": "string",
|
|
484
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"required": [
|
|
488
|
+
"scope",
|
|
489
|
+
"user"
|
|
490
|
+
],
|
|
491
|
+
"additionalProperties": false,
|
|
492
|
+
"description": "Logical names of the table columns."
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"required": [
|
|
496
|
+
"name",
|
|
497
|
+
"scopeKind",
|
|
498
|
+
"table",
|
|
499
|
+
"columns"
|
|
500
|
+
],
|
|
501
|
+
"additionalProperties": false
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"assignmentSources": {
|
|
505
|
+
"default": [],
|
|
506
|
+
"description": "Adopted tables that hold role assignments of one level.",
|
|
507
|
+
"type": "array",
|
|
508
|
+
"items": {
|
|
509
|
+
"type": "object",
|
|
510
|
+
"properties": {
|
|
511
|
+
"id": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"format": "uuid",
|
|
514
|
+
"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})$",
|
|
515
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
516
|
+
},
|
|
517
|
+
"name": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
520
|
+
"description": "Logical name of the assignment source, unique among all named elements of the project."
|
|
521
|
+
},
|
|
522
|
+
"assignedOn": {
|
|
523
|
+
"anyOf": [
|
|
524
|
+
{
|
|
525
|
+
"type": "string",
|
|
526
|
+
"const": "global"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"type": "object",
|
|
530
|
+
"properties": {
|
|
531
|
+
"scopeKind": {
|
|
532
|
+
"type": "string",
|
|
533
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
534
|
+
"description": "Name of the project scope kind of the level."
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"required": [
|
|
538
|
+
"scopeKind"
|
|
539
|
+
],
|
|
540
|
+
"additionalProperties": false
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"type": "object",
|
|
544
|
+
"properties": {
|
|
545
|
+
"container": {
|
|
546
|
+
"type": "object",
|
|
547
|
+
"properties": {
|
|
548
|
+
"kind": {
|
|
549
|
+
"type": "string",
|
|
550
|
+
"enum": [
|
|
551
|
+
"Catalog",
|
|
552
|
+
"Document",
|
|
553
|
+
"Enumeration",
|
|
554
|
+
"InformationRegister",
|
|
555
|
+
"AccumulationRegister",
|
|
556
|
+
"Constant",
|
|
557
|
+
"CustomTable",
|
|
558
|
+
"PgEnum",
|
|
559
|
+
"EventSubscription",
|
|
560
|
+
"RightsSet",
|
|
561
|
+
"Role"
|
|
562
|
+
],
|
|
563
|
+
"description": "Kind of the referenced metadata object."
|
|
564
|
+
},
|
|
565
|
+
"name": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
568
|
+
"description": "Logical name of the referenced object."
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"required": [
|
|
572
|
+
"kind",
|
|
573
|
+
"name"
|
|
574
|
+
],
|
|
575
|
+
"additionalProperties": false,
|
|
576
|
+
"description": "Rights container object of the level."
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"required": [
|
|
580
|
+
"container"
|
|
581
|
+
],
|
|
582
|
+
"additionalProperties": false
|
|
583
|
+
}
|
|
584
|
+
],
|
|
585
|
+
"description": "Level of the assignment: global, a scope kind or a rights container."
|
|
586
|
+
},
|
|
587
|
+
"table": {
|
|
588
|
+
"type": "object",
|
|
589
|
+
"properties": {
|
|
590
|
+
"kind": {
|
|
591
|
+
"type": "string",
|
|
592
|
+
"enum": [
|
|
593
|
+
"Catalog",
|
|
594
|
+
"Document",
|
|
595
|
+
"Enumeration",
|
|
596
|
+
"InformationRegister",
|
|
597
|
+
"AccumulationRegister",
|
|
598
|
+
"Constant",
|
|
599
|
+
"CustomTable",
|
|
600
|
+
"PgEnum",
|
|
601
|
+
"EventSubscription",
|
|
602
|
+
"RightsSet",
|
|
603
|
+
"Role"
|
|
604
|
+
],
|
|
605
|
+
"description": "Kind of the referenced metadata object."
|
|
606
|
+
},
|
|
607
|
+
"name": {
|
|
608
|
+
"type": "string",
|
|
609
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
610
|
+
"description": "Logical name of the referenced object."
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"required": [
|
|
614
|
+
"kind",
|
|
615
|
+
"name"
|
|
616
|
+
],
|
|
617
|
+
"additionalProperties": false,
|
|
618
|
+
"description": "Adopted table (CustomTable) with the assignment rows."
|
|
619
|
+
},
|
|
620
|
+
"columns": {
|
|
621
|
+
"type": "object",
|
|
622
|
+
"properties": {
|
|
623
|
+
"member": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
626
|
+
"description": "Column with the member (a user for the global level)."
|
|
627
|
+
},
|
|
628
|
+
"role": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
631
|
+
"description": "Column with the role key declared by a role in sourceKeys."
|
|
632
|
+
},
|
|
633
|
+
"container": {
|
|
634
|
+
"description": "Column with the container; required for the container level only.",
|
|
635
|
+
"type": "string",
|
|
636
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$"
|
|
637
|
+
},
|
|
638
|
+
"active": {
|
|
639
|
+
"description": "Boolean column; only active rows count as assignments.",
|
|
640
|
+
"type": "string",
|
|
641
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
"required": [
|
|
645
|
+
"member",
|
|
646
|
+
"role"
|
|
647
|
+
],
|
|
648
|
+
"additionalProperties": false,
|
|
649
|
+
"description": "Logical names of the table columns."
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
"required": [
|
|
653
|
+
"name",
|
|
654
|
+
"assignedOn",
|
|
655
|
+
"table",
|
|
656
|
+
"columns"
|
|
657
|
+
],
|
|
658
|
+
"additionalProperties": false
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"storageBuckets": {
|
|
662
|
+
"default": [],
|
|
663
|
+
"description": "Provider storage buckets whose access policies follow a scope kind.",
|
|
664
|
+
"type": "array",
|
|
665
|
+
"items": {
|
|
666
|
+
"type": "object",
|
|
667
|
+
"properties": {
|
|
668
|
+
"bucket": {
|
|
669
|
+
"type": "string",
|
|
670
|
+
"minLength": 1,
|
|
671
|
+
"description": "Name of the provider storage bucket."
|
|
672
|
+
},
|
|
673
|
+
"scopeKind": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
676
|
+
"description": "Name of the project scope kind that scopes access to the bucket."
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"required": [
|
|
680
|
+
"bucket",
|
|
681
|
+
"scopeKind"
|
|
682
|
+
],
|
|
683
|
+
"additionalProperties": false
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"required": [
|
|
688
|
+
"name",
|
|
689
|
+
"database"
|
|
690
|
+
],
|
|
691
|
+
"additionalProperties": false,
|
|
692
|
+
"$id": "project.schema.json"
|
|
693
|
+
}
|