@eloxiv/contracts 0.0.0-stage → 0.1.1

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 (537) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -2
  3. package/dist/Agent.d.ts +792 -0
  4. package/dist/Agent.d.ts.map +1 -0
  5. package/dist/Agent.js +610 -0
  6. package/dist/Agent.js.map +1 -0
  7. package/dist/Analytics.d.ts +46 -0
  8. package/dist/Analytics.d.ts.map +1 -0
  9. package/dist/Analytics.js +89 -0
  10. package/dist/Analytics.js.map +1 -0
  11. package/dist/Approval.d.ts +70 -0
  12. package/dist/Approval.d.ts.map +1 -0
  13. package/dist/Approval.js +127 -0
  14. package/dist/Approval.js.map +1 -0
  15. package/dist/Catalog.d.ts +238 -0
  16. package/dist/Catalog.d.ts.map +1 -0
  17. package/dist/Catalog.js +169 -0
  18. package/dist/Catalog.js.map +1 -0
  19. package/dist/Checklist.d.ts +99 -0
  20. package/dist/Checklist.d.ts.map +1 -0
  21. package/dist/Checklist.js +105 -0
  22. package/dist/Checklist.js.map +1 -0
  23. package/dist/Data.d.ts +107 -0
  24. package/dist/Data.d.ts.map +1 -0
  25. package/dist/Data.js +93 -0
  26. package/dist/Data.js.map +1 -0
  27. package/dist/Devices.d.ts +857 -0
  28. package/dist/Devices.d.ts.map +1 -0
  29. package/dist/Devices.js +590 -0
  30. package/dist/Devices.js.map +1 -0
  31. package/dist/Durable.d.ts +406 -0
  32. package/dist/Durable.d.ts.map +1 -0
  33. package/dist/Durable.js +203 -0
  34. package/dist/Durable.js.map +1 -0
  35. package/dist/Errors.d.ts +95 -0
  36. package/dist/Errors.d.ts.map +1 -0
  37. package/dist/Errors.js +72 -0
  38. package/dist/Errors.js.map +1 -0
  39. package/dist/JsonSchema.d.ts +355 -0
  40. package/dist/JsonSchema.d.ts.map +1 -0
  41. package/dist/JsonSchema.js +151 -0
  42. package/dist/JsonSchema.js.map +1 -0
  43. package/dist/Manifest.d.ts +353 -0
  44. package/dist/Manifest.d.ts.map +1 -0
  45. package/dist/Manifest.js +894 -0
  46. package/dist/Manifest.js.map +1 -0
  47. package/dist/Module.d.ts +447 -0
  48. package/dist/Module.d.ts.map +1 -0
  49. package/dist/Module.js +221 -0
  50. package/dist/Module.js.map +1 -0
  51. package/dist/Optimistic.d.ts +192 -0
  52. package/dist/Optimistic.d.ts.map +1 -0
  53. package/dist/Optimistic.js +319 -0
  54. package/dist/Optimistic.js.map +1 -0
  55. package/dist/Projection.d.ts +163 -0
  56. package/dist/Projection.d.ts.map +1 -0
  57. package/dist/Projection.js +158 -0
  58. package/dist/Projection.js.map +1 -0
  59. package/dist/Proposals.d.ts +103 -0
  60. package/dist/Proposals.d.ts.map +1 -0
  61. package/dist/Proposals.js +72 -0
  62. package/dist/Proposals.js.map +1 -0
  63. package/dist/Receipt.d.ts +243 -0
  64. package/dist/Receipt.d.ts.map +1 -0
  65. package/dist/Receipt.js +108 -0
  66. package/dist/Receipt.js.map +1 -0
  67. package/dist/Records.d.ts +297 -0
  68. package/dist/Records.d.ts.map +1 -0
  69. package/dist/Records.js +171 -0
  70. package/dist/Records.js.map +1 -0
  71. package/dist/Render.d.ts +207 -0
  72. package/dist/Render.d.ts.map +1 -0
  73. package/dist/Render.js +502 -0
  74. package/dist/Render.js.map +1 -0
  75. package/dist/Rpc.d.ts +115 -0
  76. package/dist/Rpc.d.ts.map +1 -0
  77. package/dist/Rpc.js +68 -0
  78. package/dist/Rpc.js.map +1 -0
  79. package/dist/SearchLanguages.d.ts +4 -0
  80. package/dist/SearchLanguages.d.ts.map +1 -0
  81. package/dist/SearchLanguages.js +33 -0
  82. package/dist/SearchLanguages.js.map +1 -0
  83. package/dist/Service.d.ts +59 -0
  84. package/dist/Service.d.ts.map +1 -0
  85. package/dist/Service.js +38 -0
  86. package/dist/Service.js.map +1 -0
  87. package/dist/Versions.d.ts +9 -0
  88. package/dist/Versions.d.ts.map +1 -0
  89. package/dist/Versions.js +78 -0
  90. package/dist/Versions.js.map +1 -0
  91. package/dist/contracts/ActionConsent.d.ts +189 -0
  92. package/dist/contracts/ActionConsent.d.ts.map +1 -0
  93. package/dist/contracts/ActionConsent.js +129 -0
  94. package/dist/contracts/ActionConsent.js.map +1 -0
  95. package/dist/contracts/ActionRegistry.d.ts +149 -0
  96. package/dist/contracts/ActionRegistry.d.ts.map +1 -0
  97. package/dist/contracts/ActionRegistry.js +37 -0
  98. package/dist/contracts/ActionRegistry.js.map +1 -0
  99. package/dist/contracts/Actor.d.ts +129 -0
  100. package/dist/contracts/Actor.d.ts.map +1 -0
  101. package/dist/contracts/Actor.js +47 -0
  102. package/dist/contracts/Actor.js.map +1 -0
  103. package/dist/contracts/AgentResources.d.ts +248 -0
  104. package/dist/contracts/AgentResources.d.ts.map +1 -0
  105. package/dist/contracts/AgentResources.js +158 -0
  106. package/dist/contracts/AgentResources.js.map +1 -0
  107. package/dist/contracts/AgentRuntime.d.ts +453 -0
  108. package/dist/contracts/AgentRuntime.d.ts.map +1 -0
  109. package/dist/contracts/AgentRuntime.js +117 -0
  110. package/dist/contracts/AgentRuntime.js.map +1 -0
  111. package/dist/contracts/Approvals.d.ts +303 -0
  112. package/dist/contracts/Approvals.d.ts.map +1 -0
  113. package/dist/contracts/Approvals.js +117 -0
  114. package/dist/contracts/Approvals.js.map +1 -0
  115. package/dist/contracts/Audit.d.ts +510 -0
  116. package/dist/contracts/Audit.d.ts.map +1 -0
  117. package/dist/contracts/Audit.js +139 -0
  118. package/dist/contracts/Audit.js.map +1 -0
  119. package/dist/contracts/CalendarProvider.d.ts +572 -0
  120. package/dist/contracts/CalendarProvider.d.ts.map +1 -0
  121. package/dist/contracts/CalendarProvider.js +203 -0
  122. package/dist/contracts/CalendarProvider.js.map +1 -0
  123. package/dist/contracts/Capability.d.ts +197 -0
  124. package/dist/contracts/Capability.d.ts.map +1 -0
  125. package/dist/contracts/Capability.js +189 -0
  126. package/dist/contracts/Capability.js.map +1 -0
  127. package/dist/contracts/ClientSDK.d.ts +250 -0
  128. package/dist/contracts/ClientSDK.d.ts.map +1 -0
  129. package/dist/contracts/ClientSDK.js +184 -0
  130. package/dist/contracts/ClientSDK.js.map +1 -0
  131. package/dist/contracts/CollabDocument.d.ts +781 -0
  132. package/dist/contracts/CollabDocument.d.ts.map +1 -0
  133. package/dist/contracts/CollabDocument.js +364 -0
  134. package/dist/contracts/CollabDocument.js.map +1 -0
  135. package/dist/contracts/Command.d.ts +183 -0
  136. package/dist/contracts/Command.d.ts.map +1 -0
  137. package/dist/contracts/Command.js +66 -0
  138. package/dist/contracts/Command.js.map +1 -0
  139. package/dist/contracts/Connections.d.ts +612 -0
  140. package/dist/contracts/Connections.d.ts.map +1 -0
  141. package/dist/contracts/Connections.js +323 -0
  142. package/dist/contracts/Connections.js.map +1 -0
  143. package/dist/contracts/ContextAccounting.d.ts +79 -0
  144. package/dist/contracts/ContextAccounting.d.ts.map +1 -0
  145. package/dist/contracts/ContextAccounting.js +32 -0
  146. package/dist/contracts/ContextAccounting.js.map +1 -0
  147. package/dist/contracts/Daemon.d.ts +486 -0
  148. package/dist/contracts/Daemon.d.ts.map +1 -0
  149. package/dist/contracts/Daemon.js +192 -0
  150. package/dist/contracts/Daemon.js.map +1 -0
  151. package/dist/contracts/DbTx.d.ts +149 -0
  152. package/dist/contracts/DbTx.d.ts.map +1 -0
  153. package/dist/contracts/DbTx.js +94 -0
  154. package/dist/contracts/DbTx.js.map +1 -0
  155. package/dist/contracts/Delegation.d.ts +121 -0
  156. package/dist/contracts/Delegation.d.ts.map +1 -0
  157. package/dist/contracts/Delegation.js +76 -0
  158. package/dist/contracts/Delegation.js.map +1 -0
  159. package/dist/contracts/DeviceControl.d.ts +293 -0
  160. package/dist/contracts/DeviceControl.d.ts.map +1 -0
  161. package/dist/contracts/DeviceControl.js +107 -0
  162. package/dist/contracts/DeviceControl.js.map +1 -0
  163. package/dist/contracts/Directory.d.ts +492 -0
  164. package/dist/contracts/Directory.d.ts.map +1 -0
  165. package/dist/contracts/Directory.js +225 -0
  166. package/dist/contracts/Directory.js.map +1 -0
  167. package/dist/contracts/DirectoryProvider.d.ts +214 -0
  168. package/dist/contracts/DirectoryProvider.d.ts.map +1 -0
  169. package/dist/contracts/DirectoryProvider.js +73 -0
  170. package/dist/contracts/DirectoryProvider.js.map +1 -0
  171. package/dist/contracts/DocumentSource.d.ts +190 -0
  172. package/dist/contracts/DocumentSource.d.ts.map +1 -0
  173. package/dist/contracts/DocumentSource.js +64 -0
  174. package/dist/contracts/DocumentSource.js.map +1 -0
  175. package/dist/contracts/Files.d.ts +762 -0
  176. package/dist/contracts/Files.d.ts.map +1 -0
  177. package/dist/contracts/Files.js +339 -0
  178. package/dist/contracts/Files.js.map +1 -0
  179. package/dist/contracts/Flags.d.ts +265 -0
  180. package/dist/contracts/Flags.d.ts.map +1 -0
  181. package/dist/contracts/Flags.js +197 -0
  182. package/dist/contracts/Flags.js.map +1 -0
  183. package/dist/contracts/Host.d.ts +320 -0
  184. package/dist/contracts/Host.d.ts.map +1 -0
  185. package/dist/contracts/Host.js +224 -0
  186. package/dist/contracts/Host.js.map +1 -0
  187. package/dist/contracts/HttpApi.d.ts +102 -0
  188. package/dist/contracts/HttpApi.d.ts.map +1 -0
  189. package/dist/contracts/HttpApi.js +89 -0
  190. package/dist/contracts/HttpApi.js.map +1 -0
  191. package/dist/contracts/Ingestion.d.ts +522 -0
  192. package/dist/contracts/Ingestion.d.ts.map +1 -0
  193. package/dist/contracts/Ingestion.js +275 -0
  194. package/dist/contracts/Ingestion.js.map +1 -0
  195. package/dist/contracts/Ingress.d.ts +132 -0
  196. package/dist/contracts/Ingress.d.ts.map +1 -0
  197. package/dist/contracts/Ingress.js +102 -0
  198. package/dist/contracts/Ingress.js.map +1 -0
  199. package/dist/contracts/Invocation.d.ts +361 -0
  200. package/dist/contracts/Invocation.d.ts.map +1 -0
  201. package/dist/contracts/Invocation.js +104 -0
  202. package/dist/contracts/Invocation.js.map +1 -0
  203. package/dist/contracts/LocalClient.d.ts +888 -0
  204. package/dist/contracts/LocalClient.d.ts.map +1 -0
  205. package/dist/contracts/LocalClient.js +429 -0
  206. package/dist/contracts/LocalClient.js.map +1 -0
  207. package/dist/contracts/Locale.d.ts +162 -0
  208. package/dist/contracts/Locale.d.ts.map +1 -0
  209. package/dist/contracts/Locale.js +123 -0
  210. package/dist/contracts/Locale.js.map +1 -0
  211. package/dist/contracts/MachineIdentity.d.ts +434 -0
  212. package/dist/contracts/MachineIdentity.d.ts.map +1 -0
  213. package/dist/contracts/MachineIdentity.js +223 -0
  214. package/dist/contracts/MachineIdentity.js.map +1 -0
  215. package/dist/contracts/MailProvider.d.ts +791 -0
  216. package/dist/contracts/MailProvider.d.ts.map +1 -0
  217. package/dist/contracts/MailProvider.js +237 -0
  218. package/dist/contracts/MailProvider.js.map +1 -0
  219. package/dist/contracts/Memory.d.ts +62 -0
  220. package/dist/contracts/Memory.d.ts.map +1 -0
  221. package/dist/contracts/Memory.js +43 -0
  222. package/dist/contracts/Memory.js.map +1 -0
  223. package/dist/contracts/Messaging.d.ts +154 -0
  224. package/dist/contracts/Messaging.d.ts.map +1 -0
  225. package/dist/contracts/Messaging.js +97 -0
  226. package/dist/contracts/Messaging.js.map +1 -0
  227. package/dist/contracts/Metering.d.ts +334 -0
  228. package/dist/contracts/Metering.d.ts.map +1 -0
  229. package/dist/contracts/Metering.js +202 -0
  230. package/dist/contracts/Metering.js.map +1 -0
  231. package/dist/contracts/ModelProvider.d.ts +142 -0
  232. package/dist/contracts/ModelProvider.d.ts.map +1 -0
  233. package/dist/contracts/ModelProvider.js +72 -0
  234. package/dist/contracts/ModelProvider.js.map +1 -0
  235. package/dist/contracts/ModuleManifest.d.ts +2519 -0
  236. package/dist/contracts/ModuleManifest.d.ts.map +1 -0
  237. package/dist/contracts/ModuleManifest.js +272 -0
  238. package/dist/contracts/ModuleManifest.js.map +1 -0
  239. package/dist/contracts/NotificationChannel.d.ts +378 -0
  240. package/dist/contracts/NotificationChannel.d.ts.map +1 -0
  241. package/dist/contracts/NotificationChannel.js +136 -0
  242. package/dist/contracts/NotificationChannel.js.map +1 -0
  243. package/dist/contracts/Notifications.d.ts +417 -0
  244. package/dist/contracts/Notifications.d.ts.map +1 -0
  245. package/dist/contracts/Notifications.js +267 -0
  246. package/dist/contracts/Notifications.js.map +1 -0
  247. package/dist/contracts/Outbox.d.ts +469 -0
  248. package/dist/contracts/Outbox.d.ts.map +1 -0
  249. package/dist/contracts/Outbox.js +215 -0
  250. package/dist/contracts/Outbox.js.map +1 -0
  251. package/dist/contracts/Privacy.d.ts +1029 -0
  252. package/dist/contracts/Privacy.d.ts.map +1 -0
  253. package/dist/contracts/Privacy.js +437 -0
  254. package/dist/contracts/Privacy.js.map +1 -0
  255. package/dist/contracts/Progress.d.ts +305 -0
  256. package/dist/contracts/Progress.d.ts.map +1 -0
  257. package/dist/contracts/Progress.js +174 -0
  258. package/dist/contracts/Progress.js.map +1 -0
  259. package/dist/contracts/QuerySurface.d.ts +231 -0
  260. package/dist/contracts/QuerySurface.d.ts.map +1 -0
  261. package/dist/contracts/QuerySurface.js +113 -0
  262. package/dist/contracts/QuerySurface.js.map +1 -0
  263. package/dist/contracts/Readiness.d.ts +105 -0
  264. package/dist/contracts/Readiness.d.ts.map +1 -0
  265. package/dist/contracts/Readiness.js +57 -0
  266. package/dist/contracts/Readiness.js.map +1 -0
  267. package/dist/contracts/Release.d.ts +295 -0
  268. package/dist/contracts/Release.d.ts.map +1 -0
  269. package/dist/contracts/Release.js +175 -0
  270. package/dist/contracts/Release.js.map +1 -0
  271. package/dist/contracts/ResultRendering.d.ts +533 -0
  272. package/dist/contracts/ResultRendering.d.ts.map +1 -0
  273. package/dist/contracts/ResultRendering.js +59 -0
  274. package/dist/contracts/ResultRendering.js.map +1 -0
  275. package/dist/contracts/Sandbox.d.ts +1164 -0
  276. package/dist/contracts/Sandbox.d.ts.map +1 -0
  277. package/dist/contracts/Sandbox.js +550 -0
  278. package/dist/contracts/Sandbox.js.map +1 -0
  279. package/dist/contracts/Scheduler.d.ts +814 -0
  280. package/dist/contracts/Scheduler.d.ts.map +1 -0
  281. package/dist/contracts/Scheduler.js +202 -0
  282. package/dist/contracts/Scheduler.js.map +1 -0
  283. package/dist/contracts/ScreenContext.d.ts +514 -0
  284. package/dist/contracts/ScreenContext.d.ts.map +1 -0
  285. package/dist/contracts/ScreenContext.js +272 -0
  286. package/dist/contracts/ScreenContext.js.map +1 -0
  287. package/dist/contracts/Search.d.ts +308 -0
  288. package/dist/contracts/Search.d.ts.map +1 -0
  289. package/dist/contracts/Search.js +107 -0
  290. package/dist/contracts/Search.js.map +1 -0
  291. package/dist/contracts/Secrets.d.ts +483 -0
  292. package/dist/contracts/Secrets.d.ts.map +1 -0
  293. package/dist/contracts/Secrets.js +136 -0
  294. package/dist/contracts/Secrets.js.map +1 -0
  295. package/dist/contracts/Settings.d.ts +221 -0
  296. package/dist/contracts/Settings.d.ts.map +1 -0
  297. package/dist/contracts/Settings.js +163 -0
  298. package/dist/contracts/Settings.js.map +1 -0
  299. package/dist/contracts/Sharing.d.ts +319 -0
  300. package/dist/contracts/Sharing.d.ts.map +1 -0
  301. package/dist/contracts/Sharing.js +172 -0
  302. package/dist/contracts/Sharing.js.map +1 -0
  303. package/dist/contracts/Slot.d.ts +162 -0
  304. package/dist/contracts/Slot.d.ts.map +1 -0
  305. package/dist/contracts/Slot.js +56 -0
  306. package/dist/contracts/Slot.js.map +1 -0
  307. package/dist/contracts/Space.d.ts +256 -0
  308. package/dist/contracts/Space.d.ts.map +1 -0
  309. package/dist/contracts/Space.js +133 -0
  310. package/dist/contracts/Space.js.map +1 -0
  311. package/dist/contracts/StorageAdapter.d.ts +124 -0
  312. package/dist/contracts/StorageAdapter.d.ts.map +1 -0
  313. package/dist/contracts/StorageAdapter.js +96 -0
  314. package/dist/contracts/StorageAdapter.js.map +1 -0
  315. package/dist/contracts/StorageBackend.d.ts +310 -0
  316. package/dist/contracts/StorageBackend.d.ts.map +1 -0
  317. package/dist/contracts/StorageBackend.js +196 -0
  318. package/dist/contracts/StorageBackend.js.map +1 -0
  319. package/dist/contracts/Sync.d.ts +286 -0
  320. package/dist/contracts/Sync.d.ts.map +1 -0
  321. package/dist/contracts/Sync.js +157 -0
  322. package/dist/contracts/Sync.js.map +1 -0
  323. package/dist/contracts/Telemetry.d.ts +183 -0
  324. package/dist/contracts/Telemetry.d.ts.map +1 -0
  325. package/dist/contracts/Telemetry.js +153 -0
  326. package/dist/contracts/Telemetry.js.map +1 -0
  327. package/dist/contracts/ThemeTokens.d.ts +212 -0
  328. package/dist/contracts/ThemeTokens.d.ts.map +1 -0
  329. package/dist/contracts/ThemeTokens.js +111 -0
  330. package/dist/contracts/ThemeTokens.js.map +1 -0
  331. package/dist/contracts/ToolSource.d.ts +135 -0
  332. package/dist/contracts/ToolSource.d.ts.map +1 -0
  333. package/dist/contracts/ToolSource.js +81 -0
  334. package/dist/contracts/ToolSource.js.map +1 -0
  335. package/dist/contracts/Versioning.d.ts +363 -0
  336. package/dist/contracts/Versioning.d.ts.map +1 -0
  337. package/dist/contracts/Versioning.js +201 -0
  338. package/dist/contracts/Versioning.js.map +1 -0
  339. package/dist/contracts/View.d.ts +232 -0
  340. package/dist/contracts/View.d.ts.map +1 -0
  341. package/dist/contracts/View.js +102 -0
  342. package/dist/contracts/View.js.map +1 -0
  343. package/dist/contracts/WorkItems.d.ts +242 -0
  344. package/dist/contracts/WorkItems.d.ts.map +1 -0
  345. package/dist/contracts/WorkItems.js +126 -0
  346. package/dist/contracts/WorkItems.js.map +1 -0
  347. package/dist/contracts/Workflow.d.ts +191 -0
  348. package/dist/contracts/Workflow.d.ts.map +1 -0
  349. package/dist/contracts/Workflow.js +63 -0
  350. package/dist/contracts/Workflow.js.map +1 -0
  351. package/dist/contracts/index.d.ts +75 -0
  352. package/dist/contracts/index.d.ts.map +1 -0
  353. package/dist/contracts/index.js +196 -0
  354. package/dist/contracts/index.js.map +1 -0
  355. package/dist/devices/module.d.ts +3777 -0
  356. package/dist/devices/module.d.ts.map +1 -0
  357. package/dist/devices/module.js +179 -0
  358. package/dist/devices/module.js.map +1 -0
  359. package/dist/drizzle/Entity.d.ts +148 -0
  360. package/dist/drizzle/Entity.d.ts.map +1 -0
  361. package/dist/drizzle/Entity.js +396 -0
  362. package/dist/drizzle/Entity.js.map +1 -0
  363. package/dist/index.d.ts +20 -0
  364. package/dist/index.d.ts.map +1 -0
  365. package/dist/index.js +20 -0
  366. package/dist/index.js.map +1 -0
  367. package/package.json +48 -3
  368. package/schema/Actor.json +46 -0
  369. package/schema/AuditRecord.json +403 -0
  370. package/schema/DaemonHealth.json +29 -0
  371. package/schema/InvocationError.json +257 -0
  372. package/schema/InvocationReceipt.json +253 -0
  373. package/schema/Lockfile.json +129 -0
  374. package/schema/OutboxEvent.json +36 -0
  375. package/schema/PairingConfirm.json +33 -0
  376. package/schema/PairingResult.json +18 -0
  377. package/schema/PairingStart.json +18 -0
  378. package/schema/ProvenanceEntry.json +110 -0
  379. package/schema/ReplayEnvelope.json +269 -0
  380. package/schema/Surface.json +17 -0
  381. package/schema/codegen/LocalClient.json +1298 -0
  382. package/schema/codegen/Sandbox.json +320 -0
  383. package/schema/contracts/ActionConsent.json +1930 -0
  384. package/schema/contracts/ActionRegistry.json +722 -0
  385. package/schema/contracts/Actor.json +451 -0
  386. package/schema/contracts/AgentResources.json +1400 -0
  387. package/schema/contracts/AgentRuntime.json +4017 -0
  388. package/schema/contracts/Approvals.json +2916 -0
  389. package/schema/contracts/Audit.json +3268 -0
  390. package/schema/contracts/CalendarProvider.json +5557 -0
  391. package/schema/contracts/ClientSDK.json +1400 -0
  392. package/schema/contracts/CollabDocument.json +4012 -0
  393. package/schema/contracts/Command.json +616 -0
  394. package/schema/contracts/Connections.json +6687 -0
  395. package/schema/contracts/ContextAccounting.json +685 -0
  396. package/schema/contracts/Daemon.json +4555 -0
  397. package/schema/contracts/DbTx.json +321 -0
  398. package/schema/contracts/Delegation.json +949 -0
  399. package/schema/contracts/DeviceControl.json +2626 -0
  400. package/schema/contracts/Directory.json +5168 -0
  401. package/schema/contracts/DirectoryProvider.json +2090 -0
  402. package/schema/contracts/DocumentSource.json +2044 -0
  403. package/schema/contracts/Files.json +4122 -0
  404. package/schema/contracts/Flags.json +1202 -0
  405. package/schema/contracts/Host.json +1769 -0
  406. package/schema/contracts/HttpApi.json +1615 -0
  407. package/schema/contracts/Ingestion.json +3211 -0
  408. package/schema/contracts/Ingress.json +819 -0
  409. package/schema/contracts/Invocation.json +2044 -0
  410. package/schema/contracts/LocalClient.json +6657 -0
  411. package/schema/contracts/Locale.json +654 -0
  412. package/schema/contracts/MachineIdentity.json +2303 -0
  413. package/schema/contracts/MailProvider.json +6663 -0
  414. package/schema/contracts/Memory.json +579 -0
  415. package/schema/contracts/Messaging.json +1764 -0
  416. package/schema/contracts/Metering.json +3060 -0
  417. package/schema/contracts/ModelProvider.json +1127 -0
  418. package/schema/contracts/ModuleManifest.json +9449 -0
  419. package/schema/contracts/NotificationChannel.json +986 -0
  420. package/schema/contracts/Notifications.json +4280 -0
  421. package/schema/contracts/Outbox.json +1451 -0
  422. package/schema/contracts/Privacy.json +4354 -0
  423. package/schema/contracts/Progress.json +1524 -0
  424. package/schema/contracts/QuerySurface.json +661 -0
  425. package/schema/contracts/Readiness.json +209 -0
  426. package/schema/contracts/Release.json +805 -0
  427. package/schema/contracts/ResultRendering.json +2859 -0
  428. package/schema/contracts/Sandbox.json +2286 -0
  429. package/schema/contracts/Scheduler.json +6138 -0
  430. package/schema/contracts/ScreenContext.json +1238 -0
  431. package/schema/contracts/Search.json +1058 -0
  432. package/schema/contracts/Secrets.json +2444 -0
  433. package/schema/contracts/Settings.json +654 -0
  434. package/schema/contracts/Sharing.json +2854 -0
  435. package/schema/contracts/Slot.json +537 -0
  436. package/schema/contracts/Space.json +892 -0
  437. package/schema/contracts/StorageAdapter.json +623 -0
  438. package/schema/contracts/StorageBackend.json +2421 -0
  439. package/schema/contracts/Sync.json +894 -0
  440. package/schema/contracts/Telemetry.json +696 -0
  441. package/schema/contracts/ThemeTokens.json +547 -0
  442. package/schema/contracts/ToolSource.json +1333 -0
  443. package/schema/contracts/Versioning.json +1481 -0
  444. package/schema/contracts/View.json +750 -0
  445. package/schema/contracts/WorkItems.json +1731 -0
  446. package/schema/contracts/Workflow.json +1242 -0
  447. package/src/Agent.ts +758 -0
  448. package/src/Analytics.ts +110 -0
  449. package/src/Approval.ts +131 -0
  450. package/src/Catalog.ts +192 -0
  451. package/src/Checklist.ts +162 -0
  452. package/src/Data.ts +109 -0
  453. package/src/Devices.ts +721 -0
  454. package/src/Durable.ts +240 -0
  455. package/src/Errors.ts +111 -0
  456. package/src/JsonSchema.ts +166 -0
  457. package/src/Manifest.ts +1147 -0
  458. package/src/Module.ts +640 -0
  459. package/src/Optimistic.ts +332 -0
  460. package/src/Projection.ts +207 -0
  461. package/src/Proposals.ts +89 -0
  462. package/src/Receipt.ts +125 -0
  463. package/src/Records.ts +197 -0
  464. package/src/Render.ts +515 -0
  465. package/src/Rpc.ts +113 -0
  466. package/src/SearchLanguages.ts +33 -0
  467. package/src/Service.ts +102 -0
  468. package/src/Versions.ts +69 -0
  469. package/src/contracts/ActionConsent.ts +150 -0
  470. package/src/contracts/ActionRegistry.ts +39 -0
  471. package/src/contracts/Actor.ts +53 -0
  472. package/src/contracts/AgentResources.ts +167 -0
  473. package/src/contracts/AgentRuntime.ts +154 -0
  474. package/src/contracts/Approvals.ts +133 -0
  475. package/src/contracts/Audit.ts +160 -0
  476. package/src/contracts/CalendarProvider.ts +241 -0
  477. package/src/contracts/Capability.ts +246 -0
  478. package/src/contracts/ClientSDK.ts +199 -0
  479. package/src/contracts/CollabDocument.ts +420 -0
  480. package/src/contracts/Command.ts +74 -0
  481. package/src/contracts/Connections.ts +360 -0
  482. package/src/contracts/ContextAccounting.ts +35 -0
  483. package/src/contracts/Daemon.ts +247 -0
  484. package/src/contracts/DbTx.ts +110 -0
  485. package/src/contracts/Delegation.ts +91 -0
  486. package/src/contracts/DeviceControl.ts +143 -0
  487. package/src/contracts/Directory.ts +384 -0
  488. package/src/contracts/DirectoryProvider.ts +82 -0
  489. package/src/contracts/DocumentSource.ts +71 -0
  490. package/src/contracts/Files.ts +395 -0
  491. package/src/contracts/Flags.ts +241 -0
  492. package/src/contracts/Host.ts +245 -0
  493. package/src/contracts/HttpApi.ts +100 -0
  494. package/src/contracts/Ingestion.ts +315 -0
  495. package/src/contracts/Ingress.ts +132 -0
  496. package/src/contracts/Invocation.ts +122 -0
  497. package/src/contracts/LocalClient.ts +620 -0
  498. package/src/contracts/Locale.ts +133 -0
  499. package/src/contracts/MachineIdentity.ts +305 -0
  500. package/src/contracts/MailProvider.ts +272 -0
  501. package/src/contracts/Memory.ts +47 -0
  502. package/src/contracts/Messaging.ts +108 -0
  503. package/src/contracts/Metering.ts +231 -0
  504. package/src/contracts/ModelProvider.ts +87 -0
  505. package/src/contracts/ModuleManifest.ts +310 -0
  506. package/src/contracts/NotificationChannel.ts +158 -0
  507. package/src/contracts/Notifications.ts +309 -0
  508. package/src/contracts/Outbox.ts +246 -0
  509. package/src/contracts/Privacy.ts +502 -0
  510. package/src/contracts/Progress.ts +196 -0
  511. package/src/contracts/QuerySurface.ts +134 -0
  512. package/src/contracts/Readiness.ts +67 -0
  513. package/src/contracts/Release.ts +199 -0
  514. package/src/contracts/ResultRendering.ts +65 -0
  515. package/src/contracts/Sandbox.ts +648 -0
  516. package/src/contracts/Scheduler.ts +237 -0
  517. package/src/contracts/ScreenContext.ts +316 -0
  518. package/src/contracts/Search.ts +126 -0
  519. package/src/contracts/Secrets.ts +162 -0
  520. package/src/contracts/Settings.ts +207 -0
  521. package/src/contracts/Sharing.ts +205 -0
  522. package/src/contracts/Slot.ts +61 -0
  523. package/src/contracts/Space.ts +157 -0
  524. package/src/contracts/StorageAdapter.ts +104 -0
  525. package/src/contracts/StorageBackend.ts +220 -0
  526. package/src/contracts/Sync.ts +180 -0
  527. package/src/contracts/Telemetry.ts +177 -0
  528. package/src/contracts/ThemeTokens.ts +136 -0
  529. package/src/contracts/ToolSource.ts +94 -0
  530. package/src/contracts/Versioning.ts +237 -0
  531. package/src/contracts/View.ts +116 -0
  532. package/src/contracts/WorkItems.ts +144 -0
  533. package/src/contracts/Workflow.ts +67 -0
  534. package/src/contracts/index.ts +205 -0
  535. package/src/devices/module.ts +201 -0
  536. package/src/drizzle/Entity.ts +524 -0
  537. package/src/index.ts +19 -0
