@disclosureos/schema 2.0.0-beta.2 → 2.0.0-beta.4

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 (26) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/README.md +95 -10
  3. package/dist/experimental/v2/index.d.ts +4431 -81
  4. package/dist/experimental/v2/index.js +8010 -322
  5. package/dist/experimental/v2/index.js.map +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/package.json +34 -6
  10. package/schema/enriched-observation.schema.json +16 -16
  11. package/schema/experimental/archival-case-presentation-0.1.0.schema.json +742 -0
  12. package/schema/experimental/case-presentation-0.1.0.schema.json +431 -0
  13. package/schema/experimental/context-case-presentation-0.1.0.schema.json +697 -0
  14. package/schema/experimental/lidar-point-cloud-profile-0.1.0.schema.json +416 -0
  15. package/schema/experimental/material-case-presentation-0.1.0.schema.json +802 -0
  16. package/schema/experimental/passive-sonar-profile-0.1.0.schema.json +238 -0
  17. package/schema/experimental/product-source-selection-0.1.0.schema.json +673 -0
  18. package/schema/experimental/radar-profile-0.1.0.schema.json +1232 -0
  19. package/schema/experimental/satellite-raster-profile-0.1.0.schema.json +406 -0
  20. package/schema/experimental/secondary-radar-profile-0.1.0.schema.json +154 -0
  21. package/schema/experimental/sonar-profile-0.1.0.schema.json +197 -0
  22. package/schema/experimental/steered-radar-profile-0.1.0.schema.json +214 -0
  23. package/schema/experimental/testimony-case-presentation-0.1.0.schema.json +682 -0
  24. package/schema/experimental/vocabulary-bindings-0.1.0.schema.json +167 -0
  25. package/schema/experimental/vocabulary-catalog-0.1.0.schema.json +155 -0
  26. package/schema/experimental/vocabulary-term-reference-0.1.0.schema.json +61 -0
