@onlyflows/servicenow-mcp 2.3.0-rc.1 → 2.3.0-rc.3

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 (248) hide show
  1. package/CHANGELOG.md +788 -3
  2. package/README.md +446 -41
  3. package/dist/atf-policy.d.ts +1 -1
  4. package/dist/atf-policy.d.ts.map +1 -1
  5. package/dist/atf-policy.js +2 -0
  6. package/dist/atf-policy.js.map +1 -1
  7. package/dist/call-metrics.d.ts +42 -0
  8. package/dist/call-metrics.d.ts.map +1 -0
  9. package/dist/call-metrics.js +89 -0
  10. package/dist/call-metrics.js.map +1 -0
  11. package/dist/client.d.ts +18 -14
  12. package/dist/client.d.ts.map +1 -1
  13. package/dist/client.js +51 -36
  14. package/dist/client.js.map +1 -1
  15. package/dist/code-search-snippet.d.ts +25 -0
  16. package/dist/code-search-snippet.d.ts.map +1 -0
  17. package/dist/code-search-snippet.js +67 -0
  18. package/dist/code-search-snippet.js.map +1 -0
  19. package/dist/code-search-targets.d.ts +66 -0
  20. package/dist/code-search-targets.d.ts.map +1 -0
  21. package/dist/code-search-targets.js +82 -0
  22. package/dist/code-search-targets.js.map +1 -0
  23. package/dist/config.d.ts +1 -1
  24. package/dist/config.d.ts.map +1 -1
  25. package/dist/credential-tables.d.ts +32 -0
  26. package/dist/credential-tables.d.ts.map +1 -0
  27. package/dist/credential-tables.js +58 -0
  28. package/dist/credential-tables.js.map +1 -0
  29. package/dist/encoded-query-policy.d.ts +9 -0
  30. package/dist/encoded-query-policy.d.ts.map +1 -1
  31. package/dist/encoded-query-policy.js +27 -2
  32. package/dist/encoded-query-policy.js.map +1 -1
  33. package/dist/execution-context.d.ts +14 -0
  34. package/dist/execution-context.d.ts.map +1 -1
  35. package/dist/execution-context.js +8 -0
  36. package/dist/execution-context.js.map +1 -1
  37. package/dist/field-policy.d.ts +44 -1
  38. package/dist/field-policy.d.ts.map +1 -1
  39. package/dist/field-policy.js +623 -35
  40. package/dist/field-policy.js.map +1 -1
  41. package/dist/hidden-values.d.ts +225 -0
  42. package/dist/hidden-values.d.ts.map +1 -0
  43. package/dist/hidden-values.js +748 -0
  44. package/dist/hidden-values.js.map +1 -0
  45. package/dist/http-entrypoint.d.ts.map +1 -1
  46. package/dist/http-entrypoint.js +7 -0
  47. package/dist/http-entrypoint.js.map +1 -1
  48. package/dist/http-observability.js +1 -0
  49. package/dist/http-observability.js.map +1 -1
  50. package/dist/http-runtime.js +16 -0
  51. package/dist/http-runtime.js.map +1 -1
  52. package/dist/index.js +7 -0
  53. package/dist/index.js.map +1 -1
  54. package/dist/metadata-cache.d.ts +135 -7
  55. package/dist/metadata-cache.d.ts.map +1 -1
  56. package/dist/metadata-cache.js +357 -21
  57. package/dist/metadata-cache.js.map +1 -1
  58. package/dist/policy-card.d.ts +16 -1
  59. package/dist/policy-card.d.ts.map +1 -1
  60. package/dist/policy-card.js +15 -2
  61. package/dist/policy-card.js.map +1 -1
  62. package/dist/profile-admin.d.ts +18 -0
  63. package/dist/profile-admin.d.ts.map +1 -1
  64. package/dist/profile-admin.js +26 -1
  65. package/dist/profile-admin.js.map +1 -1
  66. package/dist/profile-manager.d.ts +13 -1
  67. package/dist/profile-manager.d.ts.map +1 -1
  68. package/dist/profile-manager.js +23 -1
  69. package/dist/profile-manager.js.map +1 -1
  70. package/dist/response-too-large.d.ts +23 -0
  71. package/dist/response-too-large.d.ts.map +1 -0
  72. package/dist/response-too-large.js +42 -0
  73. package/dist/response-too-large.js.map +1 -0
  74. package/dist/risky-grants.d.ts +6 -2
  75. package/dist/risky-grants.d.ts.map +1 -1
  76. package/dist/risky-grants.js +58 -5
  77. package/dist/risky-grants.js.map +1 -1
  78. package/dist/setup-prompts.js +1 -1
  79. package/dist/setup-prompts.js.map +1 -1
  80. package/dist/setup.d.ts +4 -0
  81. package/dist/setup.d.ts.map +1 -1
  82. package/dist/setup.js +176 -68
  83. package/dist/setup.js.map +1 -1
  84. package/dist/structured-query.d.ts +61 -2
  85. package/dist/structured-query.d.ts.map +1 -1
  86. package/dist/structured-query.js +382 -36
  87. package/dist/structured-query.js.map +1 -1
  88. package/dist/table-policy.d.ts +75 -2
  89. package/dist/table-policy.d.ts.map +1 -1
  90. package/dist/table-policy.js +184 -15
  91. package/dist/table-policy.js.map +1 -1
  92. package/dist/tool-error.d.ts +47 -4
  93. package/dist/tool-error.d.ts.map +1 -1
  94. package/dist/tool-error.js +104 -4
  95. package/dist/tool-error.js.map +1 -1
  96. package/dist/tool-table-access.d.ts +9 -2
  97. package/dist/tool-table-access.d.ts.map +1 -1
  98. package/dist/tool-table-access.js +118 -36
  99. package/dist/tool-table-access.js.map +1 -1
  100. package/dist/tools/aggregate.js +2 -2
  101. package/dist/tools/aggregate.js.map +1 -1
  102. package/dist/tools/all-fields-cap.d.ts.map +1 -1
  103. package/dist/tools/all-fields-cap.js +29 -7
  104. package/dist/tools/all-fields-cap.js.map +1 -1
  105. package/dist/tools/atf-author-module.d.ts +1 -7
  106. package/dist/tools/atf-author-module.d.ts.map +1 -1
  107. package/dist/tools/atf-author-module.js +16 -7
  108. package/dist/tools/atf-author-module.js.map +1 -1
  109. package/dist/tools/atf-contracts.d.ts +69 -4
  110. package/dist/tools/atf-contracts.d.ts.map +1 -1
  111. package/dist/tools/atf-contracts.js +32 -2
  112. package/dist/tools/atf-contracts.js.map +1 -1
  113. package/dist/tools/atf-renderers.js +2 -1
  114. package/dist/tools/atf-renderers.js.map +1 -1
  115. package/dist/tools/atf-results-module.d.ts.map +1 -1
  116. package/dist/tools/atf-results-module.js +5 -3
  117. package/dist/tools/atf-results-module.js.map +1 -1
  118. package/dist/tools/atf-run-module.js +3 -2
  119. package/dist/tools/atf-run-module.js.map +1 -1
  120. package/dist/tools/atf-shared.d.ts +6 -0
  121. package/dist/tools/atf-shared.d.ts.map +1 -1
  122. package/dist/tools/atf-shared.js +49 -10
  123. package/dist/tools/atf-shared.js.map +1 -1
  124. package/dist/tools/atf-step-catalog.d.ts +13 -8
  125. package/dist/tools/atf-step-catalog.d.ts.map +1 -1
  126. package/dist/tools/atf-step-catalog.js +169 -5
  127. package/dist/tools/atf-step-catalog.js.map +1 -1
  128. package/dist/tools/batch.d.ts.map +1 -1
  129. package/dist/tools/batch.js +25 -7
  130. package/dist/tools/batch.js.map +1 -1
  131. package/dist/tools/catalog.d.ts.map +1 -1
  132. package/dist/tools/catalog.js +2 -1
  133. package/dist/tools/catalog.js.map +1 -1
  134. package/dist/tools/codesearch.d.ts +2 -2
  135. package/dist/tools/codesearch.d.ts.map +1 -1
  136. package/dist/tools/codesearch.js +536 -67
  137. package/dist/tools/codesearch.js.map +1 -1
  138. package/dist/tools/flow-view-contracts.d.ts +59 -3
  139. package/dist/tools/flow-view-contracts.d.ts.map +1 -1
  140. package/dist/tools/flow-view-contracts.js +34 -2
  141. package/dist/tools/flow-view-contracts.js.map +1 -1
  142. package/dist/tools/flow-view-graph.d.ts +14 -0
  143. package/dist/tools/flow-view-graph.d.ts.map +1 -1
  144. package/dist/tools/flow-view-graph.js +43 -1
  145. package/dist/tools/flow-view-graph.js.map +1 -1
  146. package/dist/tools/flow-view-module.js +2 -2
  147. package/dist/tools/flow-view-module.js.map +1 -1
  148. package/dist/tools/flow-view-policy.d.ts +3 -3
  149. package/dist/tools/flow-view-policy.d.ts.map +1 -1
  150. package/dist/tools/flow-view-policy.js +5 -4
  151. package/dist/tools/flow-view-policy.js.map +1 -1
  152. package/dist/tools/flow-view-renderers.d.ts.map +1 -1
  153. package/dist/tools/flow-view-renderers.js +9 -21
  154. package/dist/tools/flow-view-renderers.js.map +1 -1
  155. package/dist/tools/get-module.js +1 -1
  156. package/dist/tools/get-module.js.map +1 -1
  157. package/dist/tools/index.d.ts.map +1 -1
  158. package/dist/tools/index.js +116 -25
  159. package/dist/tools/index.js.map +1 -1
  160. package/dist/tools/platform-view-contracts.d.ts +189 -0
  161. package/dist/tools/platform-view-contracts.d.ts.map +1 -0
  162. package/dist/tools/platform-view-contracts.js +353 -0
  163. package/dist/tools/platform-view-contracts.js.map +1 -0
  164. package/dist/tools/platform-view-evaluate.d.ts +219 -0
  165. package/dist/tools/platform-view-evaluate.d.ts.map +1 -0
  166. package/dist/tools/platform-view-evaluate.js +1346 -0
  167. package/dist/tools/platform-view-evaluate.js.map +1 -0
  168. package/dist/tools/platform-view-module.d.ts +28 -0
  169. package/dist/tools/platform-view-module.d.ts.map +1 -0
  170. package/dist/tools/platform-view-module.js +111 -0
  171. package/dist/tools/platform-view-module.js.map +1 -0
  172. package/dist/tools/platform-view-scan.d.ts +57 -0
  173. package/dist/tools/platform-view-scan.d.ts.map +1 -0
  174. package/dist/tools/platform-view-scan.js +375 -0
  175. package/dist/tools/platform-view-scan.js.map +1 -0
  176. package/dist/tools/platform-view-upgrades.d.ts +152 -0
  177. package/dist/tools/platform-view-upgrades.d.ts.map +1 -0
  178. package/dist/tools/platform-view-upgrades.js +545 -0
  179. package/dist/tools/platform-view-upgrades.js.map +1 -0
  180. package/dist/tools/profile.d.ts.map +1 -1
  181. package/dist/tools/profile.js +1 -0
  182. package/dist/tools/profile.js.map +1 -1
  183. package/dist/tools/query-module.d.ts.map +1 -1
  184. package/dist/tools/query-module.js +231 -64
  185. package/dist/tools/query-module.js.map +1 -1
  186. package/dist/tools/record-write-shared.d.ts.map +1 -1
  187. package/dist/tools/record-write-shared.js +4 -3
  188. package/dist/tools/record-write-shared.js.map +1 -1
  189. package/dist/tools/result-envelope.d.ts +429 -38
  190. package/dist/tools/result-envelope.d.ts.map +1 -1
  191. package/dist/tools/result-envelope.js +372 -36
  192. package/dist/tools/result-envelope.js.map +1 -1
  193. package/dist/tools/schema-module.d.ts.map +1 -1
  194. package/dist/tools/schema-module.js +1 -1
  195. package/dist/tools/schema-module.js.map +1 -1
  196. package/dist/tools/syslog-cursor.d.ts +61 -0
  197. package/dist/tools/syslog-cursor.d.ts.map +1 -0
  198. package/dist/tools/syslog-cursor.js +146 -0
  199. package/dist/tools/syslog-cursor.js.map +1 -0
  200. package/dist/tools/syslog.d.ts +2 -0
  201. package/dist/tools/syslog.d.ts.map +1 -1
  202. package/dist/tools/syslog.js +126 -2
  203. package/dist/tools/syslog.js.map +1 -1
  204. package/dist/tools/truncation-hint.d.ts +125 -0
  205. package/dist/tools/truncation-hint.d.ts.map +1 -0
  206. package/dist/tools/truncation-hint.js +298 -0
  207. package/dist/tools/truncation-hint.js.map +1 -0
  208. package/dist/unknown-filter-fields.d.ts +52 -0
  209. package/dist/unknown-filter-fields.d.ts.map +1 -0
  210. package/dist/unknown-filter-fields.js +87 -0
  211. package/dist/unknown-filter-fields.js.map +1 -0
  212. package/dist/update-set-eval/engine.d.ts +29 -0
  213. package/dist/update-set-eval/engine.d.ts.map +1 -0
  214. package/dist/update-set-eval/engine.js +405 -0
  215. package/dist/update-set-eval/engine.js.map +1 -0
  216. package/dist/update-set-eval/prepare.d.ts +72 -0
  217. package/dist/update-set-eval/prepare.d.ts.map +1 -0
  218. package/dist/update-set-eval/prepare.js +216 -0
  219. package/dist/update-set-eval/prepare.js.map +1 -0
  220. package/dist/update-set-eval/rules.d.ts +126 -0
  221. package/dist/update-set-eval/rules.d.ts.map +1 -0
  222. package/dist/update-set-eval/rules.js +927 -0
  223. package/dist/update-set-eval/rules.js.map +1 -0
  224. package/dist/update-set-eval/script-scan.d.ts +65 -0
  225. package/dist/update-set-eval/script-scan.d.ts.map +1 -0
  226. package/dist/update-set-eval/script-scan.js +378 -0
  227. package/dist/update-set-eval/script-scan.js.map +1 -0
  228. package/dist/update-set-eval/secret-patterns.d.ts +75 -0
  229. package/dist/update-set-eval/secret-patterns.d.ts.map +1 -0
  230. package/dist/update-set-eval/secret-patterns.js +570 -0
  231. package/dist/update-set-eval/secret-patterns.js.map +1 -0
  232. package/dist/update-set-eval/types.d.ts +181 -0
  233. package/dist/update-set-eval/types.d.ts.map +1 -0
  234. package/dist/update-set-eval/types.js +20 -0
  235. package/dist/update-set-eval/types.js.map +1 -0
  236. package/dist/update-set-eval/xml-reader.d.ts +117 -0
  237. package/dist/update-set-eval/xml-reader.d.ts.map +1 -0
  238. package/dist/update-set-eval/xml-reader.js +561 -0
  239. package/dist/update-set-eval/xml-reader.js.map +1 -0
  240. package/dist/version.d.ts +1 -1
  241. package/dist/version.js +1 -1
  242. package/docs/CLIENT-SETUP.md +30 -7
  243. package/docs/FLOW-VIEW.md +14 -5
  244. package/docs/PRODUCTION-SECURITY.md +84 -1
  245. package/docs/PROFILE-CREDENTIALS.md +10 -4
  246. package/docs/V2-MIGRATION.md +1 -1
  247. package/package.json +1 -1
  248. package/server.json +2 -2