@@ -0,0 +1,4017 @@
1
+ {
2
+ "title": "AgentRuntime",
3
+ "kind": "kernel",
4
+ "version": "1.9.0",
5
+ "description": "The agent loop over the whole action registry and the query surface: durable runs (journalled model and tool steps, fenced, resumable after a crash without repeating a tool's effect), loop limits, cancellation, consent holds, per-person conversations, a resumable event stream, one-shot completions, each run's stored trace, and people's feedback on their runs as data.",
6
+ "operations": {
7
+ "send": {
8
+ "description": "Send a message to the caller's agent (action `agent.send`): it is stored in the person's conversation (a new one unless `conversationId` is given) and a run starts, under the organisation's loop and tool policies as they stand (settings `agent.loop`, `agent.tools`). Agent-originated callers are refused. With `device`, the run executes on one of the person's paired devices (a local harness on their own subscription) instead of the deployment's model. With `screen` (a ScreenContext snapshot: references only), the model is shown what the person is looking at. With `mode: plan`, the run reads and plans but changes nothing: only read-only tools are offered and any other action is refused before it is called.",
9
+ "input": {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "type": "object",
12
+ "properties": {
13
+ "conversationId": {
14
+ "type": "string"
15
+ },
16
+ "text": {
17
+ "type": "string"
18
+ },
19
+ "attachments": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "kind": {
25
+ "type": "string",
26
+ "enum": [
27
+ "file"
28
+ ]
29
+ },
30
+ "fileId": {
31
+ "type": "string"
32
+ },
33
+ "name": {
34
+ "type": "string"
35
+ },
36
+ "mediaType": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "required": [
41
+ "kind",
42
+ "fileId",
43
+ "name",
44
+ "mediaType"
45
+ ],
46
+ "additionalProperties": true
47
+ }
48
+ },
49
+ "device": {
50
+ "type": "object",
51
+ "properties": {
52
+ "deviceId": {
53
+ "type": "string"
54
+ },
55
+ "harness": {
56
+ "type": "string",
57
+ "enum": [
58
+ "claude-code",
59
+ "codex",
60
+ "opencode",
61
+ "acp"
62
+ ]
63
+ },
64
+ "model": {
65
+ "type": "string",
66
+ "maxLength": 200
67
+ },
68
+ "cwd": {
69
+ "type": "string",
70
+ "maxLength": 1000
71
+ },
72
+ "timeoutMs": {
73
+ "anyOf": [
74
+ {
75
+ "type": "number"
76
+ },
77
+ {
78
+ "type": "string",
79
+ "enum": [
80
+ "Infinity",
81
+ "-Infinity",
82
+ "NaN"
83
+ ]
84
+ }
85
+ ]
86
+ },
87
+ "workspaceTools": {
88
+ "type": "boolean"
89
+ },
90
+ "resumable": {
91
+ "type": "boolean"
92
+ },
93
+ "followUp": {
94
+ "type": "string",
95
+ "maxLength": 100
96
+ }
97
+ },
98
+ "required": [
99
+ "deviceId"
100
+ ],
101
+ "additionalProperties": true
102
+ },
103
+ "screen": {
104
+ "type": "object",
105
+ "properties": {
106
+ "view": {
107
+ "anyOf": [
108
+ {
109
+ "type": "object",
110
+ "properties": {
111
+ "id": {
112
+ "type": "string",
113
+ "maxLength": 200
114
+ },
115
+ "title": {
116
+ "type": "string",
117
+ "maxLength": 200
118
+ },
119
+ "route": {
120
+ "type": "string",
121
+ "maxLength": 500
122
+ }
123
+ },
124
+ "required": [
125
+ "id",
126
+ "title",
127
+ "route"
128
+ ],
129
+ "additionalProperties": true
130
+ },
131
+ {
132
+ "type": "null"
133
+ }
134
+ ]
135
+ },
136
+ "focus": {
137
+ "anyOf": [
138
+ {
139
+ "type": "object",
140
+ "properties": {
141
+ "module": {
142
+ "type": "string",
143
+ "minLength": 1,
144
+ "maxLength": 100
145
+ },
146
+ "entity": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "maxLength": 100
150
+ },
151
+ "id": {
152
+ "type": "string",
153
+ "minLength": 1,
154
+ "maxLength": 500
155
+ }
156
+ },
157
+ "required": [
158
+ "module",
159
+ "entity",
160
+ "id"
161
+ ],
162
+ "additionalProperties": true
163
+ },
164
+ {
165
+ "type": "null"
166
+ }
167
+ ]
168
+ },
169
+ "selection": {
170
+ "type": "array",
171
+ "items": {
172
+ "type": "object",
173
+ "properties": {
174
+ "module": {
175
+ "type": "string",
176
+ "minLength": 1,
177
+ "maxLength": 100
178
+ },
179
+ "entity": {
180
+ "type": "string",
181
+ "minLength": 1,
182
+ "maxLength": 100
183
+ },
184
+ "id": {
185
+ "type": "string",
186
+ "minLength": 1,
187
+ "maxLength": 500
188
+ }
189
+ },
190
+ "required": [
191
+ "module",
192
+ "entity",
193
+ "id"
194
+ ],
195
+ "additionalProperties": true
196
+ },
197
+ "maxItems": 50
198
+ },
199
+ "visible": {
200
+ "type": "array",
201
+ "items": {
202
+ "type": "object",
203
+ "properties": {
204
+ "module": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 100
208
+ },
209
+ "entity": {
210
+ "type": "string",
211
+ "minLength": 1,
212
+ "maxLength": 100
213
+ },
214
+ "id": {
215
+ "type": "string",
216
+ "minLength": 1,
217
+ "maxLength": 500
218
+ }
219
+ },
220
+ "required": [
221
+ "module",
222
+ "entity",
223
+ "id"
224
+ ],
225
+ "additionalProperties": true
226
+ },
227
+ "maxItems": 50
228
+ },
229
+ "withheld": {
230
+ "type": "integer",
231
+ "minimum": 0,
232
+ "maximum": 9007199254740991
233
+ }
234
+ },
235
+ "required": [
236
+ "view",
237
+ "focus",
238
+ "selection",
239
+ "visible",
240
+ "withheld"
241
+ ],
242
+ "additionalProperties": true
243
+ },
244
+ "mode": {
245
+ "type": "string",
246
+ "enum": [
247
+ "act",
248
+ "plan"
249
+ ]
250
+ },
251
+ "resource": {
252
+ "type": "object",
253
+ "properties": {
254
+ "module": {
255
+ "type": "string",
256
+ "minLength": 1,
257
+ "maxLength": 100
258
+ },
259
+ "entity": {
260
+ "type": "string",
261
+ "minLength": 1,
262
+ "maxLength": 100
263
+ },
264
+ "id": {
265
+ "type": "string",
266
+ "minLength": 1,
267
+ "maxLength": 300
268
+ }
269
+ },
270
+ "required": [
271
+ "module",
272
+ "entity",
273
+ "id"
274
+ ],
275
+ "additionalProperties": true
276
+ }
277
+ },
278
+ "required": [
279
+ "text"
280
+ ],
281
+ "additionalProperties": true
282
+ },
283
+ "output": {
284
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
285
+ "type": "object",
286
+ "properties": {
287
+ "conversationId": {
288
+ "type": "string"
289
+ },
290
+ "messageId": {
291
+ "type": "string"
292
+ },
293
+ "runId": {
294
+ "type": "string"
295
+ },
296
+ "queued": {
297
+ "type": "object",
298
+ "properties": {
299
+ "submissionId": {
300
+ "type": "string"
301
+ }
302
+ },
303
+ "required": [
304
+ "submissionId"
305
+ ],
306
+ "additionalProperties": true
307
+ }
308
+ },
309
+ "required": [
310
+ "conversationId",
311
+ "messageId",
312
+ "runId"
313
+ ],
314
+ "additionalProperties": true
315
+ },
316
+ "errors": {
317
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
318
+ "anyOf": [
319
+ {
320
+ "$ref": "#/$defs/UnauthenticatedEncoded"
321
+ },
322
+ {
323
+ "$ref": "#/$defs/ForbiddenEncoded"
324
+ },
325
+ {
326
+ "$ref": "#/$defs/InvalidInputEncoded"
327
+ }
328
+ ],
329
+ "$defs": {
330
+ "UnauthenticatedEncoded": {
331
+ "type": "object",
332
+ "properties": {
333
+ "_tag": {
334
+ "type": "string",
335
+ "enum": [
336
+ "Unauthenticated"
337
+ ]
338
+ },
339
+ "message": {
340
+ "type": "string"
341
+ }
342
+ },
343
+ "required": [
344
+ "_tag",
345
+ "message"
346
+ ],
347
+ "additionalProperties": true
348
+ },
349
+ "ForbiddenEncoded": {
350
+ "type": "object",
351
+ "properties": {
352
+ "_tag": {
353
+ "type": "string",
354
+ "enum": [
355
+ "Forbidden"
356
+ ]
357
+ },
358
+ "message": {
359
+ "type": "string"
360
+ },
361
+ "action": {
362
+ "type": "string"
363
+ }
364
+ },
365
+ "required": [
366
+ "_tag",
367
+ "message",
368
+ "action"
369
+ ],
370
+ "additionalProperties": true
371
+ },
372
+ "InvalidInputEncoded": {
373
+ "type": "object",
374
+ "properties": {
375
+ "_tag": {
376
+ "type": "string",
377
+ "enum": [
378
+ "InvalidInput"
379
+ ]
380
+ },
381
+ "message": {
382
+ "type": "string"
383
+ }
384
+ },
385
+ "required": [
386
+ "_tag",
387
+ "message"
388
+ ],
389
+ "additionalProperties": true
390
+ }
391
+ }
392
+ }
393
+ },
394
+ "events": {
395
+ "description": "The run's events after `after` (a sequence number), for its owner: durable, so a client that reconnects misses nothing. Over HTTP, a server-sent event stream that ends with `run-finished`.",
396
+ "input": {
397
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
398
+ "type": "object",
399
+ "properties": {
400
+ "runId": {
401
+ "type": "string"
402
+ },
403
+ "after": {
404
+ "anyOf": [
405
+ {
406
+ "type": "number"
407
+ },
408
+ {
409
+ "type": "string",
410
+ "enum": [
411
+ "Infinity",
412
+ "-Infinity",
413
+ "NaN"
414
+ ]
415
+ }
416
+ ]
417
+ }
418
+ },
419
+ "required": [
420
+ "runId"
421
+ ],
422
+ "additionalProperties": true
423
+ },
424
+ "output": {
425
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
426
+ "type": "array",
427
+ "items": {
428
+ "type": "object",
429
+ "properties": {
430
+ "runId": {
431
+ "type": "string"
432
+ },
433
+ "seq": {
434
+ "anyOf": [
435
+ {
436
+ "type": "number"
437
+ },
438
+ {
439
+ "type": "string",
440
+ "enum": [
441
+ "Infinity",
442
+ "-Infinity",
443
+ "NaN"
444
+ ]
445
+ }
446
+ ]
447
+ },
448
+ "type": {
449
+ "type": "string",
450
+ "enum": [
451
+ "run-started",
452
+ "model-step",
453
+ "tool-call",
454
+ "tool-result",
455
+ "consent-required",
456
+ "consent-decided",
457
+ "compacted",
458
+ "delegated",
459
+ "seat-spawned",
460
+ "team-message",
461
+ "reply-discarded",
462
+ "answer-checked",
463
+ "reconciled",
464
+ "processor-tripped",
465
+ "run-finished",
466
+ "text-delta"
467
+ ]
468
+ },
469
+ "data": {},
470
+ "at": {
471
+ "type": "string"
472
+ }
473
+ },
474
+ "required": [
475
+ "runId",
476
+ "seq",
477
+ "type",
478
+ "data",
479
+ "at"
480
+ ],
481
+ "additionalProperties": true
482
+ }
483
+ },
484
+ "errors": {
485
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
486
+ "anyOf": [
487
+ {
488
+ "$ref": "#/$defs/UnauthenticatedEncoded"
489
+ },
490
+ {
491
+ "$ref": "#/$defs/UnknownRunEncoded"
492
+ }
493
+ ],
494
+ "$defs": {
495
+ "UnauthenticatedEncoded": {
496
+ "type": "object",
497
+ "properties": {
498
+ "_tag": {
499
+ "type": "string",
500
+ "enum": [
501
+ "Unauthenticated"
502
+ ]
503
+ },
504
+ "message": {
505
+ "type": "string"
506
+ }
507
+ },
508
+ "required": [
509
+ "_tag",
510
+ "message"
511
+ ],
512
+ "additionalProperties": true
513
+ },
514
+ "UnknownRunEncoded": {
515
+ "type": "object",
516
+ "properties": {
517
+ "_tag": {
518
+ "type": "string",
519
+ "enum": [
520
+ "UnknownRun"
521
+ ]
522
+ },
523
+ "runId": {
524
+ "type": "string"
525
+ }
526
+ },
527
+ "required": [
528
+ "_tag",
529
+ "runId"
530
+ ],
531
+ "additionalProperties": true
532
+ }
533
+ }
534
+ }
535
+ },
536
+ "status": {
537
+ "description": "A run's state, limits, usage and result, for its owner; its mode, what its final-answer check found (`verification`: the receipts of its writes, and whether the answer was challenged or annotated), and while it is active, its activity (`stalled` when it has recorded nothing for longer than the deployment's `stallAfterMs` and waits on no one).",
538
+ "input": {
539
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
540
+ "type": "object",
541
+ "properties": {
542
+ "runId": {
543
+ "type": "string"
544
+ }
545
+ },
546
+ "required": [
547
+ "runId"
548
+ ],
549
+ "additionalProperties": true
550
+ },
551
+ "output": {
552
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
553
+ "type": "object",
554
+ "properties": {
555
+ "id": {
556
+ "type": "string"
557
+ },
558
+ "orgId": {
559
+ "type": "string"
560
+ },
561
+ "userId": {
562
+ "type": "string"
563
+ },
564
+ "conversationId": {
565
+ "type": "string"
566
+ },
567
+ "parentRunId": {
568
+ "anyOf": [
569
+ {
570
+ "type": "string"
571
+ },
572
+ {
573
+ "type": "null"
574
+ }
575
+ ]
576
+ },
577
+ "kind": {
578
+ "type": "string",
579
+ "enum": [
580
+ "turn",
581
+ "subagent",
582
+ "job"
583
+ ]
584
+ },
585
+ "status": {
586
+ "type": "string",
587
+ "enum": [
588
+ "queued",
589
+ "running",
590
+ "waiting",
591
+ "succeeded",
592
+ "stopped",
593
+ "failed",
594
+ "cancelled"
595
+ ]
596
+ },
597
+ "stopReason": {
598
+ "anyOf": [
599
+ {
600
+ "type": "string",
601
+ "enum": [
602
+ "completed",
603
+ "noop",
604
+ "steps",
605
+ "tokens",
606
+ "wall-time",
607
+ "budget",
608
+ "cancelled",
609
+ "model-error",
610
+ "error",
611
+ "processor"
612
+ ]
613
+ },
614
+ {
615
+ "type": "null"
616
+ }
617
+ ]
618
+ },
619
+ "limits": {
620
+ "type": "object",
621
+ "properties": {
622
+ "maxSteps": {
623
+ "anyOf": [
624
+ {
625
+ "type": "number"
626
+ },
627
+ {
628
+ "type": "string",
629
+ "enum": [
630
+ "Infinity",
631
+ "-Infinity",
632
+ "NaN"
633
+ ]
634
+ }
635
+ ]
636
+ },
637
+ "maxTokens": {
638
+ "anyOf": [
639
+ {
640
+ "type": "number"
641
+ },
642
+ {
643
+ "type": "string",
644
+ "enum": [
645
+ "Infinity",
646
+ "-Infinity",
647
+ "NaN"
648
+ ]
649
+ }
650
+ ]
651
+ },
652
+ "maxWallMs": {
653
+ "anyOf": [
654
+ {
655
+ "type": "number"
656
+ },
657
+ {
658
+ "type": "string",
659
+ "enum": [
660
+ "Infinity",
661
+ "-Infinity",
662
+ "NaN"
663
+ ]
664
+ }
665
+ ]
666
+ }
667
+ },
668
+ "required": [
669
+ "maxSteps",
670
+ "maxTokens",
671
+ "maxWallMs"
672
+ ],
673
+ "additionalProperties": true
674
+ },
675
+ "tools": {
676
+ "anyOf": [
677
+ {
678
+ "type": "array",
679
+ "items": {
680
+ "type": "string"
681
+ }
682
+ },
683
+ {
684
+ "type": "null"
685
+ }
686
+ ]
687
+ },
688
+ "usage": {
689
+ "type": "object",
690
+ "properties": {
691
+ "inputTokens": {
692
+ "anyOf": [
693
+ {
694
+ "type": "number"
695
+ },
696
+ {
697
+ "type": "string",
698
+ "enum": [
699
+ "Infinity",
700
+ "-Infinity",
701
+ "NaN"
702
+ ]
703
+ }
704
+ ]
705
+ },
706
+ "outputTokens": {
707
+ "anyOf": [
708
+ {
709
+ "type": "number"
710
+ },
711
+ {
712
+ "type": "string",
713
+ "enum": [
714
+ "Infinity",
715
+ "-Infinity",
716
+ "NaN"
717
+ ]
718
+ }
719
+ ]
720
+ }
721
+ },
722
+ "required": [
723
+ "inputTokens",
724
+ "outputTokens"
725
+ ],
726
+ "additionalProperties": true
727
+ },
728
+ "steps": {
729
+ "anyOf": [
730
+ {
731
+ "type": "number"
732
+ },
733
+ {
734
+ "type": "string",
735
+ "enum": [
736
+ "Infinity",
737
+ "-Infinity",
738
+ "NaN"
739
+ ]
740
+ }
741
+ ]
742
+ },
743
+ "result": {
744
+ "anyOf": [
745
+ {
746
+ "type": "string"
747
+ },
748
+ {
749
+ "type": "null"
750
+ }
751
+ ]
752
+ },
753
+ "error": {
754
+ "anyOf": [
755
+ {
756
+ "type": "string"
757
+ },
758
+ {
759
+ "type": "null"
760
+ }
761
+ ]
762
+ },
763
+ "mode": {
764
+ "type": "string",
765
+ "enum": [
766
+ "act",
767
+ "plan"
768
+ ]
769
+ },
770
+ "continuation": {
771
+ "type": "object",
772
+ "properties": {
773
+ "of": {
774
+ "type": "string"
775
+ },
776
+ "previous": {
777
+ "type": "string"
778
+ },
779
+ "attempt": {
780
+ "anyOf": [
781
+ {
782
+ "type": "number"
783
+ },
784
+ {
785
+ "type": "string",
786
+ "enum": [
787
+ "Infinity",
788
+ "-Infinity",
789
+ "NaN"
790
+ ]
791
+ }
792
+ ]
793
+ },
794
+ "automatic": {
795
+ "type": "boolean"
796
+ }
797
+ },
798
+ "required": [
799
+ "of",
800
+ "previous",
801
+ "attempt",
802
+ "automatic"
803
+ ],
804
+ "additionalProperties": true
805
+ },
806
+ "verification": {
807
+ "anyOf": [
808
+ {
809
+ "type": "object",
810
+ "properties": {
811
+ "outcome": {
812
+ "type": "string",
813
+ "enum": [
814
+ "passed",
815
+ "retried",
816
+ "annotated"
817
+ ]
818
+ },
819
+ "receipts": {
820
+ "type": "array",
821
+ "items": {
822
+ "type": "object",
823
+ "properties": {
824
+ "tool": {
825
+ "type": "string"
826
+ },
827
+ "receipt": {
828
+ "type": "object",
829
+ "properties": {
830
+ "changed": {
831
+ "type": "boolean"
832
+ },
833
+ "verified": {
834
+ "anyOf": [
835
+ {
836
+ "type": "boolean"
837
+ },
838
+ {
839
+ "type": "string",
840
+ "enum": [
841
+ "unverified"
842
+ ]
843
+ }
844
+ ]
845
+ },
846
+ "summary": {
847
+ "type": "string",
848
+ "maxLength": 300
849
+ },
850
+ "subject": {
851
+ "type": "string",
852
+ "maxLength": 300
853
+ },
854
+ "checks": {
855
+ "type": "array",
856
+ "items": {
857
+ "type": "object",
858
+ "properties": {
859
+ "id": {
860
+ "type": "string",
861
+ "maxLength": 100
862
+ },
863
+ "ok": {
864
+ "type": "boolean"
865
+ },
866
+ "detail": {
867
+ "type": "string",
868
+ "maxLength": 300
869
+ }
870
+ },
871
+ "required": [
872
+ "id",
873
+ "ok"
874
+ ],
875
+ "additionalProperties": true
876
+ },
877
+ "maxItems": 8
878
+ },
879
+ "warnings": {
880
+ "type": "array",
881
+ "items": {
882
+ "type": "string",
883
+ "maxLength": 300
884
+ },
885
+ "maxItems": 5
886
+ }
887
+ },
888
+ "required": [
889
+ "changed",
890
+ "verified",
891
+ "summary"
892
+ ],
893
+ "additionalProperties": true
894
+ }
895
+ },
896
+ "required": [
897
+ "tool",
898
+ "receipt"
899
+ ],
900
+ "additionalProperties": true
901
+ }
902
+ },
903
+ "challengedBy": {
904
+ "type": "array",
905
+ "items": {
906
+ "type": "string"
907
+ }
908
+ }
909
+ },
910
+ "required": [
911
+ "outcome",
912
+ "receipts"
913
+ ],
914
+ "additionalProperties": true
915
+ },
916
+ {
917
+ "type": "null"
918
+ }
919
+ ]
920
+ },
921
+ "activity": {
922
+ "type": "object",
923
+ "properties": {
924
+ "lastEventAt": {
925
+ "anyOf": [
926
+ {
927
+ "type": "string"
928
+ },
929
+ {
930
+ "type": "null"
931
+ }
932
+ ]
933
+ },
934
+ "stalled": {
935
+ "type": "boolean"
936
+ }
937
+ },
938
+ "required": [
939
+ "lastEventAt",
940
+ "stalled"
941
+ ],
942
+ "additionalProperties": true
943
+ }
944
+ },
945
+ "required": [
946
+ "id",
947
+ "orgId",
948
+ "userId",
949
+ "conversationId",
950
+ "parentRunId",
951
+ "kind",
952
+ "status",
953
+ "stopReason",
954
+ "limits",
955
+ "tools",
956
+ "usage",
957
+ "steps",
958
+ "result",
959
+ "error"
960
+ ],
961
+ "additionalProperties": true
962
+ },
963
+ "errors": {
964
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
965
+ "anyOf": [
966
+ {
967
+ "$ref": "#/$defs/UnauthenticatedEncoded"
968
+ },
969
+ {
970
+ "$ref": "#/$defs/UnknownRunEncoded"
971
+ }
972
+ ],
973
+ "$defs": {
974
+ "UnauthenticatedEncoded": {
975
+ "type": "object",
976
+ "properties": {
977
+ "_tag": {
978
+ "type": "string",
979
+ "enum": [
980
+ "Unauthenticated"
981
+ ]
982
+ },
983
+ "message": {
984
+ "type": "string"
985
+ }
986
+ },
987
+ "required": [
988
+ "_tag",
989
+ "message"
990
+ ],
991
+ "additionalProperties": true
992
+ },
993
+ "UnknownRunEncoded": {
994
+ "type": "object",
995
+ "properties": {
996
+ "_tag": {
997
+ "type": "string",
998
+ "enum": [
999
+ "UnknownRun"
1000
+ ]
1001
+ },
1002
+ "runId": {
1003
+ "type": "string"
1004
+ }
1005
+ },
1006
+ "required": [
1007
+ "_tag",
1008
+ "runId"
1009
+ ],
1010
+ "additionalProperties": true
1011
+ }
1012
+ }
1013
+ }
1014
+ },
1015
+ "active": {
1016
+ "description": "The caller's active runs (queued, running, waiting; their sub-agents' too), oldest first, each with its activity.",
1017
+ "input": {
1018
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1019
+ "not": {
1020
+ "type": "null"
1021
+ }
1022
+ },
1023
+ "output": {
1024
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1025
+ "type": "array",
1026
+ "items": {
1027
+ "type": "object",
1028
+ "properties": {
1029
+ "id": {
1030
+ "type": "string"
1031
+ },
1032
+ "orgId": {
1033
+ "type": "string"
1034
+ },
1035
+ "userId": {
1036
+ "type": "string"
1037
+ },
1038
+ "conversationId": {
1039
+ "type": "string"
1040
+ },
1041
+ "parentRunId": {
1042
+ "anyOf": [
1043
+ {
1044
+ "type": "string"
1045
+ },
1046
+ {
1047
+ "type": "null"
1048
+ }
1049
+ ]
1050
+ },
1051
+ "kind": {
1052
+ "type": "string",
1053
+ "enum": [
1054
+ "turn",
1055
+ "subagent",
1056
+ "job"
1057
+ ]
1058
+ },
1059
+ "status": {
1060
+ "type": "string",
1061
+ "enum": [
1062
+ "queued",
1063
+ "running",
1064
+ "waiting",
1065
+ "succeeded",
1066
+ "stopped",
1067
+ "failed",
1068
+ "cancelled"
1069
+ ]
1070
+ },
1071
+ "stopReason": {
1072
+ "anyOf": [
1073
+ {
1074
+ "type": "string",
1075
+ "enum": [
1076
+ "completed",
1077
+ "noop",
1078
+ "steps",
1079
+ "tokens",
1080
+ "wall-time",
1081
+ "budget",
1082
+ "cancelled",
1083
+ "model-error",
1084
+ "error",
1085
+ "processor"
1086
+ ]
1087
+ },
1088
+ {
1089
+ "type": "null"
1090
+ }
1091
+ ]
1092
+ },
1093
+ "limits": {
1094
+ "type": "object",
1095
+ "properties": {
1096
+ "maxSteps": {
1097
+ "anyOf": [
1098
+ {
1099
+ "type": "number"
1100
+ },
1101
+ {
1102
+ "type": "string",
1103
+ "enum": [
1104
+ "Infinity",
1105
+ "-Infinity",
1106
+ "NaN"
1107
+ ]
1108
+ }
1109
+ ]
1110
+ },
1111
+ "maxTokens": {
1112
+ "anyOf": [
1113
+ {
1114
+ "type": "number"
1115
+ },
1116
+ {
1117
+ "type": "string",
1118
+ "enum": [
1119
+ "Infinity",
1120
+ "-Infinity",
1121
+ "NaN"
1122
+ ]
1123
+ }
1124
+ ]
1125
+ },
1126
+ "maxWallMs": {
1127
+ "anyOf": [
1128
+ {
1129
+ "type": "number"
1130
+ },
1131
+ {
1132
+ "type": "string",
1133
+ "enum": [
1134
+ "Infinity",
1135
+ "-Infinity",
1136
+ "NaN"
1137
+ ]
1138
+ }
1139
+ ]
1140
+ }
1141
+ },
1142
+ "required": [
1143
+ "maxSteps",
1144
+ "maxTokens",
1145
+ "maxWallMs"
1146
+ ],
1147
+ "additionalProperties": true
1148
+ },
1149
+ "tools": {
1150
+ "anyOf": [
1151
+ {
1152
+ "type": "array",
1153
+ "items": {
1154
+ "type": "string"
1155
+ }
1156
+ },
1157
+ {
1158
+ "type": "null"
1159
+ }
1160
+ ]
1161
+ },
1162
+ "usage": {
1163
+ "type": "object",
1164
+ "properties": {
1165
+ "inputTokens": {
1166
+ "anyOf": [
1167
+ {
1168
+ "type": "number"
1169
+ },
1170
+ {
1171
+ "type": "string",
1172
+ "enum": [
1173
+ "Infinity",
1174
+ "-Infinity",
1175
+ "NaN"
1176
+ ]
1177
+ }
1178
+ ]
1179
+ },
1180
+ "outputTokens": {
1181
+ "anyOf": [
1182
+ {
1183
+ "type": "number"
1184
+ },
1185
+ {
1186
+ "type": "string",
1187
+ "enum": [
1188
+ "Infinity",
1189
+ "-Infinity",
1190
+ "NaN"
1191
+ ]
1192
+ }
1193
+ ]
1194
+ }
1195
+ },
1196
+ "required": [
1197
+ "inputTokens",
1198
+ "outputTokens"
1199
+ ],
1200
+ "additionalProperties": true
1201
+ },
1202
+ "steps": {
1203
+ "anyOf": [
1204
+ {
1205
+ "type": "number"
1206
+ },
1207
+ {
1208
+ "type": "string",
1209
+ "enum": [
1210
+ "Infinity",
1211
+ "-Infinity",
1212
+ "NaN"
1213
+ ]
1214
+ }
1215
+ ]
1216
+ },
1217
+ "result": {
1218
+ "anyOf": [
1219
+ {
1220
+ "type": "string"
1221
+ },
1222
+ {
1223
+ "type": "null"
1224
+ }
1225
+ ]
1226
+ },
1227
+ "error": {
1228
+ "anyOf": [
1229
+ {
1230
+ "type": "string"
1231
+ },
1232
+ {
1233
+ "type": "null"
1234
+ }
1235
+ ]
1236
+ },
1237
+ "mode": {
1238
+ "type": "string",
1239
+ "enum": [
1240
+ "act",
1241
+ "plan"
1242
+ ]
1243
+ },
1244
+ "continuation": {
1245
+ "type": "object",
1246
+ "properties": {
1247
+ "of": {
1248
+ "type": "string"
1249
+ },
1250
+ "previous": {
1251
+ "type": "string"
1252
+ },
1253
+ "attempt": {
1254
+ "anyOf": [
1255
+ {
1256
+ "type": "number"
1257
+ },
1258
+ {
1259
+ "type": "string",
1260
+ "enum": [
1261
+ "Infinity",
1262
+ "-Infinity",
1263
+ "NaN"
1264
+ ]
1265
+ }
1266
+ ]
1267
+ },
1268
+ "automatic": {
1269
+ "type": "boolean"
1270
+ }
1271
+ },
1272
+ "required": [
1273
+ "of",
1274
+ "previous",
1275
+ "attempt",
1276
+ "automatic"
1277
+ ],
1278
+ "additionalProperties": true
1279
+ },
1280
+ "verification": {
1281
+ "anyOf": [
1282
+ {
1283
+ "type": "object",
1284
+ "properties": {
1285
+ "outcome": {
1286
+ "type": "string",
1287
+ "enum": [
1288
+ "passed",
1289
+ "retried",
1290
+ "annotated"
1291
+ ]
1292
+ },
1293
+ "receipts": {
1294
+ "type": "array",
1295
+ "items": {
1296
+ "type": "object",
1297
+ "properties": {
1298
+ "tool": {
1299
+ "type": "string"
1300
+ },
1301
+ "receipt": {
1302
+ "type": "object",
1303
+ "properties": {
1304
+ "changed": {
1305
+ "type": "boolean"
1306
+ },
1307
+ "verified": {
1308
+ "anyOf": [
1309
+ {
1310
+ "type": "boolean"
1311
+ },
1312
+ {
1313
+ "type": "string",
1314
+ "enum": [
1315
+ "unverified"
1316
+ ]
1317
+ }
1318
+ ]
1319
+ },
1320
+ "summary": {
1321
+ "type": "string",
1322
+ "maxLength": 300
1323
+ },
1324
+ "subject": {
1325
+ "type": "string",
1326
+ "maxLength": 300
1327
+ },
1328
+ "checks": {
1329
+ "type": "array",
1330
+ "items": {
1331
+ "type": "object",
1332
+ "properties": {
1333
+ "id": {
1334
+ "type": "string",
1335
+ "maxLength": 100
1336
+ },
1337
+ "ok": {
1338
+ "type": "boolean"
1339
+ },
1340
+ "detail": {
1341
+ "type": "string",
1342
+ "maxLength": 300
1343
+ }
1344
+ },
1345
+ "required": [
1346
+ "id",
1347
+ "ok"
1348
+ ],
1349
+ "additionalProperties": true
1350
+ },
1351
+ "maxItems": 8
1352
+ },
1353
+ "warnings": {
1354
+ "type": "array",
1355
+ "items": {
1356
+ "type": "string",
1357
+ "maxLength": 300
1358
+ },
1359
+ "maxItems": 5
1360
+ }
1361
+ },
1362
+ "required": [
1363
+ "changed",
1364
+ "verified",
1365
+ "summary"
1366
+ ],
1367
+ "additionalProperties": true
1368
+ }
1369
+ },
1370
+ "required": [
1371
+ "tool",
1372
+ "receipt"
1373
+ ],
1374
+ "additionalProperties": true
1375
+ }
1376
+ },
1377
+ "challengedBy": {
1378
+ "type": "array",
1379
+ "items": {
1380
+ "type": "string"
1381
+ }
1382
+ }
1383
+ },
1384
+ "required": [
1385
+ "outcome",
1386
+ "receipts"
1387
+ ],
1388
+ "additionalProperties": true
1389
+ },
1390
+ {
1391
+ "type": "null"
1392
+ }
1393
+ ]
1394
+ },
1395
+ "activity": {
1396
+ "type": "object",
1397
+ "properties": {
1398
+ "lastEventAt": {
1399
+ "anyOf": [
1400
+ {
1401
+ "type": "string"
1402
+ },
1403
+ {
1404
+ "type": "null"
1405
+ }
1406
+ ]
1407
+ },
1408
+ "stalled": {
1409
+ "type": "boolean"
1410
+ }
1411
+ },
1412
+ "required": [
1413
+ "lastEventAt",
1414
+ "stalled"
1415
+ ],
1416
+ "additionalProperties": true
1417
+ }
1418
+ },
1419
+ "required": [
1420
+ "id",
1421
+ "orgId",
1422
+ "userId",
1423
+ "conversationId",
1424
+ "parentRunId",
1425
+ "kind",
1426
+ "status",
1427
+ "stopReason",
1428
+ "limits",
1429
+ "tools",
1430
+ "usage",
1431
+ "steps",
1432
+ "result",
1433
+ "error"
1434
+ ],
1435
+ "additionalProperties": true
1436
+ }
1437
+ },
1438
+ "errors": {
1439
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1440
+ "$ref": "#/$defs/UnauthenticatedEncoded",
1441
+ "$defs": {
1442
+ "UnauthenticatedEncoded": {
1443
+ "type": "object",
1444
+ "properties": {
1445
+ "_tag": {
1446
+ "type": "string",
1447
+ "enum": [
1448
+ "Unauthenticated"
1449
+ ]
1450
+ },
1451
+ "message": {
1452
+ "type": "string"
1453
+ }
1454
+ },
1455
+ "required": [
1456
+ "_tag",
1457
+ "message"
1458
+ ],
1459
+ "additionalProperties": true
1460
+ }
1461
+ }
1462
+ }
1463
+ },
1464
+ "cancel": {
1465
+ "description": "Cancel a run (action `agent.cancel`): it stops before its next step, also while it waits for consent or a sub-agent, and ends `cancelled` (with its sub-agents), whatever a model call in flight returns: that reply is metered and recorded as `reply-discarded`, never applied. A run that already finished keeps its outcome: `InvalidInput` (already finished).",
1466
+ "input": {
1467
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1468
+ "type": "object",
1469
+ "properties": {
1470
+ "runId": {
1471
+ "type": "string"
1472
+ }
1473
+ },
1474
+ "required": [
1475
+ "runId"
1476
+ ],
1477
+ "additionalProperties": true
1478
+ },
1479
+ "output": {
1480
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1481
+ "type": "object",
1482
+ "properties": {
1483
+ "runId": {
1484
+ "type": "string"
1485
+ }
1486
+ },
1487
+ "required": [
1488
+ "runId"
1489
+ ],
1490
+ "additionalProperties": true
1491
+ },
1492
+ "errors": {
1493
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1494
+ "anyOf": [
1495
+ {
1496
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1497
+ },
1498
+ {
1499
+ "$ref": "#/$defs/ForbiddenEncoded"
1500
+ },
1501
+ {
1502
+ "$ref": "#/$defs/InvalidInputEncoded"
1503
+ }
1504
+ ],
1505
+ "$defs": {
1506
+ "UnauthenticatedEncoded": {
1507
+ "type": "object",
1508
+ "properties": {
1509
+ "_tag": {
1510
+ "type": "string",
1511
+ "enum": [
1512
+ "Unauthenticated"
1513
+ ]
1514
+ },
1515
+ "message": {
1516
+ "type": "string"
1517
+ }
1518
+ },
1519
+ "required": [
1520
+ "_tag",
1521
+ "message"
1522
+ ],
1523
+ "additionalProperties": true
1524
+ },
1525
+ "ForbiddenEncoded": {
1526
+ "type": "object",
1527
+ "properties": {
1528
+ "_tag": {
1529
+ "type": "string",
1530
+ "enum": [
1531
+ "Forbidden"
1532
+ ]
1533
+ },
1534
+ "message": {
1535
+ "type": "string"
1536
+ },
1537
+ "action": {
1538
+ "type": "string"
1539
+ }
1540
+ },
1541
+ "required": [
1542
+ "_tag",
1543
+ "message",
1544
+ "action"
1545
+ ],
1546
+ "additionalProperties": true
1547
+ },
1548
+ "InvalidInputEncoded": {
1549
+ "type": "object",
1550
+ "properties": {
1551
+ "_tag": {
1552
+ "type": "string",
1553
+ "enum": [
1554
+ "InvalidInput"
1555
+ ]
1556
+ },
1557
+ "message": {
1558
+ "type": "string"
1559
+ }
1560
+ },
1561
+ "required": [
1562
+ "_tag",
1563
+ "message"
1564
+ ],
1565
+ "additionalProperties": true
1566
+ }
1567
+ }
1568
+ }
1569
+ },
1570
+ "continue": {
1571
+ "description": "Continue an interrupted turn (action `agent.continue`): a run of the conversation's latest turn that stopped, failed or was cancelled is taken up by a new run on the same logical turn (no new message from the person), which first reconciles what the interrupted run did: each tool call it asked for but never recorded is given its outcome from the receipt store (completed, not run, or unknown: its external effects not confirmed), and the answers that arrived after it was cancelled are shown as late answers, never acted on. The kernel also continues a turn by itself after a transient model failure (rate-limited, timed out), at most three times, with backoff.",
1572
+ "input": {
1573
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1574
+ "type": "object",
1575
+ "properties": {
1576
+ "runId": {
1577
+ "type": "string"
1578
+ }
1579
+ },
1580
+ "required": [
1581
+ "runId"
1582
+ ],
1583
+ "additionalProperties": true
1584
+ },
1585
+ "output": {
1586
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1587
+ "type": "object",
1588
+ "properties": {
1589
+ "id": {
1590
+ "type": "string"
1591
+ },
1592
+ "conversationId": {
1593
+ "type": "string"
1594
+ }
1595
+ },
1596
+ "required": [
1597
+ "id",
1598
+ "conversationId"
1599
+ ],
1600
+ "additionalProperties": true
1601
+ },
1602
+ "errors": {
1603
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1604
+ "anyOf": [
1605
+ {
1606
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1607
+ },
1608
+ {
1609
+ "$ref": "#/$defs/ForbiddenEncoded"
1610
+ },
1611
+ {
1612
+ "$ref": "#/$defs/InvalidInputEncoded"
1613
+ }
1614
+ ],
1615
+ "$defs": {
1616
+ "UnauthenticatedEncoded": {
1617
+ "type": "object",
1618
+ "properties": {
1619
+ "_tag": {
1620
+ "type": "string",
1621
+ "enum": [
1622
+ "Unauthenticated"
1623
+ ]
1624
+ },
1625
+ "message": {
1626
+ "type": "string"
1627
+ }
1628
+ },
1629
+ "required": [
1630
+ "_tag",
1631
+ "message"
1632
+ ],
1633
+ "additionalProperties": true
1634
+ },
1635
+ "ForbiddenEncoded": {
1636
+ "type": "object",
1637
+ "properties": {
1638
+ "_tag": {
1639
+ "type": "string",
1640
+ "enum": [
1641
+ "Forbidden"
1642
+ ]
1643
+ },
1644
+ "message": {
1645
+ "type": "string"
1646
+ },
1647
+ "action": {
1648
+ "type": "string"
1649
+ }
1650
+ },
1651
+ "required": [
1652
+ "_tag",
1653
+ "message",
1654
+ "action"
1655
+ ],
1656
+ "additionalProperties": true
1657
+ },
1658
+ "InvalidInputEncoded": {
1659
+ "type": "object",
1660
+ "properties": {
1661
+ "_tag": {
1662
+ "type": "string",
1663
+ "enum": [
1664
+ "InvalidInput"
1665
+ ]
1666
+ },
1667
+ "message": {
1668
+ "type": "string"
1669
+ }
1670
+ },
1671
+ "required": [
1672
+ "_tag",
1673
+ "message"
1674
+ ],
1675
+ "additionalProperties": true
1676
+ }
1677
+ }
1678
+ }
1679
+ },
1680
+ "complete": {
1681
+ "description": "A one-shot completion for module code: text (or an object matching `schema`) from the organisation's model, metered against the person's and organisation's budgets.",
1682
+ "input": {
1683
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "messages": {
1687
+ "type": "array",
1688
+ "items": {
1689
+ "type": "object",
1690
+ "properties": {
1691
+ "role": {
1692
+ "type": "string",
1693
+ "enum": [
1694
+ "system",
1695
+ "user",
1696
+ "assistant"
1697
+ ]
1698
+ },
1699
+ "content": {
1700
+ "type": "string"
1701
+ }
1702
+ },
1703
+ "required": [
1704
+ "role",
1705
+ "content"
1706
+ ],
1707
+ "additionalProperties": true
1708
+ }
1709
+ },
1710
+ "schema": {},
1711
+ "maxOutputTokens": {
1712
+ "anyOf": [
1713
+ {
1714
+ "type": "number"
1715
+ },
1716
+ {
1717
+ "type": "string",
1718
+ "enum": [
1719
+ "Infinity",
1720
+ "-Infinity",
1721
+ "NaN"
1722
+ ]
1723
+ }
1724
+ ]
1725
+ }
1726
+ },
1727
+ "required": [
1728
+ "messages"
1729
+ ],
1730
+ "additionalProperties": true
1731
+ },
1732
+ "output": {
1733
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1734
+ "type": "object",
1735
+ "properties": {
1736
+ "text": {
1737
+ "type": "string"
1738
+ },
1739
+ "object": {},
1740
+ "usage": {
1741
+ "type": "object",
1742
+ "properties": {
1743
+ "inputTokens": {
1744
+ "anyOf": [
1745
+ {
1746
+ "type": "number"
1747
+ },
1748
+ {
1749
+ "type": "string",
1750
+ "enum": [
1751
+ "Infinity",
1752
+ "-Infinity",
1753
+ "NaN"
1754
+ ]
1755
+ }
1756
+ ]
1757
+ },
1758
+ "outputTokens": {
1759
+ "anyOf": [
1760
+ {
1761
+ "type": "number"
1762
+ },
1763
+ {
1764
+ "type": "string",
1765
+ "enum": [
1766
+ "Infinity",
1767
+ "-Infinity",
1768
+ "NaN"
1769
+ ]
1770
+ }
1771
+ ]
1772
+ }
1773
+ },
1774
+ "required": [
1775
+ "inputTokens",
1776
+ "outputTokens"
1777
+ ],
1778
+ "additionalProperties": true
1779
+ }
1780
+ },
1781
+ "required": [
1782
+ "text",
1783
+ "usage"
1784
+ ],
1785
+ "additionalProperties": true
1786
+ },
1787
+ "errors": {
1788
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1789
+ "anyOf": [
1790
+ {
1791
+ "$ref": "#/$defs/BudgetExceededEncoded"
1792
+ },
1793
+ {
1794
+ "$ref": "#/$defs/ModelUnavailableEncoded"
1795
+ },
1796
+ {
1797
+ "$ref": "#/$defs/ForbiddenEncoded"
1798
+ }
1799
+ ],
1800
+ "$defs": {
1801
+ "BudgetExceededEncoded": {
1802
+ "type": "object",
1803
+ "properties": {
1804
+ "_tag": {
1805
+ "type": "string",
1806
+ "enum": [
1807
+ "BudgetExceeded"
1808
+ ]
1809
+ },
1810
+ "message": {
1811
+ "type": "string"
1812
+ },
1813
+ "scope": {
1814
+ "type": "string",
1815
+ "enum": [
1816
+ "user",
1817
+ "org"
1818
+ ]
1819
+ },
1820
+ "meter": {
1821
+ "type": "string",
1822
+ "enum": [
1823
+ "agent.tokens",
1824
+ "agent.cost"
1825
+ ]
1826
+ },
1827
+ "limit": {
1828
+ "anyOf": [
1829
+ {
1830
+ "type": "number"
1831
+ },
1832
+ {
1833
+ "type": "string",
1834
+ "enum": [
1835
+ "Infinity",
1836
+ "-Infinity",
1837
+ "NaN"
1838
+ ]
1839
+ }
1840
+ ]
1841
+ },
1842
+ "used": {
1843
+ "anyOf": [
1844
+ {
1845
+ "type": "number"
1846
+ },
1847
+ {
1848
+ "type": "string",
1849
+ "enum": [
1850
+ "Infinity",
1851
+ "-Infinity",
1852
+ "NaN"
1853
+ ]
1854
+ }
1855
+ ]
1856
+ },
1857
+ "requested": {
1858
+ "anyOf": [
1859
+ {
1860
+ "type": "number"
1861
+ },
1862
+ {
1863
+ "type": "string",
1864
+ "enum": [
1865
+ "Infinity",
1866
+ "-Infinity",
1867
+ "NaN"
1868
+ ]
1869
+ }
1870
+ ]
1871
+ }
1872
+ },
1873
+ "required": [
1874
+ "_tag",
1875
+ "message",
1876
+ "scope",
1877
+ "meter",
1878
+ "limit",
1879
+ "used",
1880
+ "requested"
1881
+ ],
1882
+ "additionalProperties": true
1883
+ },
1884
+ "ModelUnavailableEncoded": {
1885
+ "type": "object",
1886
+ "properties": {
1887
+ "_tag": {
1888
+ "type": "string",
1889
+ "enum": [
1890
+ "ModelUnavailable"
1891
+ ]
1892
+ },
1893
+ "message": {
1894
+ "type": "string"
1895
+ },
1896
+ "provider": {
1897
+ "type": "string"
1898
+ },
1899
+ "model": {
1900
+ "type": "string"
1901
+ },
1902
+ "reason": {
1903
+ "type": "string",
1904
+ "enum": [
1905
+ "unavailable",
1906
+ "rate-limited",
1907
+ "refused",
1908
+ "timeout",
1909
+ "invalid-request"
1910
+ ]
1911
+ }
1912
+ },
1913
+ "required": [
1914
+ "_tag",
1915
+ "message",
1916
+ "provider",
1917
+ "model"
1918
+ ],
1919
+ "additionalProperties": true
1920
+ },
1921
+ "ForbiddenEncoded": {
1922
+ "type": "object",
1923
+ "properties": {
1924
+ "_tag": {
1925
+ "type": "string",
1926
+ "enum": [
1927
+ "Forbidden"
1928
+ ]
1929
+ },
1930
+ "message": {
1931
+ "type": "string"
1932
+ },
1933
+ "action": {
1934
+ "type": "string"
1935
+ }
1936
+ },
1937
+ "required": [
1938
+ "_tag",
1939
+ "message",
1940
+ "action"
1941
+ ],
1942
+ "additionalProperties": true
1943
+ }
1944
+ }
1945
+ }
1946
+ },
1947
+ "trace": {
1948
+ "description": "A run's stored trace for its owner (`GET /agent/runs/<id>/trace`): its model and tool calls as spans in step order, with timings, tokens and outcomes, and the owner's feedback on it; never prompts, replies or tool inputs and outputs.",
1949
+ "input": {
1950
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1951
+ "type": "object",
1952
+ "properties": {
1953
+ "runId": {
1954
+ "type": "string"
1955
+ }
1956
+ },
1957
+ "required": [
1958
+ "runId"
1959
+ ],
1960
+ "additionalProperties": true
1961
+ },
1962
+ "output": {
1963
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1964
+ "type": "object",
1965
+ "properties": {
1966
+ "runId": {
1967
+ "type": "string"
1968
+ },
1969
+ "status": {
1970
+ "type": "string"
1971
+ },
1972
+ "spans": {
1973
+ "type": "array",
1974
+ "items": {
1975
+ "type": "object",
1976
+ "properties": {
1977
+ "kind": {
1978
+ "type": "string",
1979
+ "enum": [
1980
+ "model",
1981
+ "tool"
1982
+ ]
1983
+ },
1984
+ "step": {
1985
+ "anyOf": [
1986
+ {
1987
+ "type": "number"
1988
+ },
1989
+ {
1990
+ "type": "string",
1991
+ "enum": [
1992
+ "Infinity",
1993
+ "-Infinity",
1994
+ "NaN"
1995
+ ]
1996
+ }
1997
+ ]
1998
+ },
1999
+ "name": {
2000
+ "type": "string"
2001
+ },
2002
+ "startedAt": {
2003
+ "type": "string"
2004
+ },
2005
+ "finishedAt": {
2006
+ "anyOf": [
2007
+ {
2008
+ "type": "string"
2009
+ },
2010
+ {
2011
+ "type": "null"
2012
+ }
2013
+ ]
2014
+ },
2015
+ "durationMs": {
2016
+ "anyOf": [
2017
+ {
2018
+ "type": "number"
2019
+ },
2020
+ {
2021
+ "type": "string",
2022
+ "enum": [
2023
+ "Infinity",
2024
+ "-Infinity",
2025
+ "NaN"
2026
+ ]
2027
+ },
2028
+ {
2029
+ "type": "null"
2030
+ }
2031
+ ]
2032
+ },
2033
+ "ok": {
2034
+ "type": "boolean"
2035
+ },
2036
+ "errorTag": {
2037
+ "anyOf": [
2038
+ {
2039
+ "type": "string"
2040
+ },
2041
+ {
2042
+ "type": "null"
2043
+ }
2044
+ ]
2045
+ },
2046
+ "inputTokens": {
2047
+ "anyOf": [
2048
+ {
2049
+ "type": "number"
2050
+ },
2051
+ {
2052
+ "type": "string",
2053
+ "enum": [
2054
+ "Infinity",
2055
+ "-Infinity",
2056
+ "NaN"
2057
+ ]
2058
+ },
2059
+ {
2060
+ "type": "null"
2061
+ }
2062
+ ]
2063
+ },
2064
+ "outputTokens": {
2065
+ "anyOf": [
2066
+ {
2067
+ "type": "number"
2068
+ },
2069
+ {
2070
+ "type": "string",
2071
+ "enum": [
2072
+ "Infinity",
2073
+ "-Infinity",
2074
+ "NaN"
2075
+ ]
2076
+ },
2077
+ {
2078
+ "type": "null"
2079
+ }
2080
+ ]
2081
+ }
2082
+ },
2083
+ "required": [
2084
+ "kind",
2085
+ "step",
2086
+ "name",
2087
+ "startedAt",
2088
+ "finishedAt",
2089
+ "durationMs",
2090
+ "ok",
2091
+ "errorTag",
2092
+ "inputTokens",
2093
+ "outputTokens"
2094
+ ],
2095
+ "additionalProperties": true
2096
+ }
2097
+ },
2098
+ "feedback": {
2099
+ "anyOf": [
2100
+ {
2101
+ "type": "object",
2102
+ "properties": {
2103
+ "rating": {
2104
+ "type": "string",
2105
+ "enum": [
2106
+ "up",
2107
+ "down"
2108
+ ]
2109
+ },
2110
+ "comment": {
2111
+ "anyOf": [
2112
+ {
2113
+ "type": "string"
2114
+ },
2115
+ {
2116
+ "type": "null"
2117
+ }
2118
+ ]
2119
+ }
2120
+ },
2121
+ "required": [
2122
+ "rating",
2123
+ "comment"
2124
+ ],
2125
+ "additionalProperties": true
2126
+ },
2127
+ {
2128
+ "type": "null"
2129
+ }
2130
+ ]
2131
+ }
2132
+ },
2133
+ "required": [
2134
+ "runId",
2135
+ "status",
2136
+ "spans",
2137
+ "feedback"
2138
+ ],
2139
+ "additionalProperties": true
2140
+ },
2141
+ "errors": {
2142
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2143
+ "anyOf": [
2144
+ {
2145
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2146
+ },
2147
+ {
2148
+ "$ref": "#/$defs/UnknownRunEncoded"
2149
+ }
2150
+ ],
2151
+ "$defs": {
2152
+ "UnauthenticatedEncoded": {
2153
+ "type": "object",
2154
+ "properties": {
2155
+ "_tag": {
2156
+ "type": "string",
2157
+ "enum": [
2158
+ "Unauthenticated"
2159
+ ]
2160
+ },
2161
+ "message": {
2162
+ "type": "string"
2163
+ }
2164
+ },
2165
+ "required": [
2166
+ "_tag",
2167
+ "message"
2168
+ ],
2169
+ "additionalProperties": true
2170
+ },
2171
+ "UnknownRunEncoded": {
2172
+ "type": "object",
2173
+ "properties": {
2174
+ "_tag": {
2175
+ "type": "string",
2176
+ "enum": [
2177
+ "UnknownRun"
2178
+ ]
2179
+ },
2180
+ "runId": {
2181
+ "type": "string"
2182
+ }
2183
+ },
2184
+ "required": [
2185
+ "_tag",
2186
+ "runId"
2187
+ ],
2188
+ "additionalProperties": true
2189
+ }
2190
+ }
2191
+ }
2192
+ },
2193
+ "feedback": {
2194
+ "description": "Rate one of your agent's runs up or down, with an optional comment and tags (action `agent.feedback`): one rating per person and run, replaced by the next. A person's own; an agent cannot give it.",
2195
+ "input": {
2196
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2197
+ "type": "object",
2198
+ "properties": {
2199
+ "runId": {
2200
+ "type": "string"
2201
+ },
2202
+ "rating": {
2203
+ "type": "string",
2204
+ "enum": [
2205
+ "up",
2206
+ "down"
2207
+ ]
2208
+ },
2209
+ "comment": {
2210
+ "anyOf": [
2211
+ {
2212
+ "type": "string",
2213
+ "maxLength": 2000
2214
+ },
2215
+ {
2216
+ "type": "null"
2217
+ }
2218
+ ]
2219
+ },
2220
+ "tags": {
2221
+ "type": "array",
2222
+ "items": {
2223
+ "type": "string",
2224
+ "pattern": "^[a-z0-9][a-z0-9-]{0,31}$"
2225
+ },
2226
+ "maxItems": 10
2227
+ }
2228
+ },
2229
+ "required": [
2230
+ "runId",
2231
+ "rating"
2232
+ ],
2233
+ "additionalProperties": true
2234
+ },
2235
+ "output": {
2236
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2237
+ "type": "object",
2238
+ "properties": {
2239
+ "id": {
2240
+ "type": "string"
2241
+ }
2242
+ },
2243
+ "required": [
2244
+ "id"
2245
+ ],
2246
+ "additionalProperties": true
2247
+ },
2248
+ "errors": {
2249
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2250
+ "anyOf": [
2251
+ {
2252
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2253
+ },
2254
+ {
2255
+ "$ref": "#/$defs/ForbiddenEncoded"
2256
+ },
2257
+ {
2258
+ "$ref": "#/$defs/InvalidInputEncoded"
2259
+ }
2260
+ ],
2261
+ "$defs": {
2262
+ "UnauthenticatedEncoded": {
2263
+ "type": "object",
2264
+ "properties": {
2265
+ "_tag": {
2266
+ "type": "string",
2267
+ "enum": [
2268
+ "Unauthenticated"
2269
+ ]
2270
+ },
2271
+ "message": {
2272
+ "type": "string"
2273
+ }
2274
+ },
2275
+ "required": [
2276
+ "_tag",
2277
+ "message"
2278
+ ],
2279
+ "additionalProperties": true
2280
+ },
2281
+ "ForbiddenEncoded": {
2282
+ "type": "object",
2283
+ "properties": {
2284
+ "_tag": {
2285
+ "type": "string",
2286
+ "enum": [
2287
+ "Forbidden"
2288
+ ]
2289
+ },
2290
+ "message": {
2291
+ "type": "string"
2292
+ },
2293
+ "action": {
2294
+ "type": "string"
2295
+ }
2296
+ },
2297
+ "required": [
2298
+ "_tag",
2299
+ "message",
2300
+ "action"
2301
+ ],
2302
+ "additionalProperties": true
2303
+ },
2304
+ "InvalidInputEncoded": {
2305
+ "type": "object",
2306
+ "properties": {
2307
+ "_tag": {
2308
+ "type": "string",
2309
+ "enum": [
2310
+ "InvalidInput"
2311
+ ]
2312
+ },
2313
+ "message": {
2314
+ "type": "string"
2315
+ }
2316
+ },
2317
+ "required": [
2318
+ "_tag",
2319
+ "message"
2320
+ ],
2321
+ "additionalProperties": true
2322
+ }
2323
+ }
2324
+ }
2325
+ },
2326
+ "feedbackList": {
2327
+ "description": "Feedback in a period (`GET /agent/feedback?scope=&period=`): your own, or the organisation's for members who manage the agent; newest first, with the counts rated up and down.",
2328
+ "input": {
2329
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2330
+ "type": "object",
2331
+ "properties": {
2332
+ "scope": {
2333
+ "type": "string",
2334
+ "enum": [
2335
+ "user",
2336
+ "org"
2337
+ ]
2338
+ },
2339
+ "period": {
2340
+ "type": "string",
2341
+ "enum": [
2342
+ "day",
2343
+ "month",
2344
+ "total"
2345
+ ]
2346
+ }
2347
+ },
2348
+ "required": [
2349
+ "scope",
2350
+ "period"
2351
+ ],
2352
+ "additionalProperties": true
2353
+ },
2354
+ "output": {
2355
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2356
+ "type": "object",
2357
+ "properties": {
2358
+ "scope": {
2359
+ "type": "string",
2360
+ "enum": [
2361
+ "user",
2362
+ "org"
2363
+ ]
2364
+ },
2365
+ "period": {
2366
+ "type": "string",
2367
+ "enum": [
2368
+ "day",
2369
+ "month",
2370
+ "total"
2371
+ ]
2372
+ },
2373
+ "up": {
2374
+ "anyOf": [
2375
+ {
2376
+ "type": "number"
2377
+ },
2378
+ {
2379
+ "type": "string",
2380
+ "enum": [
2381
+ "Infinity",
2382
+ "-Infinity",
2383
+ "NaN"
2384
+ ]
2385
+ }
2386
+ ]
2387
+ },
2388
+ "down": {
2389
+ "anyOf": [
2390
+ {
2391
+ "type": "number"
2392
+ },
2393
+ {
2394
+ "type": "string",
2395
+ "enum": [
2396
+ "Infinity",
2397
+ "-Infinity",
2398
+ "NaN"
2399
+ ]
2400
+ }
2401
+ ]
2402
+ },
2403
+ "entries": {
2404
+ "type": "array",
2405
+ "items": {
2406
+ "type": "object",
2407
+ "properties": {
2408
+ "runId": {
2409
+ "type": "string"
2410
+ },
2411
+ "userId": {
2412
+ "type": "string"
2413
+ },
2414
+ "rating": {
2415
+ "type": "string",
2416
+ "enum": [
2417
+ "up",
2418
+ "down"
2419
+ ]
2420
+ },
2421
+ "comment": {
2422
+ "anyOf": [
2423
+ {
2424
+ "type": "string"
2425
+ },
2426
+ {
2427
+ "type": "null"
2428
+ }
2429
+ ]
2430
+ },
2431
+ "tags": {
2432
+ "type": "array",
2433
+ "items": {
2434
+ "type": "string"
2435
+ }
2436
+ },
2437
+ "at": {
2438
+ "type": "string"
2439
+ }
2440
+ },
2441
+ "required": [
2442
+ "runId",
2443
+ "userId",
2444
+ "rating",
2445
+ "comment",
2446
+ "tags",
2447
+ "at"
2448
+ ],
2449
+ "additionalProperties": true
2450
+ }
2451
+ }
2452
+ },
2453
+ "required": [
2454
+ "scope",
2455
+ "period",
2456
+ "up",
2457
+ "down",
2458
+ "entries"
2459
+ ],
2460
+ "additionalProperties": true
2461
+ },
2462
+ "errors": {
2463
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2464
+ "anyOf": [
2465
+ {
2466
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2467
+ },
2468
+ {
2469
+ "$ref": "#/$defs/ForbiddenEncoded"
2470
+ }
2471
+ ],
2472
+ "$defs": {
2473
+ "UnauthenticatedEncoded": {
2474
+ "type": "object",
2475
+ "properties": {
2476
+ "_tag": {
2477
+ "type": "string",
2478
+ "enum": [
2479
+ "Unauthenticated"
2480
+ ]
2481
+ },
2482
+ "message": {
2483
+ "type": "string"
2484
+ }
2485
+ },
2486
+ "required": [
2487
+ "_tag",
2488
+ "message"
2489
+ ],
2490
+ "additionalProperties": true
2491
+ },
2492
+ "ForbiddenEncoded": {
2493
+ "type": "object",
2494
+ "properties": {
2495
+ "_tag": {
2496
+ "type": "string",
2497
+ "enum": [
2498
+ "Forbidden"
2499
+ ]
2500
+ },
2501
+ "message": {
2502
+ "type": "string"
2503
+ },
2504
+ "action": {
2505
+ "type": "string"
2506
+ }
2507
+ },
2508
+ "required": [
2509
+ "_tag",
2510
+ "message",
2511
+ "action"
2512
+ ],
2513
+ "additionalProperties": true
2514
+ }
2515
+ }
2516
+ }
2517
+ },
2518
+ "readiness": {
2519
+ "description": "Whether the caller's agent can answer on the organisation's model now (`GET /agent/readiness`): configured, missing (no model or no credentials: set it up) or unavailable (configured but unusable), with the model and a reason. Checked without calling the provider. A client that cannot ask reports `unknown` itself, distinct from `missing`.",
2520
+ "input": {
2521
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2522
+ "not": {
2523
+ "type": "null"
2524
+ }
2525
+ },
2526
+ "output": {
2527
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2528
+ "type": "object",
2529
+ "properties": {
2530
+ "state": {
2531
+ "type": "string",
2532
+ "enum": [
2533
+ "configured",
2534
+ "missing",
2535
+ "unavailable",
2536
+ "unknown"
2537
+ ]
2538
+ },
2539
+ "provider": {
2540
+ "anyOf": [
2541
+ {
2542
+ "type": "string"
2543
+ },
2544
+ {
2545
+ "type": "null"
2546
+ }
2547
+ ]
2548
+ },
2549
+ "model": {
2550
+ "anyOf": [
2551
+ {
2552
+ "type": "string"
2553
+ },
2554
+ {
2555
+ "type": "null"
2556
+ }
2557
+ ]
2558
+ },
2559
+ "detail": {
2560
+ "type": "string"
2561
+ }
2562
+ },
2563
+ "required": [
2564
+ "state",
2565
+ "provider",
2566
+ "model",
2567
+ "detail"
2568
+ ],
2569
+ "additionalProperties": true
2570
+ },
2571
+ "errors": {
2572
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2573
+ "anyOf": [
2574
+ {
2575
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2576
+ },
2577
+ {
2578
+ "$ref": "#/$defs/ForbiddenEncoded"
2579
+ }
2580
+ ],
2581
+ "$defs": {
2582
+ "UnauthenticatedEncoded": {
2583
+ "type": "object",
2584
+ "properties": {
2585
+ "_tag": {
2586
+ "type": "string",
2587
+ "enum": [
2588
+ "Unauthenticated"
2589
+ ]
2590
+ },
2591
+ "message": {
2592
+ "type": "string"
2593
+ }
2594
+ },
2595
+ "required": [
2596
+ "_tag",
2597
+ "message"
2598
+ ],
2599
+ "additionalProperties": true
2600
+ },
2601
+ "ForbiddenEncoded": {
2602
+ "type": "object",
2603
+ "properties": {
2604
+ "_tag": {
2605
+ "type": "string",
2606
+ "enum": [
2607
+ "Forbidden"
2608
+ ]
2609
+ },
2610
+ "message": {
2611
+ "type": "string"
2612
+ },
2613
+ "action": {
2614
+ "type": "string"
2615
+ }
2616
+ },
2617
+ "required": [
2618
+ "_tag",
2619
+ "message",
2620
+ "action"
2621
+ ],
2622
+ "additionalProperties": true
2623
+ }
2624
+ }
2625
+ }
2626
+ }
2627
+ },
2628
+ "types": {
2629
+ "Run": {
2630
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2631
+ "type": "object",
2632
+ "properties": {
2633
+ "id": {
2634
+ "type": "string"
2635
+ },
2636
+ "orgId": {
2637
+ "type": "string"
2638
+ },
2639
+ "userId": {
2640
+ "type": "string"
2641
+ },
2642
+ "conversationId": {
2643
+ "type": "string"
2644
+ },
2645
+ "parentRunId": {
2646
+ "anyOf": [
2647
+ {
2648
+ "type": "string"
2649
+ },
2650
+ {
2651
+ "type": "null"
2652
+ }
2653
+ ]
2654
+ },
2655
+ "kind": {
2656
+ "type": "string",
2657
+ "enum": [
2658
+ "turn",
2659
+ "subagent",
2660
+ "job"
2661
+ ]
2662
+ },
2663
+ "status": {
2664
+ "type": "string",
2665
+ "enum": [
2666
+ "queued",
2667
+ "running",
2668
+ "waiting",
2669
+ "succeeded",
2670
+ "stopped",
2671
+ "failed",
2672
+ "cancelled"
2673
+ ]
2674
+ },
2675
+ "stopReason": {
2676
+ "anyOf": [
2677
+ {
2678
+ "type": "string",
2679
+ "enum": [
2680
+ "completed",
2681
+ "noop",
2682
+ "steps",
2683
+ "tokens",
2684
+ "wall-time",
2685
+ "budget",
2686
+ "cancelled",
2687
+ "model-error",
2688
+ "error",
2689
+ "processor"
2690
+ ]
2691
+ },
2692
+ {
2693
+ "type": "null"
2694
+ }
2695
+ ]
2696
+ },
2697
+ "limits": {
2698
+ "type": "object",
2699
+ "properties": {
2700
+ "maxSteps": {
2701
+ "anyOf": [
2702
+ {
2703
+ "type": "number"
2704
+ },
2705
+ {
2706
+ "type": "string",
2707
+ "enum": [
2708
+ "Infinity",
2709
+ "-Infinity",
2710
+ "NaN"
2711
+ ]
2712
+ }
2713
+ ]
2714
+ },
2715
+ "maxTokens": {
2716
+ "anyOf": [
2717
+ {
2718
+ "type": "number"
2719
+ },
2720
+ {
2721
+ "type": "string",
2722
+ "enum": [
2723
+ "Infinity",
2724
+ "-Infinity",
2725
+ "NaN"
2726
+ ]
2727
+ }
2728
+ ]
2729
+ },
2730
+ "maxWallMs": {
2731
+ "anyOf": [
2732
+ {
2733
+ "type": "number"
2734
+ },
2735
+ {
2736
+ "type": "string",
2737
+ "enum": [
2738
+ "Infinity",
2739
+ "-Infinity",
2740
+ "NaN"
2741
+ ]
2742
+ }
2743
+ ]
2744
+ }
2745
+ },
2746
+ "required": [
2747
+ "maxSteps",
2748
+ "maxTokens",
2749
+ "maxWallMs"
2750
+ ],
2751
+ "additionalProperties": true
2752
+ },
2753
+ "tools": {
2754
+ "anyOf": [
2755
+ {
2756
+ "type": "array",
2757
+ "items": {
2758
+ "type": "string"
2759
+ }
2760
+ },
2761
+ {
2762
+ "type": "null"
2763
+ }
2764
+ ]
2765
+ },
2766
+ "usage": {
2767
+ "type": "object",
2768
+ "properties": {
2769
+ "inputTokens": {
2770
+ "anyOf": [
2771
+ {
2772
+ "type": "number"
2773
+ },
2774
+ {
2775
+ "type": "string",
2776
+ "enum": [
2777
+ "Infinity",
2778
+ "-Infinity",
2779
+ "NaN"
2780
+ ]
2781
+ }
2782
+ ]
2783
+ },
2784
+ "outputTokens": {
2785
+ "anyOf": [
2786
+ {
2787
+ "type": "number"
2788
+ },
2789
+ {
2790
+ "type": "string",
2791
+ "enum": [
2792
+ "Infinity",
2793
+ "-Infinity",
2794
+ "NaN"
2795
+ ]
2796
+ }
2797
+ ]
2798
+ }
2799
+ },
2800
+ "required": [
2801
+ "inputTokens",
2802
+ "outputTokens"
2803
+ ],
2804
+ "additionalProperties": true
2805
+ },
2806
+ "steps": {
2807
+ "anyOf": [
2808
+ {
2809
+ "type": "number"
2810
+ },
2811
+ {
2812
+ "type": "string",
2813
+ "enum": [
2814
+ "Infinity",
2815
+ "-Infinity",
2816
+ "NaN"
2817
+ ]
2818
+ }
2819
+ ]
2820
+ },
2821
+ "result": {
2822
+ "anyOf": [
2823
+ {
2824
+ "type": "string"
2825
+ },
2826
+ {
2827
+ "type": "null"
2828
+ }
2829
+ ]
2830
+ },
2831
+ "error": {
2832
+ "anyOf": [
2833
+ {
2834
+ "type": "string"
2835
+ },
2836
+ {
2837
+ "type": "null"
2838
+ }
2839
+ ]
2840
+ },
2841
+ "mode": {
2842
+ "type": "string",
2843
+ "enum": [
2844
+ "act",
2845
+ "plan"
2846
+ ]
2847
+ },
2848
+ "continuation": {
2849
+ "type": "object",
2850
+ "properties": {
2851
+ "of": {
2852
+ "type": "string"
2853
+ },
2854
+ "previous": {
2855
+ "type": "string"
2856
+ },
2857
+ "attempt": {
2858
+ "anyOf": [
2859
+ {
2860
+ "type": "number"
2861
+ },
2862
+ {
2863
+ "type": "string",
2864
+ "enum": [
2865
+ "Infinity",
2866
+ "-Infinity",
2867
+ "NaN"
2868
+ ]
2869
+ }
2870
+ ]
2871
+ },
2872
+ "automatic": {
2873
+ "type": "boolean"
2874
+ }
2875
+ },
2876
+ "required": [
2877
+ "of",
2878
+ "previous",
2879
+ "attempt",
2880
+ "automatic"
2881
+ ],
2882
+ "additionalProperties": true
2883
+ },
2884
+ "verification": {
2885
+ "anyOf": [
2886
+ {
2887
+ "type": "object",
2888
+ "properties": {
2889
+ "outcome": {
2890
+ "type": "string",
2891
+ "enum": [
2892
+ "passed",
2893
+ "retried",
2894
+ "annotated"
2895
+ ]
2896
+ },
2897
+ "receipts": {
2898
+ "type": "array",
2899
+ "items": {
2900
+ "type": "object",
2901
+ "properties": {
2902
+ "tool": {
2903
+ "type": "string"
2904
+ },
2905
+ "receipt": {
2906
+ "type": "object",
2907
+ "properties": {
2908
+ "changed": {
2909
+ "type": "boolean"
2910
+ },
2911
+ "verified": {
2912
+ "anyOf": [
2913
+ {
2914
+ "type": "boolean"
2915
+ },
2916
+ {
2917
+ "type": "string",
2918
+ "enum": [
2919
+ "unverified"
2920
+ ]
2921
+ }
2922
+ ]
2923
+ },
2924
+ "summary": {
2925
+ "type": "string",
2926
+ "maxLength": 300
2927
+ },
2928
+ "subject": {
2929
+ "type": "string",
2930
+ "maxLength": 300
2931
+ },
2932
+ "checks": {
2933
+ "type": "array",
2934
+ "items": {
2935
+ "type": "object",
2936
+ "properties": {
2937
+ "id": {
2938
+ "type": "string",
2939
+ "maxLength": 100
2940
+ },
2941
+ "ok": {
2942
+ "type": "boolean"
2943
+ },
2944
+ "detail": {
2945
+ "type": "string",
2946
+ "maxLength": 300
2947
+ }
2948
+ },
2949
+ "required": [
2950
+ "id",
2951
+ "ok"
2952
+ ],
2953
+ "additionalProperties": true
2954
+ },
2955
+ "maxItems": 8
2956
+ },
2957
+ "warnings": {
2958
+ "type": "array",
2959
+ "items": {
2960
+ "type": "string",
2961
+ "maxLength": 300
2962
+ },
2963
+ "maxItems": 5
2964
+ }
2965
+ },
2966
+ "required": [
2967
+ "changed",
2968
+ "verified",
2969
+ "summary"
2970
+ ],
2971
+ "additionalProperties": true
2972
+ }
2973
+ },
2974
+ "required": [
2975
+ "tool",
2976
+ "receipt"
2977
+ ],
2978
+ "additionalProperties": true
2979
+ }
2980
+ },
2981
+ "challengedBy": {
2982
+ "type": "array",
2983
+ "items": {
2984
+ "type": "string"
2985
+ }
2986
+ }
2987
+ },
2988
+ "required": [
2989
+ "outcome",
2990
+ "receipts"
2991
+ ],
2992
+ "additionalProperties": true
2993
+ },
2994
+ {
2995
+ "type": "null"
2996
+ }
2997
+ ]
2998
+ },
2999
+ "activity": {
3000
+ "type": "object",
3001
+ "properties": {
3002
+ "lastEventAt": {
3003
+ "anyOf": [
3004
+ {
3005
+ "type": "string"
3006
+ },
3007
+ {
3008
+ "type": "null"
3009
+ }
3010
+ ]
3011
+ },
3012
+ "stalled": {
3013
+ "type": "boolean"
3014
+ }
3015
+ },
3016
+ "required": [
3017
+ "lastEventAt",
3018
+ "stalled"
3019
+ ],
3020
+ "additionalProperties": true
3021
+ }
3022
+ },
3023
+ "required": [
3024
+ "id",
3025
+ "orgId",
3026
+ "userId",
3027
+ "conversationId",
3028
+ "parentRunId",
3029
+ "kind",
3030
+ "status",
3031
+ "stopReason",
3032
+ "limits",
3033
+ "tools",
3034
+ "usage",
3035
+ "steps",
3036
+ "result",
3037
+ "error"
3038
+ ],
3039
+ "additionalProperties": true
3040
+ },
3041
+ "RunEvent": {
3042
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3043
+ "type": "object",
3044
+ "properties": {
3045
+ "runId": {
3046
+ "type": "string"
3047
+ },
3048
+ "seq": {
3049
+ "anyOf": [
3050
+ {
3051
+ "type": "number"
3052
+ },
3053
+ {
3054
+ "type": "string",
3055
+ "enum": [
3056
+ "Infinity",
3057
+ "-Infinity",
3058
+ "NaN"
3059
+ ]
3060
+ }
3061
+ ]
3062
+ },
3063
+ "type": {
3064
+ "type": "string",
3065
+ "enum": [
3066
+ "run-started",
3067
+ "model-step",
3068
+ "tool-call",
3069
+ "tool-result",
3070
+ "consent-required",
3071
+ "consent-decided",
3072
+ "compacted",
3073
+ "delegated",
3074
+ "seat-spawned",
3075
+ "team-message",
3076
+ "reply-discarded",
3077
+ "answer-checked",
3078
+ "reconciled",
3079
+ "processor-tripped",
3080
+ "run-finished",
3081
+ "text-delta"
3082
+ ]
3083
+ },
3084
+ "data": {},
3085
+ "at": {
3086
+ "type": "string"
3087
+ }
3088
+ },
3089
+ "required": [
3090
+ "runId",
3091
+ "seq",
3092
+ "type",
3093
+ "data",
3094
+ "at"
3095
+ ],
3096
+ "additionalProperties": true
3097
+ },
3098
+ "RunLimits": {
3099
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3100
+ "type": "object",
3101
+ "properties": {
3102
+ "maxSteps": {
3103
+ "anyOf": [
3104
+ {
3105
+ "type": "number"
3106
+ },
3107
+ {
3108
+ "type": "string",
3109
+ "enum": [
3110
+ "Infinity",
3111
+ "-Infinity",
3112
+ "NaN"
3113
+ ]
3114
+ }
3115
+ ]
3116
+ },
3117
+ "maxTokens": {
3118
+ "anyOf": [
3119
+ {
3120
+ "type": "number"
3121
+ },
3122
+ {
3123
+ "type": "string",
3124
+ "enum": [
3125
+ "Infinity",
3126
+ "-Infinity",
3127
+ "NaN"
3128
+ ]
3129
+ }
3130
+ ]
3131
+ },
3132
+ "maxWallMs": {
3133
+ "anyOf": [
3134
+ {
3135
+ "type": "number"
3136
+ },
3137
+ {
3138
+ "type": "string",
3139
+ "enum": [
3140
+ "Infinity",
3141
+ "-Infinity",
3142
+ "NaN"
3143
+ ]
3144
+ }
3145
+ ]
3146
+ }
3147
+ },
3148
+ "required": [
3149
+ "maxSteps",
3150
+ "maxTokens",
3151
+ "maxWallMs"
3152
+ ],
3153
+ "additionalProperties": true
3154
+ },
3155
+ "RunMode": {
3156
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3157
+ "type": "string",
3158
+ "enum": [
3159
+ "act",
3160
+ "plan"
3161
+ ]
3162
+ },
3163
+ "RunVerification": {
3164
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3165
+ "type": "object",
3166
+ "properties": {
3167
+ "outcome": {
3168
+ "type": "string",
3169
+ "enum": [
3170
+ "passed",
3171
+ "retried",
3172
+ "annotated"
3173
+ ]
3174
+ },
3175
+ "receipts": {
3176
+ "type": "array",
3177
+ "items": {
3178
+ "type": "object",
3179
+ "properties": {
3180
+ "tool": {
3181
+ "type": "string"
3182
+ },
3183
+ "receipt": {
3184
+ "type": "object",
3185
+ "properties": {
3186
+ "changed": {
3187
+ "type": "boolean"
3188
+ },
3189
+ "verified": {
3190
+ "anyOf": [
3191
+ {
3192
+ "type": "boolean"
3193
+ },
3194
+ {
3195
+ "type": "string",
3196
+ "enum": [
3197
+ "unverified"
3198
+ ]
3199
+ }
3200
+ ]
3201
+ },
3202
+ "summary": {
3203
+ "type": "string",
3204
+ "maxLength": 300
3205
+ },
3206
+ "subject": {
3207
+ "type": "string",
3208
+ "maxLength": 300
3209
+ },
3210
+ "checks": {
3211
+ "type": "array",
3212
+ "items": {
3213
+ "type": "object",
3214
+ "properties": {
3215
+ "id": {
3216
+ "type": "string",
3217
+ "maxLength": 100
3218
+ },
3219
+ "ok": {
3220
+ "type": "boolean"
3221
+ },
3222
+ "detail": {
3223
+ "type": "string",
3224
+ "maxLength": 300
3225
+ }
3226
+ },
3227
+ "required": [
3228
+ "id",
3229
+ "ok"
3230
+ ],
3231
+ "additionalProperties": true
3232
+ },
3233
+ "maxItems": 8
3234
+ },
3235
+ "warnings": {
3236
+ "type": "array",
3237
+ "items": {
3238
+ "type": "string",
3239
+ "maxLength": 300
3240
+ },
3241
+ "maxItems": 5
3242
+ }
3243
+ },
3244
+ "required": [
3245
+ "changed",
3246
+ "verified",
3247
+ "summary"
3248
+ ],
3249
+ "additionalProperties": true
3250
+ }
3251
+ },
3252
+ "required": [
3253
+ "tool",
3254
+ "receipt"
3255
+ ],
3256
+ "additionalProperties": true
3257
+ }
3258
+ },
3259
+ "challengedBy": {
3260
+ "type": "array",
3261
+ "items": {
3262
+ "type": "string"
3263
+ }
3264
+ }
3265
+ },
3266
+ "required": [
3267
+ "outcome",
3268
+ "receipts"
3269
+ ],
3270
+ "additionalProperties": true
3271
+ },
3272
+ "WriteReceipt": {
3273
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3274
+ "type": "object",
3275
+ "properties": {
3276
+ "changed": {
3277
+ "type": "boolean"
3278
+ },
3279
+ "verified": {
3280
+ "anyOf": [
3281
+ {
3282
+ "type": "boolean"
3283
+ },
3284
+ {
3285
+ "type": "string",
3286
+ "enum": [
3287
+ "unverified"
3288
+ ]
3289
+ }
3290
+ ]
3291
+ },
3292
+ "summary": {
3293
+ "type": "string",
3294
+ "maxLength": 300
3295
+ },
3296
+ "subject": {
3297
+ "type": "string",
3298
+ "maxLength": 300
3299
+ },
3300
+ "checks": {
3301
+ "type": "array",
3302
+ "items": {
3303
+ "type": "object",
3304
+ "properties": {
3305
+ "id": {
3306
+ "type": "string",
3307
+ "maxLength": 100
3308
+ },
3309
+ "ok": {
3310
+ "type": "boolean"
3311
+ },
3312
+ "detail": {
3313
+ "type": "string",
3314
+ "maxLength": 300
3315
+ }
3316
+ },
3317
+ "required": [
3318
+ "id",
3319
+ "ok"
3320
+ ],
3321
+ "additionalProperties": true
3322
+ },
3323
+ "maxItems": 8
3324
+ },
3325
+ "warnings": {
3326
+ "type": "array",
3327
+ "items": {
3328
+ "type": "string",
3329
+ "maxLength": 300
3330
+ },
3331
+ "maxItems": 5
3332
+ }
3333
+ },
3334
+ "required": [
3335
+ "changed",
3336
+ "verified",
3337
+ "summary"
3338
+ ],
3339
+ "additionalProperties": true
3340
+ },
3341
+ "AgentLoopPolicy": {
3342
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3343
+ "type": "object",
3344
+ "properties": {
3345
+ "maxSteps": {
3346
+ "type": "integer",
3347
+ "maximum": 9007199254740991,
3348
+ "exclusiveMinimum": 0
3349
+ },
3350
+ "maxTokens": {
3351
+ "type": "integer",
3352
+ "maximum": 9007199254740991,
3353
+ "exclusiveMinimum": 0
3354
+ },
3355
+ "maxWallMs": {
3356
+ "type": "integer",
3357
+ "maximum": 9007199254740991,
3358
+ "exclusiveMinimum": 0
3359
+ }
3360
+ },
3361
+ "additionalProperties": true
3362
+ },
3363
+ "AgentToolPolicy": {
3364
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3365
+ "type": "object",
3366
+ "properties": {
3367
+ "discovery": {
3368
+ "type": "string",
3369
+ "enum": [
3370
+ "all",
3371
+ "search"
3372
+ ]
3373
+ },
3374
+ "eager": {
3375
+ "type": "array",
3376
+ "items": {
3377
+ "type": "string"
3378
+ },
3379
+ "maxItems": 50
3380
+ }
3381
+ },
3382
+ "required": [
3383
+ "discovery"
3384
+ ],
3385
+ "additionalProperties": true
3386
+ },
3387
+ "SentMessage": {
3388
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3389
+ "type": "object",
3390
+ "properties": {
3391
+ "conversationId": {
3392
+ "type": "string"
3393
+ },
3394
+ "messageId": {
3395
+ "type": "string"
3396
+ },
3397
+ "runId": {
3398
+ "type": "string"
3399
+ },
3400
+ "queued": {
3401
+ "type": "object",
3402
+ "properties": {
3403
+ "submissionId": {
3404
+ "type": "string"
3405
+ }
3406
+ },
3407
+ "required": [
3408
+ "submissionId"
3409
+ ],
3410
+ "additionalProperties": true
3411
+ }
3412
+ },
3413
+ "required": [
3414
+ "conversationId",
3415
+ "messageId",
3416
+ "runId"
3417
+ ],
3418
+ "additionalProperties": true
3419
+ },
3420
+ "Attachment": {
3421
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3422
+ "type": "object",
3423
+ "properties": {
3424
+ "kind": {
3425
+ "type": "string",
3426
+ "enum": [
3427
+ "file"
3428
+ ]
3429
+ },
3430
+ "fileId": {
3431
+ "type": "string"
3432
+ },
3433
+ "name": {
3434
+ "type": "string"
3435
+ },
3436
+ "mediaType": {
3437
+ "type": "string"
3438
+ }
3439
+ },
3440
+ "required": [
3441
+ "kind",
3442
+ "fileId",
3443
+ "name",
3444
+ "mediaType"
3445
+ ],
3446
+ "additionalProperties": true
3447
+ },
3448
+ "UnknownRun": {
3449
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3450
+ "$ref": "#/$defs/UnknownRunEncoded",
3451
+ "$defs": {
3452
+ "UnknownRunEncoded": {
3453
+ "type": "object",
3454
+ "properties": {
3455
+ "_tag": {
3456
+ "type": "string",
3457
+ "enum": [
3458
+ "UnknownRun"
3459
+ ]
3460
+ },
3461
+ "runId": {
3462
+ "type": "string"
3463
+ }
3464
+ },
3465
+ "required": [
3466
+ "_tag",
3467
+ "runId"
3468
+ ],
3469
+ "additionalProperties": true
3470
+ }
3471
+ }
3472
+ },
3473
+ "RunTrace": {
3474
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3475
+ "type": "object",
3476
+ "properties": {
3477
+ "runId": {
3478
+ "type": "string"
3479
+ },
3480
+ "status": {
3481
+ "type": "string"
3482
+ },
3483
+ "spans": {
3484
+ "type": "array",
3485
+ "items": {
3486
+ "type": "object",
3487
+ "properties": {
3488
+ "kind": {
3489
+ "type": "string",
3490
+ "enum": [
3491
+ "model",
3492
+ "tool"
3493
+ ]
3494
+ },
3495
+ "step": {
3496
+ "anyOf": [
3497
+ {
3498
+ "type": "number"
3499
+ },
3500
+ {
3501
+ "type": "string",
3502
+ "enum": [
3503
+ "Infinity",
3504
+ "-Infinity",
3505
+ "NaN"
3506
+ ]
3507
+ }
3508
+ ]
3509
+ },
3510
+ "name": {
3511
+ "type": "string"
3512
+ },
3513
+ "startedAt": {
3514
+ "type": "string"
3515
+ },
3516
+ "finishedAt": {
3517
+ "anyOf": [
3518
+ {
3519
+ "type": "string"
3520
+ },
3521
+ {
3522
+ "type": "null"
3523
+ }
3524
+ ]
3525
+ },
3526
+ "durationMs": {
3527
+ "anyOf": [
3528
+ {
3529
+ "type": "number"
3530
+ },
3531
+ {
3532
+ "type": "string",
3533
+ "enum": [
3534
+ "Infinity",
3535
+ "-Infinity",
3536
+ "NaN"
3537
+ ]
3538
+ },
3539
+ {
3540
+ "type": "null"
3541
+ }
3542
+ ]
3543
+ },
3544
+ "ok": {
3545
+ "type": "boolean"
3546
+ },
3547
+ "errorTag": {
3548
+ "anyOf": [
3549
+ {
3550
+ "type": "string"
3551
+ },
3552
+ {
3553
+ "type": "null"
3554
+ }
3555
+ ]
3556
+ },
3557
+ "inputTokens": {
3558
+ "anyOf": [
3559
+ {
3560
+ "type": "number"
3561
+ },
3562
+ {
3563
+ "type": "string",
3564
+ "enum": [
3565
+ "Infinity",
3566
+ "-Infinity",
3567
+ "NaN"
3568
+ ]
3569
+ },
3570
+ {
3571
+ "type": "null"
3572
+ }
3573
+ ]
3574
+ },
3575
+ "outputTokens": {
3576
+ "anyOf": [
3577
+ {
3578
+ "type": "number"
3579
+ },
3580
+ {
3581
+ "type": "string",
3582
+ "enum": [
3583
+ "Infinity",
3584
+ "-Infinity",
3585
+ "NaN"
3586
+ ]
3587
+ },
3588
+ {
3589
+ "type": "null"
3590
+ }
3591
+ ]
3592
+ }
3593
+ },
3594
+ "required": [
3595
+ "kind",
3596
+ "step",
3597
+ "name",
3598
+ "startedAt",
3599
+ "finishedAt",
3600
+ "durationMs",
3601
+ "ok",
3602
+ "errorTag",
3603
+ "inputTokens",
3604
+ "outputTokens"
3605
+ ],
3606
+ "additionalProperties": true
3607
+ }
3608
+ },
3609
+ "feedback": {
3610
+ "anyOf": [
3611
+ {
3612
+ "type": "object",
3613
+ "properties": {
3614
+ "rating": {
3615
+ "type": "string",
3616
+ "enum": [
3617
+ "up",
3618
+ "down"
3619
+ ]
3620
+ },
3621
+ "comment": {
3622
+ "anyOf": [
3623
+ {
3624
+ "type": "string"
3625
+ },
3626
+ {
3627
+ "type": "null"
3628
+ }
3629
+ ]
3630
+ }
3631
+ },
3632
+ "required": [
3633
+ "rating",
3634
+ "comment"
3635
+ ],
3636
+ "additionalProperties": true
3637
+ },
3638
+ {
3639
+ "type": "null"
3640
+ }
3641
+ ]
3642
+ }
3643
+ },
3644
+ "required": [
3645
+ "runId",
3646
+ "status",
3647
+ "spans",
3648
+ "feedback"
3649
+ ],
3650
+ "additionalProperties": true
3651
+ },
3652
+ "TraceSpan": {
3653
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3654
+ "type": "object",
3655
+ "properties": {
3656
+ "kind": {
3657
+ "type": "string",
3658
+ "enum": [
3659
+ "model",
3660
+ "tool"
3661
+ ]
3662
+ },
3663
+ "step": {
3664
+ "anyOf": [
3665
+ {
3666
+ "type": "number"
3667
+ },
3668
+ {
3669
+ "type": "string",
3670
+ "enum": [
3671
+ "Infinity",
3672
+ "-Infinity",
3673
+ "NaN"
3674
+ ]
3675
+ }
3676
+ ]
3677
+ },
3678
+ "name": {
3679
+ "type": "string"
3680
+ },
3681
+ "startedAt": {
3682
+ "type": "string"
3683
+ },
3684
+ "finishedAt": {
3685
+ "anyOf": [
3686
+ {
3687
+ "type": "string"
3688
+ },
3689
+ {
3690
+ "type": "null"
3691
+ }
3692
+ ]
3693
+ },
3694
+ "durationMs": {
3695
+ "anyOf": [
3696
+ {
3697
+ "type": "number"
3698
+ },
3699
+ {
3700
+ "type": "string",
3701
+ "enum": [
3702
+ "Infinity",
3703
+ "-Infinity",
3704
+ "NaN"
3705
+ ]
3706
+ },
3707
+ {
3708
+ "type": "null"
3709
+ }
3710
+ ]
3711
+ },
3712
+ "ok": {
3713
+ "type": "boolean"
3714
+ },
3715
+ "errorTag": {
3716
+ "anyOf": [
3717
+ {
3718
+ "type": "string"
3719
+ },
3720
+ {
3721
+ "type": "null"
3722
+ }
3723
+ ]
3724
+ },
3725
+ "inputTokens": {
3726
+ "anyOf": [
3727
+ {
3728
+ "type": "number"
3729
+ },
3730
+ {
3731
+ "type": "string",
3732
+ "enum": [
3733
+ "Infinity",
3734
+ "-Infinity",
3735
+ "NaN"
3736
+ ]
3737
+ },
3738
+ {
3739
+ "type": "null"
3740
+ }
3741
+ ]
3742
+ },
3743
+ "outputTokens": {
3744
+ "anyOf": [
3745
+ {
3746
+ "type": "number"
3747
+ },
3748
+ {
3749
+ "type": "string",
3750
+ "enum": [
3751
+ "Infinity",
3752
+ "-Infinity",
3753
+ "NaN"
3754
+ ]
3755
+ },
3756
+ {
3757
+ "type": "null"
3758
+ }
3759
+ ]
3760
+ }
3761
+ },
3762
+ "required": [
3763
+ "kind",
3764
+ "step",
3765
+ "name",
3766
+ "startedAt",
3767
+ "finishedAt",
3768
+ "durationMs",
3769
+ "ok",
3770
+ "errorTag",
3771
+ "inputTokens",
3772
+ "outputTokens"
3773
+ ],
3774
+ "additionalProperties": true
3775
+ },
3776
+ "GiveFeedback": {
3777
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3778
+ "type": "object",
3779
+ "properties": {
3780
+ "runId": {
3781
+ "type": "string"
3782
+ },
3783
+ "rating": {
3784
+ "type": "string",
3785
+ "enum": [
3786
+ "up",
3787
+ "down"
3788
+ ]
3789
+ },
3790
+ "comment": {
3791
+ "anyOf": [
3792
+ {
3793
+ "type": "string",
3794
+ "maxLength": 2000
3795
+ },
3796
+ {
3797
+ "type": "null"
3798
+ }
3799
+ ]
3800
+ },
3801
+ "tags": {
3802
+ "type": "array",
3803
+ "items": {
3804
+ "type": "string",
3805
+ "pattern": "^[a-z0-9][a-z0-9-]{0,31}$"
3806
+ },
3807
+ "maxItems": 10
3808
+ }
3809
+ },
3810
+ "required": [
3811
+ "runId",
3812
+ "rating"
3813
+ ],
3814
+ "additionalProperties": true
3815
+ },
3816
+ "FeedbackEntry": {
3817
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3818
+ "type": "object",
3819
+ "properties": {
3820
+ "runId": {
3821
+ "type": "string"
3822
+ },
3823
+ "userId": {
3824
+ "type": "string"
3825
+ },
3826
+ "rating": {
3827
+ "type": "string",
3828
+ "enum": [
3829
+ "up",
3830
+ "down"
3831
+ ]
3832
+ },
3833
+ "comment": {
3834
+ "anyOf": [
3835
+ {
3836
+ "type": "string"
3837
+ },
3838
+ {
3839
+ "type": "null"
3840
+ }
3841
+ ]
3842
+ },
3843
+ "tags": {
3844
+ "type": "array",
3845
+ "items": {
3846
+ "type": "string"
3847
+ }
3848
+ },
3849
+ "at": {
3850
+ "type": "string"
3851
+ }
3852
+ },
3853
+ "required": [
3854
+ "runId",
3855
+ "userId",
3856
+ "rating",
3857
+ "comment",
3858
+ "tags",
3859
+ "at"
3860
+ ],
3861
+ "additionalProperties": true
3862
+ },
3863
+ "FeedbackList": {
3864
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3865
+ "type": "object",
3866
+ "properties": {
3867
+ "scope": {
3868
+ "type": "string",
3869
+ "enum": [
3870
+ "user",
3871
+ "org"
3872
+ ]
3873
+ },
3874
+ "period": {
3875
+ "type": "string",
3876
+ "enum": [
3877
+ "day",
3878
+ "month",
3879
+ "total"
3880
+ ]
3881
+ },
3882
+ "up": {
3883
+ "anyOf": [
3884
+ {
3885
+ "type": "number"
3886
+ },
3887
+ {
3888
+ "type": "string",
3889
+ "enum": [
3890
+ "Infinity",
3891
+ "-Infinity",
3892
+ "NaN"
3893
+ ]
3894
+ }
3895
+ ]
3896
+ },
3897
+ "down": {
3898
+ "anyOf": [
3899
+ {
3900
+ "type": "number"
3901
+ },
3902
+ {
3903
+ "type": "string",
3904
+ "enum": [
3905
+ "Infinity",
3906
+ "-Infinity",
3907
+ "NaN"
3908
+ ]
3909
+ }
3910
+ ]
3911
+ },
3912
+ "entries": {
3913
+ "type": "array",
3914
+ "items": {
3915
+ "type": "object",
3916
+ "properties": {
3917
+ "runId": {
3918
+ "type": "string"
3919
+ },
3920
+ "userId": {
3921
+ "type": "string"
3922
+ },
3923
+ "rating": {
3924
+ "type": "string",
3925
+ "enum": [
3926
+ "up",
3927
+ "down"
3928
+ ]
3929
+ },
3930
+ "comment": {
3931
+ "anyOf": [
3932
+ {
3933
+ "type": "string"
3934
+ },
3935
+ {
3936
+ "type": "null"
3937
+ }
3938
+ ]
3939
+ },
3940
+ "tags": {
3941
+ "type": "array",
3942
+ "items": {
3943
+ "type": "string"
3944
+ }
3945
+ },
3946
+ "at": {
3947
+ "type": "string"
3948
+ }
3949
+ },
3950
+ "required": [
3951
+ "runId",
3952
+ "userId",
3953
+ "rating",
3954
+ "comment",
3955
+ "tags",
3956
+ "at"
3957
+ ],
3958
+ "additionalProperties": true
3959
+ }
3960
+ }
3961
+ },
3962
+ "required": [
3963
+ "scope",
3964
+ "period",
3965
+ "up",
3966
+ "down",
3967
+ "entries"
3968
+ ],
3969
+ "additionalProperties": true
3970
+ },
3971
+ "EngineReadiness": {
3972
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3973
+ "type": "object",
3974
+ "properties": {
3975
+ "state": {
3976
+ "type": "string",
3977
+ "enum": [
3978
+ "configured",
3979
+ "missing",
3980
+ "unavailable",
3981
+ "unknown"
3982
+ ]
3983
+ },
3984
+ "provider": {
3985
+ "anyOf": [
3986
+ {
3987
+ "type": "string"
3988
+ },
3989
+ {
3990
+ "type": "null"
3991
+ }
3992
+ ]
3993
+ },
3994
+ "model": {
3995
+ "anyOf": [
3996
+ {
3997
+ "type": "string"
3998
+ },
3999
+ {
4000
+ "type": "null"
4001
+ }
4002
+ ]
4003
+ },
4004
+ "detail": {
4005
+ "type": "string"
4006
+ }
4007
+ },
4008
+ "required": [
4009
+ "state",
4010
+ "provider",
4011
+ "model",
4012
+ "detail"
4013
+ ],
4014
+ "additionalProperties": true
4015
+ }
4016
+ }
4017
+ }