@@ -0,0 +1,431 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "kind": {
6
+ "type": "string",
7
+ "const": "case_presentation"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "string",
11
+ "const": "0.1.0"
12
+ },
13
+ "publicId": {
14
+ "$ref": "#/$defs/__schema0"
15
+ },
16
+ "caseRef": {
17
+ "type": "object",
18
+ "properties": {
19
+ "documentId": {
20
+ "$ref": "#/$defs/__schema0"
21
+ },
22
+ "schemaId": {
23
+ "type": "string",
24
+ "const": "urn:disclosureos:experimental:case-record:0.1.0"
25
+ },
26
+ "sha256": {
27
+ "$ref": "#/$defs/__schema1"
28
+ }
29
+ },
30
+ "required": [
31
+ "documentId",
32
+ "schemaId",
33
+ "sha256"
34
+ ],
35
+ "additionalProperties": false
36
+ },
37
+ "linksRef": {
38
+ "type": "object",
39
+ "properties": {
40
+ "documentId": {
41
+ "$ref": "#/$defs/__schema0"
42
+ },
43
+ "schemaId": {
44
+ "type": "string",
45
+ "const": "urn:disclosureos:experimental:case-links:0.1.0"
46
+ },
47
+ "sha256": {
48
+ "$ref": "#/$defs/__schema1"
49
+ }
50
+ },
51
+ "required": [
52
+ "documentId",
53
+ "schemaId",
54
+ "sha256"
55
+ ],
56
+ "additionalProperties": false
57
+ },
58
+ "title": {
59
+ "$ref": "#/$defs/__schema2"
60
+ },
61
+ "summary": {
62
+ "$ref": "#/$defs/__schema3"
63
+ },
64
+ "updatedAt": {
65
+ "type": "string",
66
+ "allOf": [
67
+ {
68
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
69
+ },
70
+ {
71
+ "pattern": "^(?!0000)"
72
+ },
73
+ {
74
+ "pattern": "T[0-9]{2}:[0-9]{2}:[0-9]{2}"
75
+ }
76
+ ]
77
+ },
78
+ "status": {
79
+ "type": "string",
80
+ "enum": [
81
+ "draft",
82
+ "published",
83
+ "archived",
84
+ "withdrawn"
85
+ ]
86
+ },
87
+ "citations": {
88
+ "type": "array",
89
+ "items": {
90
+ "type": "object",
91
+ "properties": {
92
+ "id": {
93
+ "$ref": "#/$defs/__schema0"
94
+ },
95
+ "label": {
96
+ "$ref": "#/$defs/__schema2"
97
+ },
98
+ "description": {
99
+ "$ref": "#/$defs/__schema3"
100
+ },
101
+ "target": {
102
+ "oneOf": [
103
+ {
104
+ "type": "object",
105
+ "properties": {
106
+ "kind": {
107
+ "type": "string",
108
+ "const": "case"
109
+ }
110
+ },
111
+ "required": [
112
+ "kind"
113
+ ],
114
+ "additionalProperties": false
115
+ },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "kind": {
120
+ "type": "string",
121
+ "const": "artifact"
122
+ },
123
+ "observationId": {
124
+ "$ref": "#/$defs/__schema0"
125
+ },
126
+ "ref": {
127
+ "$ref": "#/$defs/__schema4"
128
+ }
129
+ },
130
+ "required": [
131
+ "kind",
132
+ "observationId",
133
+ "ref"
134
+ ],
135
+ "additionalProperties": false
136
+ },
137
+ {
138
+ "type": "object",
139
+ "properties": {
140
+ "kind": {
141
+ "type": "string",
142
+ "const": "supplement"
143
+ },
144
+ "linkId": {
145
+ "$ref": "#/$defs/__schema0"
146
+ }
147
+ },
148
+ "required": [
149
+ "kind",
150
+ "linkId"
151
+ ],
152
+ "additionalProperties": false
153
+ }
154
+ ]
155
+ }
156
+ },
157
+ "required": [
158
+ "id",
159
+ "label",
160
+ "target"
161
+ ],
162
+ "additionalProperties": false
163
+ }
164
+ },
165
+ "blocks": {
166
+ "type": "array",
167
+ "items": {
168
+ "type": "object",
169
+ "properties": {
170
+ "id": {
171
+ "$ref": "#/$defs/__schema0"
172
+ },
173
+ "heading": {
174
+ "$ref": "#/$defs/__schema2"
175
+ },
176
+ "text": {
177
+ "$ref": "#/$defs/__schema3"
178
+ },
179
+ "citationIds": {
180
+ "$ref": "#/$defs/__schema5"
181
+ }
182
+ },
183
+ "required": [
184
+ "id",
185
+ "text",
186
+ "citationIds"
187
+ ],
188
+ "additionalProperties": false
189
+ }
190
+ },
191
+ "findings": {
192
+ "type": "array",
193
+ "items": {
194
+ "type": "object",
195
+ "properties": {
196
+ "id": {
197
+ "$ref": "#/$defs/__schema0"
198
+ },
199
+ "historyRef": {
200
+ "type": "object",
201
+ "properties": {
202
+ "documentId": {
203
+ "$ref": "#/$defs/__schema0"
204
+ },
205
+ "schemaId": {
206
+ "type": "string",
207
+ "const": "urn:disclosureos:experimental:case-claim-history:0.1.0"
208
+ },
209
+ "sha256": {
210
+ "$ref": "#/$defs/__schema1"
211
+ }
212
+ },
213
+ "required": [
214
+ "documentId",
215
+ "schemaId",
216
+ "sha256"
217
+ ],
218
+ "additionalProperties": false
219
+ },
220
+ "claimId": {
221
+ "$ref": "#/$defs/__schema0"
222
+ },
223
+ "title": {
224
+ "$ref": "#/$defs/__schema2"
225
+ },
226
+ "summary": {
227
+ "$ref": "#/$defs/__schema3"
228
+ },
229
+ "reviewerLabel": {
230
+ "$ref": "#/$defs/__schema2"
231
+ },
232
+ "citationIds": {
233
+ "$ref": "#/$defs/__schema5"
234
+ }
235
+ },
236
+ "required": [
237
+ "id",
238
+ "historyRef",
239
+ "claimId",
240
+ "title",
241
+ "summary",
242
+ "reviewerLabel",
243
+ "citationIds"
244
+ ],
245
+ "additionalProperties": false
246
+ }
247
+ },
248
+ "attachments": {
249
+ "type": "array",
250
+ "items": {
251
+ "type": "object",
252
+ "properties": {
253
+ "id": {
254
+ "$ref": "#/$defs/__schema0"
255
+ },
256
+ "kind": {
257
+ "type": "string",
258
+ "enum": [
259
+ "image",
260
+ "video",
261
+ "audio",
262
+ "document",
263
+ "data"
264
+ ]
265
+ },
266
+ "role": {
267
+ "type": "string",
268
+ "enum": [
269
+ "primary",
270
+ "supporting",
271
+ "thumbnail"
272
+ ]
273
+ },
274
+ "observationId": {
275
+ "$ref": "#/$defs/__schema0"
276
+ },
277
+ "ref": {
278
+ "$ref": "#/$defs/__schema4"
279
+ },
280
+ "sha256": {
281
+ "$ref": "#/$defs/__schema1"
282
+ },
283
+ "caption": {
284
+ "$ref": "#/$defs/__schema3"
285
+ },
286
+ "credit": {
287
+ "$ref": "#/$defs/__schema2"
288
+ },
289
+ "rights": {
290
+ "$ref": "#/$defs/__schema3"
291
+ },
292
+ "alt": {
293
+ "$ref": "#/$defs/__schema2"
294
+ },
295
+ "dimensions": {
296
+ "type": "object",
297
+ "properties": {
298
+ "width": {
299
+ "type": "integer",
300
+ "exclusiveMinimum": 0,
301
+ "maximum": 9007199254740991
302
+ },
303
+ "height": {
304
+ "type": "integer",
305
+ "exclusiveMinimum": 0,
306
+ "maximum": 9007199254740991
307
+ }
308
+ },
309
+ "required": [
310
+ "width",
311
+ "height"
312
+ ],
313
+ "additionalProperties": false
314
+ },
315
+ "durationSeconds": {
316
+ "type": "number",
317
+ "minimum": 0
318
+ },
319
+ "citationIds": {
320
+ "$ref": "#/$defs/__schema5"
321
+ },
322
+ "mimeType": {
323
+ "$ref": "#/$defs/__schema2"
324
+ },
325
+ "fileSizeBytes": {
326
+ "type": "integer",
327
+ "minimum": 0,
328
+ "maximum": 9007199254740991
329
+ },
330
+ "thumbnailAttachmentId": {
331
+ "$ref": "#/$defs/__schema0"
332
+ }
333
+ },
334
+ "required": [
335
+ "id",
336
+ "kind",
337
+ "role",
338
+ "observationId",
339
+ "ref",
340
+ "sha256",
341
+ "caption",
342
+ "credit",
343
+ "rights",
344
+ "citationIds"
345
+ ],
346
+ "additionalProperties": false
347
+ }
348
+ },
349
+ "featuredAttachmentId": {
350
+ "$ref": "#/$defs/__schema0"
351
+ },
352
+ "notices": {
353
+ "type": "array",
354
+ "items": {
355
+ "type": "object",
356
+ "properties": {
357
+ "id": {
358
+ "$ref": "#/$defs/__schema0"
359
+ },
360
+ "kind": {
361
+ "type": "string",
362
+ "enum": [
363
+ "scope",
364
+ "correction",
365
+ "archive",
366
+ "withdrawal",
367
+ "rights"
368
+ ]
369
+ },
370
+ "text": {
371
+ "$ref": "#/$defs/__schema3"
372
+ }
373
+ },
374
+ "required": [
375
+ "id",
376
+ "kind",
377
+ "text"
378
+ ],
379
+ "additionalProperties": false
380
+ }
381
+ }
382
+ },
383
+ "required": [
384
+ "kind",
385
+ "schemaVersion",
386
+ "publicId",
387
+ "caseRef",
388
+ "title",
389
+ "summary",
390
+ "updatedAt",
391
+ "status",
392
+ "citations",
393
+ "blocks",
394
+ "findings",
395
+ "attachments",
396
+ "notices"
397
+ ],
398
+ "additionalProperties": false,
399
+ "$defs": {
400
+ "__schema0": {
401
+ "type": "string",
402
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
403
+ },
404
+ "__schema1": {
405
+ "type": "string",
406
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])"
407
+ },
408
+ "__schema2": {
409
+ "maxLength": 500,
410
+ "$ref": "#/$defs/__schema3"
411
+ },
412
+ "__schema3": {
413
+ "type": "string",
414
+ "minLength": 1,
415
+ "maxLength": 20000,
416
+ "pattern": "\\S"
417
+ },
418
+ "__schema4": {
419
+ "type": "string",
420
+ "pattern": "^(source|product):[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
421
+ },
422
+ "__schema5": {
423
+ "minItems": 1,
424
+ "type": "array",
425
+ "items": {
426
+ "$ref": "#/$defs/__schema0"
427
+ }
428
+ }
429
+ },
430
+ "$id": "urn:disclosureos:experimental:case-presentation:0.1.0"
431
+ }