@disclosureos/schema 2.0.0-beta.4 → 2.0.0-beta.6
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/CHANGELOG.md +45 -0
- package/README.md +19 -0
- package/dist/experimental/v2/index.d.ts +572 -101
- package/dist/experimental/v2/index.js +1354 -682
- package/dist/experimental/v2/index.js.map +1 -1
- package/package.json +11 -7
- package/schema/experimental/claim-review-evaluation-0.1.0.schema.json +52 -0
- package/schema/experimental/claim-review-receipt-0.1.0.schema.json +99 -0
- package/schema/experimental/mcap-source-mapping-0.1.0.schema.json +303 -0
- package/schema/experimental/video-frame-source-mapping-0.1.0.schema.json +165 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@disclosureos/schema",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.6",
|
|
4
4
|
"description": "The DisclosureOS portable contract — composes the records core, observable assessments, and origin classification into one enriched Observation schema (TypeScript + JSON Schema), with a non-stripping parse",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -94,7 +94,11 @@
|
|
|
94
94
|
"./experimental/v2/vocabulary-term-reference/schema": "./schema/experimental/vocabulary-term-reference-0.1.0.schema.json",
|
|
95
95
|
"./experimental/v2/vocabulary-term-reference/schema/0.1.0": "./schema/experimental/vocabulary-term-reference-0.1.0.schema.json",
|
|
96
96
|
"./experimental/v2/vocabulary-bindings/schema": "./schema/experimental/vocabulary-bindings-0.1.0.schema.json",
|
|
97
|
-
"./experimental/v2/vocabulary-bindings/schema/0.1.0": "./schema/experimental/vocabulary-bindings-0.1.0.schema.json"
|
|
97
|
+
"./experimental/v2/vocabulary-bindings/schema/0.1.0": "./schema/experimental/vocabulary-bindings-0.1.0.schema.json",
|
|
98
|
+
"./experimental/v2/mcap-source-mapping/schema/0.1.0": "./schema/experimental/mcap-source-mapping-0.1.0.schema.json",
|
|
99
|
+
"./experimental/v2/video-frame-source-mapping/schema/0.1.0": "./schema/experimental/video-frame-source-mapping-0.1.0.schema.json",
|
|
100
|
+
"./experimental/v2/claim-review-evaluation/schema/0.1.0": "./schema/experimental/claim-review-evaluation-0.1.0.schema.json",
|
|
101
|
+
"./experimental/v2/claim-review-receipt/schema/0.1.0": "./schema/experimental/claim-review-receipt-0.1.0.schema.json"
|
|
98
102
|
},
|
|
99
103
|
"main": "./dist/index.js",
|
|
100
104
|
"types": "./dist/index.d.ts",
|
|
@@ -106,11 +110,11 @@
|
|
|
106
110
|
"LICENSE"
|
|
107
111
|
],
|
|
108
112
|
"dependencies": {
|
|
109
|
-
"zod": "4.
|
|
110
|
-
"@disclosureos/
|
|
111
|
-
"@disclosureos/origins": "2.0.0-beta.
|
|
112
|
-
"@disclosureos/
|
|
113
|
-
"@disclosureos/
|
|
113
|
+
"zod": "4.6.6",
|
|
114
|
+
"@disclosureos/records": "2.0.0-beta.6",
|
|
115
|
+
"@disclosureos/origins": "2.0.0-beta.6",
|
|
116
|
+
"@disclosureos/instruments": "2.0.0-beta.6",
|
|
117
|
+
"@disclosureos/observables": "2.0.0-beta.6"
|
|
114
118
|
},
|
|
115
119
|
"devDependencies": {
|
|
116
120
|
"@types/node": "^20",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kind": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "claim_review_evaluation"
|
|
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
|
+
"review": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"documentId": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
23
|
+
},
|
|
24
|
+
"schemaId": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"urn:disclosureos:experimental:claim-history:0.6.0",
|
|
28
|
+
"urn:disclosureos:experimental:case-claim-history:0.2.0"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"sha256": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^[a-f0-9]{64}(?![\\s\\S])"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"documentId",
|
|
38
|
+
"schemaId",
|
|
39
|
+
"sha256"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"kind",
|
|
46
|
+
"schemaVersion",
|
|
47
|
+
"id",
|
|
48
|
+
"review"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"$id": "urn:disclosureos:experimental:claim-review-evaluation:0.1.0"
|
|
52
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kind": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "claim_review_receipt"
|
|
8
|
+
},
|
|
9
|
+
"schemaVersion": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "0.1.0"
|
|
12
|
+
},
|
|
13
|
+
"policy": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "urn:disclosureos:experimental:policy:claim-review-evaluation"
|
|
19
|
+
},
|
|
20
|
+
"version": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "0.1.0"
|
|
23
|
+
},
|
|
24
|
+
"scope": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"const": "declared_claims_documentary_support_and_snapshot_identity"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"id",
|
|
31
|
+
"version",
|
|
32
|
+
"scope"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
},
|
|
36
|
+
"serialization": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"const": "sorted-json-utf8:0.1.0"
|
|
39
|
+
},
|
|
40
|
+
"input": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"sha256": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^[a-f0-9]{64}(?![\\s\\S])"
|
|
46
|
+
},
|
|
47
|
+
"byteLength": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"exclusiveMinimum": 0,
|
|
50
|
+
"maximum": 9007199254740991
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"sha256",
|
|
55
|
+
"byteLength"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
},
|
|
59
|
+
"output": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"sha256": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"pattern": "^[a-f0-9]{64}(?![\\s\\S])"
|
|
65
|
+
},
|
|
66
|
+
"byteLength": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"exclusiveMinimum": 0,
|
|
69
|
+
"maximum": 9007199254740991
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"sha256",
|
|
74
|
+
"byteLength"
|
|
75
|
+
],
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
},
|
|
78
|
+
"inputJson": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1
|
|
81
|
+
},
|
|
82
|
+
"outputJson": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 1
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"kind",
|
|
89
|
+
"schemaVersion",
|
|
90
|
+
"policy",
|
|
91
|
+
"serialization",
|
|
92
|
+
"input",
|
|
93
|
+
"output",
|
|
94
|
+
"inputJson",
|
|
95
|
+
"outputJson"
|
|
96
|
+
],
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"$id": "urn:disclosureos:experimental:claim-review-receipt:0.1.0"
|
|
99
|
+
}
|
|
@@ -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,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kind": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "video_frame_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
|
+
"productRef": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
24
|
+
},
|
|
25
|
+
"digest": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"algorithm": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"const": "sha256"
|
|
31
|
+
},
|
|
32
|
+
"value": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^[a-f0-9]{64}(?![\\s\\S])"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"algorithm",
|
|
39
|
+
"value"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
"byteLength": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"minimum": 1,
|
|
46
|
+
"maximum": 9007199254740991
|
|
47
|
+
},
|
|
48
|
+
"mediaType": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"pattern": "^video\\/[^\\s]+(?![\\s\\S])"
|
|
51
|
+
},
|
|
52
|
+
"indexer": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"methodRef": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"pattern": "^method:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
58
|
+
},
|
|
59
|
+
"methodVersion": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"pattern": "\\S"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"methodRef",
|
|
67
|
+
"methodVersion"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
},
|
|
71
|
+
"streams": {
|
|
72
|
+
"minItems": 1,
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"streamIndex": {
|
|
78
|
+
"type": "integer",
|
|
79
|
+
"minimum": 0,
|
|
80
|
+
"maximum": 9007199254740991
|
|
81
|
+
},
|
|
82
|
+
"timeBase": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"numerator": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"minimum": 1,
|
|
88
|
+
"maximum": 9007199254740991
|
|
89
|
+
},
|
|
90
|
+
"denominator": {
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"minimum": 1,
|
|
93
|
+
"maximum": 9007199254740991
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"numerator",
|
|
98
|
+
"denominator"
|
|
99
|
+
],
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
},
|
|
102
|
+
"presentationTicks": {
|
|
103
|
+
"minItems": 1,
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"maxLength": 100,
|
|
108
|
+
"pattern": "^(?:0|-?[1-9][0-9]*)(?![\\s\\S])"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"streamIndex",
|
|
114
|
+
"timeBase",
|
|
115
|
+
"presentationTicks"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"selections": {
|
|
121
|
+
"minItems": 1,
|
|
122
|
+
"type": "array",
|
|
123
|
+
"items": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": {
|
|
126
|
+
"id": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
129
|
+
},
|
|
130
|
+
"streamIndex": {
|
|
131
|
+
"type": "integer",
|
|
132
|
+
"minimum": 0,
|
|
133
|
+
"maximum": 9007199254740991
|
|
134
|
+
},
|
|
135
|
+
"frameIndex": {
|
|
136
|
+
"type": "integer",
|
|
137
|
+
"minimum": 0,
|
|
138
|
+
"maximum": 9007199254740991
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": [
|
|
142
|
+
"id",
|
|
143
|
+
"streamIndex",
|
|
144
|
+
"frameIndex"
|
|
145
|
+
],
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": [
|
|
151
|
+
"kind",
|
|
152
|
+
"schemaVersion",
|
|
153
|
+
"id",
|
|
154
|
+
"observationId",
|
|
155
|
+
"productRef",
|
|
156
|
+
"digest",
|
|
157
|
+
"byteLength",
|
|
158
|
+
"mediaType",
|
|
159
|
+
"indexer",
|
|
160
|
+
"streams",
|
|
161
|
+
"selections"
|
|
162
|
+
],
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"$id": "urn:disclosureos:experimental:video-frame-source-mapping:0.1.0"
|
|
165
|
+
}
|