@tiangong-ai/cli 0.0.50 → 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 +200 -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 +71 -11
- package/dist/research/orchestration.js.map +1 -1
- package/dist/research/workspace/acquisition.js +70 -5
- 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 -4
- 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 +203 -76
- 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 +82 -23
- 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,496 @@
|
|
|
1
|
+
export declare const USGS_WATER_IV_INPUT_SCHEMA: {
|
|
2
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
3
|
+
readonly $id: "https://schemas.tiangong.ai/data/usgs/water-instantaneous-values-input.v1.json";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly additionalProperties: false;
|
|
6
|
+
readonly properties: {
|
|
7
|
+
readonly boundingBox: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly additionalProperties: false;
|
|
10
|
+
readonly required: readonly ["minLongitude", "minLatitude", "maxLongitude", "maxLatitude"];
|
|
11
|
+
readonly description: "USGS bBox major filter in WGS84-style decimal degrees. The coordinate-span product must not exceed 25 square degrees.";
|
|
12
|
+
readonly examples: readonly [{
|
|
13
|
+
readonly minLongitude: -77.3;
|
|
14
|
+
readonly minLatitude: 38.8;
|
|
15
|
+
readonly maxLongitude: -77;
|
|
16
|
+
readonly maxLatitude: 39.1;
|
|
17
|
+
}];
|
|
18
|
+
readonly properties: {
|
|
19
|
+
readonly minLongitude: {
|
|
20
|
+
readonly type: "number";
|
|
21
|
+
readonly minimum: -180;
|
|
22
|
+
readonly maximum: 180;
|
|
23
|
+
readonly description: "Western longitude boundary in decimal degrees.";
|
|
24
|
+
readonly examples: readonly [-77.3];
|
|
25
|
+
};
|
|
26
|
+
readonly minLatitude: {
|
|
27
|
+
readonly type: "number";
|
|
28
|
+
readonly minimum: -90;
|
|
29
|
+
readonly maximum: 90;
|
|
30
|
+
readonly description: "Southern latitude boundary in decimal degrees.";
|
|
31
|
+
readonly examples: readonly [38.8];
|
|
32
|
+
};
|
|
33
|
+
readonly maxLongitude: {
|
|
34
|
+
readonly type: "number";
|
|
35
|
+
readonly minimum: -180;
|
|
36
|
+
readonly maximum: 180;
|
|
37
|
+
readonly description: "Eastern longitude boundary in decimal degrees.";
|
|
38
|
+
readonly examples: readonly [-77];
|
|
39
|
+
};
|
|
40
|
+
readonly maxLatitude: {
|
|
41
|
+
readonly type: "number";
|
|
42
|
+
readonly minimum: -90;
|
|
43
|
+
readonly maximum: 90;
|
|
44
|
+
readonly description: "Northern latitude boundary in decimal degrees.";
|
|
45
|
+
readonly examples: readonly [39.1];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly siteNumbers: {
|
|
50
|
+
readonly type: "array";
|
|
51
|
+
readonly minItems: 1;
|
|
52
|
+
readonly maxItems: 100;
|
|
53
|
+
readonly uniqueItems: true;
|
|
54
|
+
readonly description: "Explicit numeric USGS site identifiers. Use instead of boundingBox; at most 100 are accepted by WaterServices.";
|
|
55
|
+
readonly examples: readonly [readonly ["01646500", "01646000"]];
|
|
56
|
+
readonly items: {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
readonly pattern: "^\\d+$";
|
|
59
|
+
readonly description: "One numeric USGS site identifier, preserving any leading zeroes.";
|
|
60
|
+
readonly examples: readonly ["01646500"];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly period: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
readonly minLength: 2;
|
|
66
|
+
readonly maxLength: 64;
|
|
67
|
+
readonly pattern: "^P(?=.*\\d)(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?=\\d)(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$";
|
|
68
|
+
readonly description: "Positive ISO-8601 duration ending at the provider's most recent value. Week notation cannot be mixed with other duration components. Use instead of an explicit start/end window.";
|
|
69
|
+
readonly examples: readonly ["P1D", "PT2H"];
|
|
70
|
+
};
|
|
71
|
+
readonly startDateTimeUtc: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
|
|
74
|
+
readonly description: "Inclusive explicit start instant with timezone. It must be paired with endDateTimeUtc and must not follow it.";
|
|
75
|
+
readonly examples: readonly ["2026-03-21T00:00:00Z"];
|
|
76
|
+
};
|
|
77
|
+
readonly endDateTimeUtc: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
|
|
80
|
+
readonly description: "Inclusive explicit end instant with timezone. It must be paired with startDateTimeUtc.";
|
|
81
|
+
readonly examples: readonly ["2026-03-22T23:59:59Z"];
|
|
82
|
+
};
|
|
83
|
+
readonly parameterCodes: {
|
|
84
|
+
readonly type: "array";
|
|
85
|
+
readonly minItems: 1;
|
|
86
|
+
readonly maxItems: 8;
|
|
87
|
+
readonly uniqueItems: true;
|
|
88
|
+
readonly description: "Five-digit USGS parameter codes to retrieve. Defaults to discharge 00060 and gage height 00065.";
|
|
89
|
+
readonly examples: readonly [readonly ["00060", "00065"]];
|
|
90
|
+
readonly items: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly pattern: "^\\d{5}$";
|
|
93
|
+
readonly description: "One five-digit USGS time-series parameter code.";
|
|
94
|
+
readonly examples: readonly ["00060"];
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
readonly siteType: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
readonly minLength: 1;
|
|
100
|
+
readonly maxLength: 128;
|
|
101
|
+
readonly pattern: "^[A-Za-z0-9-]+(?:,[A-Za-z0-9-]+)*$";
|
|
102
|
+
readonly description: "Comma-separated USGS site-type filter. Defaults to ST, which selects streams and its subtypes.";
|
|
103
|
+
readonly examples: readonly ["ST", "ST,LA-OU"];
|
|
104
|
+
};
|
|
105
|
+
readonly siteStatus: {
|
|
106
|
+
readonly enum: readonly ["all", "active", "inactive"];
|
|
107
|
+
readonly description: "USGS activity-status filter. Defaults to active to preserve this Skill's bounded monitoring behavior.";
|
|
108
|
+
readonly examples: readonly ["active"];
|
|
109
|
+
};
|
|
110
|
+
readonly agencyCode: {
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
readonly minLength: 1;
|
|
113
|
+
readonly maxLength: 32;
|
|
114
|
+
readonly pattern: "^[A-Za-z0-9-]+$";
|
|
115
|
+
readonly description: "Optional organization code used by USGS to filter site maintainers.";
|
|
116
|
+
readonly examples: readonly ["USGS"];
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly allOf: readonly [{
|
|
120
|
+
readonly oneOf: readonly [{
|
|
121
|
+
readonly required: readonly ["boundingBox"];
|
|
122
|
+
readonly properties: {
|
|
123
|
+
readonly boundingBox: {};
|
|
124
|
+
readonly siteNumbers: false;
|
|
125
|
+
};
|
|
126
|
+
}, {
|
|
127
|
+
readonly required: readonly ["siteNumbers"];
|
|
128
|
+
readonly properties: {
|
|
129
|
+
readonly boundingBox: false;
|
|
130
|
+
readonly siteNumbers: {};
|
|
131
|
+
};
|
|
132
|
+
}];
|
|
133
|
+
}, {
|
|
134
|
+
readonly oneOf: readonly [{
|
|
135
|
+
readonly required: readonly ["period"];
|
|
136
|
+
readonly properties: {
|
|
137
|
+
readonly period: {};
|
|
138
|
+
readonly startDateTimeUtc: false;
|
|
139
|
+
readonly endDateTimeUtc: false;
|
|
140
|
+
};
|
|
141
|
+
}, {
|
|
142
|
+
readonly required: readonly ["startDateTimeUtc", "endDateTimeUtc"];
|
|
143
|
+
readonly properties: {
|
|
144
|
+
readonly period: false;
|
|
145
|
+
readonly startDateTimeUtc: {};
|
|
146
|
+
readonly endDateTimeUtc: {};
|
|
147
|
+
};
|
|
148
|
+
}];
|
|
149
|
+
}];
|
|
150
|
+
};
|
|
151
|
+
export declare const USGS_WATER_IV_OUTPUT_SCHEMA: {
|
|
152
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
153
|
+
readonly $id: "https://schemas.tiangong.ai/data/usgs/water-instantaneous-values-output.v1.json";
|
|
154
|
+
readonly type: "object";
|
|
155
|
+
readonly additionalProperties: false;
|
|
156
|
+
readonly required: readonly ["source", "request", "validation", "series", "records", "stopReason"];
|
|
157
|
+
readonly properties: {
|
|
158
|
+
readonly source: {
|
|
159
|
+
readonly type: "object";
|
|
160
|
+
readonly additionalProperties: false;
|
|
161
|
+
readonly required: readonly ["providerId", "service", "endpoint", "provisionalPossible", "legacyService", "decommissionExpected", "officialReplacement"];
|
|
162
|
+
readonly properties: {
|
|
163
|
+
readonly providerId: {
|
|
164
|
+
readonly const: "usgs";
|
|
165
|
+
};
|
|
166
|
+
readonly service: {
|
|
167
|
+
readonly const: "WaterServices Instantaneous Values";
|
|
168
|
+
};
|
|
169
|
+
readonly endpoint: {
|
|
170
|
+
readonly const: "/nwis/iv/";
|
|
171
|
+
};
|
|
172
|
+
readonly provisionalPossible: {
|
|
173
|
+
readonly const: true;
|
|
174
|
+
};
|
|
175
|
+
readonly legacyService: {
|
|
176
|
+
readonly const: true;
|
|
177
|
+
};
|
|
178
|
+
readonly decommissionExpected: {
|
|
179
|
+
readonly const: "2027-Q1";
|
|
180
|
+
};
|
|
181
|
+
readonly officialReplacement: {
|
|
182
|
+
readonly const: "https://api.waterdata.usgs.gov/ogcapi/";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly request: {
|
|
187
|
+
readonly type: "object";
|
|
188
|
+
readonly additionalProperties: false;
|
|
189
|
+
readonly required: readonly ["selection", "time", "parameterCodes", "siteType", "siteStatus", "agencyCode"];
|
|
190
|
+
readonly properties: {
|
|
191
|
+
readonly selection: {
|
|
192
|
+
readonly type: "object";
|
|
193
|
+
readonly additionalProperties: false;
|
|
194
|
+
readonly required: readonly ["kind", "boundingBox", "siteNumbers"];
|
|
195
|
+
readonly properties: {
|
|
196
|
+
readonly kind: {
|
|
197
|
+
readonly enum: readonly ["bounding-box", "sites"];
|
|
198
|
+
};
|
|
199
|
+
readonly boundingBox: {
|
|
200
|
+
readonly anyOf: readonly [{
|
|
201
|
+
readonly type: "object";
|
|
202
|
+
readonly additionalProperties: false;
|
|
203
|
+
readonly required: readonly ["minLongitude", "minLatitude", "maxLongitude", "maxLatitude"];
|
|
204
|
+
readonly description: "USGS bBox major filter in WGS84-style decimal degrees. The coordinate-span product must not exceed 25 square degrees.";
|
|
205
|
+
readonly examples: readonly [{
|
|
206
|
+
readonly minLongitude: -77.3;
|
|
207
|
+
readonly minLatitude: 38.8;
|
|
208
|
+
readonly maxLongitude: -77;
|
|
209
|
+
readonly maxLatitude: 39.1;
|
|
210
|
+
}];
|
|
211
|
+
readonly properties: {
|
|
212
|
+
readonly minLongitude: {
|
|
213
|
+
readonly type: "number";
|
|
214
|
+
readonly minimum: -180;
|
|
215
|
+
readonly maximum: 180;
|
|
216
|
+
readonly description: "Western longitude boundary in decimal degrees.";
|
|
217
|
+
readonly examples: readonly [-77.3];
|
|
218
|
+
};
|
|
219
|
+
readonly minLatitude: {
|
|
220
|
+
readonly type: "number";
|
|
221
|
+
readonly minimum: -90;
|
|
222
|
+
readonly maximum: 90;
|
|
223
|
+
readonly description: "Southern latitude boundary in decimal degrees.";
|
|
224
|
+
readonly examples: readonly [38.8];
|
|
225
|
+
};
|
|
226
|
+
readonly maxLongitude: {
|
|
227
|
+
readonly type: "number";
|
|
228
|
+
readonly minimum: -180;
|
|
229
|
+
readonly maximum: 180;
|
|
230
|
+
readonly description: "Eastern longitude boundary in decimal degrees.";
|
|
231
|
+
readonly examples: readonly [-77];
|
|
232
|
+
};
|
|
233
|
+
readonly maxLatitude: {
|
|
234
|
+
readonly type: "number";
|
|
235
|
+
readonly minimum: -90;
|
|
236
|
+
readonly maximum: 90;
|
|
237
|
+
readonly description: "Northern latitude boundary in decimal degrees.";
|
|
238
|
+
readonly examples: readonly [39.1];
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
}, {
|
|
242
|
+
readonly type: "null";
|
|
243
|
+
}];
|
|
244
|
+
};
|
|
245
|
+
readonly siteNumbers: {
|
|
246
|
+
readonly anyOf: readonly [{
|
|
247
|
+
readonly type: "array";
|
|
248
|
+
readonly minItems: 1;
|
|
249
|
+
readonly maxItems: 100;
|
|
250
|
+
readonly uniqueItems: true;
|
|
251
|
+
readonly description: "Explicit numeric USGS site identifiers. Use instead of boundingBox; at most 100 are accepted by WaterServices.";
|
|
252
|
+
readonly examples: readonly [readonly ["01646500", "01646000"]];
|
|
253
|
+
readonly items: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
readonly pattern: "^\\d+$";
|
|
256
|
+
readonly description: "One numeric USGS site identifier, preserving any leading zeroes.";
|
|
257
|
+
readonly examples: readonly ["01646500"];
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
readonly type: "null";
|
|
261
|
+
}];
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
readonly time: {
|
|
266
|
+
readonly type: "object";
|
|
267
|
+
readonly additionalProperties: false;
|
|
268
|
+
readonly required: readonly ["kind", "period", "startDateTimeUtc", "endDateTimeUtc"];
|
|
269
|
+
readonly properties: {
|
|
270
|
+
readonly kind: {
|
|
271
|
+
readonly enum: readonly ["period", "window"];
|
|
272
|
+
};
|
|
273
|
+
readonly period: {
|
|
274
|
+
readonly type: readonly ["string", "null"];
|
|
275
|
+
};
|
|
276
|
+
readonly startDateTimeUtc: {
|
|
277
|
+
readonly type: readonly ["string", "null"];
|
|
278
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$";
|
|
279
|
+
};
|
|
280
|
+
readonly endDateTimeUtc: {
|
|
281
|
+
readonly type: readonly ["string", "null"];
|
|
282
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$";
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
readonly parameterCodes: {
|
|
287
|
+
readonly type: "array";
|
|
288
|
+
readonly minItems: 1;
|
|
289
|
+
readonly maxItems: 8;
|
|
290
|
+
readonly uniqueItems: true;
|
|
291
|
+
readonly description: "Five-digit USGS parameter codes to retrieve. Defaults to discharge 00060 and gage height 00065.";
|
|
292
|
+
readonly examples: readonly [readonly ["00060", "00065"]];
|
|
293
|
+
readonly items: {
|
|
294
|
+
readonly type: "string";
|
|
295
|
+
readonly pattern: "^\\d{5}$";
|
|
296
|
+
readonly description: "One five-digit USGS time-series parameter code.";
|
|
297
|
+
readonly examples: readonly ["00060"];
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
readonly siteType: {
|
|
301
|
+
readonly type: "string";
|
|
302
|
+
readonly minLength: 1;
|
|
303
|
+
};
|
|
304
|
+
readonly siteStatus: {
|
|
305
|
+
readonly enum: readonly ["all", "active", "inactive"];
|
|
306
|
+
};
|
|
307
|
+
readonly agencyCode: {
|
|
308
|
+
readonly type: readonly ["string", "null"];
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly validation: {
|
|
313
|
+
readonly type: "object";
|
|
314
|
+
readonly additionalProperties: false;
|
|
315
|
+
readonly required: readonly ["issueCount", "issues"];
|
|
316
|
+
readonly properties: {
|
|
317
|
+
readonly issueCount: {
|
|
318
|
+
readonly type: "integer";
|
|
319
|
+
readonly minimum: 0;
|
|
320
|
+
};
|
|
321
|
+
readonly issues: {
|
|
322
|
+
readonly type: "array";
|
|
323
|
+
readonly maxItems: 50;
|
|
324
|
+
readonly items: {
|
|
325
|
+
readonly type: "object";
|
|
326
|
+
readonly additionalProperties: false;
|
|
327
|
+
readonly required: readonly ["path", "message"];
|
|
328
|
+
readonly properties: {
|
|
329
|
+
readonly path: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
readonly minLength: 1;
|
|
332
|
+
};
|
|
333
|
+
readonly message: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly minLength: 1;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly series: {
|
|
343
|
+
readonly type: "array";
|
|
344
|
+
readonly maxItems: 500;
|
|
345
|
+
readonly items: {
|
|
346
|
+
readonly type: "object";
|
|
347
|
+
readonly additionalProperties: false;
|
|
348
|
+
readonly required: readonly ["siteNumber", "siteName", "agencyCode", "siteType", "stateCode", "countyCode", "hucCode", "latitude", "longitude", "parameterCode", "variableName", "variableDescription", "statisticCode", "unit", "recordCount", "provisionalRecordCount", "firstObservedAtUtc", "lastObservedAtUtc"];
|
|
349
|
+
readonly properties: {
|
|
350
|
+
readonly siteNumber: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly minLength: 1;
|
|
353
|
+
};
|
|
354
|
+
readonly siteName: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
};
|
|
357
|
+
readonly agencyCode: {
|
|
358
|
+
readonly type: readonly ["string", "null"];
|
|
359
|
+
};
|
|
360
|
+
readonly siteType: {
|
|
361
|
+
readonly type: readonly ["string", "null"];
|
|
362
|
+
};
|
|
363
|
+
readonly stateCode: {
|
|
364
|
+
readonly type: readonly ["string", "null"];
|
|
365
|
+
};
|
|
366
|
+
readonly countyCode: {
|
|
367
|
+
readonly type: readonly ["string", "null"];
|
|
368
|
+
};
|
|
369
|
+
readonly hucCode: {
|
|
370
|
+
readonly type: readonly ["string", "null"];
|
|
371
|
+
};
|
|
372
|
+
readonly latitude: {
|
|
373
|
+
readonly type: readonly ["number", "null"];
|
|
374
|
+
readonly minimum: -90;
|
|
375
|
+
readonly maximum: 90;
|
|
376
|
+
};
|
|
377
|
+
readonly longitude: {
|
|
378
|
+
readonly type: readonly ["number", "null"];
|
|
379
|
+
readonly minimum: -180;
|
|
380
|
+
readonly maximum: 180;
|
|
381
|
+
};
|
|
382
|
+
readonly parameterCode: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
readonly pattern: "^\\d{5}$";
|
|
385
|
+
};
|
|
386
|
+
readonly variableName: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
};
|
|
389
|
+
readonly variableDescription: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
};
|
|
392
|
+
readonly statisticCode: {
|
|
393
|
+
readonly type: readonly ["string", "null"];
|
|
394
|
+
};
|
|
395
|
+
readonly unit: {
|
|
396
|
+
readonly type: readonly ["string", "null"];
|
|
397
|
+
};
|
|
398
|
+
readonly recordCount: {
|
|
399
|
+
readonly type: "integer";
|
|
400
|
+
readonly minimum: 0;
|
|
401
|
+
};
|
|
402
|
+
readonly provisionalRecordCount: {
|
|
403
|
+
readonly type: "integer";
|
|
404
|
+
readonly minimum: 0;
|
|
405
|
+
};
|
|
406
|
+
readonly firstObservedAtUtc: {
|
|
407
|
+
readonly type: readonly ["string", "null"];
|
|
408
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$";
|
|
409
|
+
};
|
|
410
|
+
readonly lastObservedAtUtc: {
|
|
411
|
+
readonly type: readonly ["string", "null"];
|
|
412
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$";
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
readonly records: {
|
|
418
|
+
readonly type: "array";
|
|
419
|
+
readonly items: {
|
|
420
|
+
readonly type: "object";
|
|
421
|
+
readonly additionalProperties: false;
|
|
422
|
+
readonly required: readonly ["siteNumber", "siteName", "agencyCode", "siteType", "stateCode", "countyCode", "hucCode", "latitude", "longitude", "parameterCode", "variableName", "variableDescription", "statisticCode", "unit", "observedAtUtc", "value", "qualifiers", "provisional"];
|
|
423
|
+
readonly properties: {
|
|
424
|
+
readonly siteNumber: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
readonly minLength: 1;
|
|
427
|
+
};
|
|
428
|
+
readonly siteName: {
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
};
|
|
431
|
+
readonly agencyCode: {
|
|
432
|
+
readonly type: readonly ["string", "null"];
|
|
433
|
+
};
|
|
434
|
+
readonly siteType: {
|
|
435
|
+
readonly type: readonly ["string", "null"];
|
|
436
|
+
};
|
|
437
|
+
readonly stateCode: {
|
|
438
|
+
readonly type: readonly ["string", "null"];
|
|
439
|
+
};
|
|
440
|
+
readonly countyCode: {
|
|
441
|
+
readonly type: readonly ["string", "null"];
|
|
442
|
+
};
|
|
443
|
+
readonly hucCode: {
|
|
444
|
+
readonly type: readonly ["string", "null"];
|
|
445
|
+
};
|
|
446
|
+
readonly latitude: {
|
|
447
|
+
readonly type: readonly ["number", "null"];
|
|
448
|
+
readonly minimum: -90;
|
|
449
|
+
readonly maximum: 90;
|
|
450
|
+
};
|
|
451
|
+
readonly longitude: {
|
|
452
|
+
readonly type: readonly ["number", "null"];
|
|
453
|
+
readonly minimum: -180;
|
|
454
|
+
readonly maximum: 180;
|
|
455
|
+
};
|
|
456
|
+
readonly parameterCode: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
readonly pattern: "^\\d{5}$";
|
|
459
|
+
};
|
|
460
|
+
readonly variableName: {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
};
|
|
463
|
+
readonly variableDescription: {
|
|
464
|
+
readonly type: "string";
|
|
465
|
+
};
|
|
466
|
+
readonly statisticCode: {
|
|
467
|
+
readonly type: readonly ["string", "null"];
|
|
468
|
+
};
|
|
469
|
+
readonly unit: {
|
|
470
|
+
readonly type: readonly ["string", "null"];
|
|
471
|
+
};
|
|
472
|
+
readonly observedAtUtc: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$";
|
|
475
|
+
};
|
|
476
|
+
readonly value: {
|
|
477
|
+
readonly type: "number";
|
|
478
|
+
};
|
|
479
|
+
readonly qualifiers: {
|
|
480
|
+
readonly type: "array";
|
|
481
|
+
readonly items: {
|
|
482
|
+
readonly type: "string";
|
|
483
|
+
readonly minLength: 1;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
readonly provisional: {
|
|
487
|
+
readonly type: "boolean";
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
readonly stopReason: {
|
|
493
|
+
readonly enum: readonly ["completed", "max-records", "partial"];
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
};
|