@@ -1,6 +1,7 @@
1
1
  /** Shared SNSDK-33 structured-result contracts and compatibility adapter. */
2
2
  import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3
3
  import { z } from "zod";
4
+ import type { CallMetricsSnapshot } from "../call-metrics.js";
4
5
  export declare const DEFAULT_RESULT_RECORD_LIMIT = 1000;
5
6
  export declare const DEFAULT_RESULT_BYTE_LIMIT = 100000;
6
7
  export declare const ATTACHMENT_RESULT_BYTE_LIMIT: number;
@@ -18,9 +19,20 @@ export declare const resultPaginationSchema: z.ZodUnion<readonly [z.ZodObject<{
18
19
  order_by: z.ZodArray<z.ZodString>;
19
20
  }, z.core.$strict>]>;
20
21
  export declare const resultMetadataSchema: z.ZodObject<{
22
+ cache: z.ZodOptional<z.ZodEnum<{
23
+ hit: "hit";
24
+ miss: "miss";
25
+ bypass: "bypass";
26
+ mixed: "mixed";
27
+ }>>;
28
+ timing: z.ZodOptional<z.ZodObject<{
29
+ total_ms: z.ZodNumber;
30
+ upstream_ms: z.ZodNumber;
31
+ watermark_ms: z.ZodNumber;
32
+ }, z.core.$strict>>;
21
33
  kind: z.ZodEnum<{
22
- collection: "collection";
23
34
  operation: "operation";
35
+ collection: "collection";
24
36
  single: "single";
25
37
  }>;
26
38
  record_count: z.ZodNumber;
@@ -52,9 +64,20 @@ export declare const resultMetadataSchema: z.ZodObject<{
52
64
  export declare function withStructuredResultEnvelope<TSchema extends z.ZodType>(dataSchema: TSchema): z.ZodObject<Omit<{
53
65
  data: TSchema;
54
66
  metadata: z.ZodObject<{
67
+ cache: z.ZodOptional<z.ZodEnum<{
68
+ hit: "hit";
69
+ miss: "miss";
70
+ bypass: "bypass";
71
+ mixed: "mixed";
72
+ }>>;
73
+ timing: z.ZodOptional<z.ZodObject<{
74
+ total_ms: z.ZodNumber;
75
+ upstream_ms: z.ZodNumber;
76
+ watermark_ms: z.ZodNumber;
77
+ }, z.core.$strict>>;
55
78
  kind: z.ZodEnum<{
56
- collection: "collection";
57
79
  operation: "operation";
80
+ collection: "collection";
58
81
  single: "single";
59
82
  }>;
60
83
  record_count: z.ZodNumber;
@@ -193,6 +216,7 @@ declare const productionDataSchemas: Readonly<{
193
216
  truncated: z.ZodOptional<z.ZodBoolean>;
194
217
  dropped_records: z.ZodOptional<z.ZodNumber>;
195
218
  results: z.ZodArray<z.ZodUnknown>;
219
+ cursor: z.ZodOptional<z.ZodString>;
196
220
  }, z.core.$strict>;
197
221
  sn_codesearch: z.ZodObject<{
198
222
  results: z.ZodArray<z.ZodUnknown>;
@@ -214,17 +238,21 @@ declare const productionDataSchemas: Readonly<{
214
238
  }, z.core.$strict>;
215
239
  sn_atf_run: z.ZodObject<{
216
240
  outcome: z.ZodEnum<{
241
+ unavailable: "unavailable";
217
242
  running: "running";
218
243
  completed: "completed";
219
- unavailable: "unavailable";
220
244
  }>;
221
245
  progress_id: z.ZodOptional<z.ZodString>;
222
246
  result_id: z.ZodOptional<z.ZodString>;
223
247
  suite_id: z.ZodOptional<z.ZodString>;
224
248
  suite_name: z.ZodOptional<z.ZodString>;
249
+ result_ref: z.ZodOptional<z.ZodObject<{
250
+ table: z.ZodLiteral<"sys_atf_test_suite_result">;
251
+ sys_id: z.ZodString;
252
+ }, z.core.$strict>>;
253
+ advice: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
254
  run: z.ZodOptional<z.ZodObject<{
226
255
  runId: z.ZodString;
227
- suiteId: z.ZodString;
228
256
  startedAt: z.ZodString;
229
257
  finishedAt: z.ZodOptional<z.ZodString>;
230
258
  status: z.ZodEnum<{
@@ -258,6 +286,7 @@ declare const productionDataSchemas: Readonly<{
258
286
  }>;
259
287
  firstFailure: z.ZodOptional<z.ZodString>;
260
288
  }, z.core.$strict>>;
289
+ suiteId: z.ZodOptional<z.ZodString>;
261
290
  }, z.core.$strict>>;
262
291
  failures: z.ZodArray<z.ZodObject<{
263
292
  test_id: z.ZodString;
@@ -314,17 +343,21 @@ declare const productionDataSchemas: Readonly<{
314
343
  }, z.core.$strict>>;
315
344
  execution: z.ZodOptional<z.ZodObject<{
316
345
  outcome: z.ZodEnum<{
346
+ unavailable: "unavailable";
317
347
  running: "running";
318
348
  completed: "completed";
319
- unavailable: "unavailable";
320
349
  }>;
321
350
  progress_id: z.ZodOptional<z.ZodString>;
322
351
  result_id: z.ZodOptional<z.ZodString>;
323
352
  suite_id: z.ZodOptional<z.ZodString>;
324
353
  suite_name: z.ZodOptional<z.ZodString>;
354
+ result_ref: z.ZodOptional<z.ZodObject<{
355
+ table: z.ZodLiteral<"sys_atf_test_suite_result">;
356
+ sys_id: z.ZodString;
357
+ }, z.core.$strict>>;
358
+ advice: z.ZodOptional<z.ZodArray<z.ZodString>>;
325
359
  run: z.ZodOptional<z.ZodObject<{
326
360
  runId: z.ZodString;
327
- suiteId: z.ZodString;
328
361
  startedAt: z.ZodString;
329
362
  finishedAt: z.ZodOptional<z.ZodString>;
330
363
  status: z.ZodEnum<{
@@ -358,6 +391,7 @@ declare const productionDataSchemas: Readonly<{
358
391
  }>;
359
392
  firstFailure: z.ZodOptional<z.ZodString>;
360
393
  }, z.core.$strict>>;
394
+ suiteId: z.ZodOptional<z.ZodString>;
361
395
  }, z.core.$strict>>;
362
396
  failures: z.ZodArray<z.ZodObject<{
363
397
  test_id: z.ZodString;
@@ -483,12 +517,17 @@ declare const productionDataSchemas: Readonly<{
483
517
  rollback_failed: z.ZodArray<z.ZodString>;
484
518
  uncertain_insert: z.ZodBoolean;
485
519
  message: z.ZodOptional<z.ZodString>;
520
+ advice: z.ZodOptional<z.ZodArray<z.ZodString>>;
486
521
  }, z.core.$strict>;
487
522
  sn_flow_view: z.ZodObject<{
488
523
  schema_version: z.ZodLiteral<1>;
489
524
  source: z.ZodEnum<{
490
525
  table: "table";
491
526
  }>;
527
+ ref: z.ZodOptional<z.ZodObject<{
528
+ table: z.ZodLiteral<"sys_hub_flow">;
529
+ sys_id: z.ZodString;
530
+ }, z.core.$strict>>;
492
531
  flows: z.ZodArray<z.ZodObject<{
493
532
  index: z.ZodNumber;
494
533
  source: z.ZodEnum<{
@@ -711,9 +750,9 @@ declare const productionDataSchemas: Readonly<{
711
750
  not_expanded: z.ZodOptional<z.ZodEnum<{
712
751
  not_found: "not_found";
713
752
  timeout: "timeout";
753
+ too_large: "too_large";
714
754
  limit: "limit";
715
755
  depth: "depth";
716
- too_large: "too_large";
717
756
  cycle: "cycle";
718
757
  denied: "denied";
719
758
  }>>;
@@ -774,8 +813,8 @@ declare const productionDataSchemas: Readonly<{
774
813
  include_inputs: z.ZodBoolean;
775
814
  max_nodes: z.ZodNumber;
776
815
  format: z.ZodEnum<{
777
- both: "both";
778
816
  mermaid: "mermaid";
817
+ both: "both";
779
818
  outline: "outline";
780
819
  }>;
781
820
  }, z.core.$strict>;
@@ -808,6 +847,30 @@ declare const productionDataSchemas: Readonly<{
808
847
  input_values_incomplete: "input_values_incomplete";
809
848
  subflow_timeout: "subflow_timeout";
810
849
  }>>;
850
+ warning_details: z.ZodOptional<z.ZodArray<z.ZodObject<{
851
+ code: z.ZodEnum<{
852
+ subflow_cycle: "subflow_cycle";
853
+ subflow_not_found: "subflow_not_found";
854
+ subflow_denied: "subflow_denied";
855
+ orphan_steps: "orphan_steps";
856
+ unknown_logic_type: "unknown_logic_type";
857
+ items_dropped_invalid: "items_dropped_invalid";
858
+ gzip_decode_failed: "gzip_decode_failed";
859
+ label_cache_unavailable: "label_cache_unavailable";
860
+ flow_version_unknown: "flow_version_unknown";
861
+ subflow_too_large: "subflow_too_large";
862
+ inputs_omitted_too_large: "inputs_omitted_too_large";
863
+ flow_too_large: "flow_too_large";
864
+ input_values_incomplete: "input_values_incomplete";
865
+ subflow_timeout: "subflow_timeout";
866
+ }>;
867
+ message: z.ZodString;
868
+ }, z.core.$strict>>>;
869
+ diagram: z.ZodOptional<z.ZodObject<{
870
+ format: z.ZodLiteral<"mermaid">;
871
+ source: z.ZodOptional<z.ZodString>;
872
+ note: z.ZodOptional<z.ZodString>;
873
+ }, z.core.$strict>>;
811
874
  counts: z.ZodObject<{
812
875
  steps_seen: z.ZodNumber;
813
876
  nodes_returned: z.ZodNumber;
@@ -845,9 +908,20 @@ export declare const productionToolOutputSchemas: Readonly<{
845
908
  results: z.ZodArray<z.ZodUnknown>;
846
909
  }, z.core.$strict>;
847
910
  metadata: z.ZodObject<{
911
+ cache: z.ZodOptional<z.ZodEnum<{
912
+ hit: "hit";
913
+ miss: "miss";
914
+ bypass: "bypass";
915
+ mixed: "mixed";
916
+ }>>;
917
+ timing: z.ZodOptional<z.ZodObject<{
918
+ total_ms: z.ZodNumber;
919
+ upstream_ms: z.ZodNumber;
920
+ watermark_ms: z.ZodNumber;
921
+ }, z.core.$strict>>;
848
922
  kind: z.ZodEnum<{
849
- collection: "collection";
850
923
  operation: "operation";
924
+ collection: "collection";
851
925
  single: "single";
852
926
  }>;
853
927
  record_count: z.ZodNumber;
@@ -887,9 +961,20 @@ export declare const productionToolOutputSchemas: Readonly<{
887
961
  hint: z.ZodOptional<z.ZodString>;
888
962
  }, z.core.$strict>;
889
963
  metadata: z.ZodObject<{
964
+ cache: z.ZodOptional<z.ZodEnum<{
965
+ hit: "hit";
966
+ miss: "miss";
967
+ bypass: "bypass";
968
+ mixed: "mixed";
969
+ }>>;
970
+ timing: z.ZodOptional<z.ZodObject<{
971
+ total_ms: z.ZodNumber;
972
+ upstream_ms: z.ZodNumber;
973
+ watermark_ms: z.ZodNumber;
974
+ }, z.core.$strict>>;
890
975
  kind: z.ZodEnum<{
891
- collection: "collection";
892
976
  operation: "operation";
977
+ collection: "collection";
893
978
  single: "single";
894
979
  }>;
895
980
  record_count: z.ZodNumber;
@@ -931,9 +1016,20 @@ export declare const productionToolOutputSchemas: Readonly<{
931
1016
  record: z.ZodRecord<z.ZodString, z.ZodUnknown>;
932
1017
  }, z.core.$strict>;
933
1018
  metadata: z.ZodObject<{
1019
+ cache: z.ZodOptional<z.ZodEnum<{
1020
+ hit: "hit";
1021
+ miss: "miss";
1022
+ bypass: "bypass";
1023
+ mixed: "mixed";
1024
+ }>>;
1025
+ timing: z.ZodOptional<z.ZodObject<{
1026
+ total_ms: z.ZodNumber;
1027
+ upstream_ms: z.ZodNumber;
1028
+ watermark_ms: z.ZodNumber;
1029
+ }, z.core.$strict>>;
934
1030
  kind: z.ZodEnum<{
935
- collection: "collection";
936
1031
  operation: "operation";
1032
+ collection: "collection";
937
1033
  single: "single";
938
1034
  }>;
939
1035
  record_count: z.ZodNumber;
@@ -973,9 +1069,20 @@ export declare const productionToolOutputSchemas: Readonly<{
973
1069
  record: z.ZodRecord<z.ZodString, z.ZodUnknown>;
974
1070
  }, z.core.$strict>;
975
1071
  metadata: z.ZodObject<{
1072
+ cache: z.ZodOptional<z.ZodEnum<{
1073
+ hit: "hit";
1074
+ miss: "miss";
1075
+ bypass: "bypass";
1076
+ mixed: "mixed";
1077
+ }>>;
1078
+ timing: z.ZodOptional<z.ZodObject<{
1079
+ total_ms: z.ZodNumber;
1080
+ upstream_ms: z.ZodNumber;
1081
+ watermark_ms: z.ZodNumber;
1082
+ }, z.core.$strict>>;
976
1083
  kind: z.ZodEnum<{
977
- collection: "collection";
978
1084
  operation: "operation";
1085
+ collection: "collection";
979
1086
  single: "single";
980
1087
  }>;
981
1088
  record_count: z.ZodNumber;
@@ -1019,9 +1126,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1019
1126
  }>;
1020
1127
  }, z.core.$strict>;
1021
1128
  metadata: z.ZodObject<{
1129
+ cache: z.ZodOptional<z.ZodEnum<{
1130
+ hit: "hit";
1131
+ miss: "miss";
1132
+ bypass: "bypass";
1133
+ mixed: "mixed";
1134
+ }>>;
1135
+ timing: z.ZodOptional<z.ZodObject<{
1136
+ total_ms: z.ZodNumber;
1137
+ upstream_ms: z.ZodNumber;
1138
+ watermark_ms: z.ZodNumber;
1139
+ }, z.core.$strict>>;
1022
1140
  kind: z.ZodEnum<{
1023
- collection: "collection";
1024
1141
  operation: "operation";
1142
+ collection: "collection";
1025
1143
  single: "single";
1026
1144
  }>;
1027
1145
  record_count: z.ZodNumber;
@@ -1065,9 +1183,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1065
1183
  }>;
1066
1184
  }, z.core.$strict>;
1067
1185
  metadata: z.ZodObject<{
1186
+ cache: z.ZodOptional<z.ZodEnum<{
1187
+ hit: "hit";
1188
+ miss: "miss";
1189
+ bypass: "bypass";
1190
+ mixed: "mixed";
1191
+ }>>;
1192
+ timing: z.ZodOptional<z.ZodObject<{
1193
+ total_ms: z.ZodNumber;
1194
+ upstream_ms: z.ZodNumber;
1195
+ watermark_ms: z.ZodNumber;
1196
+ }, z.core.$strict>>;
1068
1197
  kind: z.ZodEnum<{
1069
- collection: "collection";
1070
1198
  operation: "operation";
1199
+ collection: "collection";
1071
1200
  single: "single";
1072
1201
  }>;
1073
1202
  record_count: z.ZodNumber;
@@ -1108,9 +1237,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1108
1237
  table: z.ZodString;
1109
1238
  }, z.core.$strict>;
1110
1239
  metadata: z.ZodObject<{
1240
+ cache: z.ZodOptional<z.ZodEnum<{
1241
+ hit: "hit";
1242
+ miss: "miss";
1243
+ bypass: "bypass";
1244
+ mixed: "mixed";
1245
+ }>>;
1246
+ timing: z.ZodOptional<z.ZodObject<{
1247
+ total_ms: z.ZodNumber;
1248
+ upstream_ms: z.ZodNumber;
1249
+ watermark_ms: z.ZodNumber;
1250
+ }, z.core.$strict>>;
1111
1251
  kind: z.ZodEnum<{
1112
- collection: "collection";
1113
1252
  operation: "operation";
1253
+ collection: "collection";
1114
1254
  single: "single";
1115
1255
  }>;
1116
1256
  record_count: z.ZodNumber;
@@ -1164,9 +1304,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1164
1304
  failed: z.ZodOptional<z.ZodNumber>;
1165
1305
  }, z.core.$strict>;
1166
1306
  metadata: z.ZodObject<{
1307
+ cache: z.ZodOptional<z.ZodEnum<{
1308
+ hit: "hit";
1309
+ miss: "miss";
1310
+ bypass: "bypass";
1311
+ mixed: "mixed";
1312
+ }>>;
1313
+ timing: z.ZodOptional<z.ZodObject<{
1314
+ total_ms: z.ZodNumber;
1315
+ upstream_ms: z.ZodNumber;
1316
+ watermark_ms: z.ZodNumber;
1317
+ }, z.core.$strict>>;
1167
1318
  kind: z.ZodEnum<{
1168
- collection: "collection";
1169
1319
  operation: "operation";
1320
+ collection: "collection";
1170
1321
  single: "single";
1171
1322
  }>;
1172
1323
  record_count: z.ZodNumber;
@@ -1205,9 +1356,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1205
1356
  result: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
1206
1357
  }, z.core.$strict>;
1207
1358
  metadata: z.ZodObject<{
1359
+ cache: z.ZodOptional<z.ZodEnum<{
1360
+ hit: "hit";
1361
+ miss: "miss";
1362
+ bypass: "bypass";
1363
+ mixed: "mixed";
1364
+ }>>;
1365
+ timing: z.ZodOptional<z.ZodObject<{
1366
+ total_ms: z.ZodNumber;
1367
+ upstream_ms: z.ZodNumber;
1368
+ watermark_ms: z.ZodNumber;
1369
+ }, z.core.$strict>>;
1208
1370
  kind: z.ZodEnum<{
1209
- collection: "collection";
1210
1371
  operation: "operation";
1372
+ collection: "collection";
1211
1373
  single: "single";
1212
1374
  }>;
1213
1375
  record_count: z.ZodNumber;
@@ -1246,9 +1408,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1246
1408
  fields: z.ZodArray<z.ZodUnknown>;
1247
1409
  }, z.core.$strict>;
1248
1410
  metadata: z.ZodObject<{
1411
+ cache: z.ZodOptional<z.ZodEnum<{
1412
+ hit: "hit";
1413
+ miss: "miss";
1414
+ bypass: "bypass";
1415
+ mixed: "mixed";
1416
+ }>>;
1417
+ timing: z.ZodOptional<z.ZodObject<{
1418
+ total_ms: z.ZodNumber;
1419
+ upstream_ms: z.ZodNumber;
1420
+ watermark_ms: z.ZodNumber;
1421
+ }, z.core.$strict>>;
1249
1422
  kind: z.ZodEnum<{
1250
- collection: "collection";
1251
1423
  operation: "operation";
1424
+ collection: "collection";
1252
1425
  single: "single";
1253
1426
  }>;
1254
1427
  record_count: z.ZodNumber;
@@ -1287,9 +1460,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1287
1460
  health: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1288
1461
  }, z.core.$strict>;
1289
1462
  metadata: z.ZodObject<{
1463
+ cache: z.ZodOptional<z.ZodEnum<{
1464
+ hit: "hit";
1465
+ miss: "miss";
1466
+ bypass: "bypass";
1467
+ mixed: "mixed";
1468
+ }>>;
1469
+ timing: z.ZodOptional<z.ZodObject<{
1470
+ total_ms: z.ZodNumber;
1471
+ upstream_ms: z.ZodNumber;
1472
+ watermark_ms: z.ZodNumber;
1473
+ }, z.core.$strict>>;
1290
1474
  kind: z.ZodEnum<{
1291
- collection: "collection";
1292
1475
  operation: "operation";
1476
+ collection: "collection";
1293
1477
  single: "single";
1294
1478
  }>;
1295
1479
  record_count: z.ZodNumber;
@@ -1333,9 +1517,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1333
1517
  result: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
1334
1518
  }, z.core.$strict>;
1335
1519
  metadata: z.ZodObject<{
1520
+ cache: z.ZodOptional<z.ZodEnum<{
1521
+ hit: "hit";
1522
+ miss: "miss";
1523
+ bypass: "bypass";
1524
+ mixed: "mixed";
1525
+ }>>;
1526
+ timing: z.ZodOptional<z.ZodObject<{
1527
+ total_ms: z.ZodNumber;
1528
+ upstream_ms: z.ZodNumber;
1529
+ watermark_ms: z.ZodNumber;
1530
+ }, z.core.$strict>>;
1336
1531
  kind: z.ZodEnum<{
1337
- collection: "collection";
1338
1532
  operation: "operation";
1533
+ collection: "collection";
1339
1534
  single: "single";
1340
1535
  }>;
1341
1536
  record_count: z.ZodNumber;
@@ -1377,9 +1572,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1377
1572
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1378
1573
  }, z.core.$strict>;
1379
1574
  metadata: z.ZodObject<{
1575
+ cache: z.ZodOptional<z.ZodEnum<{
1576
+ hit: "hit";
1577
+ miss: "miss";
1578
+ bypass: "bypass";
1579
+ mixed: "mixed";
1580
+ }>>;
1581
+ timing: z.ZodOptional<z.ZodObject<{
1582
+ total_ms: z.ZodNumber;
1583
+ upstream_ms: z.ZodNumber;
1584
+ watermark_ms: z.ZodNumber;
1585
+ }, z.core.$strict>>;
1380
1586
  kind: z.ZodEnum<{
1381
- collection: "collection";
1382
1587
  operation: "operation";
1588
+ collection: "collection";
1383
1589
  single: "single";
1384
1590
  }>;
1385
1591
  record_count: z.ZodNumber;
@@ -1423,11 +1629,23 @@ export declare const productionToolOutputSchemas: Readonly<{
1423
1629
  truncated: z.ZodOptional<z.ZodBoolean>;
1424
1630
  dropped_records: z.ZodOptional<z.ZodNumber>;
1425
1631
  results: z.ZodArray<z.ZodUnknown>;
1632
+ cursor: z.ZodOptional<z.ZodString>;
1426
1633
  }, z.core.$strict>;
1427
1634
  metadata: z.ZodObject<{
1635
+ cache: z.ZodOptional<z.ZodEnum<{
1636
+ hit: "hit";
1637
+ miss: "miss";
1638
+ bypass: "bypass";
1639
+ mixed: "mixed";
1640
+ }>>;
1641
+ timing: z.ZodOptional<z.ZodObject<{
1642
+ total_ms: z.ZodNumber;
1643
+ upstream_ms: z.ZodNumber;
1644
+ watermark_ms: z.ZodNumber;
1645
+ }, z.core.$strict>>;
1428
1646
  kind: z.ZodEnum<{
1429
- collection: "collection";
1430
1647
  operation: "operation";
1648
+ collection: "collection";
1431
1649
  single: "single";
1432
1650
  }>;
1433
1651
  record_count: z.ZodNumber;
@@ -1467,9 +1685,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1467
1685
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1468
1686
  }, z.core.$strict>;
1469
1687
  metadata: z.ZodObject<{
1688
+ cache: z.ZodOptional<z.ZodEnum<{
1689
+ hit: "hit";
1690
+ miss: "miss";
1691
+ bypass: "bypass";
1692
+ mixed: "mixed";
1693
+ }>>;
1694
+ timing: z.ZodOptional<z.ZodObject<{
1695
+ total_ms: z.ZodNumber;
1696
+ upstream_ms: z.ZodNumber;
1697
+ watermark_ms: z.ZodNumber;
1698
+ }, z.core.$strict>>;
1470
1699
  kind: z.ZodEnum<{
1471
- collection: "collection";
1472
1700
  operation: "operation";
1701
+ collection: "collection";
1473
1702
  single: "single";
1474
1703
  }>;
1475
1704
  record_count: z.ZodNumber;
@@ -1509,9 +1738,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1509
1738
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1510
1739
  }, z.core.$strict>;
1511
1740
  metadata: z.ZodObject<{
1741
+ cache: z.ZodOptional<z.ZodEnum<{
1742
+ hit: "hit";
1743
+ miss: "miss";
1744
+ bypass: "bypass";
1745
+ mixed: "mixed";
1746
+ }>>;
1747
+ timing: z.ZodOptional<z.ZodObject<{
1748
+ total_ms: z.ZodNumber;
1749
+ upstream_ms: z.ZodNumber;
1750
+ watermark_ms: z.ZodNumber;
1751
+ }, z.core.$strict>>;
1512
1752
  kind: z.ZodEnum<{
1513
- collection: "collection";
1514
1753
  operation: "operation";
1754
+ collection: "collection";
1515
1755
  single: "single";
1516
1756
  }>;
1517
1757
  record_count: z.ZodNumber;
@@ -1557,9 +1797,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1557
1797
  result: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
1558
1798
  }, z.core.$strict>;
1559
1799
  metadata: z.ZodObject<{
1800
+ cache: z.ZodOptional<z.ZodEnum<{
1801
+ hit: "hit";
1802
+ miss: "miss";
1803
+ bypass: "bypass";
1804
+ mixed: "mixed";
1805
+ }>>;
1806
+ timing: z.ZodOptional<z.ZodObject<{
1807
+ total_ms: z.ZodNumber;
1808
+ upstream_ms: z.ZodNumber;
1809
+ watermark_ms: z.ZodNumber;
1810
+ }, z.core.$strict>>;
1560
1811
  kind: z.ZodEnum<{
1561
- collection: "collection";
1562
1812
  operation: "operation";
1813
+ collection: "collection";
1563
1814
  single: "single";
1564
1815
  }>;
1565
1816
  record_count: z.ZodNumber;
@@ -1596,17 +1847,21 @@ export declare const productionToolOutputSchemas: Readonly<{
1596
1847
  sn_atf_run: z.ZodObject<Omit<{
1597
1848
  data: z.ZodObject<{
1598
1849
  outcome: z.ZodEnum<{
1850
+ unavailable: "unavailable";
1599
1851
  running: "running";
1600
1852
  completed: "completed";
1601
- unavailable: "unavailable";
1602
1853
  }>;
1603
1854
  progress_id: z.ZodOptional<z.ZodString>;
1604
1855
  result_id: z.ZodOptional<z.ZodString>;
1605
1856
  suite_id: z.ZodOptional<z.ZodString>;
1606
1857
  suite_name: z.ZodOptional<z.ZodString>;
1858
+ result_ref: z.ZodOptional<z.ZodObject<{
1859
+ table: z.ZodLiteral<"sys_atf_test_suite_result">;
1860
+ sys_id: z.ZodString;
1861
+ }, z.core.$strict>>;
1862
+ advice: z.ZodOptional<z.ZodArray<z.ZodString>>;
1607
1863
  run: z.ZodOptional<z.ZodObject<{
1608
1864
  runId: z.ZodString;
1609
- suiteId: z.ZodString;
1610
1865
  startedAt: z.ZodString;
1611
1866
  finishedAt: z.ZodOptional<z.ZodString>;
1612
1867
  status: z.ZodEnum<{
@@ -1640,6 +1895,7 @@ export declare const productionToolOutputSchemas: Readonly<{
1640
1895
  }>;
1641
1896
  firstFailure: z.ZodOptional<z.ZodString>;
1642
1897
  }, z.core.$strict>>;
1898
+ suiteId: z.ZodOptional<z.ZodString>;
1643
1899
  }, z.core.$strict>>;
1644
1900
  failures: z.ZodArray<z.ZodObject<{
1645
1901
  test_id: z.ZodString;
@@ -1673,9 +1929,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1673
1929
  warnings: z.ZodArray<z.ZodString>;
1674
1930
  }, z.core.$strict>;
1675
1931
  metadata: z.ZodObject<{
1932
+ cache: z.ZodOptional<z.ZodEnum<{
1933
+ hit: "hit";
1934
+ miss: "miss";
1935
+ bypass: "bypass";
1936
+ mixed: "mixed";
1937
+ }>>;
1938
+ timing: z.ZodOptional<z.ZodObject<{
1939
+ total_ms: z.ZodNumber;
1940
+ upstream_ms: z.ZodNumber;
1941
+ watermark_ms: z.ZodNumber;
1942
+ }, z.core.$strict>>;
1676
1943
  kind: z.ZodEnum<{
1677
- collection: "collection";
1678
1944
  operation: "operation";
1945
+ collection: "collection";
1679
1946
  single: "single";
1680
1947
  }>;
1681
1948
  record_count: z.ZodNumber;
@@ -1734,17 +2001,21 @@ export declare const productionToolOutputSchemas: Readonly<{
1734
2001
  }, z.core.$strict>>;
1735
2002
  execution: z.ZodOptional<z.ZodObject<{
1736
2003
  outcome: z.ZodEnum<{
2004
+ unavailable: "unavailable";
1737
2005
  running: "running";
1738
2006
  completed: "completed";
1739
- unavailable: "unavailable";
1740
2007
  }>;
1741
2008
  progress_id: z.ZodOptional<z.ZodString>;
1742
2009
  result_id: z.ZodOptional<z.ZodString>;
1743
2010
  suite_id: z.ZodOptional<z.ZodString>;
1744
2011
  suite_name: z.ZodOptional<z.ZodString>;
2012
+ result_ref: z.ZodOptional<z.ZodObject<{
2013
+ table: z.ZodLiteral<"sys_atf_test_suite_result">;
2014
+ sys_id: z.ZodString;
2015
+ }, z.core.$strict>>;
2016
+ advice: z.ZodOptional<z.ZodArray<z.ZodString>>;
1745
2017
  run: z.ZodOptional<z.ZodObject<{
1746
2018
  runId: z.ZodString;
1747
- suiteId: z.ZodString;
1748
2019
  startedAt: z.ZodString;
1749
2020
  finishedAt: z.ZodOptional<z.ZodString>;
1750
2021
  status: z.ZodEnum<{
@@ -1778,6 +2049,7 @@ export declare const productionToolOutputSchemas: Readonly<{
1778
2049
  }>;
1779
2050
  firstFailure: z.ZodOptional<z.ZodString>;
1780
2051
  }, z.core.$strict>>;
2052
+ suiteId: z.ZodOptional<z.ZodString>;
1781
2053
  }, z.core.$strict>>;
1782
2054
  failures: z.ZodArray<z.ZodObject<{
1783
2055
  test_id: z.ZodString;
@@ -1861,9 +2133,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1861
2133
  message: z.ZodOptional<z.ZodString>;
1862
2134
  }, z.core.$strict>;
1863
2135
  metadata: z.ZodObject<{
2136
+ cache: z.ZodOptional<z.ZodEnum<{
2137
+ hit: "hit";
2138
+ miss: "miss";
2139
+ bypass: "bypass";
2140
+ mixed: "mixed";
2141
+ }>>;
2142
+ timing: z.ZodOptional<z.ZodObject<{
2143
+ total_ms: z.ZodNumber;
2144
+ upstream_ms: z.ZodNumber;
2145
+ watermark_ms: z.ZodNumber;
2146
+ }, z.core.$strict>>;
1864
2147
  kind: z.ZodEnum<{
1865
- collection: "collection";
1866
2148
  operation: "operation";
2149
+ collection: "collection";
1867
2150
  single: "single";
1868
2151
  }>;
1869
2152
  record_count: z.ZodNumber;
@@ -1915,9 +2198,20 @@ export declare const productionToolOutputSchemas: Readonly<{
1915
2198
  }, z.core.$strict>>;
1916
2199
  }, z.core.$strict>;
1917
2200
  metadata: z.ZodObject<{
2201
+ cache: z.ZodOptional<z.ZodEnum<{
2202
+ hit: "hit";
2203
+ miss: "miss";
2204
+ bypass: "bypass";
2205
+ mixed: "mixed";
2206
+ }>>;
2207
+ timing: z.ZodOptional<z.ZodObject<{
2208
+ total_ms: z.ZodNumber;
2209
+ upstream_ms: z.ZodNumber;
2210
+ watermark_ms: z.ZodNumber;
2211
+ }, z.core.$strict>>;
1918
2212
  kind: z.ZodEnum<{
1919
- collection: "collection";
1920
2213
  operation: "operation";
2214
+ collection: "collection";
1921
2215
  single: "single";
1922
2216
  }>;
1923
2217
  record_count: z.ZodNumber;
@@ -1979,11 +2273,23 @@ export declare const productionToolOutputSchemas: Readonly<{
1979
2273
  rollback_failed: z.ZodArray<z.ZodString>;
1980
2274
  uncertain_insert: z.ZodBoolean;
1981
2275
  message: z.ZodOptional<z.ZodString>;
2276
+ advice: z.ZodOptional<z.ZodArray<z.ZodString>>;
1982
2277
  }, z.core.$strict>;
1983
2278
  metadata: z.ZodObject<{
2279
+ cache: z.ZodOptional<z.ZodEnum<{
2280
+ hit: "hit";
2281
+ miss: "miss";
2282
+ bypass: "bypass";
2283
+ mixed: "mixed";
2284
+ }>>;
2285
+ timing: z.ZodOptional<z.ZodObject<{
2286
+ total_ms: z.ZodNumber;
2287
+ upstream_ms: z.ZodNumber;
2288
+ watermark_ms: z.ZodNumber;
2289
+ }, z.core.$strict>>;
1984
2290
  kind: z.ZodEnum<{
1985
- collection: "collection";
1986
2291
  operation: "operation";
2292
+ collection: "collection";
1987
2293
  single: "single";
1988
2294
  }>;
1989
2295
  record_count: z.ZodNumber;
@@ -2023,6 +2329,10 @@ export declare const productionToolOutputSchemas: Readonly<{
2023
2329
  source: z.ZodEnum<{
2024
2330
  table: "table";
2025
2331
  }>;
2332
+ ref: z.ZodOptional<z.ZodObject<{
2333
+ table: z.ZodLiteral<"sys_hub_flow">;
2334
+ sys_id: z.ZodString;
2335
+ }, z.core.$strict>>;
2026
2336
  flows: z.ZodArray<z.ZodObject<{
2027
2337
  index: z.ZodNumber;
2028
2338
  source: z.ZodEnum<{
@@ -2245,9 +2555,9 @@ export declare const productionToolOutputSchemas: Readonly<{
2245
2555
  not_expanded: z.ZodOptional<z.ZodEnum<{
2246
2556
  not_found: "not_found";
2247
2557
  timeout: "timeout";
2558
+ too_large: "too_large";
2248
2559
  limit: "limit";
2249
2560
  depth: "depth";
2250
- too_large: "too_large";
2251
2561
  cycle: "cycle";
2252
2562
  denied: "denied";
2253
2563
  }>>;
@@ -2308,8 +2618,8 @@ export declare const productionToolOutputSchemas: Readonly<{
2308
2618
  include_inputs: z.ZodBoolean;
2309
2619
  max_nodes: z.ZodNumber;
2310
2620
  format: z.ZodEnum<{
2311
- both: "both";
2312
2621
  mermaid: "mermaid";
2622
+ both: "both";
2313
2623
  outline: "outline";
2314
2624
  }>;
2315
2625
  }, z.core.$strict>;
@@ -2342,6 +2652,30 @@ export declare const productionToolOutputSchemas: Readonly<{
2342
2652
  input_values_incomplete: "input_values_incomplete";
2343
2653
  subflow_timeout: "subflow_timeout";
2344
2654
  }>>;
2655
+ warning_details: z.ZodOptional<z.ZodArray<z.ZodObject<{
2656
+ code: z.ZodEnum<{
2657
+ subflow_cycle: "subflow_cycle";
2658
+ subflow_not_found: "subflow_not_found";
2659
+ subflow_denied: "subflow_denied";
2660
+ orphan_steps: "orphan_steps";
2661
+ unknown_logic_type: "unknown_logic_type";
2662
+ items_dropped_invalid: "items_dropped_invalid";
2663
+ gzip_decode_failed: "gzip_decode_failed";
2664
+ label_cache_unavailable: "label_cache_unavailable";
2665
+ flow_version_unknown: "flow_version_unknown";
2666
+ subflow_too_large: "subflow_too_large";
2667
+ inputs_omitted_too_large: "inputs_omitted_too_large";
2668
+ flow_too_large: "flow_too_large";
2669
+ input_values_incomplete: "input_values_incomplete";
2670
+ subflow_timeout: "subflow_timeout";
2671
+ }>;
2672
+ message: z.ZodString;
2673
+ }, z.core.$strict>>>;
2674
+ diagram: z.ZodOptional<z.ZodObject<{
2675
+ format: z.ZodLiteral<"mermaid">;
2676
+ source: z.ZodOptional<z.ZodString>;
2677
+ note: z.ZodOptional<z.ZodString>;
2678
+ }, z.core.$strict>>;
2345
2679
  counts: z.ZodObject<{
2346
2680
  steps_seen: z.ZodNumber;
2347
2681
  nodes_returned: z.ZodNumber;
@@ -2351,9 +2685,20 @@ export declare const productionToolOutputSchemas: Readonly<{
2351
2685
  }, z.core.$strict>;
2352
2686
  }, z.core.$strict>;
2353
2687
  metadata: z.ZodObject<{
2688
+ cache: z.ZodOptional<z.ZodEnum<{
2689
+ hit: "hit";
2690
+ miss: "miss";
2691
+ bypass: "bypass";
2692
+ mixed: "mixed";
2693
+ }>>;
2694
+ timing: z.ZodOptional<z.ZodObject<{
2695
+ total_ms: z.ZodNumber;
2696
+ upstream_ms: z.ZodNumber;
2697
+ watermark_ms: z.ZodNumber;
2698
+ }, z.core.$strict>>;
2354
2699
  kind: z.ZodEnum<{
2355
- collection: "collection";
2356
2700
  operation: "operation";
2701
+ collection: "collection";
2357
2702
  single: "single";
2358
2703
  }>;
2359
2704
  record_count: z.ZodNumber;
@@ -2392,9 +2737,20 @@ export declare const productionToolOutputSchemas: Readonly<{
2392
2737
  request: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2393
2738
  }, z.core.$strict>;
2394
2739
  metadata: z.ZodObject<{
2740
+ cache: z.ZodOptional<z.ZodEnum<{
2741
+ hit: "hit";
2742
+ miss: "miss";
2743
+ bypass: "bypass";
2744
+ mixed: "mixed";
2745
+ }>>;
2746
+ timing: z.ZodOptional<z.ZodObject<{
2747
+ total_ms: z.ZodNumber;
2748
+ upstream_ms: z.ZodNumber;
2749
+ watermark_ms: z.ZodNumber;
2750
+ }, z.core.$strict>>;
2395
2751
  kind: z.ZodEnum<{
2396
- collection: "collection";
2397
2752
  operation: "operation";
2753
+ collection: "collection";
2398
2754
  single: "single";
2399
2755
  }>;
2400
2756
  record_count: z.ZodNumber;
@@ -2441,9 +2797,20 @@ export declare const productionToolOutputSchemas: Readonly<{
2441
2797
  policy_card: z.ZodOptional<z.ZodString>;
2442
2798
  }, z.core.$strict>;
2443
2799
  metadata: z.ZodObject<{
2800
+ cache: z.ZodOptional<z.ZodEnum<{
2801
+ hit: "hit";
2802
+ miss: "miss";
2803
+ bypass: "bypass";
2804
+ mixed: "mixed";
2805
+ }>>;
2806
+ timing: z.ZodOptional<z.ZodObject<{
2807
+ total_ms: z.ZodNumber;
2808
+ upstream_ms: z.ZodNumber;
2809
+ watermark_ms: z.ZodNumber;
2810
+ }, z.core.$strict>>;
2444
2811
  kind: z.ZodEnum<{
2445
- collection: "collection";
2446
2812
  operation: "operation";
2813
+ collection: "collection";
2447
2814
  single: "single";
2448
2815
  }>;
2449
2816
  record_count: z.ZodNumber;
@@ -2498,6 +2865,11 @@ export interface EnvelopeTextRenderContext {
2498
2865
  /** Trusted coordinator inputs to text rendering; never part of structuredContent. */
2499
2866
  export interface EnvelopeTextRenderOptions {
2500
2867
  readonly instanceOrigin?: string;
2868
+ /**
2869
+ * The most `max_response_bytes` this call may use when a raw-read rule holds
2870
+ * it below the schema maximum; a truncation hint never offers more.
2871
+ */
2872
+ readonly maxResponseBytesCap?: number;
2501
2873
  }
2502
2874
  /**
2503
2875
  * Human-readable text for one tool's successful result. It receives a deeply
@@ -2507,6 +2879,25 @@ export interface EnvelopeTextRenderOptions {
2507
2879
  export type EnvelopeTextRenderer = (envelope: RenderableEnvelope, context: EnvelopeTextRenderContext) => string;
2508
2880
  /** Register the text renderer for one production tool, once, before first use. */
2509
2881
  export declare function registerEnvelopeTextRenderer(tool: ProductionToolName, renderer: EnvelopeTextRenderer): void;
2882
+ /**
2883
+ * Remove `metadata.cache` and `metadata.timing` from a handler's result. Only
2884
+ * the dispatcher reports them, from what it observed, so a value a handler
2885
+ * sets is never passed on, whether or not the dispatcher adds its own.
2886
+ */
2887
+ export declare function withoutCallMetadata(result: CallToolResult): CallToolResult;
2888
+ /**
2889
+ * Add what the call reports about itself to a finished result's envelope
2890
+ * metadata. The two fields are not counted against the result's byte limit.
2891
+ *
2892
+ * They are diagnostics, so they never cost the caller anything: the result is
2893
+ * fitted to its limit first, exactly as before, with the fit, the paging
2894
+ * fields and the truncation hint knowing nothing about them, and the fields
2895
+ * are added after. A successful response therefore carries them always, on the
2896
+ * calls where the timing matters most (a truncated one is often fitted to
2897
+ * within a few bytes of the limit), and may exceed the limit by their size,
2898
+ * under 100 bytes. A result that is not an envelope comes back untouched.
2899
+ */
2900
+ export declare function withCallMetadata(handlerResult: CallToolResult, snapshot: CallMetricsSnapshot): CallToolResult;
2510
2901
  export declare function envelopeCompatibilityResult(name: ProductionToolName, args: Readonly<Record<string, unknown>>, result: CallToolResult): CallToolResult;
2511
2902
  /**
2512
2903
  * Replace handler text with coordinator-rendered text and enforce the