@tiangong-ai/cli 0.0.51 → 0.0.55
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/AGENTS.md +22 -2
- package/README.md +171 -7
- package/dist/cli.js +10 -1
- package/dist/cli.js.map +1 -1
- package/dist/data/builtins.d.ts +1 -0
- package/dist/data/builtins.js +40 -0
- package/dist/data/builtins.js.map +1 -0
- package/dist/data/catalog.d.ts +25 -0
- package/dist/data/catalog.js +305 -0
- package/dist/data/catalog.js.map +1 -0
- package/dist/data/commands.d.ts +9 -0
- package/dist/data/commands.js +307 -0
- package/dist/data/commands.js.map +1 -0
- package/dist/data/connectors/airnow-hourly-observations.d.ts +2 -0
- package/dist/data/connectors/airnow-hourly-observations.js +522 -0
- package/dist/data/connectors/airnow-hourly-observations.js.map +1 -0
- package/dist/data/connectors/airnow-hourly-observations.schemas.d.ts +299 -0
- package/dist/data/connectors/airnow-hourly-observations.schemas.js +188 -0
- package/dist/data/connectors/airnow-hourly-observations.schemas.js.map +1 -0
- package/dist/data/connectors/bluesky-public-posts.d.ts +2 -0
- package/dist/data/connectors/bluesky-public-posts.js +705 -0
- package/dist/data/connectors/bluesky-public-posts.js.map +1 -0
- package/dist/data/connectors/bluesky-public-posts.schemas.d.ts +733 -0
- package/dist/data/connectors/bluesky-public-posts.schemas.js +422 -0
- package/dist/data/connectors/bluesky-public-posts.schemas.js.map +1 -0
- package/dist/data/connectors/epa-eis-records.d.ts +2 -0
- package/dist/data/connectors/epa-eis-records.js +566 -0
- package/dist/data/connectors/epa-eis-records.js.map +1 -0
- package/dist/data/connectors/epa-eis-records.schemas.d.ts +199 -0
- package/dist/data/connectors/epa-eis-records.schemas.js +146 -0
- package/dist/data/connectors/epa-eis-records.schemas.js.map +1 -0
- package/dist/data/connectors/federal-register-documents.d.ts +2 -0
- package/dist/data/connectors/federal-register-documents.js +517 -0
- package/dist/data/connectors/federal-register-documents.js.map +1 -0
- package/dist/data/connectors/federal-register-documents.schemas.d.ts +357 -0
- package/dist/data/connectors/federal-register-documents.schemas.js +243 -0
- package/dist/data/connectors/federal-register-documents.schemas.js.map +1 -0
- package/dist/data/connectors/gdelt-doc-search.d.ts +2 -0
- package/dist/data/connectors/gdelt-doc-search.js +658 -0
- package/dist/data/connectors/gdelt-doc-search.js.map +1 -0
- package/dist/data/connectors/gdelt-doc-search.schemas.d.ts +446 -0
- package/dist/data/connectors/gdelt-doc-search.schemas.js +330 -0
- package/dist/data/connectors/gdelt-doc-search.schemas.js.map +1 -0
- package/dist/data/connectors/gdelt-file-feeds.d.ts +4 -0
- package/dist/data/connectors/gdelt-file-feeds.js +591 -0
- package/dist/data/connectors/gdelt-file-feeds.js.map +1 -0
- package/dist/data/connectors/gdelt-file-feeds.schemas.d.ts +40 -0
- package/dist/data/connectors/gdelt-file-feeds.schemas.js +256 -0
- package/dist/data/connectors/gdelt-file-feeds.schemas.js.map +1 -0
- package/dist/data/connectors/nasa-firms-fire.d.ts +2 -0
- package/dist/data/connectors/nasa-firms-fire.js +578 -0
- package/dist/data/connectors/nasa-firms-fire.js.map +1 -0
- package/dist/data/connectors/nasa-firms-fire.schemas.d.ts +369 -0
- package/dist/data/connectors/nasa-firms-fire.schemas.js +238 -0
- package/dist/data/connectors/nasa-firms-fire.schemas.js.map +1 -0
- package/dist/data/connectors/open-meteo-air-quality.d.ts +2 -0
- package/dist/data/connectors/open-meteo-air-quality.js +401 -0
- package/dist/data/connectors/open-meteo-air-quality.js.map +1 -0
- package/dist/data/connectors/open-meteo-air-quality.schemas.d.ts +335 -0
- package/dist/data/connectors/open-meteo-air-quality.schemas.js +225 -0
- package/dist/data/connectors/open-meteo-air-quality.schemas.js.map +1 -0
- package/dist/data/connectors/open-meteo-flood.d.ts +2 -0
- package/dist/data/connectors/open-meteo-flood.js +446 -0
- package/dist/data/connectors/open-meteo-flood.js.map +1 -0
- package/dist/data/connectors/open-meteo-flood.schemas.d.ts +388 -0
- package/dist/data/connectors/open-meteo-flood.schemas.js +227 -0
- package/dist/data/connectors/open-meteo-flood.schemas.js.map +1 -0
- package/dist/data/connectors/open-meteo-historical-weather.d.ts +2 -0
- package/dist/data/connectors/open-meteo-historical-weather.js +468 -0
- package/dist/data/connectors/open-meteo-historical-weather.js.map +1 -0
- package/dist/data/connectors/open-meteo-historical-weather.schemas.d.ts +420 -0
- package/dist/data/connectors/open-meteo-historical-weather.schemas.js +282 -0
- package/dist/data/connectors/open-meteo-historical-weather.schemas.js.map +1 -0
- package/dist/data/connectors/openaq-air-quality.d.ts +2 -0
- package/dist/data/connectors/openaq-air-quality.js +734 -0
- package/dist/data/connectors/openaq-air-quality.js.map +1 -0
- package/dist/data/connectors/openaq-air-quality.schemas.d.ts +1067 -0
- package/dist/data/connectors/openaq-air-quality.schemas.js +512 -0
- package/dist/data/connectors/openaq-air-quality.schemas.js.map +1 -0
- package/dist/data/connectors/regulations-gov-attachments.d.ts +2 -0
- package/dist/data/connectors/regulations-gov-attachments.js +486 -0
- package/dist/data/connectors/regulations-gov-attachments.js.map +1 -0
- package/dist/data/connectors/regulations-gov-attachments.schemas.d.ts +270 -0
- package/dist/data/connectors/regulations-gov-attachments.schemas.js +181 -0
- package/dist/data/connectors/regulations-gov-attachments.schemas.js.map +1 -0
- package/dist/data/connectors/regulations-gov-comments.d.ts +2 -0
- package/dist/data/connectors/regulations-gov-comments.js +718 -0
- package/dist/data/connectors/regulations-gov-comments.js.map +1 -0
- package/dist/data/connectors/regulations-gov-comments.schemas.d.ts +717 -0
- package/dist/data/connectors/regulations-gov-comments.schemas.js +389 -0
- package/dist/data/connectors/regulations-gov-comments.schemas.js.map +1 -0
- package/dist/data/connectors/usbr-project-records.d.ts +2 -0
- package/dist/data/connectors/usbr-project-records.js +467 -0
- package/dist/data/connectors/usbr-project-records.js.map +1 -0
- package/dist/data/connectors/usbr-project-records.schemas.d.ts +194 -0
- package/dist/data/connectors/usbr-project-records.schemas.js +137 -0
- package/dist/data/connectors/usbr-project-records.schemas.js.map +1 -0
- package/dist/data/connectors/usbr-rise.d.ts +2 -0
- package/dist/data/connectors/usbr-rise.js +625 -0
- package/dist/data/connectors/usbr-rise.js.map +1 -0
- package/dist/data/connectors/usbr-rise.schemas.d.ts +623 -0
- package/dist/data/connectors/usbr-rise.schemas.js +407 -0
- package/dist/data/connectors/usbr-rise.schemas.js.map +1 -0
- package/dist/data/connectors/usgs-water-instantaneous-values.d.ts +2 -0
- package/dist/data/connectors/usgs-water-instantaneous-values.js +521 -0
- package/dist/data/connectors/usgs-water-instantaneous-values.js.map +1 -0
- package/dist/data/connectors/usgs-water-instantaneous-values.schemas.d.ts +496 -0
- package/dist/data/connectors/usgs-water-instantaneous-values.schemas.js +309 -0
- package/dist/data/connectors/usgs-water-instantaneous-values.schemas.js.map +1 -0
- package/dist/data/connectors/youtube-public-content.d.ts +2 -0
- package/dist/data/connectors/youtube-public-content.js +974 -0
- package/dist/data/connectors/youtube-public-content.js.map +1 -0
- package/dist/data/connectors/youtube-public-content.schemas.d.ts +773 -0
- package/dist/data/connectors/youtube-public-content.schemas.js +567 -0
- package/dist/data/connectors/youtube-public-content.schemas.js.map +1 -0
- package/dist/data/contracts.d.ts +374 -0
- package/dist/data/contracts.js +10 -0
- package/dist/data/contracts.js.map +1 -0
- package/dist/data/runtime/artifacts.d.ts +6 -0
- package/dist/data/runtime/artifacts.js +103 -0
- package/dist/data/runtime/artifacts.js.map +1 -0
- package/dist/data/runtime/bounded-http.d.ts +10 -0
- package/dist/data/runtime/bounded-http.js +403 -0
- package/dist/data/runtime/bounded-http.js.map +1 -0
- package/dist/data/runtime/canonical-json.d.ts +3 -0
- package/dist/data/runtime/canonical-json.js +59 -0
- package/dist/data/runtime/canonical-json.js.map +1 -0
- package/dist/data/runtime/credentials.d.ts +14 -0
- package/dist/data/runtime/credentials.js +67 -0
- package/dist/data/runtime/credentials.js.map +1 -0
- package/dist/data/runtime/csv.d.ts +4 -0
- package/dist/data/runtime/csv.js +51 -0
- package/dist/data/runtime/csv.js.map +1 -0
- package/dist/data/runtime/errors.d.ts +22 -0
- package/dist/data/runtime/errors.js +101 -0
- package/dist/data/runtime/errors.js.map +1 -0
- package/dist/data/runtime/execute.d.ts +11 -0
- package/dist/data/runtime/execute.js +358 -0
- package/dist/data/runtime/execute.js.map +1 -0
- package/dist/data/runtime/receipts.d.ts +13 -0
- package/dist/data/runtime/receipts.js +38 -0
- package/dist/data/runtime/receipts.js.map +1 -0
- package/dist/data/schemas/catalog.v1.json +73 -0
- package/dist/data/schemas/core-receipt.v1.json +117 -0
- package/dist/data/schemas/describe.v1.json +24 -0
- package/dist/data/schemas/discovery.v1.json +130 -0
- package/dist/data/schemas/doctor.v1.json +40 -0
- package/dist/data/schemas/error.v1.json +48 -0
- package/dist/data/schemas/manifest.v1.json +174 -0
- package/dist/data/schemas/run-request.v1.json +37 -0
- package/dist/data/schemas/run-result.v1.json +77 -0
- package/dist/data/schemas.d.ts +27 -0
- package/dist/data/schemas.js +69 -0
- package/dist/data/schemas.js.map +1 -0
- package/dist/env.js.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/http.js.map +1 -1
- package/dist/kb/config.js.map +1 -1
- package/dist/kb/pipeline-health.js.map +1 -1
- package/dist/research/orchestration.js +54 -7
- package/dist/research/orchestration.js.map +1 -1
- package/dist/research/workspace/acquisition.js.map +1 -1
- package/dist/research/workspace/audit-bundle.js +7 -2
- package/dist/research/workspace/audit-bundle.js.map +1 -1
- package/dist/research/workspace/broker.js.map +1 -1
- package/dist/research/workspace/constants.js.map +1 -1
- package/dist/research/workspace/credentials.d.ts +3 -0
- package/dist/research/workspace/credentials.js +20 -3
- package/dist/research/workspace/credentials.js.map +1 -1
- package/dist/research/workspace/data-evidence-adapter.d.ts +60 -0
- package/dist/research/workspace/data-evidence-adapter.js +314 -0
- package/dist/research/workspace/data-evidence-adapter.js.map +1 -0
- package/dist/research/workspace/discovery-status.js +10 -7
- package/dist/research/workspace/discovery-status.js.map +1 -1
- package/dist/research/workspace/discovery.js +12 -11
- package/dist/research/workspace/discovery.js.map +1 -1
- package/dist/research/workspace/evidence-ledger.d.ts +8 -1
- package/dist/research/workspace/evidence-ledger.js +46 -2
- package/dist/research/workspace/evidence-ledger.js.map +1 -1
- package/dist/research/workspace/evidence.d.ts +31 -0
- package/dist/research/workspace/evidence.js +77 -0
- package/dist/research/workspace/evidence.js.map +1 -1
- package/dist/research/workspace/executor.js.map +1 -1
- package/dist/research/workspace/external-skills.d.ts +49 -49
- package/dist/research/workspace/external-skills.js.map +1 -1
- package/dist/research/workspace/platform-capabilities.js.map +1 -1
- package/dist/research/workspace/preflight.d.ts +4 -4
- package/dist/research/workspace/preflight.js +33 -8
- package/dist/research/workspace/preflight.js.map +1 -1
- package/dist/research/workspace/projects.js.map +1 -1
- package/dist/research/workspace/publication.js.map +1 -1
- package/dist/research/workspace/research-policy-wizard.js.map +1 -1
- package/dist/research/workspace/research-policy.js.map +1 -1
- package/dist/research/workspace/runtime.d.ts +7 -0
- package/dist/research/workspace/runtime.js +77 -20
- package/dist/research/workspace/runtime.js.map +1 -1
- package/dist/research/workspace/sanitization.js.map +1 -1
- package/dist/research/workspace/schemas.js +1 -1
- package/dist/research/workspace/schemas.js.map +1 -1
- package/dist/research/workspace/scientific-design.js.map +1 -1
- package/dist/research/workspace/scientific-review.js.map +1 -1
- package/dist/research/workspace/setup-catalog.d.ts +9 -9
- package/dist/research/workspace/setup-catalog.js +2 -2
- package/dist/research/workspace/setup-catalog.js.map +1 -1
- package/dist/research/workspace/setup-declarative.js.map +1 -1
- package/dist/research/workspace/setup-instructions.d.ts +42 -0
- package/dist/research/workspace/setup-instructions.js +413 -0
- package/dist/research/workspace/setup-instructions.js.map +1 -0
- package/dist/research/workspace/setup-invocation.js.map +1 -1
- package/dist/research/workspace/setup-wizard.js +7 -0
- package/dist/research/workspace/setup-wizard.js.map +1 -1
- package/dist/research/workspace/setup.d.ts +18 -15
- package/dist/research/workspace/setup.js +68 -3
- package/dist/research/workspace/setup.js.map +1 -1
- package/dist/research/workspace/workspace.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.tiangong.ai/data/core-receipt.v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"cliVersion",
|
|
9
|
+
"capabilityId",
|
|
10
|
+
"capabilityVersion",
|
|
11
|
+
"operationId",
|
|
12
|
+
"operationVersion",
|
|
13
|
+
"requestDigest",
|
|
14
|
+
"manifestDigest",
|
|
15
|
+
"inputSchemaDigest",
|
|
16
|
+
"outputSchemaDigest",
|
|
17
|
+
"inputDigest",
|
|
18
|
+
"aggregateResponseDigest",
|
|
19
|
+
"normalizedDataDigest",
|
|
20
|
+
"observations",
|
|
21
|
+
"completionStatus",
|
|
22
|
+
"summary",
|
|
23
|
+
"generatedAt",
|
|
24
|
+
"receiptDigest"
|
|
25
|
+
],
|
|
26
|
+
"properties": {
|
|
27
|
+
"schemaVersion": { "const": "tiangong.data.core-receipt.v1" },
|
|
28
|
+
"cliVersion": { "type": "string", "minLength": 1 },
|
|
29
|
+
"capabilityId": { "type": "string", "minLength": 1 },
|
|
30
|
+
"capabilityVersion": { "type": "string", "minLength": 1 },
|
|
31
|
+
"operationId": { "type": "string", "minLength": 1 },
|
|
32
|
+
"operationVersion": { "type": "string", "minLength": 1 },
|
|
33
|
+
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
34
|
+
"manifestDigest": { "$ref": "#/$defs/nullableDigest" },
|
|
35
|
+
"inputSchemaDigest": { "$ref": "#/$defs/nullableDigest" },
|
|
36
|
+
"outputSchemaDigest": { "$ref": "#/$defs/nullableDigest" },
|
|
37
|
+
"inputDigest": { "$ref": "#/$defs/digest" },
|
|
38
|
+
"aggregateResponseDigest": { "$ref": "#/$defs/nullableDigest" },
|
|
39
|
+
"normalizedDataDigest": { "$ref": "#/$defs/nullableDigest" },
|
|
40
|
+
"observations": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": { "$ref": "#/$defs/observation" }
|
|
43
|
+
},
|
|
44
|
+
"completionStatus": { "enum": ["success", "partial", "blocked"] },
|
|
45
|
+
"summary": { "$ref": "#/$defs/summary" },
|
|
46
|
+
"generatedAt": { "type": "string", "minLength": 1 },
|
|
47
|
+
"receiptDigest": { "$ref": "#/$defs/digest" }
|
|
48
|
+
},
|
|
49
|
+
"$defs": {
|
|
50
|
+
"digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
51
|
+
"nullableDigest": {
|
|
52
|
+
"anyOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }]
|
|
53
|
+
},
|
|
54
|
+
"observation": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"required": [
|
|
58
|
+
"observationId",
|
|
59
|
+
"sourceId",
|
|
60
|
+
"endpointId",
|
|
61
|
+
"requestDigest",
|
|
62
|
+
"responseDigest",
|
|
63
|
+
"responseBytes",
|
|
64
|
+
"status",
|
|
65
|
+
"contentType",
|
|
66
|
+
"attempts"
|
|
67
|
+
],
|
|
68
|
+
"properties": {
|
|
69
|
+
"observationId": { "type": "string", "minLength": 1 },
|
|
70
|
+
"sourceId": { "type": "string", "minLength": 1 },
|
|
71
|
+
"endpointId": { "type": "string", "minLength": 1 },
|
|
72
|
+
"requestDigest": { "$ref": "#/$defs/digest" },
|
|
73
|
+
"responseDigest": { "$ref": "#/$defs/digest" },
|
|
74
|
+
"responseBytes": { "type": "integer", "minimum": 0 },
|
|
75
|
+
"status": { "type": "integer", "minimum": 100, "maximum": 599 },
|
|
76
|
+
"contentType": { "type": "string", "minLength": 1 },
|
|
77
|
+
"attempts": { "type": "integer", "minimum": 1 }
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"missing": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": ["kind", "identifiers"],
|
|
84
|
+
"properties": {
|
|
85
|
+
"kind": { "enum": ["chunk", "field", "file", "page", "range"] },
|
|
86
|
+
"identifiers": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"minItems": 1,
|
|
89
|
+
"items": { "type": "string", "minLength": 1 }
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"summary": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"required": [
|
|
97
|
+
"recordCount",
|
|
98
|
+
"pageCount",
|
|
99
|
+
"chunkCount",
|
|
100
|
+
"truncated",
|
|
101
|
+
"completeness"
|
|
102
|
+
],
|
|
103
|
+
"properties": {
|
|
104
|
+
"recordCount": { "type": "integer", "minimum": 0 },
|
|
105
|
+
"pageCount": { "type": "integer", "minimum": 0 },
|
|
106
|
+
"chunkCount": { "type": "integer", "minimum": 0 },
|
|
107
|
+
"truncated": { "type": "boolean" },
|
|
108
|
+
"completeness": { "enum": ["complete", "partial", "blocked"] },
|
|
109
|
+
"missing": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"minItems": 1,
|
|
112
|
+
"items": { "$ref": "#/$defs/missing" }
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.tiangong.ai/data/describe.v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "manifest", "discovery", "schemas"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": "tiangong.data.describe.v1" },
|
|
9
|
+
"manifest": { "$ref": "https://schemas.tiangong.ai/data/manifest.v1.json" },
|
|
10
|
+
"discovery": { "$ref": "https://schemas.tiangong.ai/data/discovery.v1.json" },
|
|
11
|
+
"schemas": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"minProperties": 2,
|
|
14
|
+
"additionalProperties": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": ["$schema", "$id"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"$schema": { "type": "string", "minLength": 1 },
|
|
19
|
+
"$id": { "type": "string", "minLength": 1 }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.tiangong.ai/data/discovery.v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"capabilityId",
|
|
9
|
+
"capabilityVersion",
|
|
10
|
+
"source",
|
|
11
|
+
"summary",
|
|
12
|
+
"description",
|
|
13
|
+
"provides",
|
|
14
|
+
"doesNotProvide",
|
|
15
|
+
"selectionHints",
|
|
16
|
+
"typicalUseCases",
|
|
17
|
+
"sourceDocumentation",
|
|
18
|
+
"license",
|
|
19
|
+
"freshness",
|
|
20
|
+
"limitations",
|
|
21
|
+
"operations",
|
|
22
|
+
"discoveryDigest"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"schemaVersion": { "const": "tiangong.data.discovery.v1" },
|
|
26
|
+
"capabilityId": { "$ref": "#/$defs/id" },
|
|
27
|
+
"capabilityVersion": { "$ref": "#/$defs/version" },
|
|
28
|
+
"source": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": [
|
|
32
|
+
"providerId",
|
|
33
|
+
"name",
|
|
34
|
+
"maintainedBy",
|
|
35
|
+
"sourceCategory",
|
|
36
|
+
"summary",
|
|
37
|
+
"description",
|
|
38
|
+
"coverage"
|
|
39
|
+
],
|
|
40
|
+
"properties": {
|
|
41
|
+
"providerId": { "$ref": "#/$defs/id" },
|
|
42
|
+
"name": { "$ref": "#/$defs/nonEmptyString" },
|
|
43
|
+
"maintainedBy": { "$ref": "#/$defs/nonEmptyString" },
|
|
44
|
+
"sourceCategory": { "$ref": "#/$defs/nonEmptyString" },
|
|
45
|
+
"summary": { "$ref": "#/$defs/nonEmptyString" },
|
|
46
|
+
"description": { "$ref": "#/$defs/nonEmptyString" },
|
|
47
|
+
"coverage": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"required": ["geographic", "temporal", "granularity"],
|
|
51
|
+
"properties": {
|
|
52
|
+
"geographic": { "$ref": "#/$defs/nonEmptyString" },
|
|
53
|
+
"temporal": { "$ref": "#/$defs/nonEmptyString" },
|
|
54
|
+
"granularity": { "$ref": "#/$defs/nonEmptyString" }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"summary": { "$ref": "#/$defs/nonEmptyString" },
|
|
60
|
+
"description": { "$ref": "#/$defs/nonEmptyString" },
|
|
61
|
+
"provides": { "$ref": "#/$defs/nonEmptyStringArray" },
|
|
62
|
+
"doesNotProvide": { "$ref": "#/$defs/nonEmptyStringArray" },
|
|
63
|
+
"selectionHints": { "$ref": "#/$defs/nonEmptyStringArray" },
|
|
64
|
+
"typicalUseCases": { "$ref": "#/$defs/nonEmptyStringArray" },
|
|
65
|
+
"sourceDocumentation": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"minItems": 1,
|
|
68
|
+
"uniqueItems": true,
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": ["title", "url"],
|
|
73
|
+
"properties": {
|
|
74
|
+
"title": { "$ref": "#/$defs/nonEmptyString" },
|
|
75
|
+
"url": { "type": "string", "pattern": "^https://" }
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"license": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": ["name", "url", "restrictions"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"name": { "$ref": "#/$defs/nonEmptyString" },
|
|
85
|
+
"url": { "type": "string", "pattern": "^https://" },
|
|
86
|
+
"restrictions": { "$ref": "#/$defs/nonEmptyStringArray" }
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"freshness": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": ["kind", "description"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"kind": { "$ref": "#/$defs/nonEmptyString" },
|
|
95
|
+
"description": { "$ref": "#/$defs/nonEmptyString" }
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"limitations": { "$ref": "#/$defs/nonEmptyStringArray" },
|
|
99
|
+
"operations": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"minItems": 1,
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"required": ["operationId", "summary", "description"],
|
|
106
|
+
"properties": {
|
|
107
|
+
"operationId": { "$ref": "#/$defs/id" },
|
|
108
|
+
"summary": { "$ref": "#/$defs/nonEmptyString" },
|
|
109
|
+
"description": { "$ref": "#/$defs/nonEmptyString" }
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"discoveryDigest": { "$ref": "#/$defs/digest" }
|
|
114
|
+
},
|
|
115
|
+
"$defs": {
|
|
116
|
+
"id": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
|
|
117
|
+
"version": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.-]+)?$"
|
|
120
|
+
},
|
|
121
|
+
"digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
122
|
+
"nonEmptyString": { "type": "string", "minLength": 1 },
|
|
123
|
+
"nonEmptyStringArray": {
|
|
124
|
+
"type": "array",
|
|
125
|
+
"minItems": 1,
|
|
126
|
+
"uniqueItems": true,
|
|
127
|
+
"items": { "$ref": "#/$defs/nonEmptyString" }
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.tiangong.ai/data/doctor.v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"capabilityId",
|
|
9
|
+
"capabilityVersion",
|
|
10
|
+
"manifestDigest",
|
|
11
|
+
"mode",
|
|
12
|
+
"status",
|
|
13
|
+
"networkAttempted",
|
|
14
|
+
"checks"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": { "const": "tiangong.data.doctor.v1" },
|
|
18
|
+
"capabilityId": { "type": "string", "minLength": 1 },
|
|
19
|
+
"capabilityVersion": { "type": "string", "minLength": 1 },
|
|
20
|
+
"manifestDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
21
|
+
"mode": { "enum": ["static", "live"] },
|
|
22
|
+
"status": { "enum": ["ready", "degraded", "blocked"] },
|
|
23
|
+
"networkAttempted": { "type": "boolean" },
|
|
24
|
+
"checks": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"minItems": 1,
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": ["checkId", "status", "message"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"checkId": { "type": "string", "minLength": 1 },
|
|
33
|
+
"status": { "enum": ["pass", "warn", "fail"] },
|
|
34
|
+
"message": { "type": "string", "minLength": 1 },
|
|
35
|
+
"details": { "type": "object" }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.tiangong.ai/data/error.v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "status", "errors"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": "tiangong.data.error.v1" },
|
|
9
|
+
"status": { "const": "blocked" },
|
|
10
|
+
"errors": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"minItems": 1,
|
|
13
|
+
"items": { "$ref": "#/$defs/error" }
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"$defs": {
|
|
17
|
+
"error": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["code", "message", "retryable", "userActionRequired"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"code": {
|
|
23
|
+
"enum": [
|
|
24
|
+
"invalid-request",
|
|
25
|
+
"unsupported-operation",
|
|
26
|
+
"incompatible-contract",
|
|
27
|
+
"credential-missing",
|
|
28
|
+
"credential-invalid",
|
|
29
|
+
"provider-auth-blocked",
|
|
30
|
+
"endpoint-policy-blocked",
|
|
31
|
+
"rate-limited",
|
|
32
|
+
"timeout",
|
|
33
|
+
"network-failed",
|
|
34
|
+
"response-too-large",
|
|
35
|
+
"provider-response-invalid",
|
|
36
|
+
"normalization-failed",
|
|
37
|
+
"partial-result",
|
|
38
|
+
"internal-error"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"message": { "type": "string", "minLength": 1 },
|
|
42
|
+
"retryable": { "type": "boolean" },
|
|
43
|
+
"userActionRequired": { "type": "boolean" },
|
|
44
|
+
"details": { "type": "object" }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.tiangong.ai/data/manifest.v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"capabilityId",
|
|
9
|
+
"capabilityVersion",
|
|
10
|
+
"minimumCliVersion",
|
|
11
|
+
"providerId",
|
|
12
|
+
"endpoints",
|
|
13
|
+
"credentials",
|
|
14
|
+
"limits",
|
|
15
|
+
"diagnostics",
|
|
16
|
+
"operations",
|
|
17
|
+
"manifestDigest"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schemaVersion": { "const": "tiangong.data.manifest.v1" },
|
|
21
|
+
"capabilityId": { "$ref": "#/$defs/id" },
|
|
22
|
+
"capabilityVersion": { "$ref": "#/$defs/version" },
|
|
23
|
+
"minimumCliVersion": { "$ref": "#/$defs/version" },
|
|
24
|
+
"providerId": { "$ref": "#/$defs/id" },
|
|
25
|
+
"endpoints": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": { "$ref": "#/$defs/endpoint" }
|
|
28
|
+
},
|
|
29
|
+
"credentials": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "$ref": "#/$defs/credential" }
|
|
32
|
+
},
|
|
33
|
+
"limits": { "$ref": "#/$defs/limits" },
|
|
34
|
+
"diagnostics": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["static", "live"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"static": { "const": true },
|
|
40
|
+
"live": { "type": "boolean" }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"operations": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"minItems": 1,
|
|
46
|
+
"items": { "$ref": "#/$defs/operation" }
|
|
47
|
+
},
|
|
48
|
+
"manifestDigest": { "$ref": "#/$defs/digest" }
|
|
49
|
+
},
|
|
50
|
+
"$defs": {
|
|
51
|
+
"id": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
|
|
52
|
+
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.-]+)?$" },
|
|
53
|
+
"digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
54
|
+
"stringArray": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "type": "string", "minLength": 1 },
|
|
57
|
+
"uniqueItems": true
|
|
58
|
+
},
|
|
59
|
+
"limits": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"required": [
|
|
63
|
+
"timeoutMs",
|
|
64
|
+
"maxRequestBytes",
|
|
65
|
+
"maxResponseBytes",
|
|
66
|
+
"maxPages",
|
|
67
|
+
"maxRecords",
|
|
68
|
+
"maxRetries",
|
|
69
|
+
"maxRetryDelayMs",
|
|
70
|
+
"maxRedirects"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"timeoutMs": { "type": "integer", "minimum": 1 },
|
|
74
|
+
"maxRequestBytes": { "type": "integer", "minimum": 1 },
|
|
75
|
+
"maxResponseBytes": { "type": "integer", "minimum": 1 },
|
|
76
|
+
"maxPages": { "type": "integer", "minimum": 1 },
|
|
77
|
+
"maxRecords": { "type": "integer", "minimum": 1 },
|
|
78
|
+
"maxRetries": { "type": "integer", "minimum": 0 },
|
|
79
|
+
"maxRetryDelayMs": { "type": "integer", "minimum": 0 },
|
|
80
|
+
"maxRedirects": { "type": "integer", "minimum": 0 }
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"endpoint": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"required": [
|
|
87
|
+
"endpointId",
|
|
88
|
+
"baseUrl",
|
|
89
|
+
"pathPrefixes",
|
|
90
|
+
"allowedMethods",
|
|
91
|
+
"allowedContentTypes"
|
|
92
|
+
],
|
|
93
|
+
"properties": {
|
|
94
|
+
"endpointId": { "$ref": "#/$defs/id" },
|
|
95
|
+
"baseUrl": { "type": "string", "pattern": "^https://" },
|
|
96
|
+
"pathPrefixes": { "$ref": "#/$defs/stringArray" },
|
|
97
|
+
"allowedMethods": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": { "enum": ["GET", "POST"] },
|
|
100
|
+
"minItems": 1,
|
|
101
|
+
"uniqueItems": true
|
|
102
|
+
},
|
|
103
|
+
"allowedContentTypes": { "$ref": "#/$defs/stringArray" }
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"credential": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"required": ["credentialId", "environmentVariable", "required", "endpointIds", "injection"],
|
|
110
|
+
"properties": {
|
|
111
|
+
"credentialId": { "$ref": "#/$defs/id" },
|
|
112
|
+
"environmentVariable": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" },
|
|
113
|
+
"required": { "type": "boolean" },
|
|
114
|
+
"endpointIds": { "$ref": "#/$defs/stringArray" },
|
|
115
|
+
"injection": {
|
|
116
|
+
"oneOf": [
|
|
117
|
+
{
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": ["kind", "name", "prefix"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"kind": { "const": "header" },
|
|
123
|
+
"name": { "type": "string", "minLength": 1 },
|
|
124
|
+
"prefix": { "type": "string" }
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "object",
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"required": ["kind", "placeholder"],
|
|
131
|
+
"properties": {
|
|
132
|
+
"kind": { "const": "path-segment" },
|
|
133
|
+
"placeholder": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"pattern": "^\\{[a-z][a-z0-9-]*\\}$"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"schemaRef": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": ["schemaId", "digest"],
|
|
147
|
+
"properties": {
|
|
148
|
+
"schemaId": { "type": "string", "minLength": 1 },
|
|
149
|
+
"digest": { "$ref": "#/$defs/digest" }
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"operation": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"additionalProperties": false,
|
|
155
|
+
"required": ["operationId", "operationVersion", "inputSchema", "outputSchema", "limits"],
|
|
156
|
+
"properties": {
|
|
157
|
+
"operationId": { "$ref": "#/$defs/id" },
|
|
158
|
+
"operationVersion": { "$ref": "#/$defs/version" },
|
|
159
|
+
"inputSchema": { "$ref": "#/$defs/schemaRef" },
|
|
160
|
+
"outputSchema": { "$ref": "#/$defs/schemaRef" },
|
|
161
|
+
"limits": { "$ref": "#/$defs/limits" },
|
|
162
|
+
"artifactOutput": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"required": ["kind", "required"],
|
|
166
|
+
"properties": {
|
|
167
|
+
"kind": { "const": "directory" },
|
|
168
|
+
"required": { "const": true }
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.tiangong.ai/data/run-request.v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"capabilityId",
|
|
9
|
+
"capabilityVersion",
|
|
10
|
+
"operationId",
|
|
11
|
+
"operationVersion",
|
|
12
|
+
"input"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"schemaVersion": { "const": "tiangong.data.run-request.v1" },
|
|
16
|
+
"capabilityId": { "$ref": "#/$defs/id" },
|
|
17
|
+
"capabilityVersion": { "$ref": "#/$defs/version" },
|
|
18
|
+
"operationId": { "$ref": "#/$defs/id" },
|
|
19
|
+
"operationVersion": { "$ref": "#/$defs/version" },
|
|
20
|
+
"input": {},
|
|
21
|
+
"requestId": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
22
|
+
"limits": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"timeoutMs": { "type": "integer", "minimum": 1 },
|
|
27
|
+
"maxResponseBytes": { "type": "integer", "minimum": 1 },
|
|
28
|
+
"maxPages": { "type": "integer", "minimum": 1 },
|
|
29
|
+
"maxRecords": { "type": "integer", "minimum": 1 }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"$defs": {
|
|
34
|
+
"id": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
|
|
35
|
+
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.-]+)?$" }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.tiangong.ai/data/run-result.v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"status",
|
|
9
|
+
"requestId",
|
|
10
|
+
"contract",
|
|
11
|
+
"data",
|
|
12
|
+
"summary",
|
|
13
|
+
"warnings",
|
|
14
|
+
"errors",
|
|
15
|
+
"receipt"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schemaVersion": { "const": "tiangong.data.run-result.v1" },
|
|
19
|
+
"status": { "enum": ["success", "partial", "blocked"] },
|
|
20
|
+
"requestId": { "type": ["string", "null"] },
|
|
21
|
+
"contract": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"cliVersion",
|
|
26
|
+
"capabilityId",
|
|
27
|
+
"capabilityVersion",
|
|
28
|
+
"operationId",
|
|
29
|
+
"operationVersion",
|
|
30
|
+
"manifestDigest",
|
|
31
|
+
"inputSchema",
|
|
32
|
+
"outputSchema"
|
|
33
|
+
],
|
|
34
|
+
"properties": {
|
|
35
|
+
"cliVersion": { "type": "string", "minLength": 1 },
|
|
36
|
+
"capabilityId": { "type": "string", "minLength": 1 },
|
|
37
|
+
"capabilityVersion": { "type": "string", "minLength": 1 },
|
|
38
|
+
"operationId": { "type": "string", "minLength": 1 },
|
|
39
|
+
"operationVersion": { "type": "string", "minLength": 1 },
|
|
40
|
+
"manifestDigest": { "$ref": "#/$defs/nullableDigest" },
|
|
41
|
+
"inputSchema": { "$ref": "#/$defs/nullableSchemaRef" },
|
|
42
|
+
"outputSchema": { "$ref": "#/$defs/nullableSchemaRef" }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"data": {},
|
|
46
|
+
"summary": {
|
|
47
|
+
"$ref": "https://schemas.tiangong.ai/data/core-receipt.v1.json#/$defs/summary"
|
|
48
|
+
},
|
|
49
|
+
"warnings": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": { "type": "string" }
|
|
52
|
+
},
|
|
53
|
+
"errors": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": { "$ref": "https://schemas.tiangong.ai/data/error.v1.json#/$defs/error" }
|
|
56
|
+
},
|
|
57
|
+
"receipt": { "$ref": "https://schemas.tiangong.ai/data/core-receipt.v1.json" }
|
|
58
|
+
},
|
|
59
|
+
"$defs": {
|
|
60
|
+
"digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
61
|
+
"nullableDigest": {
|
|
62
|
+
"anyOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }]
|
|
63
|
+
},
|
|
64
|
+
"schemaRef": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["schemaId", "digest"],
|
|
68
|
+
"properties": {
|
|
69
|
+
"schemaId": { "type": "string", "minLength": 1 },
|
|
70
|
+
"digest": { "$ref": "#/$defs/digest" }
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"nullableSchemaRef": {
|
|
74
|
+
"anyOf": [{ "$ref": "#/$defs/schemaRef" }, { "type": "null" }]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|