@disclosureos/schema 1.1.0 → 2.0.0-beta.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/CHANGELOG.md +57 -0
- package/README.md +92 -0
- package/dist/experimental/v2/index.d.ts +1602 -0
- package/dist/experimental/v2/index.js +4532 -0
- package/dist/experimental/v2/index.js.map +1 -0
- package/package.json +45 -7
- package/schema/experimental/acquisition-bindings-0.1.0.schema.json +127 -0
- package/schema/experimental/dataset-release-0.1.0.schema.json +279 -0
- package/schema/experimental/historical-testimony-selection-0.1.0.schema.json +102 -0
- package/schema/experimental/instrument-research-review-0.1.0.schema.json +627 -0
- package/schema/experimental/measurement-bindings-0.1.0.schema.json +199 -0
- package/schema/experimental/migration-compatibility-0.1.0.schema.json +189 -0
- package/schema/experimental/migration-legacy-scores-0.1.0.schema.json +116 -0
- package/schema/experimental/migration-resolution-0.1.0.schema.json +120 -0
- package/schema/experimental/migration-review-0.1.0.schema.json +223 -0
- package/schema/experimental/physical-sample-selection-0.1.0.schema.json +278 -0
- package/schema/experimental/profile-evaluation-0.1.0.schema.json +231 -0
- package/schema/experimental/profile-preparation-0.1.0.schema.json +177 -0
- package/schema/experimental/released-document-selection-0.1.0.schema.json +102 -0
- package/schema/experimental/reproduction-packet-0.1.0.schema.json +252 -0
- package/schema/experimental/research-evaluation-0.1.0.schema.json +174 -0
- package/schema/experimental/source-intake-0.1.0.schema.json +497 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@disclosureos/schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
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": {
|
|
@@ -30,7 +30,43 @@
|
|
|
30
30
|
"import": "./dist/index.js"
|
|
31
31
|
},
|
|
32
32
|
"./schema": "./schema/enriched-observation.schema.json",
|
|
33
|
-
"./package.json": "./package.json"
|
|
33
|
+
"./package.json": "./package.json",
|
|
34
|
+
"./experimental/v2": {
|
|
35
|
+
"types": "./dist/experimental/v2/index.d.ts",
|
|
36
|
+
"import": "./dist/experimental/v2/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./experimental/v2/bindings/schema": "./schema/experimental/acquisition-bindings-0.1.0.schema.json",
|
|
39
|
+
"./experimental/v2/bindings/schema/0.1.0": "./schema/experimental/acquisition-bindings-0.1.0.schema.json",
|
|
40
|
+
"./experimental/v2/measurements/schema": "./schema/experimental/measurement-bindings-0.1.0.schema.json",
|
|
41
|
+
"./experimental/v2/measurements/schema/0.1.0": "./schema/experimental/measurement-bindings-0.1.0.schema.json",
|
|
42
|
+
"./experimental/v2/research/schema": "./schema/experimental/instrument-research-review-0.1.0.schema.json",
|
|
43
|
+
"./experimental/v2/research/schema/0.1.0": "./schema/experimental/instrument-research-review-0.1.0.schema.json",
|
|
44
|
+
"./experimental/v2/packet/schema": "./schema/experimental/reproduction-packet-0.1.0.schema.json",
|
|
45
|
+
"./experimental/v2/packet/schema/0.1.0": "./schema/experimental/reproduction-packet-0.1.0.schema.json",
|
|
46
|
+
"./experimental/v2/dataset/schema": "./schema/experimental/dataset-release-0.1.0.schema.json",
|
|
47
|
+
"./experimental/v2/dataset/schema/0.1.0": "./schema/experimental/dataset-release-0.1.0.schema.json",
|
|
48
|
+
"./experimental/v2/released-documents/schema": "./schema/experimental/released-document-selection-0.1.0.schema.json",
|
|
49
|
+
"./experimental/v2/released-documents/schema/0.1.0": "./schema/experimental/released-document-selection-0.1.0.schema.json",
|
|
50
|
+
"./experimental/v2/evaluation/schema": "./schema/experimental/research-evaluation-0.1.0.schema.json",
|
|
51
|
+
"./experimental/v2/evaluation/schema/0.1.0": "./schema/experimental/research-evaluation-0.1.0.schema.json",
|
|
52
|
+
"./experimental/v2/intake/schema": "./schema/experimental/source-intake-0.1.0.schema.json",
|
|
53
|
+
"./experimental/v2/intake/schema/0.1.0": "./schema/experimental/source-intake-0.1.0.schema.json",
|
|
54
|
+
"./experimental/v2/historical-testimony/schema": "./schema/experimental/historical-testimony-selection-0.1.0.schema.json",
|
|
55
|
+
"./experimental/v2/historical-testimony/schema/0.1.0": "./schema/experimental/historical-testimony-selection-0.1.0.schema.json",
|
|
56
|
+
"./experimental/v2/physical-samples/schema": "./schema/experimental/physical-sample-selection-0.1.0.schema.json",
|
|
57
|
+
"./experimental/v2/physical-samples/schema/0.1.0": "./schema/experimental/physical-sample-selection-0.1.0.schema.json",
|
|
58
|
+
"./experimental/v2/profile-evaluation/schema": "./schema/experimental/profile-evaluation-0.1.0.schema.json",
|
|
59
|
+
"./experimental/v2/profile-evaluation/schema/0.1.0": "./schema/experimental/profile-evaluation-0.1.0.schema.json",
|
|
60
|
+
"./experimental/v2/profile-preparation/schema": "./schema/experimental/profile-preparation-0.1.0.schema.json",
|
|
61
|
+
"./experimental/v2/profile-preparation/schema/0.1.0": "./schema/experimental/profile-preparation-0.1.0.schema.json",
|
|
62
|
+
"./experimental/v2/migration-review/schema": "./schema/experimental/migration-review-0.1.0.schema.json",
|
|
63
|
+
"./experimental/v2/migration-review/schema/0.1.0": "./schema/experimental/migration-review-0.1.0.schema.json",
|
|
64
|
+
"./experimental/v2/migration-resolution/schema": "./schema/experimental/migration-resolution-0.1.0.schema.json",
|
|
65
|
+
"./experimental/v2/migration-resolution/schema/0.1.0": "./schema/experimental/migration-resolution-0.1.0.schema.json",
|
|
66
|
+
"./experimental/v2/migration-legacy-scores/schema": "./schema/experimental/migration-legacy-scores-0.1.0.schema.json",
|
|
67
|
+
"./experimental/v2/migration-legacy-scores/schema/0.1.0": "./schema/experimental/migration-legacy-scores-0.1.0.schema.json",
|
|
68
|
+
"./experimental/v2/migration-compatibility/schema": "./schema/experimental/migration-compatibility-0.1.0.schema.json",
|
|
69
|
+
"./experimental/v2/migration-compatibility/schema/0.1.0": "./schema/experimental/migration-compatibility-0.1.0.schema.json"
|
|
34
70
|
},
|
|
35
71
|
"main": "./dist/index.js",
|
|
36
72
|
"types": "./dist/index.d.ts",
|
|
@@ -42,10 +78,11 @@
|
|
|
42
78
|
"LICENSE"
|
|
43
79
|
],
|
|
44
80
|
"dependencies": {
|
|
45
|
-
"zod": "
|
|
46
|
-
"@disclosureos/
|
|
47
|
-
"@disclosureos/
|
|
48
|
-
"@disclosureos/
|
|
81
|
+
"zod": "4.4.3",
|
|
82
|
+
"@disclosureos/observables": "2.0.0-beta.0",
|
|
83
|
+
"@disclosureos/records": "2.0.0-beta.0",
|
|
84
|
+
"@disclosureos/instruments": "2.0.0-beta.0",
|
|
85
|
+
"@disclosureos/origins": "2.0.0-beta.0"
|
|
49
86
|
},
|
|
50
87
|
"devDependencies": {
|
|
51
88
|
"@types/node": "^20",
|
|
@@ -58,7 +95,8 @@
|
|
|
58
95
|
"@repo/typescript-config": "0.0.0"
|
|
59
96
|
},
|
|
60
97
|
"publishConfig": {
|
|
61
|
-
"access": "public"
|
|
98
|
+
"access": "public",
|
|
99
|
+
"tag": "beta"
|
|
62
100
|
},
|
|
63
101
|
"scripts": {
|
|
64
102
|
"build": "tsup",
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kind": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "acquisition_bindings"
|
|
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
|
+
"historyId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
20
|
+
},
|
|
21
|
+
"observationId": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
24
|
+
},
|
|
25
|
+
"contextId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
28
|
+
},
|
|
29
|
+
"sources": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"sourceRef": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^source:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
37
|
+
},
|
|
38
|
+
"instrumentRef": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^instrument:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"sourceRef",
|
|
45
|
+
"instrumentRef"
|
|
46
|
+
],
|
|
47
|
+
"additionalProperties": false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"products": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"observationProductRef": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
58
|
+
},
|
|
59
|
+
"contextProductRef": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"pattern": "^product:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"observationProductRef",
|
|
66
|
+
"contextProductRef"
|
|
67
|
+
],
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"extensions": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"propertyNames": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"pattern": "^[a-z][a-z0-9_-]*(?:\\.[a-z0-9_-]+)+(?![\\s\\S])"
|
|
76
|
+
},
|
|
77
|
+
"additionalProperties": {
|
|
78
|
+
"$ref": "#/$defs/__schema0"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"kind",
|
|
84
|
+
"schemaVersion",
|
|
85
|
+
"id",
|
|
86
|
+
"historyId",
|
|
87
|
+
"observationId",
|
|
88
|
+
"contextId",
|
|
89
|
+
"sources",
|
|
90
|
+
"products"
|
|
91
|
+
],
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"$defs": {
|
|
94
|
+
"__schema0": {
|
|
95
|
+
"anyOf": [
|
|
96
|
+
{
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "number"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "boolean"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "null"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "array",
|
|
110
|
+
"items": {
|
|
111
|
+
"$ref": "#/$defs/__schema0"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "object",
|
|
116
|
+
"propertyNames": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": {
|
|
120
|
+
"$ref": "#/$defs/__schema0"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"$id": "urn:disclosureos:experimental:acquisition-bindings:0.1.0"
|
|
127
|
+
}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kind": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "dataset_release"
|
|
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
|
+
"version": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"pattern": "\\S"
|
|
21
|
+
},
|
|
22
|
+
"title": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"pattern": "\\S"
|
|
26
|
+
},
|
|
27
|
+
"description": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"pattern": "\\S"
|
|
31
|
+
},
|
|
32
|
+
"createdAt": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"pattern": "\\S"
|
|
36
|
+
},
|
|
37
|
+
"access": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": [
|
|
40
|
+
"public",
|
|
41
|
+
"restricted",
|
|
42
|
+
"unknown"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"license": {
|
|
46
|
+
"anyOf": [
|
|
47
|
+
{
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"state": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"const": "unknown"
|
|
53
|
+
},
|
|
54
|
+
"reason": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"minLength": 1,
|
|
57
|
+
"pattern": "\\S"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"state",
|
|
62
|
+
"reason"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"state": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"const": "declared"
|
|
72
|
+
},
|
|
73
|
+
"identifier": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1,
|
|
76
|
+
"pattern": "\\S"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": [
|
|
80
|
+
"state",
|
|
81
|
+
"identifier"
|
|
82
|
+
],
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"packets": {
|
|
88
|
+
"minItems": 1,
|
|
89
|
+
"type": "array",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"id": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
96
|
+
},
|
|
97
|
+
"packetId": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
100
|
+
},
|
|
101
|
+
"sha256": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^[a-f0-9]{64}(?![\\s\\S])"
|
|
104
|
+
},
|
|
105
|
+
"byteLength": {
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"minimum": 1,
|
|
108
|
+
"maximum": 9007199254740991
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"id",
|
|
113
|
+
"packetId",
|
|
114
|
+
"sha256",
|
|
115
|
+
"byteLength"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"sessions": {
|
|
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
|
+
"title": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"minLength": 1,
|
|
133
|
+
"pattern": "\\S"
|
|
134
|
+
},
|
|
135
|
+
"time": {
|
|
136
|
+
"anyOf": [
|
|
137
|
+
{
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"state": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"const": "unknown"
|
|
143
|
+
},
|
|
144
|
+
"reason": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"minLength": 1,
|
|
147
|
+
"pattern": "\\S"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": [
|
|
151
|
+
"state",
|
|
152
|
+
"reason"
|
|
153
|
+
],
|
|
154
|
+
"additionalProperties": false
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "object",
|
|
158
|
+
"properties": {
|
|
159
|
+
"state": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"const": "known"
|
|
162
|
+
},
|
|
163
|
+
"start": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"minLength": 1,
|
|
166
|
+
"pattern": "\\S"
|
|
167
|
+
},
|
|
168
|
+
"end": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"minLength": 1,
|
|
171
|
+
"pattern": "\\S"
|
|
172
|
+
},
|
|
173
|
+
"timeScale": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"const": "UTC"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": [
|
|
179
|
+
"state",
|
|
180
|
+
"start",
|
|
181
|
+
"end",
|
|
182
|
+
"timeScale"
|
|
183
|
+
],
|
|
184
|
+
"additionalProperties": false
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"members": {
|
|
189
|
+
"minItems": 1,
|
|
190
|
+
"type": "array",
|
|
191
|
+
"items": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"properties": {
|
|
194
|
+
"packetRef": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"pattern": "^packet:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
197
|
+
},
|
|
198
|
+
"acquisitionRef": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"pattern": "^acquisition:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"required": [
|
|
204
|
+
"packetRef",
|
|
205
|
+
"acquisitionRef"
|
|
206
|
+
],
|
|
207
|
+
"additionalProperties": false
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"id",
|
|
213
|
+
"title",
|
|
214
|
+
"time",
|
|
215
|
+
"members"
|
|
216
|
+
],
|
|
217
|
+
"additionalProperties": false
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"extensions": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"propertyNames": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"pattern": "^[a-z][a-z0-9_-]*(?:\\.[a-z0-9_-]+)+(?![\\s\\S])"
|
|
225
|
+
},
|
|
226
|
+
"additionalProperties": {
|
|
227
|
+
"$ref": "#/$defs/__schema0"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"required": [
|
|
232
|
+
"kind",
|
|
233
|
+
"schemaVersion",
|
|
234
|
+
"id",
|
|
235
|
+
"version",
|
|
236
|
+
"title",
|
|
237
|
+
"description",
|
|
238
|
+
"createdAt",
|
|
239
|
+
"access",
|
|
240
|
+
"license",
|
|
241
|
+
"packets",
|
|
242
|
+
"sessions"
|
|
243
|
+
],
|
|
244
|
+
"additionalProperties": false,
|
|
245
|
+
"$defs": {
|
|
246
|
+
"__schema0": {
|
|
247
|
+
"anyOf": [
|
|
248
|
+
{
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"type": "number"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"type": "boolean"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"type": "null"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"type": "array",
|
|
262
|
+
"items": {
|
|
263
|
+
"$ref": "#/$defs/__schema0"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "object",
|
|
268
|
+
"propertyNames": {
|
|
269
|
+
"type": "string"
|
|
270
|
+
},
|
|
271
|
+
"additionalProperties": {
|
|
272
|
+
"$ref": "#/$defs/__schema0"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"$id": "urn:disclosureos:experimental:dataset-release:0.1.0"
|
|
279
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kind": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "historical_testimony_selection"
|
|
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
|
+
"historyId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
20
|
+
},
|
|
21
|
+
"observationId": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
24
|
+
},
|
|
25
|
+
"accounts": {
|
|
26
|
+
"minItems": 1,
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"sourceRef": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^source:[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
34
|
+
},
|
|
35
|
+
"recording": {
|
|
36
|
+
"oneOf": [
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"state": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"const": "known"
|
|
43
|
+
},
|
|
44
|
+
"recordedBy": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"pattern": "\\S"
|
|
48
|
+
},
|
|
49
|
+
"reference": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1,
|
|
52
|
+
"pattern": "\\S"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"state",
|
|
57
|
+
"recordedBy",
|
|
58
|
+
"reference"
|
|
59
|
+
],
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"state": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"const": "unknown"
|
|
68
|
+
},
|
|
69
|
+
"reason": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1,
|
|
72
|
+
"pattern": "\\S"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"state",
|
|
77
|
+
"reason"
|
|
78
|
+
],
|
|
79
|
+
"additionalProperties": false
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": [
|
|
85
|
+
"sourceRef",
|
|
86
|
+
"recording"
|
|
87
|
+
],
|
|
88
|
+
"additionalProperties": false
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"kind",
|
|
94
|
+
"schemaVersion",
|
|
95
|
+
"id",
|
|
96
|
+
"historyId",
|
|
97
|
+
"observationId",
|
|
98
|
+
"accounts"
|
|
99
|
+
],
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"$id": "urn:disclosureos:experimental:historical-testimony-selection:0.1.0"
|
|
102
|
+
}
|