@opengeni/contracts 0.50.0 → 1.0.0

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 (369) hide show
  1. package/dist/agent-authored-durable-text.d.ts +70 -0
  2. package/dist/agent-config.d.ts +869 -0
  3. package/dist/agent-instruction-changes.d.ts +110 -0
  4. package/dist/agent-learning.d.ts +243 -0
  5. package/dist/agent-topology.d.ts +292 -0
  6. package/dist/allowance-refusal.d.ts +9 -0
  7. package/dist/allowance-refusal.js +50 -0
  8. package/dist/allowance-refusal.js.map +1 -0
  9. package/dist/analytics-consent-report.d.ts +19 -0
  10. package/dist/analytics-consent-report.js +10 -0
  11. package/dist/analytics-consent-report.js.map +1 -0
  12. package/dist/api-key-presets.d.ts +19 -0
  13. package/dist/artifact-catalog.d.ts +161 -0
  14. package/dist/artifacts.d.ts +135 -11
  15. package/dist/atlassian-native-retirement.d.ts +16 -0
  16. package/dist/atlassian-native-retirement.js +30 -0
  17. package/dist/atlassian-native-retirement.js.map +1 -0
  18. package/dist/atlassian.d.ts +2 -0
  19. package/dist/atlassian.js +26 -12
  20. package/dist/browser-storage.d.ts +5 -0
  21. package/dist/browser-storage.js +9 -0
  22. package/dist/browser-storage.js.map +1 -0
  23. package/dist/bundled-skills.d.ts +40 -0
  24. package/dist/chunk-2ACYHZFB.js +292 -0
  25. package/dist/chunk-2ACYHZFB.js.map +1 -0
  26. package/dist/chunk-2VORLN2R.js +353 -0
  27. package/dist/chunk-2VORLN2R.js.map +1 -0
  28. package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
  29. package/dist/chunk-3SIZGL3O.js.map +1 -0
  30. package/dist/chunk-46KLD2UH.js +186 -0
  31. package/dist/chunk-46KLD2UH.js.map +1 -0
  32. package/dist/chunk-4JGHSSB7.js +11 -0
  33. package/dist/chunk-4JGHSSB7.js.map +1 -0
  34. package/dist/{chunk-M5ZGRVIQ.js → chunk-5IXYF6XN.js} +14 -5
  35. package/dist/chunk-5IXYF6XN.js.map +1 -0
  36. package/dist/chunk-BCS7WHCK.js +139 -0
  37. package/dist/chunk-BCS7WHCK.js.map +1 -0
  38. package/dist/chunk-EK7NDGFR.js +128 -0
  39. package/dist/chunk-EK7NDGFR.js.map +1 -0
  40. package/dist/{chunk-5UDNP7AO.js → chunk-FZ6BXQHL.js} +78 -38
  41. package/dist/chunk-FZ6BXQHL.js.map +1 -0
  42. package/dist/{chunk-CM6BMECR.js → chunk-GRG7PHWQ.js} +2 -1
  43. package/dist/chunk-GRG7PHWQ.js.map +1 -0
  44. package/dist/chunk-KHHZTBP7.js +11 -0
  45. package/dist/chunk-KHHZTBP7.js.map +1 -0
  46. package/dist/chunk-KR2V42UZ.js +187 -0
  47. package/dist/chunk-KR2V42UZ.js.map +1 -0
  48. package/dist/chunk-MZLBPKFE.js +168 -0
  49. package/dist/chunk-MZLBPKFE.js.map +1 -0
  50. package/dist/{chunk-LW7OH6CS.js → chunk-NRMCVHAU.js} +6 -5
  51. package/dist/chunk-NRMCVHAU.js.map +1 -0
  52. package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
  53. package/dist/chunk-NVJMJWLL.js.map +1 -0
  54. package/dist/chunk-O77VSFYZ.js +70 -0
  55. package/dist/chunk-O77VSFYZ.js.map +1 -0
  56. package/dist/chunk-PX3VCKAU.js +29 -0
  57. package/dist/chunk-PX3VCKAU.js.map +1 -0
  58. package/dist/chunk-QR5D2IQC.js +61 -0
  59. package/dist/chunk-QR5D2IQC.js.map +1 -0
  60. package/dist/chunk-RJ76DRPO.js +117 -0
  61. package/dist/chunk-RJ76DRPO.js.map +1 -0
  62. package/dist/chunk-RKX3NQYS.js +28 -0
  63. package/dist/chunk-RKX3NQYS.js.map +1 -0
  64. package/dist/{chunk-JBCIY7QD.js → chunk-SIOU2K4U.js} +45 -22
  65. package/dist/chunk-SIOU2K4U.js.map +1 -0
  66. package/dist/chunk-TSCDAGET.js +75 -0
  67. package/dist/chunk-TSCDAGET.js.map +1 -0
  68. package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
  69. package/dist/chunk-TXTQIYCV.js.map +1 -0
  70. package/dist/chunk-X7ETVO4P.js +26544 -0
  71. package/dist/chunk-X7ETVO4P.js.map +1 -0
  72. package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
  73. package/dist/chunk-YBW5JSA3.js +251 -0
  74. package/dist/chunk-YBW5JSA3.js.map +1 -0
  75. package/dist/chunk-YRXAWWCU.js +45 -0
  76. package/dist/chunk-YRXAWWCU.js.map +1 -0
  77. package/dist/claude-provider-account-authority.d.ts +18 -0
  78. package/dist/claude-subscription-oauth.d.ts +42 -0
  79. package/dist/claude-subscription-usage.d.ts +159 -0
  80. package/dist/client-error-report.d.ts +109 -0
  81. package/dist/client-error-report.js +87 -0
  82. package/dist/client-error-report.js.map +1 -0
  83. package/dist/code-search.d.ts +52 -0
  84. package/dist/code-search.js +40 -0
  85. package/dist/code-search.js.map +1 -0
  86. package/dist/company-brain-governed-writes.d.ts +475 -0
  87. package/dist/company-brain.d.ts +336 -0
  88. package/dist/company-profile.d.ts +566 -0
  89. package/dist/connect.d.ts +325 -0
  90. package/dist/connect.js +191 -0
  91. package/dist/connect.js.map +1 -0
  92. package/dist/connection-account-label.d.ts +2 -0
  93. package/dist/connection-account-label.js +35 -0
  94. package/dist/connection-account-label.js.map +1 -0
  95. package/dist/connection-authority.d.ts +193 -0
  96. package/dist/connection-authority.js +50 -0
  97. package/dist/connection-authority.js.map +1 -0
  98. package/dist/connector-attachments.d.ts +95 -0
  99. package/dist/connector-attachments.js +51 -0
  100. package/dist/connector-attachments.js.map +1 -0
  101. package/dist/connector-tool-permissions.d.ts +73 -0
  102. package/dist/direct-model-provider.d.ts +36 -0
  103. package/dist/editable-artifact-codec-registry.d.ts +16 -7
  104. package/dist/editable-artifact-codec-registry.js +18 -8
  105. package/dist/editable-artifact-committed-transaction.d.ts +2 -2
  106. package/dist/editable-artifact-committed-transaction.js +2 -2
  107. package/dist/editable-artifact-live.d.ts +11 -12
  108. package/dist/editable-artifact-live.js +110 -45
  109. package/dist/editable-artifact-live.js.map +1 -1
  110. package/dist/editable-artifact-serialized-commit.d.ts +2 -1
  111. package/dist/editable-artifact-serialized-commit.js +8 -7
  112. package/dist/editable-artifact-versions.d.ts +20 -5
  113. package/dist/editable-artifact-versions.js +23 -5
  114. package/dist/editable-artifacts.d.ts +2 -0
  115. package/dist/editable-artifacts.js +47 -35
  116. package/dist/external-identities.d.ts +784 -0
  117. package/dist/external-identities.js +44 -0
  118. package/dist/external-identities.js.map +1 -0
  119. package/dist/feedback.d.ts +51 -0
  120. package/dist/github-repository-contracts.d.ts +36 -0
  121. package/dist/github-repository-contracts.js +59 -0
  122. package/dist/github-repository-contracts.js.map +1 -0
  123. package/dist/github-repository.d.ts +14 -0
  124. package/dist/github-repository.js +36 -0
  125. package/dist/github-repository.js.map +1 -0
  126. package/dist/google-drive.d.ts +90 -1
  127. package/dist/google-drive.js +90 -16
  128. package/dist/google-drive.js.map +1 -1
  129. package/dist/governed-learning-activation.d.ts +154 -0
  130. package/dist/governed-learning-evaluator.d.ts +152 -0
  131. package/dist/host-mcp-bindings.d.ts +326 -0
  132. package/dist/host-mcp-bindings.js +252 -0
  133. package/dist/host-mcp-bindings.js.map +1 -0
  134. package/dist/image-generation.d.ts +1 -0
  135. package/dist/index.d.ts +32396 -11386
  136. package/dist/index.js +2198 -164
  137. package/dist/insights-usage.d.ts +877 -0
  138. package/dist/insights-usage.js +509 -0
  139. package/dist/insights-usage.js.map +1 -0
  140. package/dist/interaction.d.ts +344 -0
  141. package/dist/knowledge-entries.d.ts +982 -0
  142. package/dist/knowledge-preparation.d.ts +237 -0
  143. package/dist/knowledge.d.ts +197 -0
  144. package/dist/managed-auth-session-sets.d.ts +241 -0
  145. package/dist/managed-auth-session-sets.js +191 -0
  146. package/dist/managed-auth-session-sets.js.map +1 -0
  147. package/dist/managed-sign-in-methods.d.ts +56 -0
  148. package/dist/managed-sign-in-methods.js +46 -0
  149. package/dist/managed-sign-in-methods.js.map +1 -0
  150. package/dist/mcp-catalog-limits.d.ts +2 -0
  151. package/dist/mcp-endpoint.d.ts +7 -0
  152. package/dist/mcp-endpoint.js +9 -0
  153. package/dist/mcp-endpoint.js.map +1 -0
  154. package/dist/mcp-oauth.d.ts +71 -0
  155. package/dist/modal-native-proof-v2.d.ts +587 -0
  156. package/dist/modal-native-proof-v2.js +37 -0
  157. package/dist/modal-native-proof-v2.js.map +1 -0
  158. package/dist/model-availability.d.ts +15 -0
  159. package/dist/model-connection-access.d.ts +24 -0
  160. package/dist/model-context-inspector.d.ts +329 -0
  161. package/dist/model-display.d.ts +38 -0
  162. package/dist/model-display.js +134 -0
  163. package/dist/model-display.js.map +1 -0
  164. package/dist/model-picker-order.d.ts +25 -0
  165. package/dist/model-picker-order.js +42 -0
  166. package/dist/model-picker-order.js.map +1 -0
  167. package/dist/organization-access.d.ts +231 -0
  168. package/dist/organization-access.js +34 -0
  169. package/dist/organization-access.js.map +1 -0
  170. package/dist/organization-integration-policy.d.ts +27 -0
  171. package/dist/organization-membership-lifecycle.d.ts +1022 -0
  172. package/dist/organization-model-usage.d.ts +146 -0
  173. package/dist/organization-model-usage.js +67 -0
  174. package/dist/organization-model-usage.js.map +1 -0
  175. package/dist/organization-recovery.d.ts +337 -0
  176. package/dist/organization-recovery.js +37 -0
  177. package/dist/organization-recovery.js.map +1 -0
  178. package/dist/organization-usage.d.ts +138 -0
  179. package/dist/permissions.d.ts +54 -0
  180. package/dist/personal-github.d.ts +320 -0
  181. package/dist/personal-github.js +222 -0
  182. package/dist/personal-github.js.map +1 -0
  183. package/dist/plugin-discovery.d.ts +35 -0
  184. package/dist/plugin-discovery.js +7 -0
  185. package/dist/plugin-discovery.js.map +1 -0
  186. package/dist/preference-registry.d.ts +44 -1
  187. package/dist/product-analytics.d.ts +113 -0
  188. package/dist/product-lifecycle-facts.d.ts +73 -0
  189. package/dist/remember.d.ts +350 -0
  190. package/dist/retained-output.d.ts +8 -0
  191. package/dist/sandbox-file-artifacts.d.ts +57 -0
  192. package/dist/sandbox-provider-command.d.ts +113 -0
  193. package/dist/sandbox-recovery.d.ts +146 -0
  194. package/dist/sandbox-snapshots.d.ts +39 -0
  195. package/dist/session-final-reply.d.ts +6 -0
  196. package/dist/session-final-reply.js +9 -0
  197. package/dist/session-final-reply.js.map +1 -0
  198. package/dist/session-goal-reports.d.ts +21 -0
  199. package/dist/session-history-import.d.ts +947 -0
  200. package/dist/session-list-entries.d.ts +4 -0
  201. package/dist/session-list-entries.js +51 -0
  202. package/dist/session-list-entries.js.map +1 -0
  203. package/dist/session-mcp-projections.d.ts +215 -0
  204. package/dist/session-message-search.d.ts +68 -0
  205. package/dist/session-titles.d.ts +68 -0
  206. package/dist/session-titles.js +25 -0
  207. package/dist/session-titles.js.map +1 -0
  208. package/dist/session-topology-primitives.d.ts +22 -0
  209. package/dist/signup-attribution.d.ts +39 -0
  210. package/dist/site-request-headers.test.d.ts +1 -0
  211. package/dist/site-session-http.d.ts +11 -0
  212. package/dist/site-session-http.js +11 -0
  213. package/dist/site-session-http.js.map +1 -0
  214. package/dist/skill-catalog-context.d.ts +7 -0
  215. package/dist/skill-files.d.ts +12 -0
  216. package/dist/skill-metadata.d.ts +9 -0
  217. package/dist/skill-use.d.ts +61 -0
  218. package/dist/skills.d.ts +185 -0
  219. package/dist/slack-bot-scopes.d.ts +46 -21
  220. package/dist/slack-bot-scopes.js +14 -3
  221. package/dist/slack-rest-mcp.d.ts +31 -0
  222. package/dist/slack-rest-mcp.js +19 -0
  223. package/dist/slack-rest-mcp.js.map +1 -0
  224. package/dist/spreadsheet-artifact-commands.d.ts +2 -3
  225. package/dist/spreadsheet-artifact-commands.js +4 -2
  226. package/dist/spreadsheet-artifact-query.js +3 -2
  227. package/dist/subscription-account-pools.d.ts +292 -0
  228. package/dist/task-notes.d.ts +42 -1
  229. package/dist/tool-catalog.d.ts +286 -0
  230. package/dist/tool-result-spill.d.ts +16 -0
  231. package/dist/usage-allowances.d.ts +285 -0
  232. package/dist/usage-allowances.js +49 -0
  233. package/dist/usage-allowances.js.map +1 -0
  234. package/dist/video-generation.d.ts +3 -0
  235. package/dist/video-generation.js +1 -1
  236. package/dist/work-claims.d.ts +411 -0
  237. package/dist/workspace-instruction-policies.d.ts +94 -0
  238. package/dist/workspace-integration-wire.d.ts +36 -0
  239. package/dist/workspace-integration-wire.js +23 -0
  240. package/dist/workspace-integration-wire.js.map +1 -0
  241. package/dist/workspace-integrations.d.ts +948 -0
  242. package/dist/workspace-learning-administration.d.ts +289 -0
  243. package/dist/workspace-learning-policy.d.ts +1 -1
  244. package/dist/workspace-state.d.ts +85 -416
  245. package/dist/xai-provider-account-authority.d.ts +3 -0
  246. package/dist/xai-provider-account-authority.js +1 -1
  247. package/package.json +134 -1
  248. package/src/agent-authored-durable-text.ts +116 -0
  249. package/src/agent-config.ts +1527 -0
  250. package/src/agent-instruction-changes.ts +98 -0
  251. package/src/agent-learning.ts +161 -0
  252. package/src/agent-topology.ts +69 -0
  253. package/src/allowance-refusal.ts +81 -0
  254. package/src/analytics-consent-report.ts +20 -0
  255. package/src/api-key-presets.ts +25 -0
  256. package/src/artifact-catalog.ts +60 -0
  257. package/src/artifacts.ts +146 -18
  258. package/src/atlassian-native-retirement.ts +33 -0
  259. package/src/browser-storage.ts +10 -0
  260. package/src/bundled-skills.ts +73 -0
  261. package/src/claude-provider-account-authority.ts +12 -0
  262. package/src/claude-subscription-oauth.ts +62 -0
  263. package/src/claude-subscription-usage.ts +59 -0
  264. package/src/client-error-report.ts +184 -0
  265. package/src/code-search.ts +105 -0
  266. package/src/company-brain-governed-writes.ts +356 -0
  267. package/src/company-brain.ts +201 -0
  268. package/src/company-profile.ts +167 -1
  269. package/src/connect.ts +202 -0
  270. package/src/connection-account-label.ts +46 -0
  271. package/src/connection-authority.ts +213 -0
  272. package/src/connector-attachments.ts +327 -0
  273. package/src/connector-tool-permissions.ts +60 -0
  274. package/src/direct-model-provider.ts +98 -0
  275. package/src/editable-artifact-codec-registry.ts +55 -17
  276. package/src/editable-artifact-committed-transaction.ts +44 -31
  277. package/src/editable-artifact-live.ts +123 -57
  278. package/src/editable-artifact-serialized-commit.ts +2 -1
  279. package/src/editable-artifact-versions.ts +26 -5
  280. package/src/editable-artifacts.ts +2 -0
  281. package/src/external-identities.ts +285 -0
  282. package/src/feedback.ts +39 -0
  283. package/src/github-repository-contracts.ts +85 -0
  284. package/src/github-repository.ts +59 -0
  285. package/src/google-drive.ts +76 -4
  286. package/src/governed-learning-activation.ts +191 -0
  287. package/src/governed-learning-evaluator.ts +176 -0
  288. package/src/host-mcp-bindings.ts +298 -0
  289. package/src/image-generation.ts +8 -2
  290. package/src/index.ts +7093 -1466
  291. package/src/insights-usage.ts +679 -0
  292. package/src/interaction.ts +220 -5
  293. package/src/knowledge-entries.ts +375 -0
  294. package/src/knowledge-preparation.ts +50 -0
  295. package/src/knowledge.ts +134 -6
  296. package/src/managed-auth-session-sets.ts +253 -0
  297. package/src/managed-sign-in-methods.ts +37 -0
  298. package/src/mcp-catalog-limits.ts +2 -0
  299. package/src/mcp-endpoint.ts +30 -0
  300. package/src/mcp-oauth.ts +66 -0
  301. package/src/modal-native-proof-v2.ts +398 -0
  302. package/src/model-availability.ts +22 -0
  303. package/src/model-connection-access.ts +17 -0
  304. package/src/model-context-inspector.ts +139 -0
  305. package/src/model-display.ts +195 -0
  306. package/src/model-picker-order.ts +97 -0
  307. package/src/organization-access.ts +176 -0
  308. package/src/organization-integration-policy.ts +54 -0
  309. package/src/organization-membership-lifecycle.ts +559 -0
  310. package/src/organization-model-usage.ts +72 -0
  311. package/src/organization-recovery.ts +186 -0
  312. package/src/organization-usage.ts +79 -0
  313. package/src/permissions.ts +58 -0
  314. package/src/personal-github.ts +267 -0
  315. package/src/plugin-discovery.ts +33 -0
  316. package/src/preference-registry.ts +20 -1
  317. package/src/product-analytics.ts +253 -0
  318. package/src/product-lifecycle-facts.ts +121 -0
  319. package/src/remember.ts +243 -0
  320. package/src/retained-output.ts +20 -3
  321. package/src/sandbox-file-artifacts.ts +73 -0
  322. package/src/sandbox-provider-command.ts +82 -0
  323. package/src/sandbox-recovery.ts +116 -0
  324. package/src/sandbox-snapshots.ts +142 -0
  325. package/src/session-final-reply.ts +16 -0
  326. package/src/session-goal-reports.ts +55 -0
  327. package/src/session-history-import.ts +159 -0
  328. package/src/session-list-entries.ts +91 -0
  329. package/src/session-mcp-projections.ts +273 -0
  330. package/src/session-message-search.ts +54 -0
  331. package/src/session-titles.ts +467 -0
  332. package/src/session-topology-primitives.ts +21 -0
  333. package/src/signup-attribution.ts +81 -0
  334. package/src/site-request-headers.test.ts +28 -0
  335. package/src/site-session-http.ts +63 -0
  336. package/src/skill-catalog-context.ts +50 -0
  337. package/src/skill-files.ts +52 -0
  338. package/src/skill-metadata.ts +40 -0
  339. package/src/skill-use.ts +77 -0
  340. package/src/skills.ts +136 -0
  341. package/src/slack-bot-scopes.ts +106 -42
  342. package/src/slack-rest-mcp.ts +194 -0
  343. package/src/spreadsheet-artifact-commands.ts +12 -13
  344. package/src/subscription-account-pools.ts +44 -0
  345. package/src/task-notes.ts +14 -1
  346. package/src/tool-catalog.ts +155 -0
  347. package/src/tool-result-spill.ts +35 -0
  348. package/src/usage-allowances.ts +187 -0
  349. package/src/work-claims.ts +266 -0
  350. package/src/workspace-instruction-policies.ts +31 -0
  351. package/src/workspace-integration-wire.ts +99 -0
  352. package/src/workspace-integrations.ts +640 -0
  353. package/src/workspace-learning-administration.ts +88 -0
  354. package/src/workspace-learning-policy.ts +4 -3
  355. package/src/workspace-state.ts +16 -126
  356. package/src/xai-provider-account-authority.ts +1 -0
  357. package/dist/chunk-5UDNP7AO.js.map +0 -1
  358. package/dist/chunk-BVGIYW7D.js +0 -11
  359. package/dist/chunk-BVGIYW7D.js.map +0 -1
  360. package/dist/chunk-CM6BMECR.js.map +0 -1
  361. package/dist/chunk-JBCIY7QD.js.map +0 -1
  362. package/dist/chunk-LSB7GRLG.js.map +0 -1
  363. package/dist/chunk-LW7OH6CS.js.map +0 -1
  364. package/dist/chunk-M5ZGRVIQ.js.map +0 -1
  365. package/dist/chunk-Q6A7XT2N.js +0 -16734
  366. package/dist/chunk-Q6A7XT2N.js.map +0 -1
  367. package/dist/chunk-TZ6YEYN4.js.map +0 -1
  368. package/dist/chunk-Y3MLSLB4.js.map +0 -1
  369. /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
