@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.
Files changed (218) hide show
  1. package/AGENTS.md +22 -2
  2. package/README.md +200 -7
  3. package/dist/cli.js +10 -1
  4. package/dist/cli.js.map +1 -1
  5. package/dist/data/builtins.d.ts +1 -0
  6. package/dist/data/builtins.js +40 -0
  7. package/dist/data/builtins.js.map +1 -0
  8. package/dist/data/catalog.d.ts +25 -0
  9. package/dist/data/catalog.js +305 -0
  10. package/dist/data/catalog.js.map +1 -0
  11. package/dist/data/commands.d.ts +9 -0
  12. package/dist/data/commands.js +307 -0
  13. package/dist/data/commands.js.map +1 -0
  14. package/dist/data/connectors/airnow-hourly-observations.d.ts +2 -0
  15. package/dist/data/connectors/airnow-hourly-observations.js +522 -0
  16. package/dist/data/connectors/airnow-hourly-observations.js.map +1 -0
  17. package/dist/data/connectors/airnow-hourly-observations.schemas.d.ts +299 -0
  18. package/dist/data/connectors/airnow-hourly-observations.schemas.js +188 -0
  19. package/dist/data/connectors/airnow-hourly-observations.schemas.js.map +1 -0
  20. package/dist/data/connectors/bluesky-public-posts.d.ts +2 -0
  21. package/dist/data/connectors/bluesky-public-posts.js +705 -0
  22. package/dist/data/connectors/bluesky-public-posts.js.map +1 -0
  23. package/dist/data/connectors/bluesky-public-posts.schemas.d.ts +733 -0
  24. package/dist/data/connectors/bluesky-public-posts.schemas.js +422 -0
  25. package/dist/data/connectors/bluesky-public-posts.schemas.js.map +1 -0
  26. package/dist/data/connectors/epa-eis-records.d.ts +2 -0
  27. package/dist/data/connectors/epa-eis-records.js +566 -0
  28. package/dist/data/connectors/epa-eis-records.js.map +1 -0
  29. package/dist/data/connectors/epa-eis-records.schemas.d.ts +199 -0
  30. package/dist/data/connectors/epa-eis-records.schemas.js +146 -0
  31. package/dist/data/connectors/epa-eis-records.schemas.js.map +1 -0
  32. package/dist/data/connectors/federal-register-documents.d.ts +2 -0
  33. package/dist/data/connectors/federal-register-documents.js +517 -0
  34. package/dist/data/connectors/federal-register-documents.js.map +1 -0
  35. package/dist/data/connectors/federal-register-documents.schemas.d.ts +357 -0
  36. package/dist/data/connectors/federal-register-documents.schemas.js +243 -0
  37. package/dist/data/connectors/federal-register-documents.schemas.js.map +1 -0
  38. package/dist/data/connectors/gdelt-doc-search.d.ts +2 -0
  39. package/dist/data/connectors/gdelt-doc-search.js +658 -0
  40. package/dist/data/connectors/gdelt-doc-search.js.map +1 -0
  41. package/dist/data/connectors/gdelt-doc-search.schemas.d.ts +446 -0
  42. package/dist/data/connectors/gdelt-doc-search.schemas.js +330 -0
  43. package/dist/data/connectors/gdelt-doc-search.schemas.js.map +1 -0
  44. package/dist/data/connectors/gdelt-file-feeds.d.ts +4 -0
  45. package/dist/data/connectors/gdelt-file-feeds.js +591 -0
  46. package/dist/data/connectors/gdelt-file-feeds.js.map +1 -0
  47. package/dist/data/connectors/gdelt-file-feeds.schemas.d.ts +40 -0
  48. package/dist/data/connectors/gdelt-file-feeds.schemas.js +256 -0
  49. package/dist/data/connectors/gdelt-file-feeds.schemas.js.map +1 -0
  50. package/dist/data/connectors/nasa-firms-fire.d.ts +2 -0
  51. package/dist/data/connectors/nasa-firms-fire.js +578 -0
  52. package/dist/data/connectors/nasa-firms-fire.js.map +1 -0
  53. package/dist/data/connectors/nasa-firms-fire.schemas.d.ts +369 -0
  54. package/dist/data/connectors/nasa-firms-fire.schemas.js +238 -0
  55. package/dist/data/connectors/nasa-firms-fire.schemas.js.map +1 -0
  56. package/dist/data/connectors/open-meteo-air-quality.d.ts +2 -0
  57. package/dist/data/connectors/open-meteo-air-quality.js +401 -0
  58. package/dist/data/connectors/open-meteo-air-quality.js.map +1 -0
  59. package/dist/data/connectors/open-meteo-air-quality.schemas.d.ts +335 -0
  60. package/dist/data/connectors/open-meteo-air-quality.schemas.js +225 -0
  61. package/dist/data/connectors/open-meteo-air-quality.schemas.js.map +1 -0
  62. package/dist/data/connectors/open-meteo-flood.d.ts +2 -0
  63. package/dist/data/connectors/open-meteo-flood.js +446 -0
  64. package/dist/data/connectors/open-meteo-flood.js.map +1 -0
  65. package/dist/data/connectors/open-meteo-flood.schemas.d.ts +388 -0
  66. package/dist/data/connectors/open-meteo-flood.schemas.js +227 -0
  67. package/dist/data/connectors/open-meteo-flood.schemas.js.map +1 -0
  68. package/dist/data/connectors/open-meteo-historical-weather.d.ts +2 -0
  69. package/dist/data/connectors/open-meteo-historical-weather.js +468 -0
  70. package/dist/data/connectors/open-meteo-historical-weather.js.map +1 -0
  71. package/dist/data/connectors/open-meteo-historical-weather.schemas.d.ts +420 -0
  72. package/dist/data/connectors/open-meteo-historical-weather.schemas.js +282 -0
  73. package/dist/data/connectors/open-meteo-historical-weather.schemas.js.map +1 -0
  74. package/dist/data/connectors/openaq-air-quality.d.ts +2 -0
  75. package/dist/data/connectors/openaq-air-quality.js +734 -0
  76. package/dist/data/connectors/openaq-air-quality.js.map +1 -0
  77. package/dist/data/connectors/openaq-air-quality.schemas.d.ts +1067 -0
  78. package/dist/data/connectors/openaq-air-quality.schemas.js +512 -0
  79. package/dist/data/connectors/openaq-air-quality.schemas.js.map +1 -0
  80. package/dist/data/connectors/regulations-gov-attachments.d.ts +2 -0
  81. package/dist/data/connectors/regulations-gov-attachments.js +486 -0
  82. package/dist/data/connectors/regulations-gov-attachments.js.map +1 -0
  83. package/dist/data/connectors/regulations-gov-attachments.schemas.d.ts +270 -0
  84. package/dist/data/connectors/regulations-gov-attachments.schemas.js +181 -0
  85. package/dist/data/connectors/regulations-gov-attachments.schemas.js.map +1 -0
  86. package/dist/data/connectors/regulations-gov-comments.d.ts +2 -0
  87. package/dist/data/connectors/regulations-gov-comments.js +718 -0
  88. package/dist/data/connectors/regulations-gov-comments.js.map +1 -0
  89. package/dist/data/connectors/regulations-gov-comments.schemas.d.ts +717 -0
  90. package/dist/data/connectors/regulations-gov-comments.schemas.js +389 -0
  91. package/dist/data/connectors/regulations-gov-comments.schemas.js.map +1 -0
  92. package/dist/data/connectors/usbr-project-records.d.ts +2 -0
  93. package/dist/data/connectors/usbr-project-records.js +467 -0
  94. package/dist/data/connectors/usbr-project-records.js.map +1 -0
  95. package/dist/data/connectors/usbr-project-records.schemas.d.ts +194 -0
  96. package/dist/data/connectors/usbr-project-records.schemas.js +137 -0
  97. package/dist/data/connectors/usbr-project-records.schemas.js.map +1 -0
  98. package/dist/data/connectors/usbr-rise.d.ts +2 -0
  99. package/dist/data/connectors/usbr-rise.js +625 -0
  100. package/dist/data/connectors/usbr-rise.js.map +1 -0
  101. package/dist/data/connectors/usbr-rise.schemas.d.ts +623 -0
  102. package/dist/data/connectors/usbr-rise.schemas.js +407 -0
  103. package/dist/data/connectors/usbr-rise.schemas.js.map +1 -0
  104. package/dist/data/connectors/usgs-water-instantaneous-values.d.ts +2 -0
  105. package/dist/data/connectors/usgs-water-instantaneous-values.js +521 -0
  106. package/dist/data/connectors/usgs-water-instantaneous-values.js.map +1 -0
  107. package/dist/data/connectors/usgs-water-instantaneous-values.schemas.d.ts +496 -0
  108. package/dist/data/connectors/usgs-water-instantaneous-values.schemas.js +309 -0
  109. package/dist/data/connectors/usgs-water-instantaneous-values.schemas.js.map +1 -0
  110. package/dist/data/connectors/youtube-public-content.d.ts +2 -0
  111. package/dist/data/connectors/youtube-public-content.js +974 -0
  112. package/dist/data/connectors/youtube-public-content.js.map +1 -0
  113. package/dist/data/connectors/youtube-public-content.schemas.d.ts +773 -0
  114. package/dist/data/connectors/youtube-public-content.schemas.js +567 -0
  115. package/dist/data/connectors/youtube-public-content.schemas.js.map +1 -0
  116. package/dist/data/contracts.d.ts +374 -0
  117. package/dist/data/contracts.js +10 -0
  118. package/dist/data/contracts.js.map +1 -0
  119. package/dist/data/runtime/artifacts.d.ts +6 -0
  120. package/dist/data/runtime/artifacts.js +103 -0
  121. package/dist/data/runtime/artifacts.js.map +1 -0
  122. package/dist/data/runtime/bounded-http.d.ts +10 -0
  123. package/dist/data/runtime/bounded-http.js +403 -0
  124. package/dist/data/runtime/bounded-http.js.map +1 -0
  125. package/dist/data/runtime/canonical-json.d.ts +3 -0
  126. package/dist/data/runtime/canonical-json.js +59 -0
  127. package/dist/data/runtime/canonical-json.js.map +1 -0
  128. package/dist/data/runtime/credentials.d.ts +14 -0
  129. package/dist/data/runtime/credentials.js +67 -0
  130. package/dist/data/runtime/credentials.js.map +1 -0
  131. package/dist/data/runtime/csv.d.ts +4 -0
  132. package/dist/data/runtime/csv.js +51 -0
  133. package/dist/data/runtime/csv.js.map +1 -0
  134. package/dist/data/runtime/errors.d.ts +22 -0
  135. package/dist/data/runtime/errors.js +101 -0
  136. package/dist/data/runtime/errors.js.map +1 -0
  137. package/dist/data/runtime/execute.d.ts +11 -0
  138. package/dist/data/runtime/execute.js +358 -0
  139. package/dist/data/runtime/execute.js.map +1 -0
  140. package/dist/data/runtime/receipts.d.ts +13 -0
  141. package/dist/data/runtime/receipts.js +38 -0
  142. package/dist/data/runtime/receipts.js.map +1 -0
  143. package/dist/data/schemas/catalog.v1.json +73 -0
  144. package/dist/data/schemas/core-receipt.v1.json +117 -0
  145. package/dist/data/schemas/describe.v1.json +24 -0
  146. package/dist/data/schemas/discovery.v1.json +130 -0
  147. package/dist/data/schemas/doctor.v1.json +40 -0
  148. package/dist/data/schemas/error.v1.json +48 -0
  149. package/dist/data/schemas/manifest.v1.json +174 -0
  150. package/dist/data/schemas/run-request.v1.json +37 -0
  151. package/dist/data/schemas/run-result.v1.json +77 -0
  152. package/dist/data/schemas.d.ts +27 -0
  153. package/dist/data/schemas.js +69 -0
  154. package/dist/data/schemas.js.map +1 -0
  155. package/dist/env.js.map +1 -1
  156. package/dist/errors.js.map +1 -1
  157. package/dist/http.js.map +1 -1
  158. package/dist/kb/config.js.map +1 -1
  159. package/dist/kb/pipeline-health.js.map +1 -1
  160. package/dist/research/orchestration.js +71 -11
  161. package/dist/research/orchestration.js.map +1 -1
  162. package/dist/research/workspace/acquisition.js +70 -5
  163. package/dist/research/workspace/acquisition.js.map +1 -1
  164. package/dist/research/workspace/audit-bundle.js +7 -2
  165. package/dist/research/workspace/audit-bundle.js.map +1 -1
  166. package/dist/research/workspace/broker.js.map +1 -1
  167. package/dist/research/workspace/constants.js.map +1 -1
  168. package/dist/research/workspace/credentials.d.ts +3 -0
  169. package/dist/research/workspace/credentials.js +20 -3
  170. package/dist/research/workspace/credentials.js.map +1 -1
  171. package/dist/research/workspace/data-evidence-adapter.d.ts +60 -0
  172. package/dist/research/workspace/data-evidence-adapter.js +314 -0
  173. package/dist/research/workspace/data-evidence-adapter.js.map +1 -0
  174. package/dist/research/workspace/discovery-status.js +10 -7
  175. package/dist/research/workspace/discovery-status.js.map +1 -1
  176. package/dist/research/workspace/discovery.js +12 -11
  177. package/dist/research/workspace/discovery.js.map +1 -1
  178. package/dist/research/workspace/evidence-ledger.d.ts +8 -1
  179. package/dist/research/workspace/evidence-ledger.js +46 -4
  180. package/dist/research/workspace/evidence-ledger.js.map +1 -1
  181. package/dist/research/workspace/evidence.d.ts +31 -0
  182. package/dist/research/workspace/evidence.js +77 -0
  183. package/dist/research/workspace/evidence.js.map +1 -1
  184. package/dist/research/workspace/executor.js.map +1 -1
  185. package/dist/research/workspace/external-skills.d.ts +49 -49
  186. package/dist/research/workspace/external-skills.js.map +1 -1
  187. package/dist/research/workspace/platform-capabilities.js.map +1 -1
  188. package/dist/research/workspace/preflight.d.ts +4 -4
  189. package/dist/research/workspace/preflight.js +33 -8
  190. package/dist/research/workspace/preflight.js.map +1 -1
  191. package/dist/research/workspace/projects.js +203 -76
  192. package/dist/research/workspace/projects.js.map +1 -1
  193. package/dist/research/workspace/publication.js.map +1 -1
  194. package/dist/research/workspace/research-policy-wizard.js.map +1 -1
  195. package/dist/research/workspace/research-policy.js.map +1 -1
  196. package/dist/research/workspace/runtime.d.ts +7 -0
  197. package/dist/research/workspace/runtime.js +82 -23
  198. package/dist/research/workspace/runtime.js.map +1 -1
  199. package/dist/research/workspace/sanitization.js.map +1 -1
  200. package/dist/research/workspace/schemas.js +1 -1
  201. package/dist/research/workspace/schemas.js.map +1 -1
  202. package/dist/research/workspace/scientific-design.js.map +1 -1
  203. package/dist/research/workspace/scientific-review.js.map +1 -1
  204. package/dist/research/workspace/setup-catalog.d.ts +9 -9
  205. package/dist/research/workspace/setup-catalog.js +2 -2
  206. package/dist/research/workspace/setup-catalog.js.map +1 -1
  207. package/dist/research/workspace/setup-declarative.js.map +1 -1
  208. package/dist/research/workspace/setup-instructions.d.ts +42 -0
  209. package/dist/research/workspace/setup-instructions.js +413 -0
  210. package/dist/research/workspace/setup-instructions.js.map +1 -0
  211. package/dist/research/workspace/setup-invocation.js.map +1 -1
  212. package/dist/research/workspace/setup-wizard.js +7 -0
  213. package/dist/research/workspace/setup-wizard.js.map +1 -1
  214. package/dist/research/workspace/setup.d.ts +18 -15
  215. package/dist/research/workspace/setup.js +68 -3
  216. package/dist/research/workspace/setup.js.map +1 -1
  217. package/dist/research/workspace/workspace.js.map +1 -1
  218. package/package.json +3 -3
