@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,2626 @@
1
+ {
2
+ "title": "DeviceControl",
3
+ "kind": "kernel",
4
+ "version": "1.3.0",
5
+ "description": "Paired devices (listing and revocation), the sessions on each device, device commands (terminal, files, browser, computer) with consent and per-device enablement, capability availability, and push registrations, extending Daemon.",
6
+ "operations": {
7
+ "listDevices": {
8
+ "description": "POST /kernel/devices/listDevices (a signed-in person): the caller's devices (paired to them, or confirmed by them); with eloxiv.machine.manage, every device of the organisation. Never a credential.",
9
+ "input": {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "not": {
12
+ "type": "null"
13
+ }
14
+ },
15
+ "output": {
16
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
17
+ "type": "array",
18
+ "items": {
19
+ "type": "object",
20
+ "properties": {
21
+ "id": {
22
+ "type": "string"
23
+ },
24
+ "orgId": {
25
+ "type": "string"
26
+ },
27
+ "subject": {
28
+ "type": "string"
29
+ },
30
+ "subjectKind": {
31
+ "type": "string",
32
+ "enum": [
33
+ "user",
34
+ "service"
35
+ ]
36
+ },
37
+ "pairedBy": {
38
+ "type": "string"
39
+ },
40
+ "name": {
41
+ "type": "string"
42
+ },
43
+ "kind": {
44
+ "type": "string",
45
+ "enum": [
46
+ "desktop",
47
+ "runner"
48
+ ]
49
+ },
50
+ "platform": {
51
+ "type": "string"
52
+ },
53
+ "capabilities": {
54
+ "type": "object",
55
+ "properties": {
56
+ "harnesses": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string",
60
+ "enum": [
61
+ "claude-code",
62
+ "codex",
63
+ "opencode",
64
+ "acp"
65
+ ]
66
+ }
67
+ },
68
+ "computerUse": {
69
+ "type": "boolean"
70
+ },
71
+ "browserExtension": {
72
+ "type": "boolean"
73
+ },
74
+ "commands": {
75
+ "type": "array",
76
+ "items": {
77
+ "type": "string",
78
+ "enum": [
79
+ "terminal",
80
+ "files",
81
+ "browser",
82
+ "computer"
83
+ ]
84
+ }
85
+ },
86
+ "toolsOnly": {
87
+ "type": "boolean"
88
+ }
89
+ },
90
+ "required": [
91
+ "harnesses",
92
+ "computerUse",
93
+ "browserExtension"
94
+ ],
95
+ "additionalProperties": true
96
+ },
97
+ "createdAt": {
98
+ "type": "string"
99
+ },
100
+ "lastSeenAt": {
101
+ "anyOf": [
102
+ {
103
+ "type": "string"
104
+ },
105
+ {
106
+ "type": "null"
107
+ }
108
+ ]
109
+ },
110
+ "revokedAt": {
111
+ "anyOf": [
112
+ {
113
+ "type": "string"
114
+ },
115
+ {
116
+ "type": "null"
117
+ }
118
+ ]
119
+ },
120
+ "push": {
121
+ "type": "boolean"
122
+ }
123
+ },
124
+ "required": [
125
+ "id",
126
+ "orgId",
127
+ "subject",
128
+ "subjectKind",
129
+ "pairedBy",
130
+ "name",
131
+ "kind",
132
+ "platform",
133
+ "capabilities",
134
+ "createdAt",
135
+ "lastSeenAt",
136
+ "revokedAt"
137
+ ],
138
+ "additionalProperties": true
139
+ }
140
+ },
141
+ "errors": {
142
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
143
+ "anyOf": [
144
+ {
145
+ "$ref": "#/$defs/UnauthenticatedEncoded"
146
+ },
147
+ {
148
+ "$ref": "#/$defs/ForbiddenEncoded"
149
+ },
150
+ {
151
+ "$ref": "#/$defs/InvalidInputEncoded"
152
+ }
153
+ ],
154
+ "$defs": {
155
+ "UnauthenticatedEncoded": {
156
+ "type": "object",
157
+ "properties": {
158
+ "_tag": {
159
+ "type": "string",
160
+ "enum": [
161
+ "Unauthenticated"
162
+ ]
163
+ },
164
+ "message": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ "required": [
169
+ "_tag",
170
+ "message"
171
+ ],
172
+ "additionalProperties": true
173
+ },
174
+ "ForbiddenEncoded": {
175
+ "type": "object",
176
+ "properties": {
177
+ "_tag": {
178
+ "type": "string",
179
+ "enum": [
180
+ "Forbidden"
181
+ ]
182
+ },
183
+ "message": {
184
+ "type": "string"
185
+ },
186
+ "action": {
187
+ "type": "string"
188
+ }
189
+ },
190
+ "required": [
191
+ "_tag",
192
+ "message",
193
+ "action"
194
+ ],
195
+ "additionalProperties": true
196
+ },
197
+ "InvalidInputEncoded": {
198
+ "type": "object",
199
+ "properties": {
200
+ "_tag": {
201
+ "type": "string",
202
+ "enum": [
203
+ "InvalidInput"
204
+ ]
205
+ },
206
+ "message": {
207
+ "type": "string"
208
+ }
209
+ },
210
+ "required": [
211
+ "_tag",
212
+ "message"
213
+ ],
214
+ "additionalProperties": true
215
+ }
216
+ }
217
+ }
218
+ },
219
+ "revokeDevice": {
220
+ "description": "POST /kernel/devices/revokeDevice (a signed-in person: the device's subject, the person who paired it, or eloxiv.machine.manage): revoke the device. Its credential and every agent session issued to it are refused from their next request, and its unfinished turns fail. Audited.",
221
+ "input": {
222
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
223
+ "type": "object",
224
+ "properties": {
225
+ "id": {
226
+ "type": "string"
227
+ }
228
+ },
229
+ "required": [
230
+ "id"
231
+ ],
232
+ "additionalProperties": true
233
+ },
234
+ "output": {
235
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
236
+ "type": "object",
237
+ "properties": {
238
+ "id": {
239
+ "type": "string"
240
+ },
241
+ "orgId": {
242
+ "type": "string"
243
+ },
244
+ "subject": {
245
+ "type": "string"
246
+ },
247
+ "subjectKind": {
248
+ "type": "string",
249
+ "enum": [
250
+ "user",
251
+ "service"
252
+ ]
253
+ },
254
+ "pairedBy": {
255
+ "type": "string"
256
+ },
257
+ "name": {
258
+ "type": "string"
259
+ },
260
+ "kind": {
261
+ "type": "string",
262
+ "enum": [
263
+ "desktop",
264
+ "runner"
265
+ ]
266
+ },
267
+ "platform": {
268
+ "type": "string"
269
+ },
270
+ "capabilities": {
271
+ "type": "object",
272
+ "properties": {
273
+ "harnesses": {
274
+ "type": "array",
275
+ "items": {
276
+ "type": "string",
277
+ "enum": [
278
+ "claude-code",
279
+ "codex",
280
+ "opencode",
281
+ "acp"
282
+ ]
283
+ }
284
+ },
285
+ "computerUse": {
286
+ "type": "boolean"
287
+ },
288
+ "browserExtension": {
289
+ "type": "boolean"
290
+ },
291
+ "commands": {
292
+ "type": "array",
293
+ "items": {
294
+ "type": "string",
295
+ "enum": [
296
+ "terminal",
297
+ "files",
298
+ "browser",
299
+ "computer"
300
+ ]
301
+ }
302
+ },
303
+ "toolsOnly": {
304
+ "type": "boolean"
305
+ }
306
+ },
307
+ "required": [
308
+ "harnesses",
309
+ "computerUse",
310
+ "browserExtension"
311
+ ],
312
+ "additionalProperties": true
313
+ },
314
+ "createdAt": {
315
+ "type": "string"
316
+ },
317
+ "lastSeenAt": {
318
+ "anyOf": [
319
+ {
320
+ "type": "string"
321
+ },
322
+ {
323
+ "type": "null"
324
+ }
325
+ ]
326
+ },
327
+ "revokedAt": {
328
+ "anyOf": [
329
+ {
330
+ "type": "string"
331
+ },
332
+ {
333
+ "type": "null"
334
+ }
335
+ ]
336
+ },
337
+ "push": {
338
+ "type": "boolean"
339
+ }
340
+ },
341
+ "required": [
342
+ "id",
343
+ "orgId",
344
+ "subject",
345
+ "subjectKind",
346
+ "pairedBy",
347
+ "name",
348
+ "kind",
349
+ "platform",
350
+ "capabilities",
351
+ "createdAt",
352
+ "lastSeenAt",
353
+ "revokedAt"
354
+ ],
355
+ "additionalProperties": true
356
+ },
357
+ "errors": {
358
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
359
+ "anyOf": [
360
+ {
361
+ "$ref": "#/$defs/UnauthenticatedEncoded"
362
+ },
363
+ {
364
+ "$ref": "#/$defs/ForbiddenEncoded"
365
+ },
366
+ {
367
+ "$ref": "#/$defs/InvalidInputEncoded"
368
+ }
369
+ ],
370
+ "$defs": {
371
+ "UnauthenticatedEncoded": {
372
+ "type": "object",
373
+ "properties": {
374
+ "_tag": {
375
+ "type": "string",
376
+ "enum": [
377
+ "Unauthenticated"
378
+ ]
379
+ },
380
+ "message": {
381
+ "type": "string"
382
+ }
383
+ },
384
+ "required": [
385
+ "_tag",
386
+ "message"
387
+ ],
388
+ "additionalProperties": true
389
+ },
390
+ "ForbiddenEncoded": {
391
+ "type": "object",
392
+ "properties": {
393
+ "_tag": {
394
+ "type": "string",
395
+ "enum": [
396
+ "Forbidden"
397
+ ]
398
+ },
399
+ "message": {
400
+ "type": "string"
401
+ },
402
+ "action": {
403
+ "type": "string"
404
+ }
405
+ },
406
+ "required": [
407
+ "_tag",
408
+ "message",
409
+ "action"
410
+ ],
411
+ "additionalProperties": true
412
+ },
413
+ "InvalidInputEncoded": {
414
+ "type": "object",
415
+ "properties": {
416
+ "_tag": {
417
+ "type": "string",
418
+ "enum": [
419
+ "InvalidInput"
420
+ ]
421
+ },
422
+ "message": {
423
+ "type": "string"
424
+ }
425
+ },
426
+ "required": [
427
+ "_tag",
428
+ "message"
429
+ ],
430
+ "additionalProperties": true
431
+ }
432
+ }
433
+ }
434
+ },
435
+ "reportSessions": {
436
+ "description": "POST /kernel/device/sessions (the device credential): the device's current sessions, replacing what it reported before (sessions it no longer lists are ended).",
437
+ "input": {
438
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
439
+ "type": "object",
440
+ "properties": {
441
+ "sessions": {
442
+ "type": "array",
443
+ "items": {
444
+ "type": "object",
445
+ "properties": {
446
+ "id": {
447
+ "type": "string"
448
+ },
449
+ "kind": {
450
+ "type": "string",
451
+ "enum": [
452
+ "shell",
453
+ "browser-extension",
454
+ "cli",
455
+ "harness",
456
+ "computer-use",
457
+ "desktop-app",
458
+ "terminal"
459
+ ]
460
+ },
461
+ "label": {
462
+ "type": "string"
463
+ },
464
+ "startedAt": {
465
+ "type": "string"
466
+ },
467
+ "endedAt": {
468
+ "anyOf": [
469
+ {
470
+ "type": "string"
471
+ },
472
+ {
473
+ "type": "null"
474
+ }
475
+ ]
476
+ },
477
+ "detail": {
478
+ "anyOf": [
479
+ {
480
+ "type": "string"
481
+ },
482
+ {
483
+ "type": "null"
484
+ }
485
+ ]
486
+ }
487
+ },
488
+ "required": [
489
+ "id",
490
+ "kind",
491
+ "label",
492
+ "startedAt",
493
+ "endedAt",
494
+ "detail"
495
+ ],
496
+ "additionalProperties": true
497
+ }
498
+ }
499
+ },
500
+ "required": [
501
+ "sessions"
502
+ ],
503
+ "additionalProperties": true
504
+ },
505
+ "output": {
506
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
507
+ "type": "object",
508
+ "properties": {
509
+ "recorded": {
510
+ "anyOf": [
511
+ {
512
+ "type": "number"
513
+ },
514
+ {
515
+ "type": "string",
516
+ "enum": [
517
+ "Infinity",
518
+ "-Infinity",
519
+ "NaN"
520
+ ]
521
+ }
522
+ ]
523
+ }
524
+ },
525
+ "required": [
526
+ "recorded"
527
+ ],
528
+ "additionalProperties": true
529
+ },
530
+ "errors": {
531
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
532
+ "anyOf": [
533
+ {
534
+ "$ref": "#/$defs/UnauthenticatedEncoded"
535
+ },
536
+ {
537
+ "$ref": "#/$defs/InvalidInputEncoded"
538
+ }
539
+ ],
540
+ "$defs": {
541
+ "UnauthenticatedEncoded": {
542
+ "type": "object",
543
+ "properties": {
544
+ "_tag": {
545
+ "type": "string",
546
+ "enum": [
547
+ "Unauthenticated"
548
+ ]
549
+ },
550
+ "message": {
551
+ "type": "string"
552
+ }
553
+ },
554
+ "required": [
555
+ "_tag",
556
+ "message"
557
+ ],
558
+ "additionalProperties": true
559
+ },
560
+ "InvalidInputEncoded": {
561
+ "type": "object",
562
+ "properties": {
563
+ "_tag": {
564
+ "type": "string",
565
+ "enum": [
566
+ "InvalidInput"
567
+ ]
568
+ },
569
+ "message": {
570
+ "type": "string"
571
+ }
572
+ },
573
+ "required": [
574
+ "_tag",
575
+ "message"
576
+ ],
577
+ "additionalProperties": true
578
+ }
579
+ }
580
+ }
581
+ },
582
+ "listSessions": {
583
+ "description": "POST /kernel/devices/listSessions (a signed-in person who may see the device): the sessions the device reported, open ones first.",
584
+ "input": {
585
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
586
+ "type": "object",
587
+ "properties": {
588
+ "deviceId": {
589
+ "type": "string"
590
+ }
591
+ },
592
+ "required": [
593
+ "deviceId"
594
+ ],
595
+ "additionalProperties": true
596
+ },
597
+ "output": {
598
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
599
+ "type": "object",
600
+ "properties": {
601
+ "deviceId": {
602
+ "type": "string"
603
+ },
604
+ "sessions": {
605
+ "type": "array",
606
+ "items": {
607
+ "type": "object",
608
+ "properties": {
609
+ "id": {
610
+ "type": "string"
611
+ },
612
+ "kind": {
613
+ "type": "string",
614
+ "enum": [
615
+ "shell",
616
+ "browser-extension",
617
+ "cli",
618
+ "harness",
619
+ "computer-use",
620
+ "desktop-app",
621
+ "terminal"
622
+ ]
623
+ },
624
+ "label": {
625
+ "type": "string"
626
+ },
627
+ "startedAt": {
628
+ "type": "string"
629
+ },
630
+ "endedAt": {
631
+ "anyOf": [
632
+ {
633
+ "type": "string"
634
+ },
635
+ {
636
+ "type": "null"
637
+ }
638
+ ]
639
+ },
640
+ "detail": {
641
+ "anyOf": [
642
+ {
643
+ "type": "string"
644
+ },
645
+ {
646
+ "type": "null"
647
+ }
648
+ ]
649
+ }
650
+ },
651
+ "required": [
652
+ "id",
653
+ "kind",
654
+ "label",
655
+ "startedAt",
656
+ "endedAt",
657
+ "detail"
658
+ ],
659
+ "additionalProperties": true
660
+ }
661
+ }
662
+ },
663
+ "required": [
664
+ "deviceId",
665
+ "sessions"
666
+ ],
667
+ "additionalProperties": true
668
+ },
669
+ "errors": {
670
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
671
+ "anyOf": [
672
+ {
673
+ "$ref": "#/$defs/UnauthenticatedEncoded"
674
+ },
675
+ {
676
+ "$ref": "#/$defs/ForbiddenEncoded"
677
+ },
678
+ {
679
+ "$ref": "#/$defs/InvalidInputEncoded"
680
+ }
681
+ ],
682
+ "$defs": {
683
+ "UnauthenticatedEncoded": {
684
+ "type": "object",
685
+ "properties": {
686
+ "_tag": {
687
+ "type": "string",
688
+ "enum": [
689
+ "Unauthenticated"
690
+ ]
691
+ },
692
+ "message": {
693
+ "type": "string"
694
+ }
695
+ },
696
+ "required": [
697
+ "_tag",
698
+ "message"
699
+ ],
700
+ "additionalProperties": true
701
+ },
702
+ "ForbiddenEncoded": {
703
+ "type": "object",
704
+ "properties": {
705
+ "_tag": {
706
+ "type": "string",
707
+ "enum": [
708
+ "Forbidden"
709
+ ]
710
+ },
711
+ "message": {
712
+ "type": "string"
713
+ },
714
+ "action": {
715
+ "type": "string"
716
+ }
717
+ },
718
+ "required": [
719
+ "_tag",
720
+ "message",
721
+ "action"
722
+ ],
723
+ "additionalProperties": true
724
+ },
725
+ "InvalidInputEncoded": {
726
+ "type": "object",
727
+ "properties": {
728
+ "_tag": {
729
+ "type": "string",
730
+ "enum": [
731
+ "InvalidInput"
732
+ ]
733
+ },
734
+ "message": {
735
+ "type": "string"
736
+ }
737
+ },
738
+ "required": [
739
+ "_tag",
740
+ "message"
741
+ ],
742
+ "additionalProperties": true
743
+ }
744
+ }
745
+ }
746
+ },
747
+ "computerUse": {
748
+ "description": "GET /computer-use on the daemon (a local client): whether computer use is available on this device (enabled, and a computer-use companion connected), with the reason when it is not.",
749
+ "input": {
750
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
751
+ "not": {
752
+ "type": "null"
753
+ }
754
+ },
755
+ "output": {
756
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
757
+ "type": "object",
758
+ "properties": {
759
+ "available": {
760
+ "type": "boolean"
761
+ },
762
+ "reason": {
763
+ "type": "string"
764
+ }
765
+ },
766
+ "required": [
767
+ "available",
768
+ "reason"
769
+ ],
770
+ "additionalProperties": true
771
+ },
772
+ "errors": {
773
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
774
+ "anyOf": [
775
+ {
776
+ "$ref": "#/$defs/UnauthenticatedEncoded"
777
+ }
778
+ ],
779
+ "$defs": {
780
+ "UnauthenticatedEncoded": {
781
+ "type": "object",
782
+ "properties": {
783
+ "_tag": {
784
+ "type": "string",
785
+ "enum": [
786
+ "Unauthenticated"
787
+ ]
788
+ },
789
+ "message": {
790
+ "type": "string"
791
+ }
792
+ },
793
+ "required": [
794
+ "_tag",
795
+ "message"
796
+ ],
797
+ "additionalProperties": true
798
+ }
799
+ }
800
+ }
801
+ },
802
+ "availability": {
803
+ "description": "GET /capabilities on the daemon (a local client): each command kind's availability (enabled on the daemon; for a browser or the computer, its companion connected), whether a PTY backs terminals, and the tools-only profile.",
804
+ "input": {
805
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
806
+ "not": {
807
+ "type": "null"
808
+ }
809
+ },
810
+ "output": {
811
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
812
+ "type": "object",
813
+ "properties": {
814
+ "terminal": {
815
+ "type": "object",
816
+ "properties": {
817
+ "enabled": {
818
+ "type": "boolean"
819
+ },
820
+ "available": {
821
+ "type": "boolean"
822
+ },
823
+ "reason": {
824
+ "anyOf": [
825
+ {
826
+ "type": "string"
827
+ },
828
+ {
829
+ "type": "null"
830
+ }
831
+ ]
832
+ }
833
+ },
834
+ "required": [
835
+ "enabled",
836
+ "available",
837
+ "reason"
838
+ ],
839
+ "additionalProperties": true
840
+ },
841
+ "files": {
842
+ "type": "object",
843
+ "properties": {
844
+ "enabled": {
845
+ "type": "boolean"
846
+ },
847
+ "available": {
848
+ "type": "boolean"
849
+ },
850
+ "reason": {
851
+ "anyOf": [
852
+ {
853
+ "type": "string"
854
+ },
855
+ {
856
+ "type": "null"
857
+ }
858
+ ]
859
+ }
860
+ },
861
+ "required": [
862
+ "enabled",
863
+ "available",
864
+ "reason"
865
+ ],
866
+ "additionalProperties": true
867
+ },
868
+ "browser": {
869
+ "type": "object",
870
+ "properties": {
871
+ "enabled": {
872
+ "type": "boolean"
873
+ },
874
+ "available": {
875
+ "type": "boolean"
876
+ },
877
+ "reason": {
878
+ "anyOf": [
879
+ {
880
+ "type": "string"
881
+ },
882
+ {
883
+ "type": "null"
884
+ }
885
+ ]
886
+ }
887
+ },
888
+ "required": [
889
+ "enabled",
890
+ "available",
891
+ "reason"
892
+ ],
893
+ "additionalProperties": true
894
+ },
895
+ "computer": {
896
+ "type": "object",
897
+ "properties": {
898
+ "enabled": {
899
+ "type": "boolean"
900
+ },
901
+ "available": {
902
+ "type": "boolean"
903
+ },
904
+ "reason": {
905
+ "anyOf": [
906
+ {
907
+ "type": "string"
908
+ },
909
+ {
910
+ "type": "null"
911
+ }
912
+ ]
913
+ }
914
+ },
915
+ "required": [
916
+ "enabled",
917
+ "available",
918
+ "reason"
919
+ ],
920
+ "additionalProperties": true
921
+ },
922
+ "pty": {
923
+ "type": "boolean"
924
+ },
925
+ "toolsOnly": {
926
+ "type": "boolean"
927
+ }
928
+ },
929
+ "required": [
930
+ "terminal",
931
+ "files",
932
+ "browser",
933
+ "computer",
934
+ "pty",
935
+ "toolsOnly"
936
+ ],
937
+ "additionalProperties": true
938
+ },
939
+ "errors": {
940
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
941
+ "anyOf": [
942
+ {
943
+ "$ref": "#/$defs/UnauthenticatedEncoded"
944
+ }
945
+ ],
946
+ "$defs": {
947
+ "UnauthenticatedEncoded": {
948
+ "type": "object",
949
+ "properties": {
950
+ "_tag": {
951
+ "type": "string",
952
+ "enum": [
953
+ "Unauthenticated"
954
+ ]
955
+ },
956
+ "message": {
957
+ "type": "string"
958
+ }
959
+ },
960
+ "required": [
961
+ "_tag",
962
+ "message"
963
+ ],
964
+ "additionalProperties": true
965
+ }
966
+ }
967
+ }
968
+ },
969
+ "sendCommand": {
970
+ "description": "Action devices.sendCommand (every surface): queue one command for one of the caller's devices. Only the device's subject may address it, the device must offer the operation's kind, the organisation's devices.commands setting must allow it, and an agent-originated call needs consent. Read the result with the action devices.getCommand; devices.listDevices lists what each device offers.",
971
+ "input": {
972
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
973
+ "type": "object",
974
+ "properties": {
975
+ "deviceId": {
976
+ "type": "string"
977
+ },
978
+ "operation": {
979
+ "type": "string",
980
+ "enum": [
981
+ "terminal.exec",
982
+ "files.read",
983
+ "files.write",
984
+ "files.edit",
985
+ "files.list",
986
+ "files.search",
987
+ "browser.observe",
988
+ "browser.navigate",
989
+ "browser.click",
990
+ "browser.type",
991
+ "browser.scroll",
992
+ "computer.observe",
993
+ "computer.click",
994
+ "computer.type",
995
+ "computer.key",
996
+ "computer.scroll"
997
+ ]
998
+ },
999
+ "input": {},
1000
+ "timeoutMs": {
1001
+ "anyOf": [
1002
+ {
1003
+ "type": "number"
1004
+ },
1005
+ {
1006
+ "type": "string",
1007
+ "enum": [
1008
+ "Infinity",
1009
+ "-Infinity",
1010
+ "NaN"
1011
+ ]
1012
+ }
1013
+ ]
1014
+ }
1015
+ },
1016
+ "required": [
1017
+ "deviceId",
1018
+ "operation",
1019
+ "input"
1020
+ ],
1021
+ "additionalProperties": true
1022
+ },
1023
+ "output": {
1024
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1025
+ "type": "object",
1026
+ "properties": {
1027
+ "commandId": {
1028
+ "type": "string"
1029
+ }
1030
+ },
1031
+ "required": [
1032
+ "commandId"
1033
+ ],
1034
+ "additionalProperties": true
1035
+ },
1036
+ "errors": {
1037
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1038
+ "anyOf": [
1039
+ {
1040
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1041
+ },
1042
+ {
1043
+ "$ref": "#/$defs/ForbiddenEncoded"
1044
+ },
1045
+ {
1046
+ "$ref": "#/$defs/InvalidInputEncoded"
1047
+ },
1048
+ {
1049
+ "$ref": "#/$defs/ConsentRequiredEncoded"
1050
+ }
1051
+ ],
1052
+ "$defs": {
1053
+ "UnauthenticatedEncoded": {
1054
+ "type": "object",
1055
+ "properties": {
1056
+ "_tag": {
1057
+ "type": "string",
1058
+ "enum": [
1059
+ "Unauthenticated"
1060
+ ]
1061
+ },
1062
+ "message": {
1063
+ "type": "string"
1064
+ }
1065
+ },
1066
+ "required": [
1067
+ "_tag",
1068
+ "message"
1069
+ ],
1070
+ "additionalProperties": true
1071
+ },
1072
+ "ForbiddenEncoded": {
1073
+ "type": "object",
1074
+ "properties": {
1075
+ "_tag": {
1076
+ "type": "string",
1077
+ "enum": [
1078
+ "Forbidden"
1079
+ ]
1080
+ },
1081
+ "message": {
1082
+ "type": "string"
1083
+ },
1084
+ "action": {
1085
+ "type": "string"
1086
+ }
1087
+ },
1088
+ "required": [
1089
+ "_tag",
1090
+ "message",
1091
+ "action"
1092
+ ],
1093
+ "additionalProperties": true
1094
+ },
1095
+ "InvalidInputEncoded": {
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "_tag": {
1099
+ "type": "string",
1100
+ "enum": [
1101
+ "InvalidInput"
1102
+ ]
1103
+ },
1104
+ "message": {
1105
+ "type": "string"
1106
+ }
1107
+ },
1108
+ "required": [
1109
+ "_tag",
1110
+ "message"
1111
+ ],
1112
+ "additionalProperties": true
1113
+ },
1114
+ "ConsentRequiredEncoded": {
1115
+ "type": "object",
1116
+ "properties": {
1117
+ "_tag": {
1118
+ "type": "string",
1119
+ "enum": [
1120
+ "ConsentRequired"
1121
+ ]
1122
+ },
1123
+ "message": {
1124
+ "type": "string"
1125
+ },
1126
+ "action": {
1127
+ "type": "string"
1128
+ },
1129
+ "consentId": {
1130
+ "type": "string"
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "_tag",
1135
+ "message",
1136
+ "action",
1137
+ "consentId"
1138
+ ],
1139
+ "additionalProperties": true
1140
+ }
1141
+ }
1142
+ }
1143
+ },
1144
+ "cancelCommand": {
1145
+ "description": "Action devices.cancelCommand (the sender or the device's subject): a queued command is cancelled and never runs; a taken one is stopped if it still can be (the device hears at its next check: before it acts, it does not; a shell command is interrupted and ends failed); one a companion already took, and a finished one, end as they really end. Nothing done is reported undone.",
1146
+ "input": {
1147
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1148
+ "type": "object",
1149
+ "properties": {
1150
+ "id": {
1151
+ "type": "string"
1152
+ }
1153
+ },
1154
+ "required": [
1155
+ "id"
1156
+ ],
1157
+ "additionalProperties": true
1158
+ },
1159
+ "output": {
1160
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1161
+ "type": "object",
1162
+ "properties": {
1163
+ "id": {
1164
+ "type": "string"
1165
+ },
1166
+ "status": {
1167
+ "type": "string",
1168
+ "enum": [
1169
+ "queued",
1170
+ "running",
1171
+ "succeeded",
1172
+ "failed",
1173
+ "expired",
1174
+ "cancelled"
1175
+ ]
1176
+ },
1177
+ "cancelRequested": {
1178
+ "type": "boolean"
1179
+ }
1180
+ },
1181
+ "required": [
1182
+ "id",
1183
+ "status",
1184
+ "cancelRequested"
1185
+ ],
1186
+ "additionalProperties": true
1187
+ },
1188
+ "errors": {
1189
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1190
+ "anyOf": [
1191
+ {
1192
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1193
+ },
1194
+ {
1195
+ "$ref": "#/$defs/ForbiddenEncoded"
1196
+ },
1197
+ {
1198
+ "$ref": "#/$defs/InvalidInputEncoded"
1199
+ }
1200
+ ],
1201
+ "$defs": {
1202
+ "UnauthenticatedEncoded": {
1203
+ "type": "object",
1204
+ "properties": {
1205
+ "_tag": {
1206
+ "type": "string",
1207
+ "enum": [
1208
+ "Unauthenticated"
1209
+ ]
1210
+ },
1211
+ "message": {
1212
+ "type": "string"
1213
+ }
1214
+ },
1215
+ "required": [
1216
+ "_tag",
1217
+ "message"
1218
+ ],
1219
+ "additionalProperties": true
1220
+ },
1221
+ "ForbiddenEncoded": {
1222
+ "type": "object",
1223
+ "properties": {
1224
+ "_tag": {
1225
+ "type": "string",
1226
+ "enum": [
1227
+ "Forbidden"
1228
+ ]
1229
+ },
1230
+ "message": {
1231
+ "type": "string"
1232
+ },
1233
+ "action": {
1234
+ "type": "string"
1235
+ }
1236
+ },
1237
+ "required": [
1238
+ "_tag",
1239
+ "message",
1240
+ "action"
1241
+ ],
1242
+ "additionalProperties": true
1243
+ },
1244
+ "InvalidInputEncoded": {
1245
+ "type": "object",
1246
+ "properties": {
1247
+ "_tag": {
1248
+ "type": "string",
1249
+ "enum": [
1250
+ "InvalidInput"
1251
+ ]
1252
+ },
1253
+ "message": {
1254
+ "type": "string"
1255
+ }
1256
+ },
1257
+ "required": [
1258
+ "_tag",
1259
+ "message"
1260
+ ],
1261
+ "additionalProperties": true
1262
+ }
1263
+ }
1264
+ }
1265
+ },
1266
+ "getCommand": {
1267
+ "description": "Action devices.getCommand: a command the caller sent or that was sent to their device, with its status and result. A command not taken in time is expired; one taken but not reported before its deadline failed.",
1268
+ "input": {
1269
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "id": {
1273
+ "type": "string"
1274
+ }
1275
+ },
1276
+ "required": [
1277
+ "id"
1278
+ ],
1279
+ "additionalProperties": true
1280
+ },
1281
+ "output": {
1282
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1283
+ "type": "object",
1284
+ "properties": {
1285
+ "id": {
1286
+ "type": "string"
1287
+ },
1288
+ "deviceId": {
1289
+ "type": "string"
1290
+ },
1291
+ "requestedBy": {
1292
+ "type": "string"
1293
+ },
1294
+ "source": {
1295
+ "type": "string",
1296
+ "enum": [
1297
+ "person",
1298
+ "agent",
1299
+ "system"
1300
+ ]
1301
+ },
1302
+ "operation": {
1303
+ "type": "string",
1304
+ "enum": [
1305
+ "terminal.exec",
1306
+ "files.read",
1307
+ "files.write",
1308
+ "files.edit",
1309
+ "files.list",
1310
+ "files.search",
1311
+ "browser.observe",
1312
+ "browser.navigate",
1313
+ "browser.click",
1314
+ "browser.type",
1315
+ "browser.scroll",
1316
+ "computer.observe",
1317
+ "computer.click",
1318
+ "computer.type",
1319
+ "computer.key",
1320
+ "computer.scroll"
1321
+ ]
1322
+ },
1323
+ "input": {},
1324
+ "status": {
1325
+ "type": "string",
1326
+ "enum": [
1327
+ "queued",
1328
+ "running",
1329
+ "succeeded",
1330
+ "failed",
1331
+ "expired",
1332
+ "cancelled"
1333
+ ]
1334
+ },
1335
+ "result": {},
1336
+ "error": {
1337
+ "anyOf": [
1338
+ {
1339
+ "type": "string"
1340
+ },
1341
+ {
1342
+ "type": "null"
1343
+ }
1344
+ ]
1345
+ },
1346
+ "createdAt": {
1347
+ "type": "string"
1348
+ },
1349
+ "completedAt": {
1350
+ "anyOf": [
1351
+ {
1352
+ "type": "string"
1353
+ },
1354
+ {
1355
+ "type": "null"
1356
+ }
1357
+ ]
1358
+ },
1359
+ "cancelRequestedAt": {
1360
+ "anyOf": [
1361
+ {
1362
+ "type": "string"
1363
+ },
1364
+ {
1365
+ "type": "null"
1366
+ }
1367
+ ]
1368
+ }
1369
+ },
1370
+ "required": [
1371
+ "id",
1372
+ "deviceId",
1373
+ "requestedBy",
1374
+ "source",
1375
+ "operation",
1376
+ "input",
1377
+ "status",
1378
+ "result",
1379
+ "error",
1380
+ "createdAt",
1381
+ "completedAt",
1382
+ "cancelRequestedAt"
1383
+ ],
1384
+ "additionalProperties": true
1385
+ },
1386
+ "errors": {
1387
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1388
+ "anyOf": [
1389
+ {
1390
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1391
+ },
1392
+ {
1393
+ "$ref": "#/$defs/ForbiddenEncoded"
1394
+ },
1395
+ {
1396
+ "$ref": "#/$defs/InvalidInputEncoded"
1397
+ }
1398
+ ],
1399
+ "$defs": {
1400
+ "UnauthenticatedEncoded": {
1401
+ "type": "object",
1402
+ "properties": {
1403
+ "_tag": {
1404
+ "type": "string",
1405
+ "enum": [
1406
+ "Unauthenticated"
1407
+ ]
1408
+ },
1409
+ "message": {
1410
+ "type": "string"
1411
+ }
1412
+ },
1413
+ "required": [
1414
+ "_tag",
1415
+ "message"
1416
+ ],
1417
+ "additionalProperties": true
1418
+ },
1419
+ "ForbiddenEncoded": {
1420
+ "type": "object",
1421
+ "properties": {
1422
+ "_tag": {
1423
+ "type": "string",
1424
+ "enum": [
1425
+ "Forbidden"
1426
+ ]
1427
+ },
1428
+ "message": {
1429
+ "type": "string"
1430
+ },
1431
+ "action": {
1432
+ "type": "string"
1433
+ }
1434
+ },
1435
+ "required": [
1436
+ "_tag",
1437
+ "message",
1438
+ "action"
1439
+ ],
1440
+ "additionalProperties": true
1441
+ },
1442
+ "InvalidInputEncoded": {
1443
+ "type": "object",
1444
+ "properties": {
1445
+ "_tag": {
1446
+ "type": "string",
1447
+ "enum": [
1448
+ "InvalidInput"
1449
+ ]
1450
+ },
1451
+ "message": {
1452
+ "type": "string"
1453
+ }
1454
+ },
1455
+ "required": [
1456
+ "_tag",
1457
+ "message"
1458
+ ],
1459
+ "additionalProperties": true
1460
+ }
1461
+ }
1462
+ }
1463
+ },
1464
+ "nextCommand": {
1465
+ "description": "POST /kernel/device/commands/next (the device credential): take the oldest queued command of the kinds the device serves now (a long poll of up to 30 s). A command runs at most once: one not reported before its deadline fails, and is never handed out again.",
1466
+ "input": {
1467
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1468
+ "type": "object",
1469
+ "properties": {
1470
+ "kinds": {
1471
+ "type": "array",
1472
+ "items": {
1473
+ "type": "string",
1474
+ "enum": [
1475
+ "terminal",
1476
+ "files",
1477
+ "browser",
1478
+ "computer"
1479
+ ]
1480
+ }
1481
+ },
1482
+ "waitMs": {
1483
+ "anyOf": [
1484
+ {
1485
+ "type": "number"
1486
+ },
1487
+ {
1488
+ "type": "string",
1489
+ "enum": [
1490
+ "Infinity",
1491
+ "-Infinity",
1492
+ "NaN"
1493
+ ]
1494
+ }
1495
+ ]
1496
+ }
1497
+ },
1498
+ "required": [
1499
+ "kinds"
1500
+ ],
1501
+ "additionalProperties": true
1502
+ },
1503
+ "output": {
1504
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1505
+ "type": "object",
1506
+ "properties": {
1507
+ "command": {
1508
+ "anyOf": [
1509
+ {
1510
+ "type": "object",
1511
+ "properties": {
1512
+ "id": {
1513
+ "type": "string"
1514
+ },
1515
+ "lease": {
1516
+ "type": "string"
1517
+ },
1518
+ "operation": {
1519
+ "type": "string",
1520
+ "enum": [
1521
+ "terminal.exec",
1522
+ "files.read",
1523
+ "files.write",
1524
+ "files.edit",
1525
+ "files.list",
1526
+ "files.search",
1527
+ "browser.observe",
1528
+ "browser.navigate",
1529
+ "browser.click",
1530
+ "browser.type",
1531
+ "browser.scroll",
1532
+ "computer.observe",
1533
+ "computer.click",
1534
+ "computer.type",
1535
+ "computer.key",
1536
+ "computer.scroll"
1537
+ ]
1538
+ },
1539
+ "input": {},
1540
+ "timeoutMs": {
1541
+ "anyOf": [
1542
+ {
1543
+ "type": "number"
1544
+ },
1545
+ {
1546
+ "type": "string",
1547
+ "enum": [
1548
+ "Infinity",
1549
+ "-Infinity",
1550
+ "NaN"
1551
+ ]
1552
+ }
1553
+ ]
1554
+ },
1555
+ "deadline": {
1556
+ "type": "string"
1557
+ }
1558
+ },
1559
+ "required": [
1560
+ "id",
1561
+ "lease",
1562
+ "operation",
1563
+ "input",
1564
+ "timeoutMs",
1565
+ "deadline"
1566
+ ],
1567
+ "additionalProperties": true
1568
+ },
1569
+ {
1570
+ "type": "null"
1571
+ }
1572
+ ]
1573
+ }
1574
+ },
1575
+ "required": [
1576
+ "command"
1577
+ ],
1578
+ "additionalProperties": true
1579
+ },
1580
+ "errors": {
1581
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1582
+ "anyOf": [
1583
+ {
1584
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1585
+ }
1586
+ ],
1587
+ "$defs": {
1588
+ "UnauthenticatedEncoded": {
1589
+ "type": "object",
1590
+ "properties": {
1591
+ "_tag": {
1592
+ "type": "string",
1593
+ "enum": [
1594
+ "Unauthenticated"
1595
+ ]
1596
+ },
1597
+ "message": {
1598
+ "type": "string"
1599
+ }
1600
+ },
1601
+ "required": [
1602
+ "_tag",
1603
+ "message"
1604
+ ],
1605
+ "additionalProperties": true
1606
+ }
1607
+ }
1608
+ }
1609
+ },
1610
+ "completeCommand": {
1611
+ "description": "POST /kernel/device/commands/complete (the device credential, the command's lease): settle the command once with its result. The same report again is duplicate: true; one after the deadline or under another lease is refused (InvalidInput).",
1612
+ "input": {
1613
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1614
+ "type": "object",
1615
+ "properties": {
1616
+ "commandId": {
1617
+ "type": "string"
1618
+ },
1619
+ "lease": {
1620
+ "type": "string"
1621
+ },
1622
+ "outcome": {
1623
+ "type": "string",
1624
+ "enum": [
1625
+ "succeeded",
1626
+ "failed",
1627
+ "cancelled"
1628
+ ]
1629
+ },
1630
+ "result": {},
1631
+ "error": {
1632
+ "anyOf": [
1633
+ {
1634
+ "type": "string",
1635
+ "maxLength": 10000
1636
+ },
1637
+ {
1638
+ "type": "null"
1639
+ }
1640
+ ]
1641
+ }
1642
+ },
1643
+ "required": [
1644
+ "commandId",
1645
+ "lease",
1646
+ "outcome",
1647
+ "result",
1648
+ "error"
1649
+ ],
1650
+ "additionalProperties": true
1651
+ },
1652
+ "output": {
1653
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1654
+ "type": "object",
1655
+ "properties": {
1656
+ "settled": {
1657
+ "type": "boolean"
1658
+ },
1659
+ "duplicate": {
1660
+ "type": "boolean"
1661
+ }
1662
+ },
1663
+ "required": [
1664
+ "settled",
1665
+ "duplicate"
1666
+ ],
1667
+ "additionalProperties": true
1668
+ },
1669
+ "errors": {
1670
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1671
+ "anyOf": [
1672
+ {
1673
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1674
+ },
1675
+ {
1676
+ "$ref": "#/$defs/InvalidInputEncoded"
1677
+ }
1678
+ ],
1679
+ "$defs": {
1680
+ "UnauthenticatedEncoded": {
1681
+ "type": "object",
1682
+ "properties": {
1683
+ "_tag": {
1684
+ "type": "string",
1685
+ "enum": [
1686
+ "Unauthenticated"
1687
+ ]
1688
+ },
1689
+ "message": {
1690
+ "type": "string"
1691
+ }
1692
+ },
1693
+ "required": [
1694
+ "_tag",
1695
+ "message"
1696
+ ],
1697
+ "additionalProperties": true
1698
+ },
1699
+ "InvalidInputEncoded": {
1700
+ "type": "object",
1701
+ "properties": {
1702
+ "_tag": {
1703
+ "type": "string",
1704
+ "enum": [
1705
+ "InvalidInput"
1706
+ ]
1707
+ },
1708
+ "message": {
1709
+ "type": "string"
1710
+ }
1711
+ },
1712
+ "required": [
1713
+ "_tag",
1714
+ "message"
1715
+ ],
1716
+ "additionalProperties": true
1717
+ }
1718
+ }
1719
+ }
1720
+ },
1721
+ "checkCommand": {
1722
+ "description": "POST /kernel/device/commands/check (the device credential, the command's lease): whether a command the device took should stop: a cancellation was asked, or the device no longer holds it. The device asks just before it acts and every second while it waits or acts.",
1723
+ "input": {
1724
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1725
+ "type": "object",
1726
+ "properties": {
1727
+ "commandId": {
1728
+ "type": "string"
1729
+ },
1730
+ "lease": {
1731
+ "type": "string"
1732
+ }
1733
+ },
1734
+ "required": [
1735
+ "commandId",
1736
+ "lease"
1737
+ ],
1738
+ "additionalProperties": true
1739
+ },
1740
+ "output": {
1741
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1742
+ "type": "object",
1743
+ "properties": {
1744
+ "stop": {
1745
+ "type": "boolean"
1746
+ }
1747
+ },
1748
+ "required": [
1749
+ "stop"
1750
+ ],
1751
+ "additionalProperties": true
1752
+ },
1753
+ "errors": {
1754
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1755
+ "anyOf": [
1756
+ {
1757
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1758
+ }
1759
+ ],
1760
+ "$defs": {
1761
+ "UnauthenticatedEncoded": {
1762
+ "type": "object",
1763
+ "properties": {
1764
+ "_tag": {
1765
+ "type": "string",
1766
+ "enum": [
1767
+ "Unauthenticated"
1768
+ ]
1769
+ },
1770
+ "message": {
1771
+ "type": "string"
1772
+ }
1773
+ },
1774
+ "required": [
1775
+ "_tag",
1776
+ "message"
1777
+ ],
1778
+ "additionalProperties": true
1779
+ }
1780
+ }
1781
+ }
1782
+ },
1783
+ "reportCapabilities": {
1784
+ "description": "POST /kernel/device/capabilities (the device credential): what the device offers now (harnesses, command kinds, tools-only), replacing what it reported before.",
1785
+ "input": {
1786
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1787
+ "type": "object",
1788
+ "properties": {
1789
+ "capabilities": {
1790
+ "type": "object",
1791
+ "properties": {
1792
+ "harnesses": {
1793
+ "type": "array",
1794
+ "items": {
1795
+ "type": "string",
1796
+ "enum": [
1797
+ "claude-code",
1798
+ "codex",
1799
+ "opencode",
1800
+ "acp"
1801
+ ]
1802
+ }
1803
+ },
1804
+ "computerUse": {
1805
+ "type": "boolean"
1806
+ },
1807
+ "browserExtension": {
1808
+ "type": "boolean"
1809
+ },
1810
+ "commands": {
1811
+ "type": "array",
1812
+ "items": {
1813
+ "type": "string",
1814
+ "enum": [
1815
+ "terminal",
1816
+ "files",
1817
+ "browser",
1818
+ "computer"
1819
+ ]
1820
+ }
1821
+ },
1822
+ "toolsOnly": {
1823
+ "type": "boolean"
1824
+ }
1825
+ },
1826
+ "required": [
1827
+ "harnesses",
1828
+ "computerUse",
1829
+ "browserExtension"
1830
+ ],
1831
+ "additionalProperties": true
1832
+ }
1833
+ },
1834
+ "required": [
1835
+ "capabilities"
1836
+ ],
1837
+ "additionalProperties": true
1838
+ },
1839
+ "output": {
1840
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1841
+ "type": "object",
1842
+ "properties": {
1843
+ "id": {
1844
+ "type": "string"
1845
+ },
1846
+ "orgId": {
1847
+ "type": "string"
1848
+ },
1849
+ "subject": {
1850
+ "type": "string"
1851
+ },
1852
+ "subjectKind": {
1853
+ "type": "string",
1854
+ "enum": [
1855
+ "user",
1856
+ "service"
1857
+ ]
1858
+ },
1859
+ "pairedBy": {
1860
+ "type": "string"
1861
+ },
1862
+ "name": {
1863
+ "type": "string"
1864
+ },
1865
+ "kind": {
1866
+ "type": "string",
1867
+ "enum": [
1868
+ "desktop",
1869
+ "runner"
1870
+ ]
1871
+ },
1872
+ "platform": {
1873
+ "type": "string"
1874
+ },
1875
+ "capabilities": {
1876
+ "type": "object",
1877
+ "properties": {
1878
+ "harnesses": {
1879
+ "type": "array",
1880
+ "items": {
1881
+ "type": "string",
1882
+ "enum": [
1883
+ "claude-code",
1884
+ "codex",
1885
+ "opencode",
1886
+ "acp"
1887
+ ]
1888
+ }
1889
+ },
1890
+ "computerUse": {
1891
+ "type": "boolean"
1892
+ },
1893
+ "browserExtension": {
1894
+ "type": "boolean"
1895
+ },
1896
+ "commands": {
1897
+ "type": "array",
1898
+ "items": {
1899
+ "type": "string",
1900
+ "enum": [
1901
+ "terminal",
1902
+ "files",
1903
+ "browser",
1904
+ "computer"
1905
+ ]
1906
+ }
1907
+ },
1908
+ "toolsOnly": {
1909
+ "type": "boolean"
1910
+ }
1911
+ },
1912
+ "required": [
1913
+ "harnesses",
1914
+ "computerUse",
1915
+ "browserExtension"
1916
+ ],
1917
+ "additionalProperties": true
1918
+ },
1919
+ "createdAt": {
1920
+ "type": "string"
1921
+ },
1922
+ "lastSeenAt": {
1923
+ "anyOf": [
1924
+ {
1925
+ "type": "string"
1926
+ },
1927
+ {
1928
+ "type": "null"
1929
+ }
1930
+ ]
1931
+ },
1932
+ "revokedAt": {
1933
+ "anyOf": [
1934
+ {
1935
+ "type": "string"
1936
+ },
1937
+ {
1938
+ "type": "null"
1939
+ }
1940
+ ]
1941
+ },
1942
+ "push": {
1943
+ "type": "boolean"
1944
+ }
1945
+ },
1946
+ "required": [
1947
+ "id",
1948
+ "orgId",
1949
+ "subject",
1950
+ "subjectKind",
1951
+ "pairedBy",
1952
+ "name",
1953
+ "kind",
1954
+ "platform",
1955
+ "capabilities",
1956
+ "createdAt",
1957
+ "lastSeenAt",
1958
+ "revokedAt"
1959
+ ],
1960
+ "additionalProperties": true
1961
+ },
1962
+ "errors": {
1963
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1964
+ "anyOf": [
1965
+ {
1966
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1967
+ }
1968
+ ],
1969
+ "$defs": {
1970
+ "UnauthenticatedEncoded": {
1971
+ "type": "object",
1972
+ "properties": {
1973
+ "_tag": {
1974
+ "type": "string",
1975
+ "enum": [
1976
+ "Unauthenticated"
1977
+ ]
1978
+ },
1979
+ "message": {
1980
+ "type": "string"
1981
+ }
1982
+ },
1983
+ "required": [
1984
+ "_tag",
1985
+ "message"
1986
+ ],
1987
+ "additionalProperties": true
1988
+ }
1989
+ }
1990
+ }
1991
+ },
1992
+ "registerPush": {
1993
+ "description": "POST /kernel/device/push (the device credential): register the push subscription of the host the daemon runs beside (Web Push, APNs or FCM), or remove it with null. One per device; revoking the device removes it.",
1994
+ "input": {
1995
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1996
+ "type": "object",
1997
+ "properties": {
1998
+ "subscription": {
1999
+ "anyOf": [
2000
+ {
2001
+ "type": "object",
2002
+ "properties": {
2003
+ "kind": {
2004
+ "type": "string",
2005
+ "enum": [
2006
+ "web-push"
2007
+ ]
2008
+ },
2009
+ "endpoint": {
2010
+ "type": "string"
2011
+ },
2012
+ "keys": {
2013
+ "type": "object",
2014
+ "properties": {
2015
+ "p256dh": {
2016
+ "type": "string"
2017
+ },
2018
+ "auth": {
2019
+ "type": "string"
2020
+ }
2021
+ },
2022
+ "required": [
2023
+ "p256dh",
2024
+ "auth"
2025
+ ],
2026
+ "additionalProperties": true
2027
+ }
2028
+ },
2029
+ "required": [
2030
+ "kind",
2031
+ "endpoint",
2032
+ "keys"
2033
+ ],
2034
+ "additionalProperties": true
2035
+ },
2036
+ {
2037
+ "type": "object",
2038
+ "properties": {
2039
+ "kind": {
2040
+ "type": "string",
2041
+ "enum": [
2042
+ "apns",
2043
+ "fcm"
2044
+ ]
2045
+ },
2046
+ "token": {
2047
+ "type": "string"
2048
+ }
2049
+ },
2050
+ "required": [
2051
+ "kind",
2052
+ "token"
2053
+ ],
2054
+ "additionalProperties": true
2055
+ },
2056
+ {
2057
+ "type": "null"
2058
+ }
2059
+ ]
2060
+ }
2061
+ },
2062
+ "required": [
2063
+ "subscription"
2064
+ ],
2065
+ "additionalProperties": true
2066
+ },
2067
+ "output": {
2068
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2069
+ "type": "object",
2070
+ "properties": {
2071
+ "registered": {
2072
+ "type": "boolean"
2073
+ }
2074
+ },
2075
+ "required": [
2076
+ "registered"
2077
+ ],
2078
+ "additionalProperties": true
2079
+ },
2080
+ "errors": {
2081
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2082
+ "anyOf": [
2083
+ {
2084
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2085
+ },
2086
+ {
2087
+ "$ref": "#/$defs/InvalidInputEncoded"
2088
+ }
2089
+ ],
2090
+ "$defs": {
2091
+ "UnauthenticatedEncoded": {
2092
+ "type": "object",
2093
+ "properties": {
2094
+ "_tag": {
2095
+ "type": "string",
2096
+ "enum": [
2097
+ "Unauthenticated"
2098
+ ]
2099
+ },
2100
+ "message": {
2101
+ "type": "string"
2102
+ }
2103
+ },
2104
+ "required": [
2105
+ "_tag",
2106
+ "message"
2107
+ ],
2108
+ "additionalProperties": true
2109
+ },
2110
+ "InvalidInputEncoded": {
2111
+ "type": "object",
2112
+ "properties": {
2113
+ "_tag": {
2114
+ "type": "string",
2115
+ "enum": [
2116
+ "InvalidInput"
2117
+ ]
2118
+ },
2119
+ "message": {
2120
+ "type": "string"
2121
+ }
2122
+ },
2123
+ "required": [
2124
+ "_tag",
2125
+ "message"
2126
+ ],
2127
+ "additionalProperties": true
2128
+ }
2129
+ }
2130
+ }
2131
+ }
2132
+ },
2133
+ "types": {
2134
+ "DeviceInfo": {
2135
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2136
+ "type": "object",
2137
+ "properties": {
2138
+ "id": {
2139
+ "type": "string"
2140
+ },
2141
+ "orgId": {
2142
+ "type": "string"
2143
+ },
2144
+ "subject": {
2145
+ "type": "string"
2146
+ },
2147
+ "subjectKind": {
2148
+ "type": "string",
2149
+ "enum": [
2150
+ "user",
2151
+ "service"
2152
+ ]
2153
+ },
2154
+ "pairedBy": {
2155
+ "type": "string"
2156
+ },
2157
+ "name": {
2158
+ "type": "string"
2159
+ },
2160
+ "kind": {
2161
+ "type": "string",
2162
+ "enum": [
2163
+ "desktop",
2164
+ "runner"
2165
+ ]
2166
+ },
2167
+ "platform": {
2168
+ "type": "string"
2169
+ },
2170
+ "capabilities": {
2171
+ "type": "object",
2172
+ "properties": {
2173
+ "harnesses": {
2174
+ "type": "array",
2175
+ "items": {
2176
+ "type": "string",
2177
+ "enum": [
2178
+ "claude-code",
2179
+ "codex",
2180
+ "opencode",
2181
+ "acp"
2182
+ ]
2183
+ }
2184
+ },
2185
+ "computerUse": {
2186
+ "type": "boolean"
2187
+ },
2188
+ "browserExtension": {
2189
+ "type": "boolean"
2190
+ },
2191
+ "commands": {
2192
+ "type": "array",
2193
+ "items": {
2194
+ "type": "string",
2195
+ "enum": [
2196
+ "terminal",
2197
+ "files",
2198
+ "browser",
2199
+ "computer"
2200
+ ]
2201
+ }
2202
+ },
2203
+ "toolsOnly": {
2204
+ "type": "boolean"
2205
+ }
2206
+ },
2207
+ "required": [
2208
+ "harnesses",
2209
+ "computerUse",
2210
+ "browserExtension"
2211
+ ],
2212
+ "additionalProperties": true
2213
+ },
2214
+ "createdAt": {
2215
+ "type": "string"
2216
+ },
2217
+ "lastSeenAt": {
2218
+ "anyOf": [
2219
+ {
2220
+ "type": "string"
2221
+ },
2222
+ {
2223
+ "type": "null"
2224
+ }
2225
+ ]
2226
+ },
2227
+ "revokedAt": {
2228
+ "anyOf": [
2229
+ {
2230
+ "type": "string"
2231
+ },
2232
+ {
2233
+ "type": "null"
2234
+ }
2235
+ ]
2236
+ },
2237
+ "push": {
2238
+ "type": "boolean"
2239
+ }
2240
+ },
2241
+ "required": [
2242
+ "id",
2243
+ "orgId",
2244
+ "subject",
2245
+ "subjectKind",
2246
+ "pairedBy",
2247
+ "name",
2248
+ "kind",
2249
+ "platform",
2250
+ "capabilities",
2251
+ "createdAt",
2252
+ "lastSeenAt",
2253
+ "revokedAt"
2254
+ ],
2255
+ "additionalProperties": true
2256
+ },
2257
+ "DeviceSession": {
2258
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2259
+ "type": "object",
2260
+ "properties": {
2261
+ "id": {
2262
+ "type": "string"
2263
+ },
2264
+ "kind": {
2265
+ "type": "string",
2266
+ "enum": [
2267
+ "shell",
2268
+ "browser-extension",
2269
+ "cli",
2270
+ "harness",
2271
+ "computer-use",
2272
+ "desktop-app",
2273
+ "terminal"
2274
+ ]
2275
+ },
2276
+ "label": {
2277
+ "type": "string"
2278
+ },
2279
+ "startedAt": {
2280
+ "type": "string"
2281
+ },
2282
+ "endedAt": {
2283
+ "anyOf": [
2284
+ {
2285
+ "type": "string"
2286
+ },
2287
+ {
2288
+ "type": "null"
2289
+ }
2290
+ ]
2291
+ },
2292
+ "detail": {
2293
+ "anyOf": [
2294
+ {
2295
+ "type": "string"
2296
+ },
2297
+ {
2298
+ "type": "null"
2299
+ }
2300
+ ]
2301
+ }
2302
+ },
2303
+ "required": [
2304
+ "id",
2305
+ "kind",
2306
+ "label",
2307
+ "startedAt",
2308
+ "endedAt",
2309
+ "detail"
2310
+ ],
2311
+ "additionalProperties": true
2312
+ },
2313
+ "ComputerUseCapability": {
2314
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2315
+ "type": "object",
2316
+ "properties": {
2317
+ "available": {
2318
+ "type": "boolean"
2319
+ },
2320
+ "reason": {
2321
+ "type": "string"
2322
+ }
2323
+ },
2324
+ "required": [
2325
+ "available",
2326
+ "reason"
2327
+ ],
2328
+ "additionalProperties": true
2329
+ },
2330
+ "DeviceAvailability": {
2331
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2332
+ "type": "object",
2333
+ "properties": {
2334
+ "terminal": {
2335
+ "type": "object",
2336
+ "properties": {
2337
+ "enabled": {
2338
+ "type": "boolean"
2339
+ },
2340
+ "available": {
2341
+ "type": "boolean"
2342
+ },
2343
+ "reason": {
2344
+ "anyOf": [
2345
+ {
2346
+ "type": "string"
2347
+ },
2348
+ {
2349
+ "type": "null"
2350
+ }
2351
+ ]
2352
+ }
2353
+ },
2354
+ "required": [
2355
+ "enabled",
2356
+ "available",
2357
+ "reason"
2358
+ ],
2359
+ "additionalProperties": true
2360
+ },
2361
+ "files": {
2362
+ "type": "object",
2363
+ "properties": {
2364
+ "enabled": {
2365
+ "type": "boolean"
2366
+ },
2367
+ "available": {
2368
+ "type": "boolean"
2369
+ },
2370
+ "reason": {
2371
+ "anyOf": [
2372
+ {
2373
+ "type": "string"
2374
+ },
2375
+ {
2376
+ "type": "null"
2377
+ }
2378
+ ]
2379
+ }
2380
+ },
2381
+ "required": [
2382
+ "enabled",
2383
+ "available",
2384
+ "reason"
2385
+ ],
2386
+ "additionalProperties": true
2387
+ },
2388
+ "browser": {
2389
+ "type": "object",
2390
+ "properties": {
2391
+ "enabled": {
2392
+ "type": "boolean"
2393
+ },
2394
+ "available": {
2395
+ "type": "boolean"
2396
+ },
2397
+ "reason": {
2398
+ "anyOf": [
2399
+ {
2400
+ "type": "string"
2401
+ },
2402
+ {
2403
+ "type": "null"
2404
+ }
2405
+ ]
2406
+ }
2407
+ },
2408
+ "required": [
2409
+ "enabled",
2410
+ "available",
2411
+ "reason"
2412
+ ],
2413
+ "additionalProperties": true
2414
+ },
2415
+ "computer": {
2416
+ "type": "object",
2417
+ "properties": {
2418
+ "enabled": {
2419
+ "type": "boolean"
2420
+ },
2421
+ "available": {
2422
+ "type": "boolean"
2423
+ },
2424
+ "reason": {
2425
+ "anyOf": [
2426
+ {
2427
+ "type": "string"
2428
+ },
2429
+ {
2430
+ "type": "null"
2431
+ }
2432
+ ]
2433
+ }
2434
+ },
2435
+ "required": [
2436
+ "enabled",
2437
+ "available",
2438
+ "reason"
2439
+ ],
2440
+ "additionalProperties": true
2441
+ },
2442
+ "pty": {
2443
+ "type": "boolean"
2444
+ },
2445
+ "toolsOnly": {
2446
+ "type": "boolean"
2447
+ }
2448
+ },
2449
+ "required": [
2450
+ "terminal",
2451
+ "files",
2452
+ "browser",
2453
+ "computer",
2454
+ "pty",
2455
+ "toolsOnly"
2456
+ ],
2457
+ "additionalProperties": true
2458
+ },
2459
+ "CommandRecord": {
2460
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2461
+ "type": "object",
2462
+ "properties": {
2463
+ "id": {
2464
+ "type": "string"
2465
+ },
2466
+ "deviceId": {
2467
+ "type": "string"
2468
+ },
2469
+ "requestedBy": {
2470
+ "type": "string"
2471
+ },
2472
+ "source": {
2473
+ "type": "string",
2474
+ "enum": [
2475
+ "person",
2476
+ "agent",
2477
+ "system"
2478
+ ]
2479
+ },
2480
+ "operation": {
2481
+ "type": "string",
2482
+ "enum": [
2483
+ "terminal.exec",
2484
+ "files.read",
2485
+ "files.write",
2486
+ "files.edit",
2487
+ "files.list",
2488
+ "files.search",
2489
+ "browser.observe",
2490
+ "browser.navigate",
2491
+ "browser.click",
2492
+ "browser.type",
2493
+ "browser.scroll",
2494
+ "computer.observe",
2495
+ "computer.click",
2496
+ "computer.type",
2497
+ "computer.key",
2498
+ "computer.scroll"
2499
+ ]
2500
+ },
2501
+ "input": {},
2502
+ "status": {
2503
+ "type": "string",
2504
+ "enum": [
2505
+ "queued",
2506
+ "running",
2507
+ "succeeded",
2508
+ "failed",
2509
+ "expired",
2510
+ "cancelled"
2511
+ ]
2512
+ },
2513
+ "result": {},
2514
+ "error": {
2515
+ "anyOf": [
2516
+ {
2517
+ "type": "string"
2518
+ },
2519
+ {
2520
+ "type": "null"
2521
+ }
2522
+ ]
2523
+ },
2524
+ "createdAt": {
2525
+ "type": "string"
2526
+ },
2527
+ "completedAt": {
2528
+ "anyOf": [
2529
+ {
2530
+ "type": "string"
2531
+ },
2532
+ {
2533
+ "type": "null"
2534
+ }
2535
+ ]
2536
+ },
2537
+ "cancelRequestedAt": {
2538
+ "anyOf": [
2539
+ {
2540
+ "type": "string"
2541
+ },
2542
+ {
2543
+ "type": "null"
2544
+ }
2545
+ ]
2546
+ }
2547
+ },
2548
+ "required": [
2549
+ "id",
2550
+ "deviceId",
2551
+ "requestedBy",
2552
+ "source",
2553
+ "operation",
2554
+ "input",
2555
+ "status",
2556
+ "result",
2557
+ "error",
2558
+ "createdAt",
2559
+ "completedAt",
2560
+ "cancelRequestedAt"
2561
+ ],
2562
+ "additionalProperties": true
2563
+ },
2564
+ "ClaimedCommand": {
2565
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2566
+ "type": "object",
2567
+ "properties": {
2568
+ "id": {
2569
+ "type": "string"
2570
+ },
2571
+ "lease": {
2572
+ "type": "string"
2573
+ },
2574
+ "operation": {
2575
+ "type": "string",
2576
+ "enum": [
2577
+ "terminal.exec",
2578
+ "files.read",
2579
+ "files.write",
2580
+ "files.edit",
2581
+ "files.list",
2582
+ "files.search",
2583
+ "browser.observe",
2584
+ "browser.navigate",
2585
+ "browser.click",
2586
+ "browser.type",
2587
+ "browser.scroll",
2588
+ "computer.observe",
2589
+ "computer.click",
2590
+ "computer.type",
2591
+ "computer.key",
2592
+ "computer.scroll"
2593
+ ]
2594
+ },
2595
+ "input": {},
2596
+ "timeoutMs": {
2597
+ "anyOf": [
2598
+ {
2599
+ "type": "number"
2600
+ },
2601
+ {
2602
+ "type": "string",
2603
+ "enum": [
2604
+ "Infinity",
2605
+ "-Infinity",
2606
+ "NaN"
2607
+ ]
2608
+ }
2609
+ ]
2610
+ },
2611
+ "deadline": {
2612
+ "type": "string"
2613
+ }
2614
+ },
2615
+ "required": [
2616
+ "id",
2617
+ "lease",
2618
+ "operation",
2619
+ "input",
2620
+ "timeoutMs",
2621
+ "deadline"
2622
+ ],
2623
+ "additionalProperties": true
2624
+ }
2625
+ }
2626
+ }