@@ -0,0 +1,110 @@
1
+ import { z } from "zod";
2
+ export declare const AgentInstructionEditMode: z.ZodEnum<{
3
+ append: "append";
4
+ edit: "edit";
5
+ }>;
6
+ export type AgentInstructionEditMode = z.infer<typeof AgentInstructionEditMode>;
7
+ export declare const AgentInstructionSaveRequest: z.ZodObject<{
8
+ operationId: z.ZodUUID;
9
+ target: z.ZodObject<{
10
+ kind: z.ZodEnum<{
11
+ charter: "charter";
12
+ policy: "policy";
13
+ }>;
14
+ scope: z.ZodEnum<{
15
+ global: "global";
16
+ role: "role";
17
+ }>;
18
+ roleKey: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ editMode: z.ZodEnum<{
21
+ append: "append";
22
+ edit: "edit";
23
+ }>;
24
+ content: z.ZodOptional<z.ZodString>;
25
+ oldText: z.ZodOptional<z.ZodString>;
26
+ newText: z.ZodOptional<z.ZodString>;
27
+ expectedCurrentRevisionId: z.ZodNullable<z.ZodUUID>;
28
+ expectedActivationVersion: z.ZodNumber;
29
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
30
+ entryId: z.ZodUUID;
31
+ revisionId: z.ZodUUID;
32
+ location: z.ZodDefault<z.ZodObject<{
33
+ page: z.ZodOptional<z.ZodNumber>;
34
+ passage: z.ZodOptional<z.ZodString>;
35
+ messageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
+ path: z.ZodOptional<z.ZodString>;
37
+ commit: z.ZodOptional<z.ZodString>;
38
+ lineStart: z.ZodOptional<z.ZodNumber>;
39
+ lineEnd: z.ZodOptional<z.ZodNumber>;
40
+ }, z.core.$strict>>;
41
+ quote: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strict>>>;
43
+ reason: z.ZodString;
44
+ }, z.core.$strict>;
45
+ export type AgentInstructionSaveRequest = z.input<typeof AgentInstructionSaveRequest>;
46
+ export declare const AgentInstructionReviewRequest: z.ZodObject<{
47
+ operationId: z.ZodUUID;
48
+ revisionId: z.ZodUUID;
49
+ decision: z.ZodEnum<{
50
+ approve: "approve";
51
+ reject: "reject";
52
+ }>;
53
+ reason: z.ZodString;
54
+ }, z.core.$strict>;
55
+ export type AgentInstructionReviewRequest = z.infer<typeof AgentInstructionReviewRequest>;
56
+ export declare const AgentInstructionReceipt: z.ZodObject<{
57
+ operationId: z.ZodUUID;
58
+ revisionId: z.ZodUUID;
59
+ outcome: z.ZodEnum<{
60
+ pending: "pending";
61
+ published: "published";
62
+ rejected: "rejected";
63
+ }>;
64
+ reviewBatchId: z.ZodNullable<z.ZodUUID>;
65
+ replayed: z.ZodBoolean;
66
+ }, z.core.$strip>;
67
+ export type AgentInstructionReceipt = z.infer<typeof AgentInstructionReceipt>;
68
+ export declare const AgentInstructionReviewItem: z.ZodObject<{
69
+ revisionId: z.ZodUUID;
70
+ content: z.ZodString;
71
+ target: z.ZodObject<{
72
+ kind: z.ZodEnum<{
73
+ charter: "charter";
74
+ policy: "policy";
75
+ }>;
76
+ scope: z.ZodEnum<{
77
+ global: "global";
78
+ role: "role";
79
+ }>;
80
+ roleKey: z.ZodNullable<z.ZodString>;
81
+ }, z.core.$strip>;
82
+ reviewBatchId: z.ZodNullable<z.ZodUUID>;
83
+ sessionId: z.ZodNullable<z.ZodUUID>;
84
+ reason: z.ZodString;
85
+ createdAt: z.ZodString;
86
+ }, z.core.$strip>;
87
+ export type AgentInstructionReviewItem = z.infer<typeof AgentInstructionReviewItem>;
88
+ export declare const AgentInstructionReviewListResponse: z.ZodObject<{
89
+ entries: z.ZodArray<z.ZodObject<{
90
+ revisionId: z.ZodUUID;
91
+ content: z.ZodString;
92
+ target: z.ZodObject<{
93
+ kind: z.ZodEnum<{
94
+ charter: "charter";
95
+ policy: "policy";
96
+ }>;
97
+ scope: z.ZodEnum<{
98
+ global: "global";
99
+ role: "role";
100
+ }>;
101
+ roleKey: z.ZodNullable<z.ZodString>;
102
+ }, z.core.$strip>;
103
+ reviewBatchId: z.ZodNullable<z.ZodUUID>;
104
+ sessionId: z.ZodNullable<z.ZodUUID>;
105
+ reason: z.ZodString;
106
+ createdAt: z.ZodString;
107
+ }, z.core.$strip>>;
108
+ nextCursor: z.ZodNullable<z.ZodString>;
109
+ }, z.core.$strip>;
110
+ export type AgentInstructionReviewListResponse = z.infer<typeof AgentInstructionReviewListResponse>;
@@ -0,0 +1,243 @@
1
+ import { z } from "zod";
2
+ /** Review controls publication. It never grants content or external-action authority. */
3
+ export declare const AgentLearningMode: z.ZodEnum<{
4
+ automatic: "automatic";
5
+ off: "off";
6
+ review_first: "review_first";
7
+ }>;
8
+ export type AgentLearningMode = z.infer<typeof AgentLearningMode>;
9
+ export declare const AgentLearningCategory: z.ZodEnum<{
10
+ instructions: "instructions";
11
+ knowledge: "knowledge";
12
+ skills: "skills";
13
+ }>;
14
+ export type AgentLearningCategory = z.infer<typeof AgentLearningCategory>;
15
+ export declare const AgentLearningDefaults: z.ZodObject<{
16
+ knowledge: z.ZodEnum<{
17
+ automatic: "automatic";
18
+ off: "off";
19
+ review_first: "review_first";
20
+ }>;
21
+ instructions: z.ZodEnum<{
22
+ automatic: "automatic";
23
+ off: "off";
24
+ review_first: "review_first";
25
+ }>;
26
+ skills: z.ZodEnum<{
27
+ automatic: "automatic";
28
+ off: "off";
29
+ review_first: "review_first";
30
+ }>;
31
+ }, z.core.$strict>;
32
+ export type AgentLearningDefaults = z.infer<typeof AgentLearningDefaults>;
33
+ export declare const DEFAULT_AGENT_LEARNING: Readonly<AgentLearningDefaults>;
34
+ /** An absent category inherits. `inherit` is a reset request, not persisted policy. */
35
+ export declare const AgentLearningOverrides: z.ZodObject<{
36
+ knowledge: z.ZodOptional<z.ZodEnum<{
37
+ automatic: "automatic";
38
+ off: "off";
39
+ review_first: "review_first";
40
+ }>>;
41
+ instructions: z.ZodOptional<z.ZodEnum<{
42
+ automatic: "automatic";
43
+ off: "off";
44
+ review_first: "review_first";
45
+ }>>;
46
+ skills: z.ZodOptional<z.ZodEnum<{
47
+ automatic: "automatic";
48
+ off: "off";
49
+ review_first: "review_first";
50
+ }>>;
51
+ }, z.core.$strict>;
52
+ export type AgentLearningOverrides = z.infer<typeof AgentLearningOverrides>;
53
+ export declare const AgentLearningOverridePatch: z.ZodObject<{
54
+ knowledge: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
55
+ automatic: "automatic";
56
+ off: "off";
57
+ review_first: "review_first";
58
+ }>, z.ZodLiteral<"inherit">]>>;
59
+ instructions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
60
+ automatic: "automatic";
61
+ off: "off";
62
+ review_first: "review_first";
63
+ }>, z.ZodLiteral<"inherit">]>>;
64
+ skills: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
65
+ automatic: "automatic";
66
+ off: "off";
67
+ review_first: "review_first";
68
+ }>, z.ZodLiteral<"inherit">]>>;
69
+ }, z.core.$strict>;
70
+ export type AgentLearningOverridePatch = z.infer<typeof AgentLearningOverridePatch>;
71
+ export declare const AgentLearningContext: z.ZodDiscriminatedUnion<[z.ZodObject<{
72
+ kind: z.ZodLiteral<"chat">;
73
+ id: z.ZodUUID;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ kind: z.ZodLiteral<"scheduled_task">;
76
+ id: z.ZodUUID;
77
+ }, z.core.$strict>], "kind">;
78
+ export type AgentLearningContext = z.infer<typeof AgentLearningContext>;
79
+ export declare const AgentLearningOwner: z.ZodDiscriminatedUnion<[z.ZodObject<{
80
+ kind: z.ZodLiteral<"workspace">;
81
+ workspaceId: z.ZodUUID;
82
+ }, z.core.$strict>, z.ZodObject<{
83
+ kind: z.ZodLiteral<"personal">;
84
+ subjectId: z.ZodString;
85
+ }, z.core.$strict>], "kind">;
86
+ export type AgentLearningOwner = z.infer<typeof AgentLearningOwner>;
87
+ export declare const AgentLearningSettings: z.ZodObject<{
88
+ owner: z.ZodDiscriminatedUnion<[z.ZodObject<{
89
+ kind: z.ZodLiteral<"workspace">;
90
+ workspaceId: z.ZodUUID;
91
+ }, z.core.$strict>, z.ZodObject<{
92
+ kind: z.ZodLiteral<"personal">;
93
+ subjectId: z.ZodString;
94
+ }, z.core.$strict>], "kind">;
95
+ version: z.ZodNumber;
96
+ defaults: z.ZodObject<{
97
+ knowledge: z.ZodEnum<{
98
+ automatic: "automatic";
99
+ off: "off";
100
+ review_first: "review_first";
101
+ }>;
102
+ instructions: z.ZodEnum<{
103
+ automatic: "automatic";
104
+ off: "off";
105
+ review_first: "review_first";
106
+ }>;
107
+ skills: z.ZodEnum<{
108
+ automatic: "automatic";
109
+ off: "off";
110
+ review_first: "review_first";
111
+ }>;
112
+ }, z.core.$strict>;
113
+ }, z.core.$strict>;
114
+ export type AgentLearningSettings = z.infer<typeof AgentLearningSettings>;
115
+ export declare const AgentLearningContextSettings: z.ZodObject<{
116
+ context: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ kind: z.ZodLiteral<"chat">;
118
+ id: z.ZodUUID;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ kind: z.ZodLiteral<"scheduled_task">;
121
+ id: z.ZodUUID;
122
+ }, z.core.$strict>], "kind">;
123
+ version: z.ZodNumber;
124
+ overrides: z.ZodObject<{
125
+ knowledge: z.ZodOptional<z.ZodEnum<{
126
+ automatic: "automatic";
127
+ off: "off";
128
+ review_first: "review_first";
129
+ }>>;
130
+ instructions: z.ZodOptional<z.ZodEnum<{
131
+ automatic: "automatic";
132
+ off: "off";
133
+ review_first: "review_first";
134
+ }>>;
135
+ skills: z.ZodOptional<z.ZodEnum<{
136
+ automatic: "automatic";
137
+ off: "off";
138
+ review_first: "review_first";
139
+ }>>;
140
+ }, z.core.$strict>;
141
+ }, z.core.$strict>;
142
+ export type AgentLearningContextSettings = z.infer<typeof AgentLearningContextSettings>;
143
+ /** Versioned settings returned by both central and contextual editors. */
144
+ export declare const AgentLearningSettingsRecord: z.ZodObject<{
145
+ ownerKey: z.ZodString;
146
+ contextKey: z.ZodString;
147
+ version: z.ZodNumber;
148
+ settings: z.ZodObject<{
149
+ knowledge: z.ZodOptional<z.ZodEnum<{
150
+ automatic: "automatic";
151
+ off: "off";
152
+ review_first: "review_first";
153
+ }>>;
154
+ instructions: z.ZodOptional<z.ZodEnum<{
155
+ automatic: "automatic";
156
+ off: "off";
157
+ review_first: "review_first";
158
+ }>>;
159
+ skills: z.ZodOptional<z.ZodEnum<{
160
+ automatic: "automatic";
161
+ off: "off";
162
+ review_first: "review_first";
163
+ }>>;
164
+ }, z.core.$strict>;
165
+ }, z.core.$strip>;
166
+ export type AgentLearningSettingsRecord = z.infer<typeof AgentLearningSettingsRecord>;
167
+ export declare const AgentLearningOverrideRecord: z.ZodObject<{
168
+ contextKey: z.ZodString;
169
+ version: z.ZodNumber;
170
+ settings: z.ZodObject<{
171
+ knowledge: z.ZodOptional<z.ZodEnum<{
172
+ automatic: "automatic";
173
+ off: "off";
174
+ review_first: "review_first";
175
+ }>>;
176
+ instructions: z.ZodOptional<z.ZodEnum<{
177
+ automatic: "automatic";
178
+ off: "off";
179
+ review_first: "review_first";
180
+ }>>;
181
+ skills: z.ZodOptional<z.ZodEnum<{
182
+ automatic: "automatic";
183
+ off: "off";
184
+ review_first: "review_first";
185
+ }>>;
186
+ }, z.core.$strict>;
187
+ updatedAt: z.ZodString;
188
+ label: z.ZodString;
189
+ }, z.core.$strip>;
190
+ export type AgentLearningOverrideRecord = z.infer<typeof AgentLearningOverrideRecord>;
191
+ export type SaveAgentLearningSettingsRequest = {
192
+ scope: "workspace" | "personal";
193
+ source?: AgentLearningContext;
194
+ operationId: string;
195
+ expectedVersion: number;
196
+ settings: AgentLearningOverridePatch;
197
+ };
198
+ export declare const AgentLearningEffectiveCategory: z.ZodObject<{
199
+ mode: z.ZodEnum<{
200
+ automatic: "automatic";
201
+ off: "off";
202
+ review_first: "review_first";
203
+ }>;
204
+ inherited: z.ZodBoolean;
205
+ }, z.core.$strict>;
206
+ export declare const AgentLearningEffectivePolicy: z.ZodObject<{
207
+ knowledge: z.ZodObject<{
208
+ mode: z.ZodEnum<{
209
+ automatic: "automatic";
210
+ off: "off";
211
+ review_first: "review_first";
212
+ }>;
213
+ inherited: z.ZodBoolean;
214
+ }, z.core.$strict>;
215
+ instructions: z.ZodObject<{
216
+ mode: z.ZodEnum<{
217
+ automatic: "automatic";
218
+ off: "off";
219
+ review_first: "review_first";
220
+ }>;
221
+ inherited: z.ZodBoolean;
222
+ }, z.core.$strict>;
223
+ skills: z.ZodObject<{
224
+ mode: z.ZodEnum<{
225
+ automatic: "automatic";
226
+ off: "off";
227
+ review_first: "review_first";
228
+ }>;
229
+ inherited: z.ZodBoolean;
230
+ }, z.core.$strict>;
231
+ }, z.core.$strict>;
232
+ export type AgentLearningEffectivePolicy = z.infer<typeof AgentLearningEffectivePolicy>;
233
+ /** Apply only at an authorized settings boundary; this function confers no authority. */
234
+ export declare function patchAgentLearningOverrides(current: AgentLearningOverrides, patch: AgentLearningOverridePatch): AgentLearningOverrides;
235
+ /** Pure resolution over accepted settings. Runtime callers persist the resulting snapshot. */
236
+ export declare function resolveAgentLearningPolicy(defaults: AgentLearningDefaults, overrides: AgentLearningOverrides): AgentLearningEffectivePolicy;
237
+ /** Migration adapter preserves explicit opt-outs and existing instruction/Skill choices. */
238
+ export declare function agentLearningDefaultsFromLegacy(input: {
239
+ memoryEnabled?: boolean;
240
+ workspaceMode?: "off" | "suggest" | "automatic";
241
+ }): AgentLearningDefaults;
242
+ /** Existing instruction and Skill lifecycles retain their native mode vocabulary. */
243
+ export declare function agentLearningDestinationMode(mode: AgentLearningMode): "automatic" | "off" | "suggest";
@@ -0,0 +1,292 @@
1
+ import { z } from "zod";
2
+ /** Compact, bounded session projection for workspace agent-topology browsers. */
3
+ export declare const AgentTopologySession: z.ZodObject<{
4
+ id: z.ZodString;
5
+ title: z.ZodNullable<z.ZodString>;
6
+ titleTruncated: z.ZodBoolean;
7
+ parentSessionId: z.ZodNullable<z.ZodString>;
8
+ rootSessionId: z.ZodString;
9
+ nestedAgentDepth: z.ZodNumber;
10
+ ancestorPath: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodString;
12
+ title: z.ZodNullable<z.ZodString>;
13
+ titleTruncated: z.ZodBoolean;
14
+ }, z.core.$strip>>;
15
+ status: z.ZodEnum<{
16
+ cancelled: "cancelled";
17
+ failed: "failed";
18
+ idle: "idle";
19
+ queued: "queued";
20
+ recovering: "recovering";
21
+ requires_action: "requires_action";
22
+ running: "running";
23
+ waiting_capacity: "waiting_capacity";
24
+ }>;
25
+ goal: z.ZodNullable<z.ZodObject<{
26
+ status: z.ZodEnum<{
27
+ active: "active";
28
+ completed: "completed";
29
+ paused: "paused";
30
+ }>;
31
+ summary: z.ZodString;
32
+ summaryTruncated: z.ZodBoolean;
33
+ }, z.core.$strip>>;
34
+ pause: z.ZodObject<{
35
+ state: z.ZodEnum<{
36
+ active: "active";
37
+ paused: "paused";
38
+ }>;
39
+ additionalBlockerCount: z.ZodNumber;
40
+ source: z.ZodNullable<z.ZodObject<{
41
+ kind: z.ZodEnum<{
42
+ session: "session";
43
+ workspace: "workspace";
44
+ }>;
45
+ sessionId: z.ZodOptional<z.ZodString>;
46
+ displayName: z.ZodString;
47
+ displayNameTruncated: z.ZodBoolean;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strip>;
50
+ children: z.ZodObject<{
51
+ directChildren: z.ZodNumber;
52
+ totalDescendants: z.ZodNumber;
53
+ runningDescendants: z.ZodNumber;
54
+ queuedDescendants: z.ZodNumber;
55
+ attentionDescendants: z.ZodNumber;
56
+ pausedDescendants: z.ZodNumber;
57
+ failedDescendants: z.ZodNumber;
58
+ truncated: z.ZodBoolean;
59
+ }, z.core.$strip>;
60
+ relatedWork: z.ZodObject<{
61
+ claims: z.ZodArray<z.ZodObject<{
62
+ id: z.ZodString;
63
+ sessionId: z.ZodString;
64
+ subject: z.ZodObject<{
65
+ namespace: z.ZodString;
66
+ type: z.ZodEnum<{
67
+ artifact: "artifact";
68
+ branch: "branch";
69
+ ci_run: "ci_run";
70
+ issue: "issue";
71
+ other: "other";
72
+ pull_request: "pull_request";
73
+ release: "release";
74
+ repository: "repository";
75
+ }>;
76
+ canonicalKey: z.ZodString;
77
+ displayLabel: z.ZodNullable<z.ZodString>;
78
+ }, z.core.$strip>;
79
+ role: z.ZodEnum<{
80
+ delivering: "delivering";
81
+ monitoring: "monitoring";
82
+ reviewing: "reviewing";
83
+ working: "working";
84
+ }>;
85
+ state: z.ZodEnum<{
86
+ active: "active";
87
+ released: "released";
88
+ stale: "stale";
89
+ superseded: "superseded";
90
+ }>;
91
+ revision: z.ZodNumber;
92
+ provenance: z.ZodEnum<{
93
+ explicit_agent: "explicit_agent";
94
+ session_resource: "session_resource";
95
+ system_lifecycle: "system_lifecycle";
96
+ trusted_integration: "trusted_integration";
97
+ user_api: "user_api";
98
+ }>;
99
+ version: z.ZodNullable<z.ZodObject<{
100
+ kind: z.ZodEnum<{
101
+ artifact_version: "artifact_version";
102
+ branch_head: "branch_head";
103
+ ci_run: "ci_run";
104
+ git_commit: "git_commit";
105
+ other: "other";
106
+ pull_request_head: "pull_request_head";
107
+ release_version: "release_version";
108
+ }>;
109
+ value: z.ZodString;
110
+ }, z.core.$strip>>;
111
+ observedAt: z.ZodString;
112
+ updatedAt: z.ZodString;
113
+ settledAt: z.ZodNullable<z.ZodString>;
114
+ }, z.core.$strip>>;
115
+ claimsTruncated: z.ZodBoolean;
116
+ match: z.ZodNullable<z.ZodObject<{
117
+ class: z.ZodEnum<{
118
+ exact_subject: "exact_subject";
119
+ fuzzy: "fuzzy";
120
+ goal: "goal";
121
+ title: "title";
122
+ }>;
123
+ field: z.ZodEnum<{
124
+ claim_key: "claim_key";
125
+ claim_label: "claim_label";
126
+ goal: "goal";
127
+ subject: "subject";
128
+ title: "title";
129
+ }>;
130
+ scoreBand: z.ZodEnum<{
131
+ exact: "exact";
132
+ related: "related";
133
+ strong: "strong";
134
+ }>;
135
+ claimId: z.ZodNullable<z.ZodString>;
136
+ }, z.core.$strict>>;
137
+ possibleOverlap: z.ZodBoolean;
138
+ advisoryOnly: z.ZodLiteral<true>;
139
+ noAdditionalAccess: z.ZodLiteral<true>;
140
+ }, z.core.$strict>;
141
+ createdAt: z.ZodString;
142
+ updatedAt: z.ZodString;
143
+ }, z.core.$strip>;
144
+ export type AgentTopologySession = z.infer<typeof AgentTopologySession>;
145
+ export declare const AgentTopologyPageResponse: z.ZodObject<{
146
+ sessions: z.ZodArray<z.ZodObject<{
147
+ id: z.ZodString;
148
+ title: z.ZodNullable<z.ZodString>;
149
+ titleTruncated: z.ZodBoolean;
150
+ parentSessionId: z.ZodNullable<z.ZodString>;
151
+ rootSessionId: z.ZodString;
152
+ nestedAgentDepth: z.ZodNumber;
153
+ ancestorPath: z.ZodArray<z.ZodObject<{
154
+ id: z.ZodString;
155
+ title: z.ZodNullable<z.ZodString>;
156
+ titleTruncated: z.ZodBoolean;
157
+ }, z.core.$strip>>;
158
+ status: z.ZodEnum<{
159
+ cancelled: "cancelled";
160
+ failed: "failed";
161
+ idle: "idle";
162
+ queued: "queued";
163
+ recovering: "recovering";
164
+ requires_action: "requires_action";
165
+ running: "running";
166
+ waiting_capacity: "waiting_capacity";
167
+ }>;
168
+ goal: z.ZodNullable<z.ZodObject<{
169
+ status: z.ZodEnum<{
170
+ active: "active";
171
+ completed: "completed";
172
+ paused: "paused";
173
+ }>;
174
+ summary: z.ZodString;
175
+ summaryTruncated: z.ZodBoolean;
176
+ }, z.core.$strip>>;
177
+ pause: z.ZodObject<{
178
+ state: z.ZodEnum<{
179
+ active: "active";
180
+ paused: "paused";
181
+ }>;
182
+ additionalBlockerCount: z.ZodNumber;
183
+ source: z.ZodNullable<z.ZodObject<{
184
+ kind: z.ZodEnum<{
185
+ session: "session";
186
+ workspace: "workspace";
187
+ }>;
188
+ sessionId: z.ZodOptional<z.ZodString>;
189
+ displayName: z.ZodString;
190
+ displayNameTruncated: z.ZodBoolean;
191
+ }, z.core.$strip>>;
192
+ }, z.core.$strip>;
193
+ children: z.ZodObject<{
194
+ directChildren: z.ZodNumber;
195
+ totalDescendants: z.ZodNumber;
196
+ runningDescendants: z.ZodNumber;
197
+ queuedDescendants: z.ZodNumber;
198
+ attentionDescendants: z.ZodNumber;
199
+ pausedDescendants: z.ZodNumber;
200
+ failedDescendants: z.ZodNumber;
201
+ truncated: z.ZodBoolean;
202
+ }, z.core.$strip>;
203
+ relatedWork: z.ZodObject<{
204
+ claims: z.ZodArray<z.ZodObject<{
205
+ id: z.ZodString;
206
+ sessionId: z.ZodString;
207
+ subject: z.ZodObject<{
208
+ namespace: z.ZodString;
209
+ type: z.ZodEnum<{
210
+ artifact: "artifact";
211
+ branch: "branch";
212
+ ci_run: "ci_run";
213
+ issue: "issue";
214
+ other: "other";
215
+ pull_request: "pull_request";
216
+ release: "release";
217
+ repository: "repository";
218
+ }>;
219
+ canonicalKey: z.ZodString;
220
+ displayLabel: z.ZodNullable<z.ZodString>;
221
+ }, z.core.$strip>;
222
+ role: z.ZodEnum<{
223
+ delivering: "delivering";
224
+ monitoring: "monitoring";
225
+ reviewing: "reviewing";
226
+ working: "working";
227
+ }>;
228
+ state: z.ZodEnum<{
229
+ active: "active";
230
+ released: "released";
231
+ stale: "stale";
232
+ superseded: "superseded";
233
+ }>;
234
+ revision: z.ZodNumber;
235
+ provenance: z.ZodEnum<{
236
+ explicit_agent: "explicit_agent";
237
+ session_resource: "session_resource";
238
+ system_lifecycle: "system_lifecycle";
239
+ trusted_integration: "trusted_integration";
240
+ user_api: "user_api";
241
+ }>;
242
+ version: z.ZodNullable<z.ZodObject<{
243
+ kind: z.ZodEnum<{
244
+ artifact_version: "artifact_version";
245
+ branch_head: "branch_head";
246
+ ci_run: "ci_run";
247
+ git_commit: "git_commit";
248
+ other: "other";
249
+ pull_request_head: "pull_request_head";
250
+ release_version: "release_version";
251
+ }>;
252
+ value: z.ZodString;
253
+ }, z.core.$strip>>;
254
+ observedAt: z.ZodString;
255
+ updatedAt: z.ZodString;
256
+ settledAt: z.ZodNullable<z.ZodString>;
257
+ }, z.core.$strip>>;
258
+ claimsTruncated: z.ZodBoolean;
259
+ match: z.ZodNullable<z.ZodObject<{
260
+ class: z.ZodEnum<{
261
+ exact_subject: "exact_subject";
262
+ fuzzy: "fuzzy";
263
+ goal: "goal";
264
+ title: "title";
265
+ }>;
266
+ field: z.ZodEnum<{
267
+ claim_key: "claim_key";
268
+ claim_label: "claim_label";
269
+ goal: "goal";
270
+ subject: "subject";
271
+ title: "title";
272
+ }>;
273
+ scoreBand: z.ZodEnum<{
274
+ exact: "exact";
275
+ related: "related";
276
+ strong: "strong";
277
+ }>;
278
+ claimId: z.ZodNullable<z.ZodString>;
279
+ }, z.core.$strict>>;
280
+ possibleOverlap: z.ZodBoolean;
281
+ advisoryOnly: z.ZodLiteral<true>;
282
+ noAdditionalAccess: z.ZodLiteral<true>;
283
+ }, z.core.$strict>;
284
+ createdAt: z.ZodString;
285
+ updatedAt: z.ZodString;
286
+ }, z.core.$strip>>;
287
+ total: z.ZodNumber;
288
+ hasMore: z.ZodBoolean;
289
+ humanAdvisoriesEnabled: z.ZodOptional<z.ZodBoolean>;
290
+ nextCursor: z.ZodNullable<z.ZodString>;
291
+ }, z.core.$strip>;
292
+ export type AgentTopologyPageResponse = z.infer<typeof AgentTopologyPageResponse>;
@@ -0,0 +1,9 @@
1
+ import type { AllowanceExhaustedRefusal } from "./usage-allowances.js";
2
+ /** Select only public refusal fields, including from an API error's details.
3
+ * LimitDecision's allowed:false and transport/SQL diagnostics never cross out.
4
+ */
5
+ export declare function parseAllowanceExhaustedRefusal(value: unknown): AllowanceExhaustedRefusal | null;
6
+ /** Bounded, fixed remedies: a ceiling is not an exhausted billing source.
7
+ * Never interpolate arbitrary exception prose or a member identifier.
8
+ */
9
+ export declare function allowanceExhaustedMessage(refusal: AllowanceExhaustedRefusal): string;