@@ -0,0 +1,623 @@
1
+ export declare const USBR_RISE_DISCOVER_ITEMS_INPUT_SCHEMA: {
2
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3
+ readonly $id: "https://schemas.tiangong.ai/data/usbr/rise-discover-items-input.v1.json";
4
+ readonly type: "object";
5
+ readonly additionalProperties: false;
6
+ readonly properties: {
7
+ readonly queryTerms: {
8
+ readonly type: "array";
9
+ readonly minItems: 1;
10
+ readonly maxItems: 20;
11
+ readonly uniqueItems: true;
12
+ readonly description: "Case-insensitive words or phrases that must all occur in the normalized catalog item's searchable metadata.";
13
+ readonly examples: readonly [readonly ["Lake Powell", "release"]];
14
+ readonly items: {
15
+ readonly type: "string";
16
+ readonly minLength: 1;
17
+ readonly maxLength: 200;
18
+ };
19
+ };
20
+ readonly itemTitleContains: {
21
+ readonly type: "string";
22
+ readonly minLength: 1;
23
+ readonly maxLength: 300;
24
+ readonly description: "Case-insensitive substring required in the RISE catalog item title.";
25
+ readonly examples: readonly ["Lake Powell"];
26
+ };
27
+ readonly locationNameContains: {
28
+ readonly type: "string";
29
+ readonly minLength: 1;
30
+ readonly maxLength: 300;
31
+ readonly description: "Case-insensitive substring required in the catalog location name.";
32
+ readonly examples: readonly ["Glen Canyon"];
33
+ };
34
+ readonly parameterNameContains: {
35
+ readonly type: "string";
36
+ readonly minLength: 1;
37
+ readonly maxLength: 300;
38
+ readonly description: "Case-insensitive substring required in the catalog parameter name.";
39
+ readonly examples: readonly ["release"];
40
+ };
41
+ readonly parameterId: {
42
+ readonly type: "string";
43
+ readonly minLength: 1;
44
+ readonly maxLength: 100;
45
+ readonly description: "Exact provider parameter identifier used as a client-side catalog filter.";
46
+ readonly examples: readonly ["3001"];
47
+ };
48
+ readonly locationId: {
49
+ readonly type: "string";
50
+ readonly minLength: 1;
51
+ readonly maxLength: 100;
52
+ readonly description: "Exact provider location identifier used as a client-side catalog filter.";
53
+ readonly examples: readonly ["2001"];
54
+ };
55
+ readonly sourceCode: {
56
+ readonly type: "string";
57
+ readonly minLength: 1;
58
+ readonly maxLength: 100;
59
+ readonly description: "Exact case-insensitive USBR RISE source code used as a catalog filter.";
60
+ readonly examples: readonly ["UC"];
61
+ };
62
+ readonly startPage: {
63
+ readonly type: "integer";
64
+ readonly minimum: 1;
65
+ readonly description: "One-based provider catalog page at which the bounded scan starts.";
66
+ readonly examples: readonly [1];
67
+ };
68
+ readonly pageSize: {
69
+ readonly type: "integer";
70
+ readonly minimum: 1;
71
+ readonly maximum: 100;
72
+ readonly description: "Number of provider catalog members requested per page.";
73
+ readonly examples: readonly [100];
74
+ };
75
+ };
76
+ };
77
+ export declare const USBR_RISE_FETCH_RESULTS_INPUT_SCHEMA: {
78
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
79
+ readonly $id: "https://schemas.tiangong.ai/data/usbr/rise-fetch-results-input.v1.json";
80
+ readonly type: "object";
81
+ readonly additionalProperties: false;
82
+ readonly required: readonly ["itemIds"];
83
+ readonly properties: {
84
+ readonly itemIds: {
85
+ readonly type: "array";
86
+ readonly minItems: 1;
87
+ readonly maxItems: 20;
88
+ readonly uniqueItems: true;
89
+ readonly description: "Explicit RISE catalog item identifiers grounded through discovery or another official source.";
90
+ readonly examples: readonly [readonly ["10835"]];
91
+ readonly items: {
92
+ readonly type: "string";
93
+ readonly minLength: 1;
94
+ readonly maxLength: 100;
95
+ };
96
+ };
97
+ readonly locationId: {
98
+ readonly type: "string";
99
+ readonly minLength: 1;
100
+ readonly maxLength: 100;
101
+ readonly description: "Optional exact RISE location identifier applied to every requested item.";
102
+ readonly examples: readonly ["2001"];
103
+ };
104
+ readonly parameterId: {
105
+ readonly type: "string";
106
+ readonly minLength: 1;
107
+ readonly maxLength: 100;
108
+ readonly description: "Optional exact RISE parameter identifier applied to every requested item.";
109
+ readonly examples: readonly ["3001"];
110
+ };
111
+ readonly afterUtc: {
112
+ readonly type: "string";
113
+ readonly minLength: 1;
114
+ readonly maxLength: 64;
115
+ readonly description: "Optional inclusive lower RFC3339 dateTime filter with an explicit UTC offset.";
116
+ readonly examples: readonly ["2025-01-01T00:00:00Z"];
117
+ };
118
+ readonly beforeUtc: {
119
+ readonly type: "string";
120
+ readonly minLength: 1;
121
+ readonly maxLength: 64;
122
+ readonly description: "Optional inclusive upper RFC3339 dateTime filter with an explicit UTC offset.";
123
+ readonly examples: readonly ["2025-01-31T23:59:59Z"];
124
+ };
125
+ readonly orderDateTime: {
126
+ readonly enum: readonly ["asc", "desc"];
127
+ readonly description: "Provider ordering for result timestamps; descending is the default.";
128
+ readonly examples: readonly ["desc"];
129
+ };
130
+ readonly includeItemMetadata: {
131
+ readonly type: "boolean";
132
+ readonly description: "Whether to request each catalog item's metadata and use it to enrich result rows.";
133
+ readonly examples: readonly [true];
134
+ };
135
+ readonly startPage: {
136
+ readonly type: "integer";
137
+ readonly minimum: 1;
138
+ readonly description: "One-based provider result page at which each item scan starts.";
139
+ readonly examples: readonly [1];
140
+ };
141
+ readonly pageSize: {
142
+ readonly type: "integer";
143
+ readonly minimum: 1;
144
+ readonly maximum: 100;
145
+ readonly description: "Number of provider result rows requested per page.";
146
+ readonly examples: readonly [100];
147
+ };
148
+ };
149
+ };
150
+ export declare const USBR_RISE_DISCOVER_ITEMS_OUTPUT_SCHEMA: {
151
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
152
+ readonly $id: "https://schemas.tiangong.ai/data/usbr/rise-discover-items-output.v1.json";
153
+ readonly type: "object";
154
+ readonly additionalProperties: false;
155
+ readonly required: readonly ["source", "query", "candidateItemIds", "records", "pages", "listSemantics", "stopReason"];
156
+ readonly properties: {
157
+ readonly source: {
158
+ readonly type: "object";
159
+ readonly additionalProperties: false;
160
+ readonly required: readonly ["providerId", "endpoint", "interpretationBoundary"];
161
+ readonly properties: {
162
+ readonly providerId: {
163
+ readonly const: "usbr-rise";
164
+ };
165
+ readonly endpoint: {
166
+ readonly type: "string";
167
+ readonly minLength: 1;
168
+ };
169
+ readonly interpretationBoundary: {
170
+ readonly type: "string";
171
+ readonly minLength: 1;
172
+ };
173
+ };
174
+ };
175
+ readonly query: {
176
+ readonly type: "object";
177
+ readonly additionalProperties: false;
178
+ readonly required: readonly ["queryTerms", "itemTitleContains", "locationNameContains", "parameterNameContains", "parameterId", "locationId", "sourceCode", "startPage", "pageSize"];
179
+ readonly properties: {
180
+ readonly queryTerms: {
181
+ readonly type: "array";
182
+ readonly items: {
183
+ readonly type: "string";
184
+ readonly minLength: 1;
185
+ };
186
+ };
187
+ readonly itemTitleContains: {
188
+ readonly type: readonly ["string", "null"];
189
+ };
190
+ readonly locationNameContains: {
191
+ readonly type: readonly ["string", "null"];
192
+ };
193
+ readonly parameterNameContains: {
194
+ readonly type: readonly ["string", "null"];
195
+ };
196
+ readonly parameterId: {
197
+ readonly type: readonly ["string", "null"];
198
+ };
199
+ readonly locationId: {
200
+ readonly type: readonly ["string", "null"];
201
+ };
202
+ readonly sourceCode: {
203
+ readonly type: readonly ["string", "null"];
204
+ };
205
+ readonly startPage: {
206
+ readonly type: "integer";
207
+ readonly minimum: 1;
208
+ };
209
+ readonly pageSize: {
210
+ readonly type: "integer";
211
+ readonly minimum: 1;
212
+ readonly maximum: 100;
213
+ };
214
+ };
215
+ };
216
+ readonly candidateItemIds: {
217
+ readonly type: "array";
218
+ readonly items: {
219
+ readonly type: "string";
220
+ readonly minLength: 1;
221
+ };
222
+ };
223
+ readonly records: {
224
+ readonly type: "array";
225
+ readonly items: {
226
+ readonly type: "object";
227
+ readonly additionalProperties: false;
228
+ readonly required: readonly ["itemId", "itemApiPath", "itemTitle", "itemDescription", "locationId", "locationName", "locationSourceCode", "parameterId", "parameterName", "parameterUnit", "parameterGroup", "parameterTimestep", "parameterTransformation", "sourceCode", "temporalStartDate", "temporalEndDate", "landingPage", "spatial", "sourcePageNumber"];
229
+ readonly properties: {
230
+ readonly itemId: {
231
+ readonly type: "string";
232
+ readonly minLength: 1;
233
+ };
234
+ readonly itemTitle: {
235
+ readonly type: readonly ["string", "null"];
236
+ };
237
+ readonly itemDescription: {
238
+ readonly type: readonly ["string", "null"];
239
+ };
240
+ readonly locationId: {
241
+ readonly type: readonly ["string", "null"];
242
+ };
243
+ readonly locationName: {
244
+ readonly type: readonly ["string", "null"];
245
+ };
246
+ readonly locationSourceCode: {
247
+ readonly type: readonly ["string", "null"];
248
+ };
249
+ readonly parameterId: {
250
+ readonly type: readonly ["string", "null"];
251
+ };
252
+ readonly parameterName: {
253
+ readonly type: readonly ["string", "null"];
254
+ };
255
+ readonly parameterUnit: {
256
+ readonly type: readonly ["string", "null"];
257
+ };
258
+ readonly parameterGroup: {
259
+ readonly type: readonly ["string", "null"];
260
+ };
261
+ readonly parameterTimestep: {
262
+ readonly type: readonly ["string", "null"];
263
+ };
264
+ readonly parameterTransformation: {
265
+ readonly type: readonly ["string", "null"];
266
+ };
267
+ readonly sourceCode: {
268
+ readonly type: readonly ["string", "null"];
269
+ };
270
+ readonly temporalStartDate: {
271
+ readonly type: readonly ["string", "null"];
272
+ };
273
+ readonly temporalEndDate: {
274
+ readonly type: readonly ["string", "null"];
275
+ };
276
+ readonly landingPage: {
277
+ readonly type: readonly ["string", "null"];
278
+ };
279
+ readonly providerDisclaimer: {
280
+ readonly type: readonly ["string", "null"];
281
+ };
282
+ readonly spatial: {
283
+ readonly type: readonly ["object", "null"];
284
+ readonly additionalProperties: false;
285
+ readonly required: readonly ["type", "coordinates"];
286
+ readonly properties: {
287
+ readonly type: {
288
+ readonly const: "Point";
289
+ };
290
+ readonly coordinates: {
291
+ readonly type: "array";
292
+ readonly minItems: 2;
293
+ readonly maxItems: 2;
294
+ readonly prefixItems: readonly [{
295
+ readonly type: "number";
296
+ }, {
297
+ readonly type: "number";
298
+ }];
299
+ readonly items: false;
300
+ };
301
+ };
302
+ };
303
+ readonly itemApiPath: {
304
+ readonly type: readonly ["string", "null"];
305
+ };
306
+ readonly sourcePageNumber: {
307
+ readonly type: "integer";
308
+ readonly minimum: 1;
309
+ };
310
+ };
311
+ };
312
+ };
313
+ readonly pages: {
314
+ readonly type: "array";
315
+ readonly items: {
316
+ readonly type: "object";
317
+ readonly additionalProperties: false;
318
+ readonly required: readonly ["pageNumber", "providerTotalItems", "providerMemberCount", "matchedRecordCount"];
319
+ readonly properties: {
320
+ readonly pageNumber: {
321
+ readonly type: "integer";
322
+ readonly minimum: 1;
323
+ };
324
+ readonly providerTotalItems: {
325
+ readonly type: readonly ["integer", "null"];
326
+ readonly minimum: 0;
327
+ };
328
+ readonly providerMemberCount: {
329
+ readonly type: "integer";
330
+ readonly minimum: 0;
331
+ };
332
+ readonly matchedRecordCount: {
333
+ readonly type: "integer";
334
+ readonly minimum: 0;
335
+ };
336
+ };
337
+ };
338
+ };
339
+ readonly listSemantics: {
340
+ readonly type: "string";
341
+ readonly minLength: 1;
342
+ };
343
+ readonly stopReason: {
344
+ readonly enum: readonly ["completed", "no-results", "max-pages", "max-records", "partial"];
345
+ };
346
+ };
347
+ };
348
+ export declare const USBR_RISE_FETCH_RESULTS_OUTPUT_SCHEMA: {
349
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
350
+ readonly $id: "https://schemas.tiangong.ai/data/usbr/rise-fetch-results-output.v1.json";
351
+ readonly type: "object";
352
+ readonly additionalProperties: false;
353
+ readonly required: readonly ["source", "query", "itemMetadata", "records", "pages", "stopReason"];
354
+ readonly properties: {
355
+ readonly source: {
356
+ readonly type: "object";
357
+ readonly additionalProperties: false;
358
+ readonly required: readonly ["providerId", "endpoint", "interpretationBoundary"];
359
+ readonly properties: {
360
+ readonly providerId: {
361
+ readonly const: "usbr-rise";
362
+ };
363
+ readonly endpoint: {
364
+ readonly type: "string";
365
+ readonly minLength: 1;
366
+ };
367
+ readonly interpretationBoundary: {
368
+ readonly type: "string";
369
+ readonly minLength: 1;
370
+ };
371
+ };
372
+ };
373
+ readonly query: {
374
+ readonly type: "object";
375
+ readonly additionalProperties: false;
376
+ readonly required: readonly ["itemIds", "locationId", "parameterId", "afterUtc", "beforeUtc", "orderDateTime", "includeItemMetadata", "startPage", "pageSize"];
377
+ readonly properties: {
378
+ readonly itemIds: {
379
+ readonly type: "array";
380
+ readonly items: {
381
+ readonly type: "string";
382
+ readonly minLength: 1;
383
+ };
384
+ };
385
+ readonly locationId: {
386
+ readonly type: readonly ["string", "null"];
387
+ };
388
+ readonly parameterId: {
389
+ readonly type: readonly ["string", "null"];
390
+ };
391
+ readonly afterUtc: {
392
+ readonly type: readonly ["string", "null"];
393
+ };
394
+ readonly beforeUtc: {
395
+ readonly type: readonly ["string", "null"];
396
+ };
397
+ readonly orderDateTime: {
398
+ readonly enum: readonly ["asc", "desc"];
399
+ };
400
+ readonly includeItemMetadata: {
401
+ readonly type: "boolean";
402
+ };
403
+ readonly startPage: {
404
+ readonly type: "integer";
405
+ readonly minimum: 1;
406
+ };
407
+ readonly pageSize: {
408
+ readonly type: "integer";
409
+ readonly minimum: 1;
410
+ readonly maximum: 100;
411
+ };
412
+ };
413
+ };
414
+ readonly itemMetadata: {
415
+ readonly type: "object";
416
+ readonly propertyNames: {
417
+ readonly type: "string";
418
+ readonly minLength: 1;
419
+ readonly maxLength: 100;
420
+ };
421
+ readonly additionalProperties: {
422
+ readonly type: "object";
423
+ readonly additionalProperties: false;
424
+ readonly required: string[];
425
+ readonly properties: {
426
+ readonly itemId: {
427
+ readonly type: "string";
428
+ readonly minLength: 1;
429
+ };
430
+ readonly itemTitle: {
431
+ readonly type: readonly ["string", "null"];
432
+ };
433
+ readonly itemDescription: {
434
+ readonly type: readonly ["string", "null"];
435
+ };
436
+ readonly locationId: {
437
+ readonly type: readonly ["string", "null"];
438
+ };
439
+ readonly locationName: {
440
+ readonly type: readonly ["string", "null"];
441
+ };
442
+ readonly locationSourceCode: {
443
+ readonly type: readonly ["string", "null"];
444
+ };
445
+ readonly parameterId: {
446
+ readonly type: readonly ["string", "null"];
447
+ };
448
+ readonly parameterName: {
449
+ readonly type: readonly ["string", "null"];
450
+ };
451
+ readonly parameterUnit: {
452
+ readonly type: readonly ["string", "null"];
453
+ };
454
+ readonly parameterGroup: {
455
+ readonly type: readonly ["string", "null"];
456
+ };
457
+ readonly parameterTimestep: {
458
+ readonly type: readonly ["string", "null"];
459
+ };
460
+ readonly parameterTransformation: {
461
+ readonly type: readonly ["string", "null"];
462
+ };
463
+ readonly sourceCode: {
464
+ readonly type: readonly ["string", "null"];
465
+ };
466
+ readonly temporalStartDate: {
467
+ readonly type: readonly ["string", "null"];
468
+ };
469
+ readonly temporalEndDate: {
470
+ readonly type: readonly ["string", "null"];
471
+ };
472
+ readonly landingPage: {
473
+ readonly type: readonly ["string", "null"];
474
+ };
475
+ readonly providerDisclaimer: {
476
+ readonly type: readonly ["string", "null"];
477
+ };
478
+ readonly spatial: {
479
+ readonly type: readonly ["object", "null"];
480
+ readonly additionalProperties: false;
481
+ readonly required: readonly ["type", "coordinates"];
482
+ readonly properties: {
483
+ readonly type: {
484
+ readonly const: "Point";
485
+ };
486
+ readonly coordinates: {
487
+ readonly type: "array";
488
+ readonly minItems: 2;
489
+ readonly maxItems: 2;
490
+ readonly prefixItems: readonly [{
491
+ readonly type: "number";
492
+ }, {
493
+ readonly type: "number";
494
+ }];
495
+ readonly items: false;
496
+ };
497
+ };
498
+ };
499
+ };
500
+ };
501
+ };
502
+ readonly records: {
503
+ readonly type: "array";
504
+ readonly items: {
505
+ readonly type: "object";
506
+ readonly additionalProperties: false;
507
+ readonly required: readonly ["recordId", "itemId", "locationId", "locationName", "parameterId", "parameterName", "parameterUnit", "parameterGroup", "parameterTimestep", "parameterTransformation", "sourceCode", "observedAtUtc", "value", "status", "lastUpdate", "createDate", "updateDate", "latitude", "longitude", "itemTitle", "itemDescription", "landingPage", "providerDisclaimer", "sourcePageNumber"];
508
+ readonly properties: {
509
+ readonly recordId: {
510
+ readonly type: "string";
511
+ readonly minLength: 1;
512
+ };
513
+ readonly itemId: {
514
+ readonly type: "string";
515
+ readonly minLength: 1;
516
+ };
517
+ readonly locationId: {
518
+ readonly type: readonly ["string", "null"];
519
+ };
520
+ readonly locationName: {
521
+ readonly type: readonly ["string", "null"];
522
+ };
523
+ readonly parameterId: {
524
+ readonly type: readonly ["string", "null"];
525
+ };
526
+ readonly parameterName: {
527
+ readonly type: readonly ["string", "null"];
528
+ };
529
+ readonly parameterUnit: {
530
+ readonly type: readonly ["string", "null"];
531
+ };
532
+ readonly parameterGroup: {
533
+ readonly type: readonly ["string", "null"];
534
+ };
535
+ readonly parameterTimestep: {
536
+ readonly type: readonly ["string", "null"];
537
+ };
538
+ readonly parameterTransformation: {
539
+ readonly type: readonly ["string", "null"];
540
+ };
541
+ readonly sourceCode: {
542
+ readonly type: readonly ["string", "null"];
543
+ };
544
+ readonly observedAtUtc: {
545
+ readonly type: readonly ["string", "null"];
546
+ };
547
+ readonly value: {
548
+ readonly anyOf: readonly [{
549
+ readonly type: "number";
550
+ }, {
551
+ readonly type: "string";
552
+ }, {
553
+ readonly type: "null";
554
+ }];
555
+ };
556
+ readonly status: {
557
+ readonly type: readonly ["string", "null"];
558
+ };
559
+ readonly lastUpdate: {
560
+ readonly type: readonly ["string", "null"];
561
+ };
562
+ readonly createDate: {
563
+ readonly type: readonly ["string", "null"];
564
+ };
565
+ readonly updateDate: {
566
+ readonly type: readonly ["string", "null"];
567
+ };
568
+ readonly latitude: {
569
+ readonly type: readonly ["number", "null"];
570
+ };
571
+ readonly longitude: {
572
+ readonly type: readonly ["number", "null"];
573
+ };
574
+ readonly itemTitle: {
575
+ readonly type: readonly ["string", "null"];
576
+ };
577
+ readonly itemDescription: {
578
+ readonly type: readonly ["string", "null"];
579
+ };
580
+ readonly landingPage: {
581
+ readonly type: readonly ["string", "null"];
582
+ };
583
+ readonly providerDisclaimer: {
584
+ readonly type: readonly ["string", "null"];
585
+ };
586
+ readonly sourcePageNumber: {
587
+ readonly type: "integer";
588
+ readonly minimum: 1;
589
+ };
590
+ };
591
+ };
592
+ };
593
+ readonly pages: {
594
+ readonly type: "array";
595
+ readonly items: {
596
+ readonly type: "object";
597
+ readonly additionalProperties: false;
598
+ readonly required: readonly ["itemId", "pageNumber", "providerTotalItems", "recordCount"];
599
+ readonly properties: {
600
+ readonly itemId: {
601
+ readonly type: "string";
602
+ readonly minLength: 1;
603
+ };
604
+ readonly pageNumber: {
605
+ readonly type: "integer";
606
+ readonly minimum: 1;
607
+ };
608
+ readonly providerTotalItems: {
609
+ readonly type: readonly ["integer", "null"];
610
+ readonly minimum: 0;
611
+ };
612
+ readonly recordCount: {
613
+ readonly type: "integer";
614
+ readonly minimum: 0;
615
+ };
616
+ };
617
+ };
618
+ };
619
+ readonly stopReason: {
620
+ readonly enum: readonly ["completed", "no-results", "max-pages", "max-records", "partial"];
621
+ };
622
+ };
623
+ };