@disclosureos/schema 2.0.0-beta.3 → 2.0.0-beta.5

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 (30) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +97 -7
  3. package/dist/experimental/v2/index.d.ts +4896 -81
  4. package/dist/experimental/v2/index.js +8655 -366
  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 +38 -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/claim-review-evaluation-0.1.0.schema.json +52 -0
  14. package/schema/experimental/claim-review-receipt-0.1.0.schema.json +99 -0
  15. package/schema/experimental/context-case-presentation-0.1.0.schema.json +697 -0
  16. package/schema/experimental/lidar-point-cloud-profile-0.1.0.schema.json +416 -0
  17. package/schema/experimental/material-case-presentation-0.1.0.schema.json +802 -0
  18. package/schema/experimental/mcap-source-mapping-0.1.0.schema.json +303 -0
  19. package/schema/experimental/passive-sonar-profile-0.1.0.schema.json +238 -0
  20. package/schema/experimental/product-source-selection-0.1.0.schema.json +673 -0
  21. package/schema/experimental/radar-profile-0.1.0.schema.json +1232 -0
  22. package/schema/experimental/satellite-raster-profile-0.1.0.schema.json +406 -0
  23. package/schema/experimental/secondary-radar-profile-0.1.0.schema.json +154 -0
  24. package/schema/experimental/sonar-profile-0.1.0.schema.json +197 -0
  25. package/schema/experimental/steered-radar-profile-0.1.0.schema.json +214 -0
  26. package/schema/experimental/testimony-case-presentation-0.1.0.schema.json +682 -0
  27. package/schema/experimental/video-frame-source-mapping-0.1.0.schema.json +165 -0
  28. package/schema/experimental/vocabulary-bindings-0.1.0.schema.json +167 -0
  29. package/schema/experimental/vocabulary-catalog-0.1.0.schema.json +155 -0
  30. package/schema/experimental/vocabulary-term-reference-0.1.0.schema.json +61 -0
