@disclosureos/schema 1.0.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.
Files changed (26) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/README.md +93 -1
  3. package/dist/experimental/v2/index.d.ts +1602 -0
  4. package/dist/experimental/v2/index.js +4532 -0
  5. package/dist/experimental/v2/index.js.map +1 -0
  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 +45 -7
  10. package/schema/enriched-observation.schema.json +31 -2
  11. package/schema/experimental/acquisition-bindings-0.1.0.schema.json +127 -0
  12. package/schema/experimental/dataset-release-0.1.0.schema.json +279 -0
  13. package/schema/experimental/historical-testimony-selection-0.1.0.schema.json +102 -0
  14. package/schema/experimental/instrument-research-review-0.1.0.schema.json +627 -0
  15. package/schema/experimental/measurement-bindings-0.1.0.schema.json +199 -0
  16. package/schema/experimental/migration-compatibility-0.1.0.schema.json +189 -0
  17. package/schema/experimental/migration-legacy-scores-0.1.0.schema.json +116 -0
  18. package/schema/experimental/migration-resolution-0.1.0.schema.json +120 -0
  19. package/schema/experimental/migration-review-0.1.0.schema.json +223 -0
  20. package/schema/experimental/physical-sample-selection-0.1.0.schema.json +278 -0
  21. package/schema/experimental/profile-evaluation-0.1.0.schema.json +231 -0
  22. package/schema/experimental/profile-preparation-0.1.0.schema.json +177 -0
  23. package/schema/experimental/released-document-selection-0.1.0.schema.json +102 -0
  24. package/schema/experimental/reproduction-packet-0.1.0.schema.json +252 -0
  25. package/schema/experimental/research-evaluation-0.1.0.schema.json +174 -0
  26. package/schema/experimental/source-intake-0.1.0.schema.json +497 -0
@@ -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
+ }