@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,167 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "kind": {
6
+ "type": "string",
7
+ "const": "vocabulary_bindings"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "string",
11
+ "const": "0.1.0"
12
+ },
13
+ "id": {
14
+ "$ref": "#/$defs/__schema0"
15
+ },
16
+ "bindings": {
17
+ "minItems": 1,
18
+ "type": "array",
19
+ "items": {
20
+ "$ref": "#/$defs/__schema1"
21
+ }
22
+ }
23
+ },
24
+ "required": [
25
+ "kind",
26
+ "schemaVersion",
27
+ "id",
28
+ "bindings"
29
+ ],
30
+ "additionalProperties": false,
31
+ "$defs": {
32
+ "__schema0": {
33
+ "type": "string",
34
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
35
+ },
36
+ "__schema1": {
37
+ "type": "object",
38
+ "properties": {
39
+ "id": {
40
+ "$ref": "#/$defs/__schema0"
41
+ },
42
+ "recordedAt": {
43
+ "type": "string",
44
+ "allOf": [
45
+ {
46
+ "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)))$"
47
+ },
48
+ {
49
+ "pattern": "^(?!0000)"
50
+ },
51
+ {
52
+ "pattern": "T[0-9]{2}:[0-9]{2}:[0-9]{2}"
53
+ },
54
+ {
55
+ "pattern": "(?:Z|[+-][0-9]{2}:[0-9]{2})(?![\\s\\S])"
56
+ }
57
+ ]
58
+ },
59
+ "assignedBy": {
60
+ "$ref": "#/$defs/__schema2"
61
+ },
62
+ "rationale": {
63
+ "$ref": "#/$defs/__schema2"
64
+ },
65
+ "claim": {
66
+ "type": "object",
67
+ "properties": {
68
+ "document": {
69
+ "$ref": "#/$defs/__schema3"
70
+ },
71
+ "claimId": {
72
+ "$ref": "#/$defs/__schema0"
73
+ }
74
+ },
75
+ "required": [
76
+ "document",
77
+ "claimId"
78
+ ],
79
+ "additionalProperties": false
80
+ },
81
+ "relation": {
82
+ "type": "string",
83
+ "enum": [
84
+ "about",
85
+ "assessment_criterion"
86
+ ]
87
+ },
88
+ "term": {
89
+ "type": "object",
90
+ "properties": {
91
+ "catalogId": {
92
+ "type": "string",
93
+ "pattern": "^(?:urn:[A-Za-z0-9][A-Za-z0-9-]*:[^\\s]+|https:\\/\\/[^\\s/?#]+(?:\\/[^\\s]*)?)(?![\\s\\S])"
94
+ },
95
+ "revision": {
96
+ "allOf": [
97
+ {
98
+ "pattern": "\\S"
99
+ },
100
+ {
101
+ "pattern": "^(?![ \\t\\r\\n]*[Ll][Aa][Tt][Ee][Ss][Tt][ \\t\\r\\n]*$)[\\s\\S]+$"
102
+ }
103
+ ],
104
+ "$ref": "#/$defs/__schema2"
105
+ },
106
+ "document": {
107
+ "$ref": "#/$defs/__schema3"
108
+ },
109
+ "termId": {
110
+ "$ref": "#/$defs/__schema0"
111
+ }
112
+ },
113
+ "required": [
114
+ "catalogId",
115
+ "revision",
116
+ "document",
117
+ "termId"
118
+ ],
119
+ "additionalProperties": false
120
+ }
121
+ },
122
+ "required": [
123
+ "id",
124
+ "recordedAt",
125
+ "assignedBy",
126
+ "rationale",
127
+ "claim",
128
+ "relation",
129
+ "term"
130
+ ],
131
+ "additionalProperties": false
132
+ },
133
+ "__schema2": {
134
+ "type": "string",
135
+ "minLength": 1,
136
+ "pattern": "\\S"
137
+ },
138
+ "__schema3": {
139
+ "type": "object",
140
+ "properties": {
141
+ "documentId": {
142
+ "type": "string",
143
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])",
144
+ "description": "ID inside the supplied document; not a URL."
145
+ },
146
+ "schemaId": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "pattern": "\\S",
150
+ "description": "Exact document contract identity."
151
+ },
152
+ "sha256": {
153
+ "type": "string",
154
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])",
155
+ "description": "SHA-256 of exact supplied document bytes."
156
+ }
157
+ },
158
+ "required": [
159
+ "documentId",
160
+ "schemaId",
161
+ "sha256"
162
+ ],
163
+ "additionalProperties": false
164
+ }
165
+ },
166
+ "$id": "urn:disclosureos:experimental:vocabulary-bindings:0.1.0"
167
+ }
@@ -0,0 +1,155 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "kind": {
6
+ "type": "string",
7
+ "const": "vocabulary_catalog"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "string",
11
+ "const": "0.1.0"
12
+ },
13
+ "id": {
14
+ "$ref": "#/$defs/__schema0"
15
+ },
16
+ "catalogId": {
17
+ "type": "string",
18
+ "pattern": "^(?:urn:[A-Za-z0-9][A-Za-z0-9-]*:[^\\s]+|https:\\/\\/[^\\s/?#]+(?:\\/[^\\s]*)?)(?![\\s\\S])"
19
+ },
20
+ "revision": {
21
+ "allOf": [
22
+ {
23
+ "pattern": "\\S"
24
+ },
25
+ {
26
+ "pattern": "^(?![ \\t\\r\\n]*[Ll][Aa][Tt][Ee][Ss][Tt][ \\t\\r\\n]*$)[\\s\\S]+$"
27
+ }
28
+ ],
29
+ "$ref": "#/$defs/__schema1"
30
+ },
31
+ "publishedBy": {
32
+ "$ref": "#/$defs/__schema1"
33
+ },
34
+ "publishedAt": {
35
+ "type": "string",
36
+ "allOf": [
37
+ {
38
+ "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)))$"
39
+ },
40
+ {
41
+ "pattern": "^(?!0000)"
42
+ },
43
+ {
44
+ "pattern": "T[0-9]{2}:[0-9]{2}:[0-9]{2}"
45
+ },
46
+ {
47
+ "pattern": "(?:Z|[+-][0-9]{2}:[0-9]{2})(?![\\s\\S])"
48
+ }
49
+ ]
50
+ },
51
+ "terms": {
52
+ "minItems": 1,
53
+ "type": "array",
54
+ "items": {
55
+ "$ref": "#/$defs/__schema2"
56
+ }
57
+ },
58
+ "extensions": {
59
+ "$ref": "#/$defs/__schema3"
60
+ }
61
+ },
62
+ "required": [
63
+ "kind",
64
+ "schemaVersion",
65
+ "id",
66
+ "catalogId",
67
+ "revision",
68
+ "publishedBy",
69
+ "publishedAt",
70
+ "terms"
71
+ ],
72
+ "additionalProperties": false,
73
+ "$defs": {
74
+ "__schema0": {
75
+ "type": "string",
76
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
77
+ },
78
+ "__schema1": {
79
+ "type": "string",
80
+ "minLength": 1,
81
+ "pattern": "\\S"
82
+ },
83
+ "__schema2": {
84
+ "type": "object",
85
+ "properties": {
86
+ "id": {
87
+ "$ref": "#/$defs/__schema0"
88
+ },
89
+ "label": {
90
+ "$ref": "#/$defs/__schema1"
91
+ },
92
+ "description": {
93
+ "$ref": "#/$defs/__schema1"
94
+ },
95
+ "code": {
96
+ "$ref": "#/$defs/__schema1"
97
+ },
98
+ "category": {
99
+ "$ref": "#/$defs/__schema1"
100
+ },
101
+ "extensions": {
102
+ "$ref": "#/$defs/__schema3"
103
+ }
104
+ },
105
+ "required": [
106
+ "id",
107
+ "label",
108
+ "description"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ "__schema3": {
113
+ "type": "object",
114
+ "propertyNames": {
115
+ "type": "string",
116
+ "pattern": "^[a-z][a-z0-9_-]*(?:\\.[a-z0-9_-]+)+(?![\\s\\S])"
117
+ },
118
+ "additionalProperties": {
119
+ "$ref": "#/$defs/__schema4"
120
+ }
121
+ },
122
+ "__schema4": {
123
+ "anyOf": [
124
+ {
125
+ "type": "string"
126
+ },
127
+ {
128
+ "type": "number"
129
+ },
130
+ {
131
+ "type": "boolean"
132
+ },
133
+ {
134
+ "type": "null"
135
+ },
136
+ {
137
+ "type": "array",
138
+ "items": {
139
+ "$ref": "#/$defs/__schema4"
140
+ }
141
+ },
142
+ {
143
+ "type": "object",
144
+ "propertyNames": {
145
+ "type": "string"
146
+ },
147
+ "additionalProperties": {
148
+ "$ref": "#/$defs/__schema4"
149
+ }
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ "$id": "urn:disclosureos:experimental:vocabulary-catalog:0.1.0"
155
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "catalogId": {
6
+ "type": "string",
7
+ "pattern": "^(?:urn:[A-Za-z0-9][A-Za-z0-9-]*:[^\\s]+|https:\\/\\/[^\\s/?#]+(?:\\/[^\\s]*)?)(?![\\s\\S])"
8
+ },
9
+ "revision": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "allOf": [
13
+ {
14
+ "pattern": "\\S"
15
+ },
16
+ {
17
+ "pattern": "^(?![ \\t\\r\\n]*[Ll][Aa][Tt][Ee][Ss][Tt][ \\t\\r\\n]*$)[\\s\\S]+$"
18
+ }
19
+ ]
20
+ },
21
+ "document": {
22
+ "type": "object",
23
+ "properties": {
24
+ "documentId": {
25
+ "type": "string",
26
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])",
27
+ "description": "ID inside the supplied document; not a URL."
28
+ },
29
+ "schemaId": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "pattern": "\\S",
33
+ "description": "Exact document contract identity."
34
+ },
35
+ "sha256": {
36
+ "type": "string",
37
+ "pattern": "^[a-f0-9]{64}(?![\\s\\S])",
38
+ "description": "SHA-256 of exact supplied document bytes."
39
+ }
40
+ },
41
+ "required": [
42
+ "documentId",
43
+ "schemaId",
44
+ "sha256"
45
+ ],
46
+ "additionalProperties": false
47
+ },
48
+ "termId": {
49
+ "type": "string",
50
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
51
+ }
52
+ },
53
+ "required": [
54
+ "catalogId",
55
+ "revision",
56
+ "document",
57
+ "termId"
58
+ ],
59
+ "additionalProperties": false,
60
+ "$id": "urn:disclosureos:experimental:vocabulary-term-reference:0.1.0"
61
+ }