@@ -0,0 +1,303 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "kind": {
6
+ "type": "string",
7
+ "const": "mcap_source_mapping"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "string",
11
+ "const": "0.1.0"
12
+ },
13
+ "id": {
14
+ "type": "string",
15
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
16
+ },
17
+ "observationId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
20
+ },
21
+ "recordings": {
22
+ "minItems": 1,
23
+ "type": "array",
24
+ "items": {
25
+ "type": "object",
26
+ "properties": {
27
+ "id": {
28
+ "type": "string",
29
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
30
+ },
31
+ "productRef": {
32
+ "type": "string",
33
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
34
+ },
35
+ "digest": {
36
+ "type": "object",
37
+ "properties": {
38
+ "algorithm": {
39
+ "type": "string",
40
+ "const": "sha256"
41
+ },
42
+ "value": {
43
+ "type": "string",
44
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])"
45
+ }
46
+ },
47
+ "required": [
48
+ "algorithm",
49
+ "value"
50
+ ],
51
+ "additionalProperties": false
52
+ },
53
+ "byteLength": {
54
+ "type": "string",
55
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|1844674407370955[0-0][0-9]{3}|18446744073709551[0-5][0-9]{2}|184467440737095516[0-0][0-9]{1}|1844674407370955161[0-4][0-9]{0}|18446744073709551615)(?![\\s\\S])"
56
+ },
57
+ "mediaType": {
58
+ "type": "string",
59
+ "const": "application/mcap"
60
+ }
61
+ },
62
+ "required": [
63
+ "id",
64
+ "productRef",
65
+ "digest",
66
+ "byteLength",
67
+ "mediaType"
68
+ ],
69
+ "additionalProperties": false
70
+ }
71
+ },
72
+ "channels": {
73
+ "minItems": 1,
74
+ "type": "array",
75
+ "items": {
76
+ "type": "object",
77
+ "properties": {
78
+ "id": {
79
+ "type": "string",
80
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
81
+ },
82
+ "recordingRef": {
83
+ "type": "string",
84
+ "pattern": "^recording:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
85
+ },
86
+ "channelId": {
87
+ "type": "integer",
88
+ "minimum": 0,
89
+ "maximum": 65535
90
+ },
91
+ "topic": {
92
+ "type": "string"
93
+ },
94
+ "messageEncoding": {
95
+ "type": "string",
96
+ "minLength": 1,
97
+ "pattern": "\\S"
98
+ },
99
+ "schema": {
100
+ "anyOf": [
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "id": {
105
+ "type": "number",
106
+ "const": 0
107
+ }
108
+ },
109
+ "required": [
110
+ "id"
111
+ ],
112
+ "additionalProperties": false
113
+ },
114
+ {
115
+ "type": "object",
116
+ "properties": {
117
+ "id": {
118
+ "type": "integer",
119
+ "minimum": 1,
120
+ "maximum": 65535
121
+ },
122
+ "name": {
123
+ "type": "string"
124
+ },
125
+ "encoding": {
126
+ "type": "string"
127
+ },
128
+ "digest": {
129
+ "type": "object",
130
+ "properties": {
131
+ "algorithm": {
132
+ "type": "string",
133
+ "const": "sha256"
134
+ },
135
+ "value": {
136
+ "type": "string",
137
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])"
138
+ }
139
+ },
140
+ "required": [
141
+ "algorithm",
142
+ "value"
143
+ ],
144
+ "additionalProperties": false
145
+ }
146
+ },
147
+ "required": [
148
+ "id",
149
+ "name",
150
+ "encoding",
151
+ "digest"
152
+ ],
153
+ "additionalProperties": false
154
+ }
155
+ ]
156
+ },
157
+ "decoder": {
158
+ "type": "object",
159
+ "properties": {
160
+ "methodRef": {
161
+ "type": "string",
162
+ "pattern": "^method:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
163
+ },
164
+ "methodVersion": {
165
+ "type": "string",
166
+ "minLength": 1,
167
+ "pattern": "\\S"
168
+ }
169
+ },
170
+ "required": [
171
+ "methodRef",
172
+ "methodVersion"
173
+ ],
174
+ "additionalProperties": false
175
+ }
176
+ },
177
+ "required": [
178
+ "id",
179
+ "recordingRef",
180
+ "channelId",
181
+ "topic",
182
+ "messageEncoding",
183
+ "schema",
184
+ "decoder"
185
+ ],
186
+ "additionalProperties": false
187
+ }
188
+ },
189
+ "selections": {
190
+ "type": "array",
191
+ "items": {
192
+ "type": "object",
193
+ "properties": {
194
+ "id": {
195
+ "type": "string",
196
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
197
+ },
198
+ "measurementRef": {
199
+ "type": "string",
200
+ "pattern": "^measurement:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
201
+ },
202
+ "channelRef": {
203
+ "type": "string",
204
+ "pattern": "^channel:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
205
+ },
206
+ "message": {
207
+ "type": "object",
208
+ "properties": {
209
+ "location": {
210
+ "oneOf": [
211
+ {
212
+ "type": "object",
213
+ "properties": {
214
+ "kind": {
215
+ "type": "string",
216
+ "const": "file"
217
+ },
218
+ "offset": {
219
+ "type": "string",
220
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|1844674407370955[0-0][0-9]{3}|18446744073709551[0-5][0-9]{2}|184467440737095516[0-0][0-9]{1}|1844674407370955161[0-4][0-9]{0}|18446744073709551615)(?![\\s\\S])"
221
+ }
222
+ },
223
+ "required": [
224
+ "kind",
225
+ "offset"
226
+ ],
227
+ "additionalProperties": false
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "kind": {
233
+ "type": "string",
234
+ "const": "chunk"
235
+ },
236
+ "chunkOffset": {
237
+ "type": "string",
238
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|1844674407370955[0-0][0-9]{3}|18446744073709551[0-5][0-9]{2}|184467440737095516[0-0][0-9]{1}|1844674407370955161[0-4][0-9]{0}|18446744073709551615)(?![\\s\\S])"
239
+ },
240
+ "recordOffset": {
241
+ "type": "string",
242
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|1844674407370955[0-0][0-9]{3}|18446744073709551[0-5][0-9]{2}|184467440737095516[0-0][0-9]{1}|1844674407370955161[0-4][0-9]{0}|18446744073709551615)(?![\\s\\S])"
243
+ }
244
+ },
245
+ "required": [
246
+ "kind",
247
+ "chunkOffset",
248
+ "recordOffset"
249
+ ],
250
+ "additionalProperties": false
251
+ }
252
+ ]
253
+ },
254
+ "sequence": {
255
+ "type": "integer",
256
+ "minimum": 0,
257
+ "maximum": 4294967295
258
+ },
259
+ "logTimeNs": {
260
+ "type": "string",
261
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|1844674407370955[0-0][0-9]{3}|18446744073709551[0-5][0-9]{2}|184467440737095516[0-0][0-9]{1}|1844674407370955161[0-4][0-9]{0}|18446744073709551615)(?![\\s\\S])"
262
+ },
263
+ "publishTimeNs": {
264
+ "type": "string",
265
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|1844674407370955[0-0][0-9]{3}|18446744073709551[0-5][0-9]{2}|184467440737095516[0-0][0-9]{1}|1844674407370955161[0-4][0-9]{0}|18446744073709551615)(?![\\s\\S])"
266
+ }
267
+ },
268
+ "required": [
269
+ "location",
270
+ "sequence",
271
+ "logTimeNs",
272
+ "publishTimeNs"
273
+ ],
274
+ "additionalProperties": false
275
+ },
276
+ "payloadPointer": {
277
+ "type": "string",
278
+ "pattern": "^(?:\\/(?:[^~]|~[01])*)?(?![\\s\\S])"
279
+ }
280
+ },
281
+ "required": [
282
+ "id",
283
+ "measurementRef",
284
+ "channelRef",
285
+ "message",
286
+ "payloadPointer"
287
+ ],
288
+ "additionalProperties": false
289
+ }
290
+ }
291
+ },
292
+ "required": [
293
+ "kind",
294
+ "schemaVersion",
295
+ "id",
296
+ "observationId",
297
+ "recordings",
298
+ "channels",
299
+ "selections"
300
+ ],
301
+ "additionalProperties": false,
302
+ "$id": "urn:disclosureos:experimental:mcap-source-mapping:0.1.0"
303
+ }
@@ -0,0 +1,238 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "kind": {
6
+ "type": "string",
7
+ "const": "passive_sonar_profile"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "string",
11
+ "const": "0.1.0"
12
+ },
13
+ "id": {
14
+ "type": "string",
15
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
16
+ },
17
+ "observationId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
20
+ },
21
+ "contextId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
24
+ },
25
+ "sourceSelectionId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
28
+ },
29
+ "acquisitionRef": {
30
+ "type": "string",
31
+ "pattern": "^acquisition:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
32
+ },
33
+ "acquisitionProductRef": {
34
+ "type": "string",
35
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
36
+ },
37
+ "sampleMaskAcquisitionProductRef": {
38
+ "type": "string",
39
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
40
+ },
41
+ "channelId": {
42
+ "type": "string",
43
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
44
+ },
45
+ "processingRef": {
46
+ "type": "string",
47
+ "pattern": "^process:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
48
+ },
49
+ "timeOrigin": {
50
+ "type": "string",
51
+ "format": "date-time",
52
+ "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)))$"
53
+ },
54
+ "mode": {
55
+ "type": "string",
56
+ "const": "single_hydrophone_pressure"
57
+ },
58
+ "dataOrigin": {
59
+ "type": "string",
60
+ "enum": [
61
+ "synthetic",
62
+ "instrument"
63
+ ]
64
+ },
65
+ "sampling": {
66
+ "type": "object",
67
+ "properties": {
68
+ "samples": {
69
+ "type": "integer",
70
+ "minimum": 1,
71
+ "maximum": 16777216
72
+ },
73
+ "sampleRateHz": {
74
+ "type": "integer",
75
+ "exclusiveMinimum": 0,
76
+ "maximum": 1000000000
77
+ }
78
+ },
79
+ "required": [
80
+ "samples",
81
+ "sampleRateHz"
82
+ ],
83
+ "additionalProperties": false
84
+ },
85
+ "transform": {
86
+ "type": "object",
87
+ "properties": {
88
+ "kind": {
89
+ "type": "string",
90
+ "const": "one_sided_power_spectral_density"
91
+ },
92
+ "windowSamples": {
93
+ "type": "integer",
94
+ "minimum": 4,
95
+ "maximum": 65536
96
+ },
97
+ "hopSamples": {
98
+ "type": "integer",
99
+ "exclusiveMinimum": 0,
100
+ "maximum": 65536
101
+ },
102
+ "window": {
103
+ "type": "string",
104
+ "const": "periodic_hann"
105
+ },
106
+ "detrend": {
107
+ "type": "string",
108
+ "const": "remove_arithmetic_mean_before_window"
109
+ },
110
+ "padding": {
111
+ "type": "string",
112
+ "const": "none_full_windows_only"
113
+ },
114
+ "scaling": {
115
+ "type": "string",
116
+ "const": "sum_squared_window_times_sample_rate"
117
+ },
118
+ "oneSided": {
119
+ "type": "string",
120
+ "const": "double_interior_bins_only"
121
+ },
122
+ "missingWindow": {
123
+ "type": "string",
124
+ "const": "unavailable_if_any_input_missing"
125
+ }
126
+ },
127
+ "required": [
128
+ "kind",
129
+ "windowSamples",
130
+ "hopSamples",
131
+ "window",
132
+ "detrend",
133
+ "padding",
134
+ "scaling",
135
+ "oneSided",
136
+ "missingWindow"
137
+ ],
138
+ "additionalProperties": false
139
+ },
140
+ "display": {
141
+ "type": "object",
142
+ "properties": {
143
+ "densityReferencePa2PerHz": {
144
+ "type": "number",
145
+ "const": 1e-12
146
+ },
147
+ "logarithm": {
148
+ "type": "string",
149
+ "const": "10_log10_density_over_reference"
150
+ },
151
+ "zeroDensity": {
152
+ "type": "string",
153
+ "const": "negative_infinity_no_floor"
154
+ }
155
+ },
156
+ "required": [
157
+ "densityReferencePa2PerHz",
158
+ "logarithm",
159
+ "zeroDensity"
160
+ ],
161
+ "additionalProperties": false
162
+ },
163
+ "availability": {
164
+ "type": "object",
165
+ "properties": {
166
+ "unavailable": {
167
+ "type": "number",
168
+ "const": 0
169
+ },
170
+ "available": {
171
+ "type": "number",
172
+ "const": 1
173
+ },
174
+ "missingValue": {
175
+ "type": "string",
176
+ "const": "zero_storage_placeholder"
177
+ }
178
+ },
179
+ "required": [
180
+ "unavailable",
181
+ "available",
182
+ "missingValue"
183
+ ],
184
+ "additionalProperties": false
185
+ },
186
+ "products": {
187
+ "type": "object",
188
+ "properties": {
189
+ "pressure": {
190
+ "type": "string",
191
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
192
+ },
193
+ "sampleMask": {
194
+ "type": "string",
195
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
196
+ },
197
+ "powerSpectralDensity": {
198
+ "type": "string",
199
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
200
+ },
201
+ "frameMask": {
202
+ "type": "string",
203
+ "pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
204
+ }
205
+ },
206
+ "required": [
207
+ "pressure",
208
+ "sampleMask",
209
+ "powerSpectralDensity",
210
+ "frameMask"
211
+ ],
212
+ "additionalProperties": false
213
+ }
214
+ },
215
+ "required": [
216
+ "kind",
217
+ "schemaVersion",
218
+ "id",
219
+ "observationId",
220
+ "contextId",
221
+ "sourceSelectionId",
222
+ "acquisitionRef",
223
+ "acquisitionProductRef",
224
+ "sampleMaskAcquisitionProductRef",
225
+ "channelId",
226
+ "processingRef",
227
+ "timeOrigin",
228
+ "mode",
229
+ "dataOrigin",
230
+ "sampling",
231
+ "transform",
232
+ "display",
233
+ "availability",
234
+ "products"
235
+ ],
236
+ "additionalProperties": false,
237
+ "$id": "urn:disclosureos:experimental:passive-sonar-profile:0.1.0"
238
+ }