@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,717 @@
1
+ export declare const REGULATIONS_GOV_SEARCH_INPUT_SCHEMA: {
2
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3
+ readonly $id: "https://schemas.tiangong.ai/data/regulations-gov/comment-search-input.v1.json";
4
+ readonly type: "object";
5
+ readonly additionalProperties: false;
6
+ readonly oneOf: readonly [{
7
+ readonly required: readonly ["postedDate"];
8
+ readonly properties: {
9
+ readonly postedDate: {};
10
+ };
11
+ }, {
12
+ readonly required: readonly ["lastModifiedDate"];
13
+ readonly properties: {
14
+ readonly lastModifiedDate: {};
15
+ };
16
+ }];
17
+ readonly properties: {
18
+ readonly postedDate: {
19
+ readonly type: "object";
20
+ readonly additionalProperties: false;
21
+ readonly required: readonly ["from", "to"];
22
+ readonly description: "Inclusive Regulations.gov posted-date window. Do not combine it with lastModifiedDate.";
23
+ readonly examples: readonly [{
24
+ readonly from: "2026-03-01";
25
+ readonly to: "2026-03-07";
26
+ }];
27
+ readonly properties: {
28
+ readonly from: {
29
+ readonly type: "string";
30
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
31
+ readonly description: "Inclusive lower posted date in YYYY-MM-DD form.";
32
+ readonly examples: readonly ["2026-03-01"];
33
+ };
34
+ readonly to: {
35
+ readonly type: "string";
36
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
37
+ readonly description: "Inclusive upper posted date in YYYY-MM-DD form.";
38
+ readonly examples: readonly ["2026-03-07"];
39
+ };
40
+ };
41
+ };
42
+ readonly lastModifiedDate: {
43
+ readonly type: "object";
44
+ readonly additionalProperties: false;
45
+ readonly required: readonly ["from", "to"];
46
+ readonly description: "Inclusive RFC3339 last-modified instant window. The CLI converts it to the provider's documented America/New_York wall-clock filter and does not combine it with postedDate.";
47
+ readonly examples: readonly [{
48
+ readonly from: "2026-03-01T05:00:00Z";
49
+ readonly to: "2026-03-02T04:59:59Z";
50
+ }];
51
+ readonly properties: {
52
+ readonly from: {
53
+ readonly type: "string";
54
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
55
+ readonly description: "Inclusive lower last-modified instant in RFC3339 form.";
56
+ readonly examples: readonly ["2026-03-01T05:00:00Z"];
57
+ };
58
+ readonly to: {
59
+ readonly type: "string";
60
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
61
+ readonly description: "Inclusive upper last-modified instant in RFC3339 form.";
62
+ readonly examples: readonly ["2026-03-02T04:59:59Z"];
63
+ };
64
+ };
65
+ };
66
+ readonly agencyId: {
67
+ readonly type: "string";
68
+ readonly pattern: "^[A-Z][A-Z0-9_-]{0,31}$";
69
+ readonly description: "Optional Regulations.gov agency acronym filter.";
70
+ readonly examples: readonly ["EPA"];
71
+ };
72
+ readonly commentOnId: {
73
+ readonly type: "string";
74
+ readonly minLength: 1;
75
+ readonly maxLength: 200;
76
+ readonly description: "Optional internal commentOnId/objectId filter for comments attached to one document.";
77
+ readonly examples: readonly ["09000064846eebaf"];
78
+ };
79
+ readonly searchTerm: {
80
+ readonly type: "string";
81
+ readonly minLength: 1;
82
+ readonly maxLength: 200;
83
+ readonly description: "Optional provider full-text search term used to narrow comment metadata.";
84
+ readonly examples: readonly ["air quality"];
85
+ };
86
+ readonly pageSize: {
87
+ readonly type: "integer";
88
+ readonly minimum: 5;
89
+ readonly maximum: 250;
90
+ readonly description: "Provider records requested per page. Regulations.gov permits 5 through 250.";
91
+ readonly examples: readonly [250];
92
+ };
93
+ readonly sortOrder: {
94
+ readonly enum: readonly ["asc", "desc"];
95
+ readonly description: "Sort direction for the selected date field; documentId is always added as a deterministic tie-breaker.";
96
+ readonly examples: readonly ["asc"];
97
+ };
98
+ };
99
+ };
100
+ export declare const REGULATIONS_GOV_DETAIL_INPUT_SCHEMA: {
101
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
102
+ readonly $id: "https://schemas.tiangong.ai/data/regulations-gov/comment-detail-input.v1.json";
103
+ readonly type: "object";
104
+ readonly additionalProperties: false;
105
+ readonly required: readonly ["commentIds", "includeAttachments"];
106
+ readonly properties: {
107
+ readonly commentIds: {
108
+ readonly type: "array";
109
+ readonly minItems: 1;
110
+ readonly maxItems: 100;
111
+ readonly uniqueItems: true;
112
+ readonly items: {
113
+ readonly type: "string";
114
+ readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,199}$";
115
+ };
116
+ readonly description: "One to 100 exact Regulations.gov public comment IDs, fetched in caller-supplied order.";
117
+ readonly examples: readonly [readonly ["EPA-HQ-OAR-2026-0001-0002"]];
118
+ };
119
+ readonly includeAttachments: {
120
+ readonly type: "boolean";
121
+ readonly description: "When true, request and normalize attachment metadata and file links; attachment bytes are never downloaded.";
122
+ readonly examples: readonly [true];
123
+ };
124
+ };
125
+ };
126
+ export declare const REGULATIONS_GOV_SEARCH_OUTPUT_SCHEMA: {
127
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
128
+ readonly $id: "https://schemas.tiangong.ai/data/regulations-gov/comment-search-output.v1.json";
129
+ readonly type: "object";
130
+ readonly additionalProperties: false;
131
+ readonly required: readonly ["source", "query", "provider", "pages", "records", "stopReason"];
132
+ readonly properties: {
133
+ readonly source: {
134
+ readonly type: "object";
135
+ readonly additionalProperties: false;
136
+ readonly required: readonly ["providerId", "service", "apiVersion", "publicComments"];
137
+ readonly properties: {
138
+ readonly providerId: {
139
+ readonly const: "regulations-gov";
140
+ };
141
+ readonly service: {
142
+ readonly const: "Regulations.gov API";
143
+ };
144
+ readonly apiVersion: {
145
+ readonly const: "v4";
146
+ };
147
+ readonly publicComments: {
148
+ readonly const: true;
149
+ };
150
+ };
151
+ };
152
+ readonly query: {
153
+ readonly type: "object";
154
+ readonly additionalProperties: false;
155
+ readonly required: readonly ["dateMode", "postedDate", "lastModifiedDate", "providerTimeZone", "agencyId", "commentOnId", "searchTerm", "pageSize", "sortOrder"];
156
+ readonly properties: {
157
+ readonly dateMode: {
158
+ readonly enum: readonly ["posted", "last-modified"];
159
+ };
160
+ readonly postedDate: {
161
+ readonly anyOf: readonly [{
162
+ readonly type: "object";
163
+ readonly additionalProperties: false;
164
+ readonly required: readonly ["from", "to"];
165
+ readonly description: "Inclusive Regulations.gov posted-date window. Do not combine it with lastModifiedDate.";
166
+ readonly examples: readonly [{
167
+ readonly from: "2026-03-01";
168
+ readonly to: "2026-03-07";
169
+ }];
170
+ readonly properties: {
171
+ readonly from: {
172
+ readonly type: "string";
173
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
174
+ readonly description: "Inclusive lower posted date in YYYY-MM-DD form.";
175
+ readonly examples: readonly ["2026-03-01"];
176
+ };
177
+ readonly to: {
178
+ readonly type: "string";
179
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
180
+ readonly description: "Inclusive upper posted date in YYYY-MM-DD form.";
181
+ readonly examples: readonly ["2026-03-07"];
182
+ };
183
+ };
184
+ }, {
185
+ readonly type: "null";
186
+ }];
187
+ };
188
+ readonly lastModifiedDate: {
189
+ readonly anyOf: readonly [{
190
+ readonly type: "object";
191
+ readonly additionalProperties: false;
192
+ readonly required: readonly ["from", "to"];
193
+ readonly description: "Inclusive RFC3339 last-modified instant window. The CLI converts it to the provider's documented America/New_York wall-clock filter and does not combine it with postedDate.";
194
+ readonly examples: readonly [{
195
+ readonly from: "2026-03-01T05:00:00Z";
196
+ readonly to: "2026-03-02T04:59:59Z";
197
+ }];
198
+ readonly properties: {
199
+ readonly from: {
200
+ readonly type: "string";
201
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
202
+ readonly description: "Inclusive lower last-modified instant in RFC3339 form.";
203
+ readonly examples: readonly ["2026-03-01T05:00:00Z"];
204
+ };
205
+ readonly to: {
206
+ readonly type: "string";
207
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
208
+ readonly description: "Inclusive upper last-modified instant in RFC3339 form.";
209
+ readonly examples: readonly ["2026-03-02T04:59:59Z"];
210
+ };
211
+ };
212
+ }, {
213
+ readonly type: "null";
214
+ }];
215
+ };
216
+ readonly providerTimeZone: {
217
+ readonly const: "America/New_York";
218
+ };
219
+ readonly agencyId: {
220
+ readonly anyOf: readonly [{
221
+ readonly type: "string";
222
+ }, {
223
+ readonly type: "null";
224
+ }];
225
+ };
226
+ readonly commentOnId: {
227
+ readonly anyOf: readonly [{
228
+ readonly type: "string";
229
+ }, {
230
+ readonly type: "null";
231
+ }];
232
+ };
233
+ readonly searchTerm: {
234
+ readonly anyOf: readonly [{
235
+ readonly type: "string";
236
+ }, {
237
+ readonly type: "null";
238
+ }];
239
+ };
240
+ readonly pageSize: {
241
+ readonly type: "integer";
242
+ readonly minimum: 5;
243
+ readonly maximum: 250;
244
+ };
245
+ readonly sortOrder: {
246
+ readonly enum: readonly ["asc", "desc"];
247
+ };
248
+ };
249
+ };
250
+ readonly provider: {
251
+ readonly type: "object";
252
+ readonly additionalProperties: false;
253
+ readonly required: readonly ["hasNextPage", "hasPreviousPage", "numberOfElements", "pageNumber", "pageSize", "totalElements", "totalPages", "firstPage", "lastPage"];
254
+ readonly properties: {
255
+ readonly hasNextPage: {
256
+ readonly type: "boolean";
257
+ };
258
+ readonly hasPreviousPage: {
259
+ readonly type: "boolean";
260
+ };
261
+ readonly numberOfElements: {
262
+ readonly type: "integer";
263
+ readonly minimum: 0;
264
+ };
265
+ readonly pageNumber: {
266
+ readonly type: "integer";
267
+ readonly minimum: 1;
268
+ };
269
+ readonly pageSize: {
270
+ readonly type: "integer";
271
+ readonly minimum: 5;
272
+ readonly maximum: 250;
273
+ };
274
+ readonly totalElements: {
275
+ readonly type: "integer";
276
+ readonly minimum: 0;
277
+ };
278
+ readonly totalPages: {
279
+ readonly type: "integer";
280
+ readonly minimum: 0;
281
+ readonly maximum: 20;
282
+ };
283
+ readonly firstPage: {
284
+ readonly type: "boolean";
285
+ };
286
+ readonly lastPage: {
287
+ readonly type: "boolean";
288
+ };
289
+ };
290
+ };
291
+ readonly pages: {
292
+ readonly type: "array";
293
+ readonly maxItems: 20;
294
+ readonly items: {
295
+ readonly type: "object";
296
+ readonly additionalProperties: false;
297
+ readonly required: readonly ["pageNumber", "inputRecords", "emittedRecords"];
298
+ readonly properties: {
299
+ readonly pageNumber: {
300
+ readonly type: "integer";
301
+ readonly minimum: 1;
302
+ };
303
+ readonly inputRecords: {
304
+ readonly type: "integer";
305
+ readonly minimum: 0;
306
+ };
307
+ readonly emittedRecords: {
308
+ readonly type: "integer";
309
+ readonly minimum: 0;
310
+ };
311
+ };
312
+ };
313
+ };
314
+ readonly records: {
315
+ readonly type: "array";
316
+ readonly maxItems: 5000;
317
+ readonly items: {
318
+ readonly type: "object";
319
+ readonly additionalProperties: false;
320
+ readonly required: readonly ["recordIndex", "sourcePageNumber", "commentId", "agencyId", "documentType", "highlightedContent", "lastModifiedDateTime", "objectId", "postedDateTime", "title", "withdrawn"];
321
+ readonly properties: {
322
+ readonly recordIndex: {
323
+ readonly type: "integer";
324
+ readonly minimum: 0;
325
+ };
326
+ readonly sourcePageNumber: {
327
+ readonly type: "integer";
328
+ readonly minimum: 1;
329
+ };
330
+ readonly commentId: {
331
+ readonly type: "string";
332
+ readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,199}$";
333
+ };
334
+ readonly agencyId: {
335
+ readonly anyOf: readonly [{
336
+ readonly type: "string";
337
+ }, {
338
+ readonly type: "null";
339
+ }];
340
+ };
341
+ readonly documentType: {
342
+ readonly anyOf: readonly [{
343
+ readonly type: "string";
344
+ }, {
345
+ readonly type: "null";
346
+ }];
347
+ };
348
+ readonly highlightedContent: {
349
+ readonly anyOf: readonly [{
350
+ readonly type: "string";
351
+ }, {
352
+ readonly type: "null";
353
+ }];
354
+ };
355
+ readonly lastModifiedDateTime: {
356
+ readonly anyOf: readonly [{
357
+ readonly type: "string";
358
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
359
+ }, {
360
+ readonly type: "null";
361
+ }];
362
+ };
363
+ readonly objectId: {
364
+ readonly anyOf: readonly [{
365
+ readonly type: "string";
366
+ }, {
367
+ readonly type: "null";
368
+ }];
369
+ };
370
+ readonly postedDateTime: {
371
+ readonly anyOf: readonly [{
372
+ readonly type: "string";
373
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
374
+ }, {
375
+ readonly type: "null";
376
+ }];
377
+ };
378
+ readonly title: {
379
+ readonly anyOf: readonly [{
380
+ readonly type: "string";
381
+ }, {
382
+ readonly type: "null";
383
+ }];
384
+ };
385
+ readonly withdrawn: {
386
+ readonly anyOf: readonly [{
387
+ readonly type: "boolean";
388
+ }, {
389
+ readonly type: "null";
390
+ }];
391
+ };
392
+ };
393
+ };
394
+ };
395
+ readonly stopReason: {
396
+ readonly enum: readonly ["completed", "no-results", "max-pages", "max-records", "partial"];
397
+ };
398
+ };
399
+ };
400
+ export declare const REGULATIONS_GOV_DETAIL_OUTPUT_SCHEMA: {
401
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
402
+ readonly $id: "https://schemas.tiangong.ai/data/regulations-gov/comment-detail-output.v1.json";
403
+ readonly type: "object";
404
+ readonly additionalProperties: false;
405
+ readonly required: readonly ["source", "query", "records", "failures", "stopReason"];
406
+ readonly properties: {
407
+ readonly source: {
408
+ readonly type: "object";
409
+ readonly additionalProperties: false;
410
+ readonly required: readonly ["providerId", "service", "apiVersion", "publicComments"];
411
+ readonly properties: {
412
+ readonly providerId: {
413
+ readonly const: "regulations-gov";
414
+ };
415
+ readonly service: {
416
+ readonly const: "Regulations.gov API";
417
+ };
418
+ readonly apiVersion: {
419
+ readonly const: "v4";
420
+ };
421
+ readonly publicComments: {
422
+ readonly const: true;
423
+ };
424
+ };
425
+ };
426
+ readonly query: {
427
+ readonly type: "object";
428
+ readonly additionalProperties: false;
429
+ readonly required: readonly ["commentIds", "includeAttachments"];
430
+ readonly properties: {
431
+ readonly commentIds: {
432
+ readonly type: "array";
433
+ readonly minItems: 1;
434
+ readonly maxItems: 100;
435
+ readonly uniqueItems: true;
436
+ readonly items: {
437
+ readonly type: "string";
438
+ readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,199}$";
439
+ };
440
+ };
441
+ readonly includeAttachments: {
442
+ readonly type: "boolean";
443
+ };
444
+ };
445
+ };
446
+ readonly records: {
447
+ readonly type: "array";
448
+ readonly maxItems: 100;
449
+ readonly items: {
450
+ readonly type: "object";
451
+ readonly additionalProperties: false;
452
+ readonly required: readonly ["recordIndex", "requestIndex", "commentId", "agencyId", "commentText", "commentOnDocumentId", "docketId", "documentType", "postedDateTime", "modifiedDateTime", "receivedDateTime", "title", "trackingNumber", "withdrawn", "reasonWithdrawn", "restriction", "submitterContext", "duplicateComments", "attachments"];
453
+ readonly properties: {
454
+ readonly recordIndex: {
455
+ readonly type: "integer";
456
+ readonly minimum: 0;
457
+ };
458
+ readonly requestIndex: {
459
+ readonly type: "integer";
460
+ readonly minimum: 0;
461
+ };
462
+ readonly commentId: {
463
+ readonly type: "string";
464
+ readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,199}$";
465
+ };
466
+ readonly agencyId: {
467
+ readonly type: "string";
468
+ readonly minLength: 1;
469
+ };
470
+ readonly commentText: {
471
+ readonly type: "string";
472
+ };
473
+ readonly commentOnDocumentId: {
474
+ readonly type: "string";
475
+ readonly minLength: 1;
476
+ };
477
+ readonly docketId: {
478
+ readonly type: "string";
479
+ readonly minLength: 1;
480
+ };
481
+ readonly documentType: {
482
+ readonly type: "string";
483
+ readonly minLength: 1;
484
+ };
485
+ readonly postedDateTime: {
486
+ readonly type: "string";
487
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
488
+ };
489
+ readonly modifiedDateTime: {
490
+ readonly anyOf: readonly [{
491
+ readonly type: "string";
492
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
493
+ }, {
494
+ readonly type: "null";
495
+ }];
496
+ };
497
+ readonly receivedDateTime: {
498
+ readonly type: "string";
499
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
500
+ };
501
+ readonly title: {
502
+ readonly type: "string";
503
+ };
504
+ readonly trackingNumber: {
505
+ readonly type: "string";
506
+ };
507
+ readonly withdrawn: {
508
+ readonly type: "boolean";
509
+ };
510
+ readonly reasonWithdrawn: {
511
+ readonly anyOf: readonly [{
512
+ readonly type: "string";
513
+ }, {
514
+ readonly type: "null";
515
+ }];
516
+ };
517
+ readonly restriction: {
518
+ readonly type: "object";
519
+ readonly additionalProperties: false;
520
+ readonly required: readonly ["type", "reason"];
521
+ readonly properties: {
522
+ readonly type: {
523
+ readonly anyOf: readonly [{
524
+ readonly type: "string";
525
+ }, {
526
+ readonly type: "null";
527
+ }];
528
+ };
529
+ readonly reason: {
530
+ readonly anyOf: readonly [{
531
+ readonly type: "string";
532
+ }, {
533
+ readonly type: "null";
534
+ }];
535
+ };
536
+ };
537
+ };
538
+ readonly submitterContext: {
539
+ readonly type: "object";
540
+ readonly additionalProperties: false;
541
+ readonly required: readonly ["organization", "governmentAgency", "governmentAgencyType"];
542
+ readonly properties: {
543
+ readonly organization: {
544
+ readonly anyOf: readonly [{
545
+ readonly type: "string";
546
+ }, {
547
+ readonly type: "null";
548
+ }];
549
+ };
550
+ readonly governmentAgency: {
551
+ readonly anyOf: readonly [{
552
+ readonly type: "string";
553
+ }, {
554
+ readonly type: "null";
555
+ }];
556
+ };
557
+ readonly governmentAgencyType: {
558
+ readonly anyOf: readonly [{
559
+ readonly type: "string";
560
+ }, {
561
+ readonly type: "null";
562
+ }];
563
+ };
564
+ };
565
+ };
566
+ readonly duplicateComments: {
567
+ readonly anyOf: readonly [{
568
+ readonly type: "integer";
569
+ readonly minimum: 0;
570
+ }, {
571
+ readonly type: "null";
572
+ }];
573
+ };
574
+ readonly attachments: {
575
+ readonly type: "array";
576
+ readonly items: {
577
+ readonly type: "object";
578
+ readonly additionalProperties: false;
579
+ readonly required: readonly ["attachmentId", "title", "agencyNote", "authors", "abstract", "order", "modifiedDateTime", "publication", "restriction", "fileFormats"];
580
+ readonly properties: {
581
+ readonly attachmentId: {
582
+ readonly type: "string";
583
+ readonly minLength: 1;
584
+ };
585
+ readonly title: {
586
+ readonly anyOf: readonly [{
587
+ readonly type: "string";
588
+ }, {
589
+ readonly type: "null";
590
+ }];
591
+ };
592
+ readonly agencyNote: {
593
+ readonly anyOf: readonly [{
594
+ readonly type: "string";
595
+ }, {
596
+ readonly type: "null";
597
+ }];
598
+ };
599
+ readonly authors: {
600
+ readonly type: "array";
601
+ readonly items: {
602
+ readonly type: "string";
603
+ };
604
+ };
605
+ readonly abstract: {
606
+ readonly anyOf: readonly [{
607
+ readonly type: "string";
608
+ }, {
609
+ readonly type: "null";
610
+ }];
611
+ };
612
+ readonly order: {
613
+ readonly anyOf: readonly [{
614
+ readonly type: "integer";
615
+ readonly minimum: 0;
616
+ }, {
617
+ readonly type: "null";
618
+ }];
619
+ };
620
+ readonly modifiedDateTime: {
621
+ readonly anyOf: readonly [{
622
+ readonly type: "string";
623
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$";
624
+ }, {
625
+ readonly type: "null";
626
+ }];
627
+ };
628
+ readonly publication: {
629
+ readonly anyOf: readonly [{
630
+ readonly type: "string";
631
+ }, {
632
+ readonly type: "null";
633
+ }];
634
+ };
635
+ readonly restriction: {
636
+ readonly type: "object";
637
+ readonly additionalProperties: false;
638
+ readonly required: readonly ["type", "reason"];
639
+ readonly properties: {
640
+ readonly type: {
641
+ readonly anyOf: readonly [{
642
+ readonly type: "string";
643
+ }, {
644
+ readonly type: "null";
645
+ }];
646
+ };
647
+ readonly reason: {
648
+ readonly anyOf: readonly [{
649
+ readonly type: "string";
650
+ }, {
651
+ readonly type: "null";
652
+ }];
653
+ };
654
+ };
655
+ };
656
+ readonly fileFormats: {
657
+ readonly type: "array";
658
+ readonly items: {
659
+ readonly type: "object";
660
+ readonly additionalProperties: false;
661
+ readonly required: readonly ["url", "format", "sizeBytes"];
662
+ readonly properties: {
663
+ readonly url: {
664
+ readonly anyOf: readonly [{
665
+ readonly type: "string";
666
+ }, {
667
+ readonly type: "null";
668
+ }];
669
+ };
670
+ readonly format: {
671
+ readonly anyOf: readonly [{
672
+ readonly type: "string";
673
+ }, {
674
+ readonly type: "null";
675
+ }];
676
+ };
677
+ readonly sizeBytes: {
678
+ readonly anyOf: readonly [{
679
+ readonly type: "integer";
680
+ readonly minimum: 0;
681
+ }, {
682
+ readonly type: "null";
683
+ }];
684
+ };
685
+ };
686
+ };
687
+ };
688
+ };
689
+ };
690
+ };
691
+ };
692
+ };
693
+ };
694
+ readonly failures: {
695
+ readonly type: "array";
696
+ readonly maxItems: 100;
697
+ readonly items: {
698
+ readonly type: "object";
699
+ readonly additionalProperties: false;
700
+ readonly required: readonly ["commentId", "code"];
701
+ readonly properties: {
702
+ readonly commentId: {
703
+ readonly type: "string";
704
+ readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,199}$";
705
+ };
706
+ readonly code: {
707
+ readonly type: "string";
708
+ readonly minLength: 1;
709
+ };
710
+ };
711
+ };
712
+ };
713
+ readonly stopReason: {
714
+ readonly enum: readonly ["completed", "partial"];
715
+ };
716
+ };
717
+ };