@eloxiv/contracts 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +878 -0
  204. package/dist/contracts/LocalClient.d.ts.map +1 -0
  205. package/dist/contracts/LocalClient.js +423 -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 +1295 -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 +6642 -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 +614 -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,4555 @@
1
+ {
2
+ "title": "Daemon",
3
+ "kind": "kernel",
4
+ "version": "1.1.0",
5
+ "description": "The device daemon: pairing, token custody, the loopback relay, local agent harnesses on the person's own subscriptions, and the headless runner, with the kernel's device endpoints and turn queue.",
6
+ "operations": {
7
+ "startPairing": {
8
+ "description": "POST /kernel/device/pair/start (no credential; rate limited per address): start pairing a device. Returns a user code to show and a poll secret only the daemon holds. Codes expire after 10 minutes.",
9
+ "input": {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "type": "object",
12
+ "properties": {
13
+ "name": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 100
17
+ },
18
+ "kind": {
19
+ "type": "string",
20
+ "enum": [
21
+ "desktop",
22
+ "runner"
23
+ ]
24
+ },
25
+ "platform": {
26
+ "type": "string",
27
+ "maxLength": 100
28
+ },
29
+ "capabilities": {
30
+ "type": "object",
31
+ "properties": {
32
+ "harnesses": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string",
36
+ "enum": [
37
+ "claude-code",
38
+ "codex",
39
+ "opencode",
40
+ "acp"
41
+ ]
42
+ }
43
+ },
44
+ "computerUse": {
45
+ "type": "boolean"
46
+ },
47
+ "browserExtension": {
48
+ "type": "boolean"
49
+ },
50
+ "commands": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string",
54
+ "enum": [
55
+ "terminal",
56
+ "files",
57
+ "browser",
58
+ "computer"
59
+ ]
60
+ }
61
+ },
62
+ "toolsOnly": {
63
+ "type": "boolean"
64
+ }
65
+ },
66
+ "required": [
67
+ "harnesses",
68
+ "computerUse",
69
+ "browserExtension"
70
+ ],
71
+ "additionalProperties": true
72
+ }
73
+ },
74
+ "required": [
75
+ "name",
76
+ "kind",
77
+ "platform",
78
+ "capabilities"
79
+ ],
80
+ "additionalProperties": true
81
+ },
82
+ "output": {
83
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
84
+ "type": "object",
85
+ "properties": {
86
+ "pairingId": {
87
+ "type": "string"
88
+ },
89
+ "pollSecret": {
90
+ "type": "string"
91
+ },
92
+ "userCode": {
93
+ "type": "string"
94
+ },
95
+ "verificationUri": {
96
+ "type": "string"
97
+ },
98
+ "verificationUriComplete": {
99
+ "type": "string"
100
+ },
101
+ "expiresAt": {
102
+ "type": "string"
103
+ },
104
+ "interval": {
105
+ "anyOf": [
106
+ {
107
+ "type": "number"
108
+ },
109
+ {
110
+ "type": "string",
111
+ "enum": [
112
+ "Infinity",
113
+ "-Infinity",
114
+ "NaN"
115
+ ]
116
+ }
117
+ ]
118
+ }
119
+ },
120
+ "required": [
121
+ "pairingId",
122
+ "pollSecret",
123
+ "userCode",
124
+ "verificationUri",
125
+ "verificationUriComplete",
126
+ "expiresAt",
127
+ "interval"
128
+ ],
129
+ "additionalProperties": true
130
+ },
131
+ "errors": {
132
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
133
+ "anyOf": [
134
+ {
135
+ "$ref": "#/$defs/InvalidInputEncoded"
136
+ },
137
+ {
138
+ "$ref": "#/$defs/ForbiddenEncoded"
139
+ }
140
+ ],
141
+ "$defs": {
142
+ "InvalidInputEncoded": {
143
+ "type": "object",
144
+ "properties": {
145
+ "_tag": {
146
+ "type": "string",
147
+ "enum": [
148
+ "InvalidInput"
149
+ ]
150
+ },
151
+ "message": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ "required": [
156
+ "_tag",
157
+ "message"
158
+ ],
159
+ "additionalProperties": true
160
+ },
161
+ "ForbiddenEncoded": {
162
+ "type": "object",
163
+ "properties": {
164
+ "_tag": {
165
+ "type": "string",
166
+ "enum": [
167
+ "Forbidden"
168
+ ]
169
+ },
170
+ "message": {
171
+ "type": "string"
172
+ },
173
+ "action": {
174
+ "type": "string"
175
+ }
176
+ },
177
+ "required": [
178
+ "_tag",
179
+ "message",
180
+ "action"
181
+ ],
182
+ "additionalProperties": true
183
+ }
184
+ }
185
+ }
186
+ },
187
+ "pollPairing": {
188
+ "description": "POST /kernel/device/pair/poll: the pairing's state. Once a person confirmed the code, returns the device credential exactly once; a later poll, a wrong poll secret or an expired pairing is refused.",
189
+ "input": {
190
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
191
+ "type": "object",
192
+ "properties": {
193
+ "pairingId": {
194
+ "type": "string"
195
+ },
196
+ "pollSecret": {
197
+ "type": "string"
198
+ }
199
+ },
200
+ "required": [
201
+ "pairingId",
202
+ "pollSecret"
203
+ ],
204
+ "additionalProperties": true
205
+ },
206
+ "output": {
207
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
208
+ "anyOf": [
209
+ {
210
+ "type": "object",
211
+ "properties": {
212
+ "status": {
213
+ "type": "string",
214
+ "enum": [
215
+ "pending"
216
+ ]
217
+ }
218
+ },
219
+ "required": [
220
+ "status"
221
+ ],
222
+ "additionalProperties": true
223
+ },
224
+ {
225
+ "type": "object",
226
+ "properties": {
227
+ "status": {
228
+ "type": "string",
229
+ "enum": [
230
+ "denied"
231
+ ]
232
+ }
233
+ },
234
+ "required": [
235
+ "status"
236
+ ],
237
+ "additionalProperties": true
238
+ },
239
+ {
240
+ "type": "object",
241
+ "properties": {
242
+ "status": {
243
+ "type": "string",
244
+ "enum": [
245
+ "expired"
246
+ ]
247
+ }
248
+ },
249
+ "required": [
250
+ "status"
251
+ ],
252
+ "additionalProperties": true
253
+ },
254
+ {
255
+ "type": "object",
256
+ "properties": {
257
+ "status": {
258
+ "type": "string",
259
+ "enum": [
260
+ "paired"
261
+ ]
262
+ },
263
+ "deviceId": {
264
+ "type": "string"
265
+ },
266
+ "orgId": {
267
+ "type": "string"
268
+ },
269
+ "subject": {
270
+ "type": "string"
271
+ },
272
+ "credential": {
273
+ "type": "string"
274
+ }
275
+ },
276
+ "required": [
277
+ "status",
278
+ "deviceId",
279
+ "orgId",
280
+ "subject",
281
+ "credential"
282
+ ],
283
+ "additionalProperties": true
284
+ }
285
+ ]
286
+ },
287
+ "errors": {
288
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
289
+ "anyOf": [
290
+ {
291
+ "$ref": "#/$defs/InvalidInputEncoded"
292
+ }
293
+ ],
294
+ "$defs": {
295
+ "InvalidInputEncoded": {
296
+ "type": "object",
297
+ "properties": {
298
+ "_tag": {
299
+ "type": "string",
300
+ "enum": [
301
+ "InvalidInput"
302
+ ]
303
+ },
304
+ "message": {
305
+ "type": "string"
306
+ }
307
+ },
308
+ "required": [
309
+ "_tag",
310
+ "message"
311
+ ],
312
+ "additionalProperties": true
313
+ }
314
+ }
315
+ }
316
+ },
317
+ "confirmPairing": {
318
+ "description": "POST /kernel/devices/confirmPairing (a signed-in person): approve a user code in the caller's organisation, pairing the device to the caller, or with principalId to a service principal (needs eloxiv.machine.manage). Wrong codes count against the caller; a used or expired code is refused. Audited.",
319
+ "input": {
320
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
321
+ "type": "object",
322
+ "properties": {
323
+ "userCode": {
324
+ "type": "string",
325
+ "maxLength": 20
326
+ },
327
+ "principalId": {
328
+ "type": "string"
329
+ }
330
+ },
331
+ "required": [
332
+ "userCode"
333
+ ],
334
+ "additionalProperties": true
335
+ },
336
+ "output": {
337
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
338
+ "type": "object",
339
+ "properties": {
340
+ "pairingId": {
341
+ "type": "string"
342
+ },
343
+ "status": {
344
+ "type": "string",
345
+ "enum": [
346
+ "approved",
347
+ "denied"
348
+ ]
349
+ },
350
+ "deviceId": {
351
+ "anyOf": [
352
+ {
353
+ "type": "string"
354
+ },
355
+ {
356
+ "type": "null"
357
+ }
358
+ ]
359
+ }
360
+ },
361
+ "required": [
362
+ "pairingId",
363
+ "status",
364
+ "deviceId"
365
+ ],
366
+ "additionalProperties": true
367
+ },
368
+ "errors": {
369
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
370
+ "anyOf": [
371
+ {
372
+ "$ref": "#/$defs/UnauthenticatedEncoded"
373
+ },
374
+ {
375
+ "$ref": "#/$defs/ForbiddenEncoded"
376
+ },
377
+ {
378
+ "$ref": "#/$defs/InvalidInputEncoded"
379
+ }
380
+ ],
381
+ "$defs": {
382
+ "UnauthenticatedEncoded": {
383
+ "type": "object",
384
+ "properties": {
385
+ "_tag": {
386
+ "type": "string",
387
+ "enum": [
388
+ "Unauthenticated"
389
+ ]
390
+ },
391
+ "message": {
392
+ "type": "string"
393
+ }
394
+ },
395
+ "required": [
396
+ "_tag",
397
+ "message"
398
+ ],
399
+ "additionalProperties": true
400
+ },
401
+ "ForbiddenEncoded": {
402
+ "type": "object",
403
+ "properties": {
404
+ "_tag": {
405
+ "type": "string",
406
+ "enum": [
407
+ "Forbidden"
408
+ ]
409
+ },
410
+ "message": {
411
+ "type": "string"
412
+ },
413
+ "action": {
414
+ "type": "string"
415
+ }
416
+ },
417
+ "required": [
418
+ "_tag",
419
+ "message",
420
+ "action"
421
+ ],
422
+ "additionalProperties": true
423
+ },
424
+ "InvalidInputEncoded": {
425
+ "type": "object",
426
+ "properties": {
427
+ "_tag": {
428
+ "type": "string",
429
+ "enum": [
430
+ "InvalidInput"
431
+ ]
432
+ },
433
+ "message": {
434
+ "type": "string"
435
+ }
436
+ },
437
+ "required": [
438
+ "_tag",
439
+ "message"
440
+ ],
441
+ "additionalProperties": true
442
+ }
443
+ }
444
+ }
445
+ },
446
+ "denyPairing": {
447
+ "description": "POST /kernel/devices/denyPairing (a signed-in person): refuse a user code. Audited.",
448
+ "input": {
449
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
450
+ "type": "object",
451
+ "properties": {
452
+ "userCode": {
453
+ "type": "string",
454
+ "maxLength": 20
455
+ },
456
+ "principalId": {
457
+ "type": "string"
458
+ }
459
+ },
460
+ "required": [
461
+ "userCode"
462
+ ],
463
+ "additionalProperties": true
464
+ },
465
+ "output": {
466
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
467
+ "type": "object",
468
+ "properties": {
469
+ "pairingId": {
470
+ "type": "string"
471
+ },
472
+ "status": {
473
+ "type": "string",
474
+ "enum": [
475
+ "approved",
476
+ "denied"
477
+ ]
478
+ },
479
+ "deviceId": {
480
+ "anyOf": [
481
+ {
482
+ "type": "string"
483
+ },
484
+ {
485
+ "type": "null"
486
+ }
487
+ ]
488
+ }
489
+ },
490
+ "required": [
491
+ "pairingId",
492
+ "status",
493
+ "deviceId"
494
+ ],
495
+ "additionalProperties": true
496
+ },
497
+ "errors": {
498
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
499
+ "anyOf": [
500
+ {
501
+ "$ref": "#/$defs/UnauthenticatedEncoded"
502
+ },
503
+ {
504
+ "$ref": "#/$defs/ForbiddenEncoded"
505
+ },
506
+ {
507
+ "$ref": "#/$defs/InvalidInputEncoded"
508
+ }
509
+ ],
510
+ "$defs": {
511
+ "UnauthenticatedEncoded": {
512
+ "type": "object",
513
+ "properties": {
514
+ "_tag": {
515
+ "type": "string",
516
+ "enum": [
517
+ "Unauthenticated"
518
+ ]
519
+ },
520
+ "message": {
521
+ "type": "string"
522
+ }
523
+ },
524
+ "required": [
525
+ "_tag",
526
+ "message"
527
+ ],
528
+ "additionalProperties": true
529
+ },
530
+ "ForbiddenEncoded": {
531
+ "type": "object",
532
+ "properties": {
533
+ "_tag": {
534
+ "type": "string",
535
+ "enum": [
536
+ "Forbidden"
537
+ ]
538
+ },
539
+ "message": {
540
+ "type": "string"
541
+ },
542
+ "action": {
543
+ "type": "string"
544
+ }
545
+ },
546
+ "required": [
547
+ "_tag",
548
+ "message",
549
+ "action"
550
+ ],
551
+ "additionalProperties": true
552
+ },
553
+ "InvalidInputEncoded": {
554
+ "type": "object",
555
+ "properties": {
556
+ "_tag": {
557
+ "type": "string",
558
+ "enum": [
559
+ "InvalidInput"
560
+ ]
561
+ },
562
+ "message": {
563
+ "type": "string"
564
+ }
565
+ },
566
+ "required": [
567
+ "_tag",
568
+ "message"
569
+ ],
570
+ "additionalProperties": true
571
+ }
572
+ }
573
+ }
574
+ },
575
+ "deviceStatus": {
576
+ "description": "GET /kernel/device/me (the device credential): the device as the kernel sees it. A revoked device's credential is refused (401) from its next request.",
577
+ "input": {
578
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
579
+ "not": {
580
+ "type": "null"
581
+ }
582
+ },
583
+ "output": {
584
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
585
+ "type": "object",
586
+ "properties": {
587
+ "id": {
588
+ "type": "string"
589
+ },
590
+ "orgId": {
591
+ "type": "string"
592
+ },
593
+ "subject": {
594
+ "type": "string"
595
+ },
596
+ "subjectKind": {
597
+ "type": "string",
598
+ "enum": [
599
+ "user",
600
+ "service"
601
+ ]
602
+ },
603
+ "pairedBy": {
604
+ "type": "string"
605
+ },
606
+ "name": {
607
+ "type": "string"
608
+ },
609
+ "kind": {
610
+ "type": "string",
611
+ "enum": [
612
+ "desktop",
613
+ "runner"
614
+ ]
615
+ },
616
+ "platform": {
617
+ "type": "string"
618
+ },
619
+ "capabilities": {
620
+ "type": "object",
621
+ "properties": {
622
+ "harnesses": {
623
+ "type": "array",
624
+ "items": {
625
+ "type": "string",
626
+ "enum": [
627
+ "claude-code",
628
+ "codex",
629
+ "opencode",
630
+ "acp"
631
+ ]
632
+ }
633
+ },
634
+ "computerUse": {
635
+ "type": "boolean"
636
+ },
637
+ "browserExtension": {
638
+ "type": "boolean"
639
+ },
640
+ "commands": {
641
+ "type": "array",
642
+ "items": {
643
+ "type": "string",
644
+ "enum": [
645
+ "terminal",
646
+ "files",
647
+ "browser",
648
+ "computer"
649
+ ]
650
+ }
651
+ },
652
+ "toolsOnly": {
653
+ "type": "boolean"
654
+ }
655
+ },
656
+ "required": [
657
+ "harnesses",
658
+ "computerUse",
659
+ "browserExtension"
660
+ ],
661
+ "additionalProperties": true
662
+ },
663
+ "createdAt": {
664
+ "type": "string"
665
+ },
666
+ "lastSeenAt": {
667
+ "anyOf": [
668
+ {
669
+ "type": "string"
670
+ },
671
+ {
672
+ "type": "null"
673
+ }
674
+ ]
675
+ },
676
+ "revokedAt": {
677
+ "anyOf": [
678
+ {
679
+ "type": "string"
680
+ },
681
+ {
682
+ "type": "null"
683
+ }
684
+ ]
685
+ },
686
+ "push": {
687
+ "type": "boolean"
688
+ }
689
+ },
690
+ "required": [
691
+ "id",
692
+ "orgId",
693
+ "subject",
694
+ "subjectKind",
695
+ "pairedBy",
696
+ "name",
697
+ "kind",
698
+ "platform",
699
+ "capabilities",
700
+ "createdAt",
701
+ "lastSeenAt",
702
+ "revokedAt"
703
+ ],
704
+ "additionalProperties": true
705
+ },
706
+ "errors": {
707
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
708
+ "anyOf": [
709
+ {
710
+ "$ref": "#/$defs/UnauthenticatedEncoded"
711
+ }
712
+ ],
713
+ "$defs": {
714
+ "UnauthenticatedEncoded": {
715
+ "type": "object",
716
+ "properties": {
717
+ "_tag": {
718
+ "type": "string",
719
+ "enum": [
720
+ "Unauthenticated"
721
+ ]
722
+ },
723
+ "message": {
724
+ "type": "string"
725
+ }
726
+ },
727
+ "required": [
728
+ "_tag",
729
+ "message"
730
+ ],
731
+ "additionalProperties": true
732
+ }
733
+ }
734
+ }
735
+ },
736
+ "issueRelaySession": {
737
+ "description": "POST /kernel/device/relay-session (the device credential): an agent session for the device's subject, bound to the device (revoking the device ends it), for a local harness. Every call made with it is agent-originated, so consent applies.",
738
+ "input": {
739
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
740
+ "type": "object",
741
+ "properties": {
742
+ "purpose": {
743
+ "type": "string",
744
+ "maxLength": 200
745
+ },
746
+ "ttlSeconds": {
747
+ "anyOf": [
748
+ {
749
+ "type": "number"
750
+ },
751
+ {
752
+ "type": "string",
753
+ "enum": [
754
+ "Infinity",
755
+ "-Infinity",
756
+ "NaN"
757
+ ]
758
+ }
759
+ ]
760
+ },
761
+ "turnId": {
762
+ "type": "string"
763
+ }
764
+ },
765
+ "required": [
766
+ "purpose"
767
+ ],
768
+ "additionalProperties": true
769
+ },
770
+ "output": {
771
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
772
+ "type": "object",
773
+ "properties": {
774
+ "id": {
775
+ "type": "string"
776
+ },
777
+ "token": {
778
+ "type": "string"
779
+ },
780
+ "expiresAt": {
781
+ "type": "string"
782
+ }
783
+ },
784
+ "required": [
785
+ "id",
786
+ "token",
787
+ "expiresAt"
788
+ ],
789
+ "additionalProperties": true
790
+ },
791
+ "errors": {
792
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
793
+ "anyOf": [
794
+ {
795
+ "$ref": "#/$defs/UnauthenticatedEncoded"
796
+ },
797
+ {
798
+ "$ref": "#/$defs/ForbiddenEncoded"
799
+ },
800
+ {
801
+ "$ref": "#/$defs/InvalidInputEncoded"
802
+ }
803
+ ],
804
+ "$defs": {
805
+ "UnauthenticatedEncoded": {
806
+ "type": "object",
807
+ "properties": {
808
+ "_tag": {
809
+ "type": "string",
810
+ "enum": [
811
+ "Unauthenticated"
812
+ ]
813
+ },
814
+ "message": {
815
+ "type": "string"
816
+ }
817
+ },
818
+ "required": [
819
+ "_tag",
820
+ "message"
821
+ ],
822
+ "additionalProperties": true
823
+ },
824
+ "ForbiddenEncoded": {
825
+ "type": "object",
826
+ "properties": {
827
+ "_tag": {
828
+ "type": "string",
829
+ "enum": [
830
+ "Forbidden"
831
+ ]
832
+ },
833
+ "message": {
834
+ "type": "string"
835
+ },
836
+ "action": {
837
+ "type": "string"
838
+ }
839
+ },
840
+ "required": [
841
+ "_tag",
842
+ "message",
843
+ "action"
844
+ ],
845
+ "additionalProperties": true
846
+ },
847
+ "InvalidInputEncoded": {
848
+ "type": "object",
849
+ "properties": {
850
+ "_tag": {
851
+ "type": "string",
852
+ "enum": [
853
+ "InvalidInput"
854
+ ]
855
+ },
856
+ "message": {
857
+ "type": "string"
858
+ }
859
+ },
860
+ "required": [
861
+ "_tag",
862
+ "message"
863
+ ],
864
+ "additionalProperties": true
865
+ }
866
+ }
867
+ }
868
+ },
869
+ "sendTurn": {
870
+ "description": "Action devices.sendTurn (every surface; typed client, HTTP, MCP, agent tools, scheduled jobs): queue a turn for one of the caller's devices. Only the device's subject may address it; an agent-originated call needs consent. The request is a durable workflow (eloxiv.device-turn).",
871
+ "input": {
872
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
873
+ "type": "object",
874
+ "properties": {
875
+ "deviceId": {
876
+ "type": "string"
877
+ },
878
+ "prompt": {
879
+ "type": "string",
880
+ "maxLength": 100000
881
+ },
882
+ "harness": {
883
+ "type": "string",
884
+ "enum": [
885
+ "claude-code",
886
+ "codex",
887
+ "opencode",
888
+ "acp"
889
+ ]
890
+ },
891
+ "cwd": {
892
+ "type": "string",
893
+ "maxLength": 1000
894
+ },
895
+ "model": {
896
+ "type": "string",
897
+ "maxLength": 200
898
+ },
899
+ "timeoutMs": {
900
+ "anyOf": [
901
+ {
902
+ "type": "number"
903
+ },
904
+ {
905
+ "type": "string",
906
+ "enum": [
907
+ "Infinity",
908
+ "-Infinity",
909
+ "NaN"
910
+ ]
911
+ }
912
+ ]
913
+ },
914
+ "actions": {
915
+ "type": "array",
916
+ "items": {
917
+ "type": "string",
918
+ "maxLength": 200
919
+ },
920
+ "maxItems": 100
921
+ },
922
+ "workspaceTools": {
923
+ "type": "boolean"
924
+ },
925
+ "resumable": {
926
+ "type": "boolean"
927
+ },
928
+ "followUp": {
929
+ "type": "string",
930
+ "maxLength": 100
931
+ }
932
+ },
933
+ "required": [
934
+ "deviceId",
935
+ "prompt"
936
+ ],
937
+ "additionalProperties": true
938
+ },
939
+ "output": {
940
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
941
+ "type": "object",
942
+ "properties": {
943
+ "turnId": {
944
+ "type": "string"
945
+ }
946
+ },
947
+ "required": [
948
+ "turnId"
949
+ ],
950
+ "additionalProperties": true
951
+ },
952
+ "errors": {
953
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
954
+ "anyOf": [
955
+ {
956
+ "$ref": "#/$defs/UnauthenticatedEncoded"
957
+ },
958
+ {
959
+ "$ref": "#/$defs/ForbiddenEncoded"
960
+ },
961
+ {
962
+ "$ref": "#/$defs/InvalidInputEncoded"
963
+ },
964
+ {
965
+ "$ref": "#/$defs/ConsentRequiredEncoded"
966
+ }
967
+ ],
968
+ "$defs": {
969
+ "UnauthenticatedEncoded": {
970
+ "type": "object",
971
+ "properties": {
972
+ "_tag": {
973
+ "type": "string",
974
+ "enum": [
975
+ "Unauthenticated"
976
+ ]
977
+ },
978
+ "message": {
979
+ "type": "string"
980
+ }
981
+ },
982
+ "required": [
983
+ "_tag",
984
+ "message"
985
+ ],
986
+ "additionalProperties": true
987
+ },
988
+ "ForbiddenEncoded": {
989
+ "type": "object",
990
+ "properties": {
991
+ "_tag": {
992
+ "type": "string",
993
+ "enum": [
994
+ "Forbidden"
995
+ ]
996
+ },
997
+ "message": {
998
+ "type": "string"
999
+ },
1000
+ "action": {
1001
+ "type": "string"
1002
+ }
1003
+ },
1004
+ "required": [
1005
+ "_tag",
1006
+ "message",
1007
+ "action"
1008
+ ],
1009
+ "additionalProperties": true
1010
+ },
1011
+ "InvalidInputEncoded": {
1012
+ "type": "object",
1013
+ "properties": {
1014
+ "_tag": {
1015
+ "type": "string",
1016
+ "enum": [
1017
+ "InvalidInput"
1018
+ ]
1019
+ },
1020
+ "message": {
1021
+ "type": "string"
1022
+ }
1023
+ },
1024
+ "required": [
1025
+ "_tag",
1026
+ "message"
1027
+ ],
1028
+ "additionalProperties": true
1029
+ },
1030
+ "ConsentRequiredEncoded": {
1031
+ "type": "object",
1032
+ "properties": {
1033
+ "_tag": {
1034
+ "type": "string",
1035
+ "enum": [
1036
+ "ConsentRequired"
1037
+ ]
1038
+ },
1039
+ "message": {
1040
+ "type": "string"
1041
+ },
1042
+ "action": {
1043
+ "type": "string"
1044
+ },
1045
+ "consentId": {
1046
+ "type": "string"
1047
+ }
1048
+ },
1049
+ "required": [
1050
+ "_tag",
1051
+ "message",
1052
+ "action",
1053
+ "consentId"
1054
+ ],
1055
+ "additionalProperties": true
1056
+ }
1057
+ }
1058
+ }
1059
+ },
1060
+ "cancelTurn": {
1061
+ "description": "Action devices.cancelTurn: cancel a turn that has not finished; a running harness is stopped.",
1062
+ "input": {
1063
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1064
+ "type": "object",
1065
+ "properties": {
1066
+ "id": {
1067
+ "type": "string"
1068
+ }
1069
+ },
1070
+ "required": [
1071
+ "id"
1072
+ ],
1073
+ "additionalProperties": true
1074
+ },
1075
+ "output": {
1076
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1077
+ "type": "object",
1078
+ "properties": {
1079
+ "id": {
1080
+ "type": "string"
1081
+ },
1082
+ "status": {
1083
+ "type": "string",
1084
+ "enum": [
1085
+ "queued",
1086
+ "running",
1087
+ "succeeded",
1088
+ "failed",
1089
+ "cancelled"
1090
+ ]
1091
+ }
1092
+ },
1093
+ "required": [
1094
+ "id",
1095
+ "status"
1096
+ ],
1097
+ "additionalProperties": true
1098
+ },
1099
+ "errors": {
1100
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1101
+ "anyOf": [
1102
+ {
1103
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1104
+ },
1105
+ {
1106
+ "$ref": "#/$defs/ForbiddenEncoded"
1107
+ },
1108
+ {
1109
+ "$ref": "#/$defs/InvalidInputEncoded"
1110
+ }
1111
+ ],
1112
+ "$defs": {
1113
+ "UnauthenticatedEncoded": {
1114
+ "type": "object",
1115
+ "properties": {
1116
+ "_tag": {
1117
+ "type": "string",
1118
+ "enum": [
1119
+ "Unauthenticated"
1120
+ ]
1121
+ },
1122
+ "message": {
1123
+ "type": "string"
1124
+ }
1125
+ },
1126
+ "required": [
1127
+ "_tag",
1128
+ "message"
1129
+ ],
1130
+ "additionalProperties": true
1131
+ },
1132
+ "ForbiddenEncoded": {
1133
+ "type": "object",
1134
+ "properties": {
1135
+ "_tag": {
1136
+ "type": "string",
1137
+ "enum": [
1138
+ "Forbidden"
1139
+ ]
1140
+ },
1141
+ "message": {
1142
+ "type": "string"
1143
+ },
1144
+ "action": {
1145
+ "type": "string"
1146
+ }
1147
+ },
1148
+ "required": [
1149
+ "_tag",
1150
+ "message",
1151
+ "action"
1152
+ ],
1153
+ "additionalProperties": true
1154
+ },
1155
+ "InvalidInputEncoded": {
1156
+ "type": "object",
1157
+ "properties": {
1158
+ "_tag": {
1159
+ "type": "string",
1160
+ "enum": [
1161
+ "InvalidInput"
1162
+ ]
1163
+ },
1164
+ "message": {
1165
+ "type": "string"
1166
+ }
1167
+ },
1168
+ "required": [
1169
+ "_tag",
1170
+ "message"
1171
+ ],
1172
+ "additionalProperties": true
1173
+ }
1174
+ }
1175
+ }
1176
+ },
1177
+ "getTurn": {
1178
+ "description": "POST /kernel/devices/getTurn (a signed-in person): a turn and its events, for its requester or the device's subject.",
1179
+ "input": {
1180
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1181
+ "type": "object",
1182
+ "properties": {
1183
+ "id": {
1184
+ "type": "string"
1185
+ }
1186
+ },
1187
+ "required": [
1188
+ "id"
1189
+ ],
1190
+ "additionalProperties": true
1191
+ },
1192
+ "output": {
1193
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1194
+ "type": "object",
1195
+ "properties": {
1196
+ "turn": {
1197
+ "type": "object",
1198
+ "properties": {
1199
+ "id": {
1200
+ "type": "string"
1201
+ },
1202
+ "orgId": {
1203
+ "type": "string"
1204
+ },
1205
+ "deviceId": {
1206
+ "type": "string"
1207
+ },
1208
+ "requestedBy": {
1209
+ "type": "string"
1210
+ },
1211
+ "source": {
1212
+ "type": "string",
1213
+ "enum": [
1214
+ "person",
1215
+ "agent",
1216
+ "system"
1217
+ ]
1218
+ },
1219
+ "parentRunId": {
1220
+ "anyOf": [
1221
+ {
1222
+ "type": "string"
1223
+ },
1224
+ {
1225
+ "type": "null"
1226
+ }
1227
+ ]
1228
+ },
1229
+ "prompt": {
1230
+ "type": "string"
1231
+ },
1232
+ "harness": {
1233
+ "type": "string",
1234
+ "enum": [
1235
+ "claude-code",
1236
+ "codex",
1237
+ "opencode",
1238
+ "acp"
1239
+ ]
1240
+ },
1241
+ "cwd": {
1242
+ "anyOf": [
1243
+ {
1244
+ "type": "string"
1245
+ },
1246
+ {
1247
+ "type": "null"
1248
+ }
1249
+ ]
1250
+ },
1251
+ "model": {
1252
+ "anyOf": [
1253
+ {
1254
+ "type": "string"
1255
+ },
1256
+ {
1257
+ "type": "null"
1258
+ }
1259
+ ]
1260
+ },
1261
+ "timeoutMs": {
1262
+ "anyOf": [
1263
+ {
1264
+ "type": "number"
1265
+ },
1266
+ {
1267
+ "type": "string",
1268
+ "enum": [
1269
+ "Infinity",
1270
+ "-Infinity",
1271
+ "NaN"
1272
+ ]
1273
+ }
1274
+ ]
1275
+ },
1276
+ "status": {
1277
+ "type": "string",
1278
+ "enum": [
1279
+ "queued",
1280
+ "running",
1281
+ "succeeded",
1282
+ "failed",
1283
+ "cancelled"
1284
+ ]
1285
+ },
1286
+ "attempt": {
1287
+ "anyOf": [
1288
+ {
1289
+ "type": "number"
1290
+ },
1291
+ {
1292
+ "type": "string",
1293
+ "enum": [
1294
+ "Infinity",
1295
+ "-Infinity",
1296
+ "NaN"
1297
+ ]
1298
+ }
1299
+ ]
1300
+ },
1301
+ "result": {
1302
+ "anyOf": [
1303
+ {
1304
+ "type": "string"
1305
+ },
1306
+ {
1307
+ "type": "null"
1308
+ }
1309
+ ]
1310
+ },
1311
+ "usage": {
1312
+ "anyOf": [
1313
+ {
1314
+ "type": "object",
1315
+ "properties": {
1316
+ "inputTokens": {
1317
+ "anyOf": [
1318
+ {
1319
+ "type": "number"
1320
+ },
1321
+ {
1322
+ "type": "string",
1323
+ "enum": [
1324
+ "Infinity",
1325
+ "-Infinity",
1326
+ "NaN"
1327
+ ]
1328
+ }
1329
+ ]
1330
+ },
1331
+ "outputTokens": {
1332
+ "anyOf": [
1333
+ {
1334
+ "type": "number"
1335
+ },
1336
+ {
1337
+ "type": "string",
1338
+ "enum": [
1339
+ "Infinity",
1340
+ "-Infinity",
1341
+ "NaN"
1342
+ ]
1343
+ }
1344
+ ]
1345
+ },
1346
+ "cachedInputTokens": {
1347
+ "anyOf": [
1348
+ {
1349
+ "type": "number"
1350
+ },
1351
+ {
1352
+ "type": "string",
1353
+ "enum": [
1354
+ "Infinity",
1355
+ "-Infinity",
1356
+ "NaN"
1357
+ ]
1358
+ },
1359
+ {
1360
+ "type": "null"
1361
+ }
1362
+ ]
1363
+ },
1364
+ "costUsd": {
1365
+ "anyOf": [
1366
+ {
1367
+ "type": "number"
1368
+ },
1369
+ {
1370
+ "type": "string",
1371
+ "enum": [
1372
+ "Infinity",
1373
+ "-Infinity",
1374
+ "NaN"
1375
+ ]
1376
+ },
1377
+ {
1378
+ "type": "null"
1379
+ }
1380
+ ]
1381
+ }
1382
+ },
1383
+ "required": [
1384
+ "inputTokens",
1385
+ "outputTokens",
1386
+ "cachedInputTokens",
1387
+ "costUsd"
1388
+ ],
1389
+ "additionalProperties": true
1390
+ },
1391
+ {
1392
+ "type": "null"
1393
+ }
1394
+ ]
1395
+ },
1396
+ "error": {
1397
+ "anyOf": [
1398
+ {
1399
+ "type": "string"
1400
+ },
1401
+ {
1402
+ "type": "null"
1403
+ }
1404
+ ]
1405
+ },
1406
+ "createdAt": {
1407
+ "type": "string"
1408
+ },
1409
+ "completedAt": {
1410
+ "anyOf": [
1411
+ {
1412
+ "type": "string"
1413
+ },
1414
+ {
1415
+ "type": "null"
1416
+ }
1417
+ ]
1418
+ },
1419
+ "resumable": {
1420
+ "type": "boolean"
1421
+ },
1422
+ "followUpOf": {
1423
+ "anyOf": [
1424
+ {
1425
+ "type": "string"
1426
+ },
1427
+ {
1428
+ "type": "null"
1429
+ }
1430
+ ]
1431
+ }
1432
+ },
1433
+ "required": [
1434
+ "id",
1435
+ "orgId",
1436
+ "deviceId",
1437
+ "requestedBy",
1438
+ "source",
1439
+ "prompt",
1440
+ "harness",
1441
+ "cwd",
1442
+ "model",
1443
+ "timeoutMs",
1444
+ "status",
1445
+ "attempt",
1446
+ "result",
1447
+ "usage",
1448
+ "error",
1449
+ "createdAt",
1450
+ "completedAt",
1451
+ "resumable",
1452
+ "followUpOf"
1453
+ ],
1454
+ "additionalProperties": true
1455
+ },
1456
+ "events": {
1457
+ "type": "array",
1458
+ "items": {
1459
+ "type": "object",
1460
+ "properties": {
1461
+ "turnId": {
1462
+ "type": "string"
1463
+ },
1464
+ "attempt": {
1465
+ "anyOf": [
1466
+ {
1467
+ "type": "number"
1468
+ },
1469
+ {
1470
+ "type": "string",
1471
+ "enum": [
1472
+ "Infinity",
1473
+ "-Infinity",
1474
+ "NaN"
1475
+ ]
1476
+ }
1477
+ ]
1478
+ },
1479
+ "seq": {
1480
+ "anyOf": [
1481
+ {
1482
+ "type": "number"
1483
+ },
1484
+ {
1485
+ "type": "string",
1486
+ "enum": [
1487
+ "Infinity",
1488
+ "-Infinity",
1489
+ "NaN"
1490
+ ]
1491
+ }
1492
+ ]
1493
+ },
1494
+ "type": {
1495
+ "type": "string",
1496
+ "enum": [
1497
+ "started",
1498
+ "text",
1499
+ "tool-call",
1500
+ "tool-result",
1501
+ "usage",
1502
+ "error",
1503
+ "finished"
1504
+ ]
1505
+ },
1506
+ "data": {},
1507
+ "at": {
1508
+ "type": "string"
1509
+ }
1510
+ },
1511
+ "required": [
1512
+ "turnId",
1513
+ "attempt",
1514
+ "seq",
1515
+ "type",
1516
+ "data",
1517
+ "at"
1518
+ ],
1519
+ "additionalProperties": true
1520
+ }
1521
+ }
1522
+ },
1523
+ "required": [
1524
+ "turn",
1525
+ "events"
1526
+ ],
1527
+ "additionalProperties": true
1528
+ },
1529
+ "errors": {
1530
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1531
+ "anyOf": [
1532
+ {
1533
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1534
+ },
1535
+ {
1536
+ "$ref": "#/$defs/ForbiddenEncoded"
1537
+ },
1538
+ {
1539
+ "$ref": "#/$defs/InvalidInputEncoded"
1540
+ }
1541
+ ],
1542
+ "$defs": {
1543
+ "UnauthenticatedEncoded": {
1544
+ "type": "object",
1545
+ "properties": {
1546
+ "_tag": {
1547
+ "type": "string",
1548
+ "enum": [
1549
+ "Unauthenticated"
1550
+ ]
1551
+ },
1552
+ "message": {
1553
+ "type": "string"
1554
+ }
1555
+ },
1556
+ "required": [
1557
+ "_tag",
1558
+ "message"
1559
+ ],
1560
+ "additionalProperties": true
1561
+ },
1562
+ "ForbiddenEncoded": {
1563
+ "type": "object",
1564
+ "properties": {
1565
+ "_tag": {
1566
+ "type": "string",
1567
+ "enum": [
1568
+ "Forbidden"
1569
+ ]
1570
+ },
1571
+ "message": {
1572
+ "type": "string"
1573
+ },
1574
+ "action": {
1575
+ "type": "string"
1576
+ }
1577
+ },
1578
+ "required": [
1579
+ "_tag",
1580
+ "message",
1581
+ "action"
1582
+ ],
1583
+ "additionalProperties": true
1584
+ },
1585
+ "InvalidInputEncoded": {
1586
+ "type": "object",
1587
+ "properties": {
1588
+ "_tag": {
1589
+ "type": "string",
1590
+ "enum": [
1591
+ "InvalidInput"
1592
+ ]
1593
+ },
1594
+ "message": {
1595
+ "type": "string"
1596
+ }
1597
+ },
1598
+ "required": [
1599
+ "_tag",
1600
+ "message"
1601
+ ],
1602
+ "additionalProperties": true
1603
+ }
1604
+ }
1605
+ }
1606
+ },
1607
+ "nextTurn": {
1608
+ "description": "POST /kernel/device/turns/next (the device credential): claim the oldest queued turn addressed to this device, waiting up to waitMs. fresh: true (the first call after the daemon starts) requeues turns this device still held, so a restarted runner takes them again as a new attempt.",
1609
+ "input": {
1610
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1611
+ "type": "object",
1612
+ "properties": {
1613
+ "waitMs": {
1614
+ "anyOf": [
1615
+ {
1616
+ "type": "number"
1617
+ },
1618
+ {
1619
+ "type": "string",
1620
+ "enum": [
1621
+ "Infinity",
1622
+ "-Infinity",
1623
+ "NaN"
1624
+ ]
1625
+ }
1626
+ ]
1627
+ },
1628
+ "fresh": {
1629
+ "type": "boolean"
1630
+ }
1631
+ },
1632
+ "additionalProperties": true
1633
+ },
1634
+ "output": {
1635
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1636
+ "type": "object",
1637
+ "properties": {
1638
+ "turn": {
1639
+ "anyOf": [
1640
+ {
1641
+ "type": "object",
1642
+ "properties": {
1643
+ "id": {
1644
+ "type": "string"
1645
+ },
1646
+ "attempt": {
1647
+ "anyOf": [
1648
+ {
1649
+ "type": "number"
1650
+ },
1651
+ {
1652
+ "type": "string",
1653
+ "enum": [
1654
+ "Infinity",
1655
+ "-Infinity",
1656
+ "NaN"
1657
+ ]
1658
+ }
1659
+ ]
1660
+ },
1661
+ "lease": {
1662
+ "type": "string"
1663
+ },
1664
+ "prompt": {
1665
+ "type": "string"
1666
+ },
1667
+ "harness": {
1668
+ "type": "string",
1669
+ "enum": [
1670
+ "claude-code",
1671
+ "codex",
1672
+ "opencode",
1673
+ "acp"
1674
+ ]
1675
+ },
1676
+ "cwd": {
1677
+ "anyOf": [
1678
+ {
1679
+ "type": "string"
1680
+ },
1681
+ {
1682
+ "type": "null"
1683
+ }
1684
+ ]
1685
+ },
1686
+ "model": {
1687
+ "anyOf": [
1688
+ {
1689
+ "type": "string"
1690
+ },
1691
+ {
1692
+ "type": "null"
1693
+ }
1694
+ ]
1695
+ },
1696
+ "timeoutMs": {
1697
+ "anyOf": [
1698
+ {
1699
+ "type": "number"
1700
+ },
1701
+ {
1702
+ "type": "string",
1703
+ "enum": [
1704
+ "Infinity",
1705
+ "-Infinity",
1706
+ "NaN"
1707
+ ]
1708
+ }
1709
+ ]
1710
+ },
1711
+ "leaseMs": {
1712
+ "anyOf": [
1713
+ {
1714
+ "type": "number"
1715
+ },
1716
+ {
1717
+ "type": "string",
1718
+ "enum": [
1719
+ "Infinity",
1720
+ "-Infinity",
1721
+ "NaN"
1722
+ ]
1723
+ }
1724
+ ]
1725
+ },
1726
+ "actions": {
1727
+ "anyOf": [
1728
+ {
1729
+ "type": "array",
1730
+ "items": {
1731
+ "type": "string"
1732
+ }
1733
+ },
1734
+ {
1735
+ "type": "null"
1736
+ }
1737
+ ]
1738
+ },
1739
+ "workspaceTools": {
1740
+ "type": "boolean"
1741
+ },
1742
+ "resumable": {
1743
+ "type": "boolean"
1744
+ },
1745
+ "resume": {
1746
+ "anyOf": [
1747
+ {
1748
+ "type": "string"
1749
+ },
1750
+ {
1751
+ "type": "null"
1752
+ }
1753
+ ]
1754
+ }
1755
+ },
1756
+ "required": [
1757
+ "id",
1758
+ "attempt",
1759
+ "lease",
1760
+ "prompt",
1761
+ "harness",
1762
+ "cwd",
1763
+ "model",
1764
+ "timeoutMs",
1765
+ "leaseMs",
1766
+ "actions",
1767
+ "workspaceTools"
1768
+ ],
1769
+ "additionalProperties": true
1770
+ },
1771
+ {
1772
+ "type": "null"
1773
+ }
1774
+ ]
1775
+ }
1776
+ },
1777
+ "required": [
1778
+ "turn"
1779
+ ],
1780
+ "additionalProperties": true
1781
+ },
1782
+ "errors": {
1783
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1784
+ "anyOf": [
1785
+ {
1786
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1787
+ }
1788
+ ],
1789
+ "$defs": {
1790
+ "UnauthenticatedEncoded": {
1791
+ "type": "object",
1792
+ "properties": {
1793
+ "_tag": {
1794
+ "type": "string",
1795
+ "enum": [
1796
+ "Unauthenticated"
1797
+ ]
1798
+ },
1799
+ "message": {
1800
+ "type": "string"
1801
+ }
1802
+ },
1803
+ "required": [
1804
+ "_tag",
1805
+ "message"
1806
+ ],
1807
+ "additionalProperties": true
1808
+ }
1809
+ }
1810
+ }
1811
+ },
1812
+ "appendTurnEvents": {
1813
+ "description": "POST /kernel/device/turns/events (the device credential, the turn's lease): append harness events (idempotent by attempt and sequence number) and renew the lease. stop: true tells the runner to stop the harness.",
1814
+ "input": {
1815
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1816
+ "type": "object",
1817
+ "properties": {
1818
+ "turnId": {
1819
+ "type": "string"
1820
+ },
1821
+ "lease": {
1822
+ "type": "string"
1823
+ },
1824
+ "events": {
1825
+ "type": "array",
1826
+ "items": {
1827
+ "type": "object",
1828
+ "properties": {
1829
+ "seq": {
1830
+ "anyOf": [
1831
+ {
1832
+ "type": "number"
1833
+ },
1834
+ {
1835
+ "type": "string",
1836
+ "enum": [
1837
+ "Infinity",
1838
+ "-Infinity",
1839
+ "NaN"
1840
+ ]
1841
+ }
1842
+ ]
1843
+ },
1844
+ "type": {
1845
+ "type": "string",
1846
+ "enum": [
1847
+ "started",
1848
+ "text",
1849
+ "tool-call",
1850
+ "tool-result",
1851
+ "usage",
1852
+ "error",
1853
+ "finished"
1854
+ ]
1855
+ },
1856
+ "data": {}
1857
+ },
1858
+ "required": [
1859
+ "seq",
1860
+ "type",
1861
+ "data"
1862
+ ],
1863
+ "additionalProperties": true
1864
+ }
1865
+ }
1866
+ },
1867
+ "required": [
1868
+ "turnId",
1869
+ "lease",
1870
+ "events"
1871
+ ],
1872
+ "additionalProperties": true
1873
+ },
1874
+ "output": {
1875
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1876
+ "type": "object",
1877
+ "properties": {
1878
+ "accepted": {
1879
+ "anyOf": [
1880
+ {
1881
+ "type": "number"
1882
+ },
1883
+ {
1884
+ "type": "string",
1885
+ "enum": [
1886
+ "Infinity",
1887
+ "-Infinity",
1888
+ "NaN"
1889
+ ]
1890
+ }
1891
+ ]
1892
+ },
1893
+ "stop": {
1894
+ "type": "boolean"
1895
+ }
1896
+ },
1897
+ "required": [
1898
+ "accepted",
1899
+ "stop"
1900
+ ],
1901
+ "additionalProperties": true
1902
+ },
1903
+ "errors": {
1904
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1905
+ "anyOf": [
1906
+ {
1907
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1908
+ },
1909
+ {
1910
+ "$ref": "#/$defs/TurnLeaseLostEncoded"
1911
+ }
1912
+ ],
1913
+ "$defs": {
1914
+ "UnauthenticatedEncoded": {
1915
+ "type": "object",
1916
+ "properties": {
1917
+ "_tag": {
1918
+ "type": "string",
1919
+ "enum": [
1920
+ "Unauthenticated"
1921
+ ]
1922
+ },
1923
+ "message": {
1924
+ "type": "string"
1925
+ }
1926
+ },
1927
+ "required": [
1928
+ "_tag",
1929
+ "message"
1930
+ ],
1931
+ "additionalProperties": true
1932
+ },
1933
+ "TurnLeaseLostEncoded": {
1934
+ "type": "object",
1935
+ "properties": {
1936
+ "_tag": {
1937
+ "type": "string",
1938
+ "enum": [
1939
+ "TurnLeaseLost"
1940
+ ]
1941
+ },
1942
+ "message": {
1943
+ "type": "string"
1944
+ },
1945
+ "turnId": {
1946
+ "type": "string"
1947
+ }
1948
+ },
1949
+ "required": [
1950
+ "_tag",
1951
+ "message",
1952
+ "turnId"
1953
+ ],
1954
+ "additionalProperties": true
1955
+ }
1956
+ }
1957
+ }
1958
+ },
1959
+ "completeTurn": {
1960
+ "description": "POST /kernel/device/turns/complete (the device credential, the turn's lease): settle the turn once. Repeating the report with the same lease is answered duplicate: true and changes nothing; a report under a lease that no longer holds the turn is TurnLeaseLost.",
1961
+ "input": {
1962
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1963
+ "type": "object",
1964
+ "properties": {
1965
+ "turnId": {
1966
+ "type": "string"
1967
+ },
1968
+ "lease": {
1969
+ "type": "string"
1970
+ },
1971
+ "outcome": {
1972
+ "type": "string",
1973
+ "enum": [
1974
+ "succeeded",
1975
+ "failed"
1976
+ ]
1977
+ },
1978
+ "result": {
1979
+ "anyOf": [
1980
+ {
1981
+ "type": "string"
1982
+ },
1983
+ {
1984
+ "type": "null"
1985
+ }
1986
+ ]
1987
+ },
1988
+ "usage": {
1989
+ "anyOf": [
1990
+ {
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "inputTokens": {
1994
+ "anyOf": [
1995
+ {
1996
+ "type": "number"
1997
+ },
1998
+ {
1999
+ "type": "string",
2000
+ "enum": [
2001
+ "Infinity",
2002
+ "-Infinity",
2003
+ "NaN"
2004
+ ]
2005
+ }
2006
+ ]
2007
+ },
2008
+ "outputTokens": {
2009
+ "anyOf": [
2010
+ {
2011
+ "type": "number"
2012
+ },
2013
+ {
2014
+ "type": "string",
2015
+ "enum": [
2016
+ "Infinity",
2017
+ "-Infinity",
2018
+ "NaN"
2019
+ ]
2020
+ }
2021
+ ]
2022
+ },
2023
+ "cachedInputTokens": {
2024
+ "anyOf": [
2025
+ {
2026
+ "type": "number"
2027
+ },
2028
+ {
2029
+ "type": "string",
2030
+ "enum": [
2031
+ "Infinity",
2032
+ "-Infinity",
2033
+ "NaN"
2034
+ ]
2035
+ },
2036
+ {
2037
+ "type": "null"
2038
+ }
2039
+ ]
2040
+ },
2041
+ "costUsd": {
2042
+ "anyOf": [
2043
+ {
2044
+ "type": "number"
2045
+ },
2046
+ {
2047
+ "type": "string",
2048
+ "enum": [
2049
+ "Infinity",
2050
+ "-Infinity",
2051
+ "NaN"
2052
+ ]
2053
+ },
2054
+ {
2055
+ "type": "null"
2056
+ }
2057
+ ]
2058
+ }
2059
+ },
2060
+ "required": [
2061
+ "inputTokens",
2062
+ "outputTokens",
2063
+ "cachedInputTokens",
2064
+ "costUsd"
2065
+ ],
2066
+ "additionalProperties": true
2067
+ },
2068
+ {
2069
+ "type": "null"
2070
+ }
2071
+ ]
2072
+ },
2073
+ "error": {
2074
+ "anyOf": [
2075
+ {
2076
+ "type": "string"
2077
+ },
2078
+ {
2079
+ "type": "null"
2080
+ }
2081
+ ]
2082
+ },
2083
+ "sessionId": {
2084
+ "anyOf": [
2085
+ {
2086
+ "type": "string",
2087
+ "maxLength": 200
2088
+ },
2089
+ {
2090
+ "type": "null"
2091
+ }
2092
+ ]
2093
+ }
2094
+ },
2095
+ "required": [
2096
+ "turnId",
2097
+ "lease",
2098
+ "outcome",
2099
+ "result",
2100
+ "usage",
2101
+ "error"
2102
+ ],
2103
+ "additionalProperties": true
2104
+ },
2105
+ "output": {
2106
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2107
+ "type": "object",
2108
+ "properties": {
2109
+ "settled": {
2110
+ "type": "boolean"
2111
+ },
2112
+ "duplicate": {
2113
+ "type": "boolean"
2114
+ }
2115
+ },
2116
+ "required": [
2117
+ "settled",
2118
+ "duplicate"
2119
+ ],
2120
+ "additionalProperties": true
2121
+ },
2122
+ "errors": {
2123
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2124
+ "anyOf": [
2125
+ {
2126
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2127
+ },
2128
+ {
2129
+ "$ref": "#/$defs/TurnLeaseLostEncoded"
2130
+ }
2131
+ ],
2132
+ "$defs": {
2133
+ "UnauthenticatedEncoded": {
2134
+ "type": "object",
2135
+ "properties": {
2136
+ "_tag": {
2137
+ "type": "string",
2138
+ "enum": [
2139
+ "Unauthenticated"
2140
+ ]
2141
+ },
2142
+ "message": {
2143
+ "type": "string"
2144
+ }
2145
+ },
2146
+ "required": [
2147
+ "_tag",
2148
+ "message"
2149
+ ],
2150
+ "additionalProperties": true
2151
+ },
2152
+ "TurnLeaseLostEncoded": {
2153
+ "type": "object",
2154
+ "properties": {
2155
+ "_tag": {
2156
+ "type": "string",
2157
+ "enum": [
2158
+ "TurnLeaseLost"
2159
+ ]
2160
+ },
2161
+ "message": {
2162
+ "type": "string"
2163
+ },
2164
+ "turnId": {
2165
+ "type": "string"
2166
+ }
2167
+ },
2168
+ "required": [
2169
+ "_tag",
2170
+ "message",
2171
+ "turnId"
2172
+ ],
2173
+ "additionalProperties": true
2174
+ }
2175
+ }
2176
+ }
2177
+ },
2178
+ "health": {
2179
+ "description": "GET /health on the daemon (no credential): liveness and whether it is paired.",
2180
+ "input": {
2181
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2182
+ "not": {
2183
+ "type": "null"
2184
+ }
2185
+ },
2186
+ "output": {
2187
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2188
+ "type": "object",
2189
+ "properties": {
2190
+ "status": {
2191
+ "type": "string",
2192
+ "enum": [
2193
+ "ok"
2194
+ ]
2195
+ },
2196
+ "version": {
2197
+ "type": "string"
2198
+ },
2199
+ "runtime": {
2200
+ "type": "string"
2201
+ },
2202
+ "paired": {
2203
+ "type": "boolean"
2204
+ }
2205
+ },
2206
+ "required": [
2207
+ "status",
2208
+ "version",
2209
+ "runtime",
2210
+ "paired"
2211
+ ],
2212
+ "additionalProperties": true
2213
+ },
2214
+ "errors": {
2215
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2216
+ "not": {}
2217
+ }
2218
+ },
2219
+ "status": {
2220
+ "description": "GET /status on the daemon (a local client): its mode, the kernel pairing (never the credential), the secret store in use and the harnesses with their login state.",
2221
+ "input": {
2222
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2223
+ "not": {
2224
+ "type": "null"
2225
+ }
2226
+ },
2227
+ "output": {
2228
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2229
+ "type": "object",
2230
+ "properties": {
2231
+ "mode": {
2232
+ "type": "string",
2233
+ "enum": [
2234
+ "desktop",
2235
+ "headless"
2236
+ ]
2237
+ },
2238
+ "kernel": {
2239
+ "type": "object",
2240
+ "properties": {
2241
+ "state": {
2242
+ "type": "string",
2243
+ "enum": [
2244
+ "unpaired",
2245
+ "pairing",
2246
+ "paired",
2247
+ "revoked"
2248
+ ]
2249
+ },
2250
+ "url": {
2251
+ "anyOf": [
2252
+ {
2253
+ "type": "string"
2254
+ },
2255
+ {
2256
+ "type": "null"
2257
+ }
2258
+ ]
2259
+ },
2260
+ "deviceId": {
2261
+ "anyOf": [
2262
+ {
2263
+ "type": "string"
2264
+ },
2265
+ {
2266
+ "type": "null"
2267
+ }
2268
+ ]
2269
+ },
2270
+ "orgId": {
2271
+ "anyOf": [
2272
+ {
2273
+ "type": "string"
2274
+ },
2275
+ {
2276
+ "type": "null"
2277
+ }
2278
+ ]
2279
+ },
2280
+ "userCode": {
2281
+ "anyOf": [
2282
+ {
2283
+ "type": "string"
2284
+ },
2285
+ {
2286
+ "type": "null"
2287
+ }
2288
+ ]
2289
+ },
2290
+ "verificationUri": {
2291
+ "anyOf": [
2292
+ {
2293
+ "type": "string"
2294
+ },
2295
+ {
2296
+ "type": "null"
2297
+ }
2298
+ ]
2299
+ }
2300
+ },
2301
+ "required": [
2302
+ "state",
2303
+ "url",
2304
+ "deviceId",
2305
+ "orgId",
2306
+ "userCode",
2307
+ "verificationUri"
2308
+ ],
2309
+ "additionalProperties": true
2310
+ },
2311
+ "secretStore": {
2312
+ "type": "string"
2313
+ },
2314
+ "harnesses": {
2315
+ "type": "array",
2316
+ "items": {
2317
+ "type": "object",
2318
+ "properties": {
2319
+ "kind": {
2320
+ "type": "string",
2321
+ "enum": [
2322
+ "claude-code",
2323
+ "codex",
2324
+ "opencode",
2325
+ "acp"
2326
+ ]
2327
+ },
2328
+ "available": {
2329
+ "type": "boolean"
2330
+ },
2331
+ "version": {
2332
+ "anyOf": [
2333
+ {
2334
+ "type": "string"
2335
+ },
2336
+ {
2337
+ "type": "null"
2338
+ }
2339
+ ]
2340
+ },
2341
+ "loggedIn": {
2342
+ "anyOf": [
2343
+ {
2344
+ "type": "boolean"
2345
+ },
2346
+ {
2347
+ "type": "null"
2348
+ }
2349
+ ]
2350
+ },
2351
+ "detail": {
2352
+ "type": "string"
2353
+ }
2354
+ },
2355
+ "required": [
2356
+ "kind",
2357
+ "available",
2358
+ "version",
2359
+ "loggedIn",
2360
+ "detail"
2361
+ ],
2362
+ "additionalProperties": true
2363
+ }
2364
+ }
2365
+ },
2366
+ "required": [
2367
+ "mode",
2368
+ "kernel",
2369
+ "secretStore",
2370
+ "harnesses"
2371
+ ],
2372
+ "additionalProperties": true
2373
+ },
2374
+ "errors": {
2375
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2376
+ "anyOf": [
2377
+ {
2378
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2379
+ }
2380
+ ],
2381
+ "$defs": {
2382
+ "UnauthenticatedEncoded": {
2383
+ "type": "object",
2384
+ "properties": {
2385
+ "_tag": {
2386
+ "type": "string",
2387
+ "enum": [
2388
+ "Unauthenticated"
2389
+ ]
2390
+ },
2391
+ "message": {
2392
+ "type": "string"
2393
+ }
2394
+ },
2395
+ "required": [
2396
+ "_tag",
2397
+ "message"
2398
+ ],
2399
+ "additionalProperties": true
2400
+ }
2401
+ }
2402
+ }
2403
+ },
2404
+ "startLocalPairing": {
2405
+ "description": "POST /local/pair/start on the daemon: ask to pair a local client (a browser extension, a CLI). The host approves the request (GET /local/pairings, POST /local/pairings/<id>/approve, or `eloxiv-daemon approve-client`) and shows the person its ten-character code, never this response or the log. At most 5 pairings start per 10 minutes (429).",
2406
+ "input": {
2407
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2408
+ "type": "object",
2409
+ "properties": {
2410
+ "clientName": {
2411
+ "type": "string",
2412
+ "maxLength": 100
2413
+ },
2414
+ "kind": {
2415
+ "type": "string",
2416
+ "enum": [
2417
+ "shell",
2418
+ "browser-extension",
2419
+ "cli",
2420
+ "computer-use",
2421
+ "desktop-app"
2422
+ ]
2423
+ }
2424
+ },
2425
+ "additionalProperties": true
2426
+ },
2427
+ "output": {
2428
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2429
+ "type": "object",
2430
+ "properties": {
2431
+ "pairingId": {
2432
+ "type": "string"
2433
+ },
2434
+ "expiresAt": {
2435
+ "type": "string"
2436
+ }
2437
+ },
2438
+ "required": [
2439
+ "pairingId",
2440
+ "expiresAt"
2441
+ ],
2442
+ "additionalProperties": true
2443
+ },
2444
+ "errors": {
2445
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2446
+ "anyOf": [
2447
+ {
2448
+ "$ref": "#/$defs/ForbiddenEncoded"
2449
+ }
2450
+ ],
2451
+ "$defs": {
2452
+ "ForbiddenEncoded": {
2453
+ "type": "object",
2454
+ "properties": {
2455
+ "_tag": {
2456
+ "type": "string",
2457
+ "enum": [
2458
+ "Forbidden"
2459
+ ]
2460
+ },
2461
+ "message": {
2462
+ "type": "string"
2463
+ },
2464
+ "action": {
2465
+ "type": "string"
2466
+ }
2467
+ },
2468
+ "required": [
2469
+ "_tag",
2470
+ "message",
2471
+ "action"
2472
+ ],
2473
+ "additionalProperties": true
2474
+ }
2475
+ }
2476
+ }
2477
+ },
2478
+ "approveLocalPairing": {
2479
+ "description": "POST /local/pairings/<id>/approve on the daemon (the host only): approve a pending local pairing; the answer carries its code, to show the person.",
2480
+ "input": {
2481
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2482
+ "type": "object",
2483
+ "properties": {
2484
+ "pairingId": {
2485
+ "type": "string"
2486
+ }
2487
+ },
2488
+ "required": [
2489
+ "pairingId"
2490
+ ],
2491
+ "additionalProperties": true
2492
+ },
2493
+ "output": {
2494
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2495
+ "type": "object",
2496
+ "properties": {
2497
+ "pairingId": {
2498
+ "type": "string"
2499
+ },
2500
+ "code": {
2501
+ "type": "string"
2502
+ },
2503
+ "clientName": {
2504
+ "type": "string"
2505
+ }
2506
+ },
2507
+ "required": [
2508
+ "pairingId",
2509
+ "code",
2510
+ "clientName"
2511
+ ],
2512
+ "additionalProperties": true
2513
+ },
2514
+ "errors": {
2515
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2516
+ "anyOf": [
2517
+ {
2518
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2519
+ },
2520
+ {
2521
+ "$ref": "#/$defs/ForbiddenEncoded"
2522
+ }
2523
+ ],
2524
+ "$defs": {
2525
+ "UnauthenticatedEncoded": {
2526
+ "type": "object",
2527
+ "properties": {
2528
+ "_tag": {
2529
+ "type": "string",
2530
+ "enum": [
2531
+ "Unauthenticated"
2532
+ ]
2533
+ },
2534
+ "message": {
2535
+ "type": "string"
2536
+ }
2537
+ },
2538
+ "required": [
2539
+ "_tag",
2540
+ "message"
2541
+ ],
2542
+ "additionalProperties": true
2543
+ },
2544
+ "ForbiddenEncoded": {
2545
+ "type": "object",
2546
+ "properties": {
2547
+ "_tag": {
2548
+ "type": "string",
2549
+ "enum": [
2550
+ "Forbidden"
2551
+ ]
2552
+ },
2553
+ "message": {
2554
+ "type": "string"
2555
+ },
2556
+ "action": {
2557
+ "type": "string"
2558
+ }
2559
+ },
2560
+ "required": [
2561
+ "_tag",
2562
+ "message",
2563
+ "action"
2564
+ ],
2565
+ "additionalProperties": true
2566
+ }
2567
+ }
2568
+ }
2569
+ },
2570
+ "confirmLocalPairing": {
2571
+ "description": "POST /local/pair/confirm on the daemon: exchange an approved pairing's code for a local client token. Codes expire after 5 minutes and work once; three wrong codes discard a pairing, and three wrong codes anywhere lock every confirmation out for exponentially longer (429).",
2572
+ "input": {
2573
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2574
+ "type": "object",
2575
+ "properties": {
2576
+ "pairingId": {
2577
+ "type": "string"
2578
+ },
2579
+ "code": {
2580
+ "type": "string"
2581
+ },
2582
+ "clientName": {
2583
+ "type": "string",
2584
+ "maxLength": 100
2585
+ },
2586
+ "kind": {
2587
+ "type": "string",
2588
+ "enum": [
2589
+ "shell",
2590
+ "browser-extension",
2591
+ "cli",
2592
+ "computer-use",
2593
+ "desktop-app"
2594
+ ]
2595
+ }
2596
+ },
2597
+ "required": [
2598
+ "pairingId",
2599
+ "code",
2600
+ "clientName"
2601
+ ],
2602
+ "additionalProperties": true
2603
+ },
2604
+ "output": {
2605
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2606
+ "type": "object",
2607
+ "properties": {
2608
+ "clientId": {
2609
+ "type": "string"
2610
+ },
2611
+ "token": {
2612
+ "type": "string"
2613
+ }
2614
+ },
2615
+ "required": [
2616
+ "clientId",
2617
+ "token"
2618
+ ],
2619
+ "additionalProperties": true
2620
+ },
2621
+ "errors": {
2622
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2623
+ "anyOf": [
2624
+ {
2625
+ "$ref": "#/$defs/InvalidInputEncoded"
2626
+ },
2627
+ {
2628
+ "$ref": "#/$defs/ForbiddenEncoded"
2629
+ }
2630
+ ],
2631
+ "$defs": {
2632
+ "InvalidInputEncoded": {
2633
+ "type": "object",
2634
+ "properties": {
2635
+ "_tag": {
2636
+ "type": "string",
2637
+ "enum": [
2638
+ "InvalidInput"
2639
+ ]
2640
+ },
2641
+ "message": {
2642
+ "type": "string"
2643
+ }
2644
+ },
2645
+ "required": [
2646
+ "_tag",
2647
+ "message"
2648
+ ],
2649
+ "additionalProperties": true
2650
+ },
2651
+ "ForbiddenEncoded": {
2652
+ "type": "object",
2653
+ "properties": {
2654
+ "_tag": {
2655
+ "type": "string",
2656
+ "enum": [
2657
+ "Forbidden"
2658
+ ]
2659
+ },
2660
+ "message": {
2661
+ "type": "string"
2662
+ },
2663
+ "action": {
2664
+ "type": "string"
2665
+ }
2666
+ },
2667
+ "required": [
2668
+ "_tag",
2669
+ "message",
2670
+ "action"
2671
+ ],
2672
+ "additionalProperties": true
2673
+ }
2674
+ }
2675
+ }
2676
+ },
2677
+ "startKernelPairing": {
2678
+ "description": "POST /kernel-pairing/start on the daemon (the host or a local client): start pairing this device with a kernel; returns the code for the person to confirm while signed in. The daemon polls and keeps the credential.",
2679
+ "input": {
2680
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2681
+ "type": "object",
2682
+ "properties": {
2683
+ "kernelUrl": {
2684
+ "type": "string"
2685
+ },
2686
+ "name": {
2687
+ "type": "string"
2688
+ }
2689
+ },
2690
+ "required": [
2691
+ "kernelUrl"
2692
+ ],
2693
+ "additionalProperties": true
2694
+ },
2695
+ "output": {
2696
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2697
+ "type": "object",
2698
+ "properties": {
2699
+ "mode": {
2700
+ "type": "string",
2701
+ "enum": [
2702
+ "desktop",
2703
+ "headless"
2704
+ ]
2705
+ },
2706
+ "kernel": {
2707
+ "type": "object",
2708
+ "properties": {
2709
+ "state": {
2710
+ "type": "string",
2711
+ "enum": [
2712
+ "unpaired",
2713
+ "pairing",
2714
+ "paired",
2715
+ "revoked"
2716
+ ]
2717
+ },
2718
+ "url": {
2719
+ "anyOf": [
2720
+ {
2721
+ "type": "string"
2722
+ },
2723
+ {
2724
+ "type": "null"
2725
+ }
2726
+ ]
2727
+ },
2728
+ "deviceId": {
2729
+ "anyOf": [
2730
+ {
2731
+ "type": "string"
2732
+ },
2733
+ {
2734
+ "type": "null"
2735
+ }
2736
+ ]
2737
+ },
2738
+ "orgId": {
2739
+ "anyOf": [
2740
+ {
2741
+ "type": "string"
2742
+ },
2743
+ {
2744
+ "type": "null"
2745
+ }
2746
+ ]
2747
+ },
2748
+ "userCode": {
2749
+ "anyOf": [
2750
+ {
2751
+ "type": "string"
2752
+ },
2753
+ {
2754
+ "type": "null"
2755
+ }
2756
+ ]
2757
+ },
2758
+ "verificationUri": {
2759
+ "anyOf": [
2760
+ {
2761
+ "type": "string"
2762
+ },
2763
+ {
2764
+ "type": "null"
2765
+ }
2766
+ ]
2767
+ }
2768
+ },
2769
+ "required": [
2770
+ "state",
2771
+ "url",
2772
+ "deviceId",
2773
+ "orgId",
2774
+ "userCode",
2775
+ "verificationUri"
2776
+ ],
2777
+ "additionalProperties": true
2778
+ },
2779
+ "secretStore": {
2780
+ "type": "string"
2781
+ },
2782
+ "harnesses": {
2783
+ "type": "array",
2784
+ "items": {
2785
+ "type": "object",
2786
+ "properties": {
2787
+ "kind": {
2788
+ "type": "string",
2789
+ "enum": [
2790
+ "claude-code",
2791
+ "codex",
2792
+ "opencode",
2793
+ "acp"
2794
+ ]
2795
+ },
2796
+ "available": {
2797
+ "type": "boolean"
2798
+ },
2799
+ "version": {
2800
+ "anyOf": [
2801
+ {
2802
+ "type": "string"
2803
+ },
2804
+ {
2805
+ "type": "null"
2806
+ }
2807
+ ]
2808
+ },
2809
+ "loggedIn": {
2810
+ "anyOf": [
2811
+ {
2812
+ "type": "boolean"
2813
+ },
2814
+ {
2815
+ "type": "null"
2816
+ }
2817
+ ]
2818
+ },
2819
+ "detail": {
2820
+ "type": "string"
2821
+ }
2822
+ },
2823
+ "required": [
2824
+ "kind",
2825
+ "available",
2826
+ "version",
2827
+ "loggedIn",
2828
+ "detail"
2829
+ ],
2830
+ "additionalProperties": true
2831
+ }
2832
+ }
2833
+ },
2834
+ "required": [
2835
+ "mode",
2836
+ "kernel",
2837
+ "secretStore",
2838
+ "harnesses"
2839
+ ],
2840
+ "additionalProperties": true
2841
+ },
2842
+ "errors": {
2843
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2844
+ "anyOf": [
2845
+ {
2846
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2847
+ },
2848
+ {
2849
+ "$ref": "#/$defs/InvalidInputEncoded"
2850
+ }
2851
+ ],
2852
+ "$defs": {
2853
+ "UnauthenticatedEncoded": {
2854
+ "type": "object",
2855
+ "properties": {
2856
+ "_tag": {
2857
+ "type": "string",
2858
+ "enum": [
2859
+ "Unauthenticated"
2860
+ ]
2861
+ },
2862
+ "message": {
2863
+ "type": "string"
2864
+ }
2865
+ },
2866
+ "required": [
2867
+ "_tag",
2868
+ "message"
2869
+ ],
2870
+ "additionalProperties": true
2871
+ },
2872
+ "InvalidInputEncoded": {
2873
+ "type": "object",
2874
+ "properties": {
2875
+ "_tag": {
2876
+ "type": "string",
2877
+ "enum": [
2878
+ "InvalidInput"
2879
+ ]
2880
+ },
2881
+ "message": {
2882
+ "type": "string"
2883
+ }
2884
+ },
2885
+ "required": [
2886
+ "_tag",
2887
+ "message"
2888
+ ],
2889
+ "additionalProperties": true
2890
+ }
2891
+ }
2892
+ }
2893
+ },
2894
+ "relayAction": {
2895
+ "description": "POST /relay/actions/<action> on the daemon (a local client): call an Eloxiv action through the kernel's invocation path with the device's credential (as the person) or, for a harness, its agent session (agent-originated). The response is the kernel's result envelope or error; it never contains a kernel credential.",
2896
+ "input": {
2897
+ "$schema": "https://json-schema.org/draft/2020-12/schema"
2898
+ },
2899
+ "output": {
2900
+ "$schema": "https://json-schema.org/draft/2020-12/schema"
2901
+ },
2902
+ "errors": {
2903
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2904
+ "anyOf": [
2905
+ {
2906
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2907
+ },
2908
+ {
2909
+ "$ref": "#/$defs/ForbiddenEncoded"
2910
+ }
2911
+ ],
2912
+ "$defs": {
2913
+ "UnauthenticatedEncoded": {
2914
+ "type": "object",
2915
+ "properties": {
2916
+ "_tag": {
2917
+ "type": "string",
2918
+ "enum": [
2919
+ "Unauthenticated"
2920
+ ]
2921
+ },
2922
+ "message": {
2923
+ "type": "string"
2924
+ }
2925
+ },
2926
+ "required": [
2927
+ "_tag",
2928
+ "message"
2929
+ ],
2930
+ "additionalProperties": true
2931
+ },
2932
+ "ForbiddenEncoded": {
2933
+ "type": "object",
2934
+ "properties": {
2935
+ "_tag": {
2936
+ "type": "string",
2937
+ "enum": [
2938
+ "Forbidden"
2939
+ ]
2940
+ },
2941
+ "message": {
2942
+ "type": "string"
2943
+ },
2944
+ "action": {
2945
+ "type": "string"
2946
+ }
2947
+ },
2948
+ "required": [
2949
+ "_tag",
2950
+ "message",
2951
+ "action"
2952
+ ],
2953
+ "additionalProperties": true
2954
+ }
2955
+ }
2956
+ }
2957
+ },
2958
+ "mcp": {
2959
+ "description": "POST /mcp on the daemon (a harness's per-turn token): the kernel's MCP tools, relayed with the turn's agent session. A runner's tool calls carry idempotency keys derived from the turn, so a re-run attempt replays instead of repeating a side effect.",
2960
+ "input": {
2961
+ "$schema": "https://json-schema.org/draft/2020-12/schema"
2962
+ },
2963
+ "output": {
2964
+ "$schema": "https://json-schema.org/draft/2020-12/schema"
2965
+ },
2966
+ "errors": {
2967
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2968
+ "anyOf": [
2969
+ {
2970
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2971
+ }
2972
+ ],
2973
+ "$defs": {
2974
+ "UnauthenticatedEncoded": {
2975
+ "type": "object",
2976
+ "properties": {
2977
+ "_tag": {
2978
+ "type": "string",
2979
+ "enum": [
2980
+ "Unauthenticated"
2981
+ ]
2982
+ },
2983
+ "message": {
2984
+ "type": "string"
2985
+ }
2986
+ },
2987
+ "required": [
2988
+ "_tag",
2989
+ "message"
2990
+ ],
2991
+ "additionalProperties": true
2992
+ }
2993
+ }
2994
+ }
2995
+ },
2996
+ "harnesses": {
2997
+ "description": "GET /harnesses on the daemon (a local client): the installed harness CLIs, their versions and whether each is signed in.",
2998
+ "input": {
2999
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3000
+ "not": {
3001
+ "type": "null"
3002
+ }
3003
+ },
3004
+ "output": {
3005
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3006
+ "type": "array",
3007
+ "items": {
3008
+ "type": "object",
3009
+ "properties": {
3010
+ "kind": {
3011
+ "type": "string",
3012
+ "enum": [
3013
+ "claude-code",
3014
+ "codex",
3015
+ "opencode",
3016
+ "acp"
3017
+ ]
3018
+ },
3019
+ "available": {
3020
+ "type": "boolean"
3021
+ },
3022
+ "version": {
3023
+ "anyOf": [
3024
+ {
3025
+ "type": "string"
3026
+ },
3027
+ {
3028
+ "type": "null"
3029
+ }
3030
+ ]
3031
+ },
3032
+ "loggedIn": {
3033
+ "anyOf": [
3034
+ {
3035
+ "type": "boolean"
3036
+ },
3037
+ {
3038
+ "type": "null"
3039
+ }
3040
+ ]
3041
+ },
3042
+ "detail": {
3043
+ "type": "string"
3044
+ }
3045
+ },
3046
+ "required": [
3047
+ "kind",
3048
+ "available",
3049
+ "version",
3050
+ "loggedIn",
3051
+ "detail"
3052
+ ],
3053
+ "additionalProperties": true
3054
+ }
3055
+ },
3056
+ "errors": {
3057
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3058
+ "anyOf": [
3059
+ {
3060
+ "$ref": "#/$defs/UnauthenticatedEncoded"
3061
+ }
3062
+ ],
3063
+ "$defs": {
3064
+ "UnauthenticatedEncoded": {
3065
+ "type": "object",
3066
+ "properties": {
3067
+ "_tag": {
3068
+ "type": "string",
3069
+ "enum": [
3070
+ "Unauthenticated"
3071
+ ]
3072
+ },
3073
+ "message": {
3074
+ "type": "string"
3075
+ }
3076
+ },
3077
+ "required": [
3078
+ "_tag",
3079
+ "message"
3080
+ ],
3081
+ "additionalProperties": true
3082
+ }
3083
+ }
3084
+ }
3085
+ },
3086
+ "runTurn": {
3087
+ "description": "POST /turns on the daemon (a local client): run a turn with a local harness now, streaming its events (server-sent events), with the Eloxiv actions as MCP tools through the relay. Honours cancellation (closing the request) and the timeout.",
3088
+ "input": {
3089
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3090
+ "type": "object",
3091
+ "properties": {
3092
+ "harness": {
3093
+ "type": "string",
3094
+ "enum": [
3095
+ "claude-code",
3096
+ "codex",
3097
+ "opencode",
3098
+ "acp"
3099
+ ]
3100
+ },
3101
+ "prompt": {
3102
+ "type": "string"
3103
+ },
3104
+ "cwd": {
3105
+ "anyOf": [
3106
+ {
3107
+ "type": "string"
3108
+ },
3109
+ {
3110
+ "type": "null"
3111
+ }
3112
+ ]
3113
+ },
3114
+ "model": {
3115
+ "anyOf": [
3116
+ {
3117
+ "type": "string"
3118
+ },
3119
+ {
3120
+ "type": "null"
3121
+ }
3122
+ ]
3123
+ },
3124
+ "timeoutMs": {
3125
+ "anyOf": [
3126
+ {
3127
+ "type": "number"
3128
+ },
3129
+ {
3130
+ "type": "string",
3131
+ "enum": [
3132
+ "Infinity",
3133
+ "-Infinity",
3134
+ "NaN"
3135
+ ]
3136
+ }
3137
+ ]
3138
+ },
3139
+ "actions": {
3140
+ "anyOf": [
3141
+ {
3142
+ "type": "array",
3143
+ "items": {
3144
+ "type": "string"
3145
+ }
3146
+ },
3147
+ {
3148
+ "type": "null"
3149
+ }
3150
+ ]
3151
+ },
3152
+ "workspaceTools": {
3153
+ "type": "boolean"
3154
+ }
3155
+ },
3156
+ "required": [
3157
+ "harness",
3158
+ "prompt",
3159
+ "cwd",
3160
+ "model",
3161
+ "timeoutMs"
3162
+ ],
3163
+ "additionalProperties": true
3164
+ },
3165
+ "output": {
3166
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3167
+ "type": "object",
3168
+ "properties": {
3169
+ "outcome": {
3170
+ "type": "string",
3171
+ "enum": [
3172
+ "succeeded",
3173
+ "failed",
3174
+ "cancelled",
3175
+ "timed-out"
3176
+ ]
3177
+ },
3178
+ "result": {
3179
+ "anyOf": [
3180
+ {
3181
+ "type": "string"
3182
+ },
3183
+ {
3184
+ "type": "null"
3185
+ }
3186
+ ]
3187
+ },
3188
+ "usage": {
3189
+ "anyOf": [
3190
+ {
3191
+ "type": "object",
3192
+ "properties": {
3193
+ "inputTokens": {
3194
+ "anyOf": [
3195
+ {
3196
+ "type": "number"
3197
+ },
3198
+ {
3199
+ "type": "string",
3200
+ "enum": [
3201
+ "Infinity",
3202
+ "-Infinity",
3203
+ "NaN"
3204
+ ]
3205
+ }
3206
+ ]
3207
+ },
3208
+ "outputTokens": {
3209
+ "anyOf": [
3210
+ {
3211
+ "type": "number"
3212
+ },
3213
+ {
3214
+ "type": "string",
3215
+ "enum": [
3216
+ "Infinity",
3217
+ "-Infinity",
3218
+ "NaN"
3219
+ ]
3220
+ }
3221
+ ]
3222
+ },
3223
+ "cachedInputTokens": {
3224
+ "anyOf": [
3225
+ {
3226
+ "type": "number"
3227
+ },
3228
+ {
3229
+ "type": "string",
3230
+ "enum": [
3231
+ "Infinity",
3232
+ "-Infinity",
3233
+ "NaN"
3234
+ ]
3235
+ },
3236
+ {
3237
+ "type": "null"
3238
+ }
3239
+ ]
3240
+ },
3241
+ "costUsd": {
3242
+ "anyOf": [
3243
+ {
3244
+ "type": "number"
3245
+ },
3246
+ {
3247
+ "type": "string",
3248
+ "enum": [
3249
+ "Infinity",
3250
+ "-Infinity",
3251
+ "NaN"
3252
+ ]
3253
+ },
3254
+ {
3255
+ "type": "null"
3256
+ }
3257
+ ]
3258
+ }
3259
+ },
3260
+ "required": [
3261
+ "inputTokens",
3262
+ "outputTokens",
3263
+ "cachedInputTokens",
3264
+ "costUsd"
3265
+ ],
3266
+ "additionalProperties": true
3267
+ },
3268
+ {
3269
+ "type": "null"
3270
+ }
3271
+ ]
3272
+ },
3273
+ "error": {
3274
+ "anyOf": [
3275
+ {
3276
+ "type": "string"
3277
+ },
3278
+ {
3279
+ "type": "null"
3280
+ }
3281
+ ]
3282
+ },
3283
+ "events": {
3284
+ "type": "array",
3285
+ "items": {
3286
+ "type": "object",
3287
+ "properties": {
3288
+ "type": {
3289
+ "type": "string",
3290
+ "enum": [
3291
+ "started",
3292
+ "text",
3293
+ "tool-call",
3294
+ "tool-result",
3295
+ "usage",
3296
+ "error",
3297
+ "finished"
3298
+ ]
3299
+ },
3300
+ "data": {}
3301
+ },
3302
+ "required": [
3303
+ "type",
3304
+ "data"
3305
+ ],
3306
+ "additionalProperties": true
3307
+ }
3308
+ }
3309
+ },
3310
+ "required": [
3311
+ "outcome",
3312
+ "result",
3313
+ "usage",
3314
+ "error",
3315
+ "events"
3316
+ ],
3317
+ "additionalProperties": true
3318
+ },
3319
+ "errors": {
3320
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3321
+ "anyOf": [
3322
+ {
3323
+ "$ref": "#/$defs/UnauthenticatedEncoded"
3324
+ },
3325
+ {
3326
+ "$ref": "#/$defs/InvalidInputEncoded"
3327
+ }
3328
+ ],
3329
+ "$defs": {
3330
+ "UnauthenticatedEncoded": {
3331
+ "type": "object",
3332
+ "properties": {
3333
+ "_tag": {
3334
+ "type": "string",
3335
+ "enum": [
3336
+ "Unauthenticated"
3337
+ ]
3338
+ },
3339
+ "message": {
3340
+ "type": "string"
3341
+ }
3342
+ },
3343
+ "required": [
3344
+ "_tag",
3345
+ "message"
3346
+ ],
3347
+ "additionalProperties": true
3348
+ },
3349
+ "InvalidInputEncoded": {
3350
+ "type": "object",
3351
+ "properties": {
3352
+ "_tag": {
3353
+ "type": "string",
3354
+ "enum": [
3355
+ "InvalidInput"
3356
+ ]
3357
+ },
3358
+ "message": {
3359
+ "type": "string"
3360
+ }
3361
+ },
3362
+ "required": [
3363
+ "_tag",
3364
+ "message"
3365
+ ],
3366
+ "additionalProperties": true
3367
+ }
3368
+ }
3369
+ }
3370
+ }
3371
+ },
3372
+ "types": {
3373
+ "DeviceInfo": {
3374
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3375
+ "type": "object",
3376
+ "properties": {
3377
+ "id": {
3378
+ "type": "string"
3379
+ },
3380
+ "orgId": {
3381
+ "type": "string"
3382
+ },
3383
+ "subject": {
3384
+ "type": "string"
3385
+ },
3386
+ "subjectKind": {
3387
+ "type": "string",
3388
+ "enum": [
3389
+ "user",
3390
+ "service"
3391
+ ]
3392
+ },
3393
+ "pairedBy": {
3394
+ "type": "string"
3395
+ },
3396
+ "name": {
3397
+ "type": "string"
3398
+ },
3399
+ "kind": {
3400
+ "type": "string",
3401
+ "enum": [
3402
+ "desktop",
3403
+ "runner"
3404
+ ]
3405
+ },
3406
+ "platform": {
3407
+ "type": "string"
3408
+ },
3409
+ "capabilities": {
3410
+ "type": "object",
3411
+ "properties": {
3412
+ "harnesses": {
3413
+ "type": "array",
3414
+ "items": {
3415
+ "type": "string",
3416
+ "enum": [
3417
+ "claude-code",
3418
+ "codex",
3419
+ "opencode",
3420
+ "acp"
3421
+ ]
3422
+ }
3423
+ },
3424
+ "computerUse": {
3425
+ "type": "boolean"
3426
+ },
3427
+ "browserExtension": {
3428
+ "type": "boolean"
3429
+ },
3430
+ "commands": {
3431
+ "type": "array",
3432
+ "items": {
3433
+ "type": "string",
3434
+ "enum": [
3435
+ "terminal",
3436
+ "files",
3437
+ "browser",
3438
+ "computer"
3439
+ ]
3440
+ }
3441
+ },
3442
+ "toolsOnly": {
3443
+ "type": "boolean"
3444
+ }
3445
+ },
3446
+ "required": [
3447
+ "harnesses",
3448
+ "computerUse",
3449
+ "browserExtension"
3450
+ ],
3451
+ "additionalProperties": true
3452
+ },
3453
+ "createdAt": {
3454
+ "type": "string"
3455
+ },
3456
+ "lastSeenAt": {
3457
+ "anyOf": [
3458
+ {
3459
+ "type": "string"
3460
+ },
3461
+ {
3462
+ "type": "null"
3463
+ }
3464
+ ]
3465
+ },
3466
+ "revokedAt": {
3467
+ "anyOf": [
3468
+ {
3469
+ "type": "string"
3470
+ },
3471
+ {
3472
+ "type": "null"
3473
+ }
3474
+ ]
3475
+ },
3476
+ "push": {
3477
+ "type": "boolean"
3478
+ }
3479
+ },
3480
+ "required": [
3481
+ "id",
3482
+ "orgId",
3483
+ "subject",
3484
+ "subjectKind",
3485
+ "pairedBy",
3486
+ "name",
3487
+ "kind",
3488
+ "platform",
3489
+ "capabilities",
3490
+ "createdAt",
3491
+ "lastSeenAt",
3492
+ "revokedAt"
3493
+ ],
3494
+ "additionalProperties": true
3495
+ },
3496
+ "PairingRequest": {
3497
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3498
+ "type": "object",
3499
+ "properties": {
3500
+ "name": {
3501
+ "type": "string",
3502
+ "minLength": 1,
3503
+ "maxLength": 100
3504
+ },
3505
+ "kind": {
3506
+ "type": "string",
3507
+ "enum": [
3508
+ "desktop",
3509
+ "runner"
3510
+ ]
3511
+ },
3512
+ "platform": {
3513
+ "type": "string",
3514
+ "maxLength": 100
3515
+ },
3516
+ "capabilities": {
3517
+ "type": "object",
3518
+ "properties": {
3519
+ "harnesses": {
3520
+ "type": "array",
3521
+ "items": {
3522
+ "type": "string",
3523
+ "enum": [
3524
+ "claude-code",
3525
+ "codex",
3526
+ "opencode",
3527
+ "acp"
3528
+ ]
3529
+ }
3530
+ },
3531
+ "computerUse": {
3532
+ "type": "boolean"
3533
+ },
3534
+ "browserExtension": {
3535
+ "type": "boolean"
3536
+ },
3537
+ "commands": {
3538
+ "type": "array",
3539
+ "items": {
3540
+ "type": "string",
3541
+ "enum": [
3542
+ "terminal",
3543
+ "files",
3544
+ "browser",
3545
+ "computer"
3546
+ ]
3547
+ }
3548
+ },
3549
+ "toolsOnly": {
3550
+ "type": "boolean"
3551
+ }
3552
+ },
3553
+ "required": [
3554
+ "harnesses",
3555
+ "computerUse",
3556
+ "browserExtension"
3557
+ ],
3558
+ "additionalProperties": true
3559
+ }
3560
+ },
3561
+ "required": [
3562
+ "name",
3563
+ "kind",
3564
+ "platform",
3565
+ "capabilities"
3566
+ ],
3567
+ "additionalProperties": true
3568
+ },
3569
+ "PairingStarted": {
3570
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3571
+ "type": "object",
3572
+ "properties": {
3573
+ "pairingId": {
3574
+ "type": "string"
3575
+ },
3576
+ "pollSecret": {
3577
+ "type": "string"
3578
+ },
3579
+ "userCode": {
3580
+ "type": "string"
3581
+ },
3582
+ "verificationUri": {
3583
+ "type": "string"
3584
+ },
3585
+ "verificationUriComplete": {
3586
+ "type": "string"
3587
+ },
3588
+ "expiresAt": {
3589
+ "type": "string"
3590
+ },
3591
+ "interval": {
3592
+ "anyOf": [
3593
+ {
3594
+ "type": "number"
3595
+ },
3596
+ {
3597
+ "type": "string",
3598
+ "enum": [
3599
+ "Infinity",
3600
+ "-Infinity",
3601
+ "NaN"
3602
+ ]
3603
+ }
3604
+ ]
3605
+ }
3606
+ },
3607
+ "required": [
3608
+ "pairingId",
3609
+ "pollSecret",
3610
+ "userCode",
3611
+ "verificationUri",
3612
+ "verificationUriComplete",
3613
+ "expiresAt",
3614
+ "interval"
3615
+ ],
3616
+ "additionalProperties": true
3617
+ },
3618
+ "PairingPollResult": {
3619
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3620
+ "anyOf": [
3621
+ {
3622
+ "type": "object",
3623
+ "properties": {
3624
+ "status": {
3625
+ "type": "string",
3626
+ "enum": [
3627
+ "pending"
3628
+ ]
3629
+ }
3630
+ },
3631
+ "required": [
3632
+ "status"
3633
+ ],
3634
+ "additionalProperties": true
3635
+ },
3636
+ {
3637
+ "type": "object",
3638
+ "properties": {
3639
+ "status": {
3640
+ "type": "string",
3641
+ "enum": [
3642
+ "denied"
3643
+ ]
3644
+ }
3645
+ },
3646
+ "required": [
3647
+ "status"
3648
+ ],
3649
+ "additionalProperties": true
3650
+ },
3651
+ {
3652
+ "type": "object",
3653
+ "properties": {
3654
+ "status": {
3655
+ "type": "string",
3656
+ "enum": [
3657
+ "expired"
3658
+ ]
3659
+ }
3660
+ },
3661
+ "required": [
3662
+ "status"
3663
+ ],
3664
+ "additionalProperties": true
3665
+ },
3666
+ {
3667
+ "type": "object",
3668
+ "properties": {
3669
+ "status": {
3670
+ "type": "string",
3671
+ "enum": [
3672
+ "paired"
3673
+ ]
3674
+ },
3675
+ "deviceId": {
3676
+ "type": "string"
3677
+ },
3678
+ "orgId": {
3679
+ "type": "string"
3680
+ },
3681
+ "subject": {
3682
+ "type": "string"
3683
+ },
3684
+ "credential": {
3685
+ "type": "string"
3686
+ }
3687
+ },
3688
+ "required": [
3689
+ "status",
3690
+ "deviceId",
3691
+ "orgId",
3692
+ "subject",
3693
+ "credential"
3694
+ ],
3695
+ "additionalProperties": true
3696
+ }
3697
+ ]
3698
+ },
3699
+ "TurnRecord": {
3700
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3701
+ "type": "object",
3702
+ "properties": {
3703
+ "id": {
3704
+ "type": "string"
3705
+ },
3706
+ "orgId": {
3707
+ "type": "string"
3708
+ },
3709
+ "deviceId": {
3710
+ "type": "string"
3711
+ },
3712
+ "requestedBy": {
3713
+ "type": "string"
3714
+ },
3715
+ "source": {
3716
+ "type": "string",
3717
+ "enum": [
3718
+ "person",
3719
+ "agent",
3720
+ "system"
3721
+ ]
3722
+ },
3723
+ "parentRunId": {
3724
+ "anyOf": [
3725
+ {
3726
+ "type": "string"
3727
+ },
3728
+ {
3729
+ "type": "null"
3730
+ }
3731
+ ]
3732
+ },
3733
+ "prompt": {
3734
+ "type": "string"
3735
+ },
3736
+ "harness": {
3737
+ "type": "string",
3738
+ "enum": [
3739
+ "claude-code",
3740
+ "codex",
3741
+ "opencode",
3742
+ "acp"
3743
+ ]
3744
+ },
3745
+ "cwd": {
3746
+ "anyOf": [
3747
+ {
3748
+ "type": "string"
3749
+ },
3750
+ {
3751
+ "type": "null"
3752
+ }
3753
+ ]
3754
+ },
3755
+ "model": {
3756
+ "anyOf": [
3757
+ {
3758
+ "type": "string"
3759
+ },
3760
+ {
3761
+ "type": "null"
3762
+ }
3763
+ ]
3764
+ },
3765
+ "timeoutMs": {
3766
+ "anyOf": [
3767
+ {
3768
+ "type": "number"
3769
+ },
3770
+ {
3771
+ "type": "string",
3772
+ "enum": [
3773
+ "Infinity",
3774
+ "-Infinity",
3775
+ "NaN"
3776
+ ]
3777
+ }
3778
+ ]
3779
+ },
3780
+ "status": {
3781
+ "type": "string",
3782
+ "enum": [
3783
+ "queued",
3784
+ "running",
3785
+ "succeeded",
3786
+ "failed",
3787
+ "cancelled"
3788
+ ]
3789
+ },
3790
+ "attempt": {
3791
+ "anyOf": [
3792
+ {
3793
+ "type": "number"
3794
+ },
3795
+ {
3796
+ "type": "string",
3797
+ "enum": [
3798
+ "Infinity",
3799
+ "-Infinity",
3800
+ "NaN"
3801
+ ]
3802
+ }
3803
+ ]
3804
+ },
3805
+ "result": {
3806
+ "anyOf": [
3807
+ {
3808
+ "type": "string"
3809
+ },
3810
+ {
3811
+ "type": "null"
3812
+ }
3813
+ ]
3814
+ },
3815
+ "usage": {
3816
+ "anyOf": [
3817
+ {
3818
+ "type": "object",
3819
+ "properties": {
3820
+ "inputTokens": {
3821
+ "anyOf": [
3822
+ {
3823
+ "type": "number"
3824
+ },
3825
+ {
3826
+ "type": "string",
3827
+ "enum": [
3828
+ "Infinity",
3829
+ "-Infinity",
3830
+ "NaN"
3831
+ ]
3832
+ }
3833
+ ]
3834
+ },
3835
+ "outputTokens": {
3836
+ "anyOf": [
3837
+ {
3838
+ "type": "number"
3839
+ },
3840
+ {
3841
+ "type": "string",
3842
+ "enum": [
3843
+ "Infinity",
3844
+ "-Infinity",
3845
+ "NaN"
3846
+ ]
3847
+ }
3848
+ ]
3849
+ },
3850
+ "cachedInputTokens": {
3851
+ "anyOf": [
3852
+ {
3853
+ "type": "number"
3854
+ },
3855
+ {
3856
+ "type": "string",
3857
+ "enum": [
3858
+ "Infinity",
3859
+ "-Infinity",
3860
+ "NaN"
3861
+ ]
3862
+ },
3863
+ {
3864
+ "type": "null"
3865
+ }
3866
+ ]
3867
+ },
3868
+ "costUsd": {
3869
+ "anyOf": [
3870
+ {
3871
+ "type": "number"
3872
+ },
3873
+ {
3874
+ "type": "string",
3875
+ "enum": [
3876
+ "Infinity",
3877
+ "-Infinity",
3878
+ "NaN"
3879
+ ]
3880
+ },
3881
+ {
3882
+ "type": "null"
3883
+ }
3884
+ ]
3885
+ }
3886
+ },
3887
+ "required": [
3888
+ "inputTokens",
3889
+ "outputTokens",
3890
+ "cachedInputTokens",
3891
+ "costUsd"
3892
+ ],
3893
+ "additionalProperties": true
3894
+ },
3895
+ {
3896
+ "type": "null"
3897
+ }
3898
+ ]
3899
+ },
3900
+ "error": {
3901
+ "anyOf": [
3902
+ {
3903
+ "type": "string"
3904
+ },
3905
+ {
3906
+ "type": "null"
3907
+ }
3908
+ ]
3909
+ },
3910
+ "createdAt": {
3911
+ "type": "string"
3912
+ },
3913
+ "completedAt": {
3914
+ "anyOf": [
3915
+ {
3916
+ "type": "string"
3917
+ },
3918
+ {
3919
+ "type": "null"
3920
+ }
3921
+ ]
3922
+ },
3923
+ "resumable": {
3924
+ "type": "boolean"
3925
+ },
3926
+ "followUpOf": {
3927
+ "anyOf": [
3928
+ {
3929
+ "type": "string"
3930
+ },
3931
+ {
3932
+ "type": "null"
3933
+ }
3934
+ ]
3935
+ }
3936
+ },
3937
+ "required": [
3938
+ "id",
3939
+ "orgId",
3940
+ "deviceId",
3941
+ "requestedBy",
3942
+ "source",
3943
+ "prompt",
3944
+ "harness",
3945
+ "cwd",
3946
+ "model",
3947
+ "timeoutMs",
3948
+ "status",
3949
+ "attempt",
3950
+ "result",
3951
+ "usage",
3952
+ "error",
3953
+ "createdAt",
3954
+ "completedAt",
3955
+ "resumable",
3956
+ "followUpOf"
3957
+ ],
3958
+ "additionalProperties": true
3959
+ },
3960
+ "TurnEvent": {
3961
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3962
+ "type": "object",
3963
+ "properties": {
3964
+ "turnId": {
3965
+ "type": "string"
3966
+ },
3967
+ "attempt": {
3968
+ "anyOf": [
3969
+ {
3970
+ "type": "number"
3971
+ },
3972
+ {
3973
+ "type": "string",
3974
+ "enum": [
3975
+ "Infinity",
3976
+ "-Infinity",
3977
+ "NaN"
3978
+ ]
3979
+ }
3980
+ ]
3981
+ },
3982
+ "seq": {
3983
+ "anyOf": [
3984
+ {
3985
+ "type": "number"
3986
+ },
3987
+ {
3988
+ "type": "string",
3989
+ "enum": [
3990
+ "Infinity",
3991
+ "-Infinity",
3992
+ "NaN"
3993
+ ]
3994
+ }
3995
+ ]
3996
+ },
3997
+ "type": {
3998
+ "type": "string",
3999
+ "enum": [
4000
+ "started",
4001
+ "text",
4002
+ "tool-call",
4003
+ "tool-result",
4004
+ "usage",
4005
+ "error",
4006
+ "finished"
4007
+ ]
4008
+ },
4009
+ "data": {},
4010
+ "at": {
4011
+ "type": "string"
4012
+ }
4013
+ },
4014
+ "required": [
4015
+ "turnId",
4016
+ "attempt",
4017
+ "seq",
4018
+ "type",
4019
+ "data",
4020
+ "at"
4021
+ ],
4022
+ "additionalProperties": true
4023
+ },
4024
+ "TurnUsage": {
4025
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4026
+ "type": "object",
4027
+ "properties": {
4028
+ "inputTokens": {
4029
+ "anyOf": [
4030
+ {
4031
+ "type": "number"
4032
+ },
4033
+ {
4034
+ "type": "string",
4035
+ "enum": [
4036
+ "Infinity",
4037
+ "-Infinity",
4038
+ "NaN"
4039
+ ]
4040
+ }
4041
+ ]
4042
+ },
4043
+ "outputTokens": {
4044
+ "anyOf": [
4045
+ {
4046
+ "type": "number"
4047
+ },
4048
+ {
4049
+ "type": "string",
4050
+ "enum": [
4051
+ "Infinity",
4052
+ "-Infinity",
4053
+ "NaN"
4054
+ ]
4055
+ }
4056
+ ]
4057
+ },
4058
+ "cachedInputTokens": {
4059
+ "anyOf": [
4060
+ {
4061
+ "type": "number"
4062
+ },
4063
+ {
4064
+ "type": "string",
4065
+ "enum": [
4066
+ "Infinity",
4067
+ "-Infinity",
4068
+ "NaN"
4069
+ ]
4070
+ },
4071
+ {
4072
+ "type": "null"
4073
+ }
4074
+ ]
4075
+ },
4076
+ "costUsd": {
4077
+ "anyOf": [
4078
+ {
4079
+ "type": "number"
4080
+ },
4081
+ {
4082
+ "type": "string",
4083
+ "enum": [
4084
+ "Infinity",
4085
+ "-Infinity",
4086
+ "NaN"
4087
+ ]
4088
+ },
4089
+ {
4090
+ "type": "null"
4091
+ }
4092
+ ]
4093
+ }
4094
+ },
4095
+ "required": [
4096
+ "inputTokens",
4097
+ "outputTokens",
4098
+ "cachedInputTokens",
4099
+ "costUsd"
4100
+ ],
4101
+ "additionalProperties": true
4102
+ },
4103
+ "HarnessEvent": {
4104
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4105
+ "type": "object",
4106
+ "properties": {
4107
+ "type": {
4108
+ "type": "string",
4109
+ "enum": [
4110
+ "started",
4111
+ "text",
4112
+ "tool-call",
4113
+ "tool-result",
4114
+ "usage",
4115
+ "error",
4116
+ "finished"
4117
+ ]
4118
+ },
4119
+ "data": {}
4120
+ },
4121
+ "required": [
4122
+ "type",
4123
+ "data"
4124
+ ],
4125
+ "additionalProperties": true
4126
+ },
4127
+ "HarnessStatus": {
4128
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4129
+ "type": "object",
4130
+ "properties": {
4131
+ "kind": {
4132
+ "type": "string",
4133
+ "enum": [
4134
+ "claude-code",
4135
+ "codex",
4136
+ "opencode",
4137
+ "acp"
4138
+ ]
4139
+ },
4140
+ "available": {
4141
+ "type": "boolean"
4142
+ },
4143
+ "version": {
4144
+ "anyOf": [
4145
+ {
4146
+ "type": "string"
4147
+ },
4148
+ {
4149
+ "type": "null"
4150
+ }
4151
+ ]
4152
+ },
4153
+ "loggedIn": {
4154
+ "anyOf": [
4155
+ {
4156
+ "type": "boolean"
4157
+ },
4158
+ {
4159
+ "type": "null"
4160
+ }
4161
+ ]
4162
+ },
4163
+ "detail": {
4164
+ "type": "string"
4165
+ }
4166
+ },
4167
+ "required": [
4168
+ "kind",
4169
+ "available",
4170
+ "version",
4171
+ "loggedIn",
4172
+ "detail"
4173
+ ],
4174
+ "additionalProperties": true
4175
+ },
4176
+ "HarnessTurn": {
4177
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4178
+ "type": "object",
4179
+ "properties": {
4180
+ "harness": {
4181
+ "type": "string",
4182
+ "enum": [
4183
+ "claude-code",
4184
+ "codex",
4185
+ "opencode",
4186
+ "acp"
4187
+ ]
4188
+ },
4189
+ "prompt": {
4190
+ "type": "string"
4191
+ },
4192
+ "cwd": {
4193
+ "anyOf": [
4194
+ {
4195
+ "type": "string"
4196
+ },
4197
+ {
4198
+ "type": "null"
4199
+ }
4200
+ ]
4201
+ },
4202
+ "model": {
4203
+ "anyOf": [
4204
+ {
4205
+ "type": "string"
4206
+ },
4207
+ {
4208
+ "type": "null"
4209
+ }
4210
+ ]
4211
+ },
4212
+ "timeoutMs": {
4213
+ "anyOf": [
4214
+ {
4215
+ "type": "number"
4216
+ },
4217
+ {
4218
+ "type": "string",
4219
+ "enum": [
4220
+ "Infinity",
4221
+ "-Infinity",
4222
+ "NaN"
4223
+ ]
4224
+ }
4225
+ ]
4226
+ },
4227
+ "actions": {
4228
+ "anyOf": [
4229
+ {
4230
+ "type": "array",
4231
+ "items": {
4232
+ "type": "string"
4233
+ }
4234
+ },
4235
+ {
4236
+ "type": "null"
4237
+ }
4238
+ ]
4239
+ },
4240
+ "workspaceTools": {
4241
+ "type": "boolean"
4242
+ }
4243
+ },
4244
+ "required": [
4245
+ "harness",
4246
+ "prompt",
4247
+ "cwd",
4248
+ "model",
4249
+ "timeoutMs"
4250
+ ],
4251
+ "additionalProperties": true
4252
+ },
4253
+ "HarnessOutcome": {
4254
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4255
+ "type": "object",
4256
+ "properties": {
4257
+ "outcome": {
4258
+ "type": "string",
4259
+ "enum": [
4260
+ "succeeded",
4261
+ "failed",
4262
+ "cancelled",
4263
+ "timed-out"
4264
+ ]
4265
+ },
4266
+ "result": {
4267
+ "anyOf": [
4268
+ {
4269
+ "type": "string"
4270
+ },
4271
+ {
4272
+ "type": "null"
4273
+ }
4274
+ ]
4275
+ },
4276
+ "usage": {
4277
+ "anyOf": [
4278
+ {
4279
+ "type": "object",
4280
+ "properties": {
4281
+ "inputTokens": {
4282
+ "anyOf": [
4283
+ {
4284
+ "type": "number"
4285
+ },
4286
+ {
4287
+ "type": "string",
4288
+ "enum": [
4289
+ "Infinity",
4290
+ "-Infinity",
4291
+ "NaN"
4292
+ ]
4293
+ }
4294
+ ]
4295
+ },
4296
+ "outputTokens": {
4297
+ "anyOf": [
4298
+ {
4299
+ "type": "number"
4300
+ },
4301
+ {
4302
+ "type": "string",
4303
+ "enum": [
4304
+ "Infinity",
4305
+ "-Infinity",
4306
+ "NaN"
4307
+ ]
4308
+ }
4309
+ ]
4310
+ },
4311
+ "cachedInputTokens": {
4312
+ "anyOf": [
4313
+ {
4314
+ "type": "number"
4315
+ },
4316
+ {
4317
+ "type": "string",
4318
+ "enum": [
4319
+ "Infinity",
4320
+ "-Infinity",
4321
+ "NaN"
4322
+ ]
4323
+ },
4324
+ {
4325
+ "type": "null"
4326
+ }
4327
+ ]
4328
+ },
4329
+ "costUsd": {
4330
+ "anyOf": [
4331
+ {
4332
+ "type": "number"
4333
+ },
4334
+ {
4335
+ "type": "string",
4336
+ "enum": [
4337
+ "Infinity",
4338
+ "-Infinity",
4339
+ "NaN"
4340
+ ]
4341
+ },
4342
+ {
4343
+ "type": "null"
4344
+ }
4345
+ ]
4346
+ }
4347
+ },
4348
+ "required": [
4349
+ "inputTokens",
4350
+ "outputTokens",
4351
+ "cachedInputTokens",
4352
+ "costUsd"
4353
+ ],
4354
+ "additionalProperties": true
4355
+ },
4356
+ {
4357
+ "type": "null"
4358
+ }
4359
+ ]
4360
+ },
4361
+ "error": {
4362
+ "anyOf": [
4363
+ {
4364
+ "type": "string"
4365
+ },
4366
+ {
4367
+ "type": "null"
4368
+ }
4369
+ ]
4370
+ },
4371
+ "events": {
4372
+ "type": "array",
4373
+ "items": {
4374
+ "type": "object",
4375
+ "properties": {
4376
+ "type": {
4377
+ "type": "string",
4378
+ "enum": [
4379
+ "started",
4380
+ "text",
4381
+ "tool-call",
4382
+ "tool-result",
4383
+ "usage",
4384
+ "error",
4385
+ "finished"
4386
+ ]
4387
+ },
4388
+ "data": {}
4389
+ },
4390
+ "required": [
4391
+ "type",
4392
+ "data"
4393
+ ],
4394
+ "additionalProperties": true
4395
+ }
4396
+ }
4397
+ },
4398
+ "required": [
4399
+ "outcome",
4400
+ "result",
4401
+ "usage",
4402
+ "error",
4403
+ "events"
4404
+ ],
4405
+ "additionalProperties": true
4406
+ },
4407
+ "DaemonStatus": {
4408
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4409
+ "type": "object",
4410
+ "properties": {
4411
+ "mode": {
4412
+ "type": "string",
4413
+ "enum": [
4414
+ "desktop",
4415
+ "headless"
4416
+ ]
4417
+ },
4418
+ "kernel": {
4419
+ "type": "object",
4420
+ "properties": {
4421
+ "state": {
4422
+ "type": "string",
4423
+ "enum": [
4424
+ "unpaired",
4425
+ "pairing",
4426
+ "paired",
4427
+ "revoked"
4428
+ ]
4429
+ },
4430
+ "url": {
4431
+ "anyOf": [
4432
+ {
4433
+ "type": "string"
4434
+ },
4435
+ {
4436
+ "type": "null"
4437
+ }
4438
+ ]
4439
+ },
4440
+ "deviceId": {
4441
+ "anyOf": [
4442
+ {
4443
+ "type": "string"
4444
+ },
4445
+ {
4446
+ "type": "null"
4447
+ }
4448
+ ]
4449
+ },
4450
+ "orgId": {
4451
+ "anyOf": [
4452
+ {
4453
+ "type": "string"
4454
+ },
4455
+ {
4456
+ "type": "null"
4457
+ }
4458
+ ]
4459
+ },
4460
+ "userCode": {
4461
+ "anyOf": [
4462
+ {
4463
+ "type": "string"
4464
+ },
4465
+ {
4466
+ "type": "null"
4467
+ }
4468
+ ]
4469
+ },
4470
+ "verificationUri": {
4471
+ "anyOf": [
4472
+ {
4473
+ "type": "string"
4474
+ },
4475
+ {
4476
+ "type": "null"
4477
+ }
4478
+ ]
4479
+ }
4480
+ },
4481
+ "required": [
4482
+ "state",
4483
+ "url",
4484
+ "deviceId",
4485
+ "orgId",
4486
+ "userCode",
4487
+ "verificationUri"
4488
+ ],
4489
+ "additionalProperties": true
4490
+ },
4491
+ "secretStore": {
4492
+ "type": "string"
4493
+ },
4494
+ "harnesses": {
4495
+ "type": "array",
4496
+ "items": {
4497
+ "type": "object",
4498
+ "properties": {
4499
+ "kind": {
4500
+ "type": "string",
4501
+ "enum": [
4502
+ "claude-code",
4503
+ "codex",
4504
+ "opencode",
4505
+ "acp"
4506
+ ]
4507
+ },
4508
+ "available": {
4509
+ "type": "boolean"
4510
+ },
4511
+ "version": {
4512
+ "anyOf": [
4513
+ {
4514
+ "type": "string"
4515
+ },
4516
+ {
4517
+ "type": "null"
4518
+ }
4519
+ ]
4520
+ },
4521
+ "loggedIn": {
4522
+ "anyOf": [
4523
+ {
4524
+ "type": "boolean"
4525
+ },
4526
+ {
4527
+ "type": "null"
4528
+ }
4529
+ ]
4530
+ },
4531
+ "detail": {
4532
+ "type": "string"
4533
+ }
4534
+ },
4535
+ "required": [
4536
+ "kind",
4537
+ "available",
4538
+ "version",
4539
+ "loggedIn",
4540
+ "detail"
4541
+ ],
4542
+ "additionalProperties": true
4543
+ }
4544
+ }
4545
+ },
4546
+ "required": [
4547
+ "mode",
4548
+ "kernel",
4549
+ "secretStore",
4550
+ "harnesses"
4551
+ ],
4552
+ "additionalProperties": true
4553
+ }
4554
+ }
4555
+ }