@eloxiv/contracts 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -2
  3. package/dist/Agent.d.ts +792 -0
  4. package/dist/Agent.d.ts.map +1 -0
  5. package/dist/Agent.js +610 -0
  6. package/dist/Agent.js.map +1 -0
  7. package/dist/Analytics.d.ts +46 -0
  8. package/dist/Analytics.d.ts.map +1 -0
  9. package/dist/Analytics.js +89 -0
  10. package/dist/Analytics.js.map +1 -0
  11. package/dist/Approval.d.ts +70 -0
  12. package/dist/Approval.d.ts.map +1 -0
  13. package/dist/Approval.js +127 -0
  14. package/dist/Approval.js.map +1 -0
  15. package/dist/Catalog.d.ts +238 -0
  16. package/dist/Catalog.d.ts.map +1 -0
  17. package/dist/Catalog.js +169 -0
  18. package/dist/Catalog.js.map +1 -0
  19. package/dist/Checklist.d.ts +99 -0
  20. package/dist/Checklist.d.ts.map +1 -0
  21. package/dist/Checklist.js +105 -0
  22. package/dist/Checklist.js.map +1 -0
  23. package/dist/Data.d.ts +107 -0
  24. package/dist/Data.d.ts.map +1 -0
  25. package/dist/Data.js +93 -0
  26. package/dist/Data.js.map +1 -0
  27. package/dist/Devices.d.ts +857 -0
  28. package/dist/Devices.d.ts.map +1 -0
  29. package/dist/Devices.js +590 -0
  30. package/dist/Devices.js.map +1 -0
  31. package/dist/Durable.d.ts +406 -0
  32. package/dist/Durable.d.ts.map +1 -0
  33. package/dist/Durable.js +203 -0
  34. package/dist/Durable.js.map +1 -0
  35. package/dist/Errors.d.ts +95 -0
  36. package/dist/Errors.d.ts.map +1 -0
  37. package/dist/Errors.js +72 -0
  38. package/dist/Errors.js.map +1 -0
  39. package/dist/JsonSchema.d.ts +355 -0
  40. package/dist/JsonSchema.d.ts.map +1 -0
  41. package/dist/JsonSchema.js +151 -0
  42. package/dist/JsonSchema.js.map +1 -0
  43. package/dist/Manifest.d.ts +353 -0
  44. package/dist/Manifest.d.ts.map +1 -0
  45. package/dist/Manifest.js +894 -0
  46. package/dist/Manifest.js.map +1 -0
  47. package/dist/Module.d.ts +447 -0
  48. package/dist/Module.d.ts.map +1 -0
  49. package/dist/Module.js +221 -0
  50. package/dist/Module.js.map +1 -0
  51. package/dist/Optimistic.d.ts +192 -0
  52. package/dist/Optimistic.d.ts.map +1 -0
  53. package/dist/Optimistic.js +319 -0
  54. package/dist/Optimistic.js.map +1 -0
  55. package/dist/Projection.d.ts +163 -0
  56. package/dist/Projection.d.ts.map +1 -0
  57. package/dist/Projection.js +158 -0
  58. package/dist/Projection.js.map +1 -0
  59. package/dist/Proposals.d.ts +103 -0
  60. package/dist/Proposals.d.ts.map +1 -0
  61. package/dist/Proposals.js +72 -0
  62. package/dist/Proposals.js.map +1 -0
  63. package/dist/Receipt.d.ts +243 -0
  64. package/dist/Receipt.d.ts.map +1 -0
  65. package/dist/Receipt.js +108 -0
  66. package/dist/Receipt.js.map +1 -0
  67. package/dist/Records.d.ts +297 -0
  68. package/dist/Records.d.ts.map +1 -0
  69. package/dist/Records.js +171 -0
  70. package/dist/Records.js.map +1 -0
  71. package/dist/Render.d.ts +207 -0
  72. package/dist/Render.d.ts.map +1 -0
  73. package/dist/Render.js +502 -0
  74. package/dist/Render.js.map +1 -0
  75. package/dist/Rpc.d.ts +115 -0
  76. package/dist/Rpc.d.ts.map +1 -0
  77. package/dist/Rpc.js +68 -0
  78. package/dist/Rpc.js.map +1 -0
  79. package/dist/SearchLanguages.d.ts +4 -0
  80. package/dist/SearchLanguages.d.ts.map +1 -0
  81. package/dist/SearchLanguages.js +33 -0
  82. package/dist/SearchLanguages.js.map +1 -0
  83. package/dist/Service.d.ts +59 -0
  84. package/dist/Service.d.ts.map +1 -0
  85. package/dist/Service.js +38 -0
  86. package/dist/Service.js.map +1 -0
  87. package/dist/Versions.d.ts +9 -0
  88. package/dist/Versions.d.ts.map +1 -0
  89. package/dist/Versions.js +78 -0
  90. package/dist/Versions.js.map +1 -0
  91. package/dist/contracts/ActionConsent.d.ts +189 -0
  92. package/dist/contracts/ActionConsent.d.ts.map +1 -0
  93. package/dist/contracts/ActionConsent.js +129 -0
  94. package/dist/contracts/ActionConsent.js.map +1 -0
  95. package/dist/contracts/ActionRegistry.d.ts +149 -0
  96. package/dist/contracts/ActionRegistry.d.ts.map +1 -0
  97. package/dist/contracts/ActionRegistry.js +37 -0
  98. package/dist/contracts/ActionRegistry.js.map +1 -0
  99. package/dist/contracts/Actor.d.ts +129 -0
  100. package/dist/contracts/Actor.d.ts.map +1 -0
  101. package/dist/contracts/Actor.js +47 -0
  102. package/dist/contracts/Actor.js.map +1 -0
  103. package/dist/contracts/AgentResources.d.ts +248 -0
  104. package/dist/contracts/AgentResources.d.ts.map +1 -0
  105. package/dist/contracts/AgentResources.js +158 -0
  106. package/dist/contracts/AgentResources.js.map +1 -0
  107. package/dist/contracts/AgentRuntime.d.ts +453 -0
  108. package/dist/contracts/AgentRuntime.d.ts.map +1 -0
  109. package/dist/contracts/AgentRuntime.js +117 -0
  110. package/dist/contracts/AgentRuntime.js.map +1 -0
  111. package/dist/contracts/Approvals.d.ts +303 -0
  112. package/dist/contracts/Approvals.d.ts.map +1 -0
  113. package/dist/contracts/Approvals.js +117 -0
  114. package/dist/contracts/Approvals.js.map +1 -0
  115. package/dist/contracts/Audit.d.ts +510 -0
  116. package/dist/contracts/Audit.d.ts.map +1 -0
  117. package/dist/contracts/Audit.js +139 -0
  118. package/dist/contracts/Audit.js.map +1 -0
  119. package/dist/contracts/CalendarProvider.d.ts +572 -0
  120. package/dist/contracts/CalendarProvider.d.ts.map +1 -0
  121. package/dist/contracts/CalendarProvider.js +203 -0
  122. package/dist/contracts/CalendarProvider.js.map +1 -0
  123. package/dist/contracts/Capability.d.ts +197 -0
  124. package/dist/contracts/Capability.d.ts.map +1 -0
  125. package/dist/contracts/Capability.js +189 -0
  126. package/dist/contracts/Capability.js.map +1 -0
  127. package/dist/contracts/ClientSDK.d.ts +250 -0
  128. package/dist/contracts/ClientSDK.d.ts.map +1 -0
  129. package/dist/contracts/ClientSDK.js +184 -0
  130. package/dist/contracts/ClientSDK.js.map +1 -0
  131. package/dist/contracts/CollabDocument.d.ts +781 -0
  132. package/dist/contracts/CollabDocument.d.ts.map +1 -0
  133. package/dist/contracts/CollabDocument.js +364 -0
  134. package/dist/contracts/CollabDocument.js.map +1 -0
  135. package/dist/contracts/Command.d.ts +183 -0
  136. package/dist/contracts/Command.d.ts.map +1 -0
  137. package/dist/contracts/Command.js +66 -0
  138. package/dist/contracts/Command.js.map +1 -0
  139. package/dist/contracts/Connections.d.ts +612 -0
  140. package/dist/contracts/Connections.d.ts.map +1 -0
  141. package/dist/contracts/Connections.js +323 -0
  142. package/dist/contracts/Connections.js.map +1 -0
  143. package/dist/contracts/ContextAccounting.d.ts +79 -0
  144. package/dist/contracts/ContextAccounting.d.ts.map +1 -0
  145. package/dist/contracts/ContextAccounting.js +32 -0
  146. package/dist/contracts/ContextAccounting.js.map +1 -0
  147. package/dist/contracts/Daemon.d.ts +486 -0
  148. package/dist/contracts/Daemon.d.ts.map +1 -0
  149. package/dist/contracts/Daemon.js +192 -0
  150. package/dist/contracts/Daemon.js.map +1 -0
  151. package/dist/contracts/DbTx.d.ts +149 -0
  152. package/dist/contracts/DbTx.d.ts.map +1 -0
  153. package/dist/contracts/DbTx.js +94 -0
  154. package/dist/contracts/DbTx.js.map +1 -0
  155. package/dist/contracts/Delegation.d.ts +121 -0
  156. package/dist/contracts/Delegation.d.ts.map +1 -0
  157. package/dist/contracts/Delegation.js +76 -0
  158. package/dist/contracts/Delegation.js.map +1 -0
  159. package/dist/contracts/DeviceControl.d.ts +293 -0
  160. package/dist/contracts/DeviceControl.d.ts.map +1 -0
  161. package/dist/contracts/DeviceControl.js +107 -0
  162. package/dist/contracts/DeviceControl.js.map +1 -0
  163. package/dist/contracts/Directory.d.ts +492 -0
  164. package/dist/contracts/Directory.d.ts.map +1 -0
  165. package/dist/contracts/Directory.js +225 -0
  166. package/dist/contracts/Directory.js.map +1 -0
  167. package/dist/contracts/DirectoryProvider.d.ts +214 -0
  168. package/dist/contracts/DirectoryProvider.d.ts.map +1 -0
  169. package/dist/contracts/DirectoryProvider.js +73 -0
  170. package/dist/contracts/DirectoryProvider.js.map +1 -0
  171. package/dist/contracts/DocumentSource.d.ts +190 -0
  172. package/dist/contracts/DocumentSource.d.ts.map +1 -0
  173. package/dist/contracts/DocumentSource.js +64 -0
  174. package/dist/contracts/DocumentSource.js.map +1 -0
  175. package/dist/contracts/Files.d.ts +762 -0
  176. package/dist/contracts/Files.d.ts.map +1 -0
  177. package/dist/contracts/Files.js +339 -0
  178. package/dist/contracts/Files.js.map +1 -0
  179. package/dist/contracts/Flags.d.ts +265 -0
  180. package/dist/contracts/Flags.d.ts.map +1 -0
  181. package/dist/contracts/Flags.js +197 -0
  182. package/dist/contracts/Flags.js.map +1 -0
  183. package/dist/contracts/Host.d.ts +320 -0
  184. package/dist/contracts/Host.d.ts.map +1 -0
  185. package/dist/contracts/Host.js +224 -0
  186. package/dist/contracts/Host.js.map +1 -0
  187. package/dist/contracts/HttpApi.d.ts +102 -0
  188. package/dist/contracts/HttpApi.d.ts.map +1 -0
  189. package/dist/contracts/HttpApi.js +89 -0
  190. package/dist/contracts/HttpApi.js.map +1 -0
  191. package/dist/contracts/Ingestion.d.ts +522 -0
  192. package/dist/contracts/Ingestion.d.ts.map +1 -0
  193. package/dist/contracts/Ingestion.js +275 -0
  194. package/dist/contracts/Ingestion.js.map +1 -0
  195. package/dist/contracts/Ingress.d.ts +132 -0
  196. package/dist/contracts/Ingress.d.ts.map +1 -0
  197. package/dist/contracts/Ingress.js +102 -0
  198. package/dist/contracts/Ingress.js.map +1 -0
  199. package/dist/contracts/Invocation.d.ts +361 -0
  200. package/dist/contracts/Invocation.d.ts.map +1 -0
  201. package/dist/contracts/Invocation.js +104 -0
  202. package/dist/contracts/Invocation.js.map +1 -0
  203. package/dist/contracts/LocalClient.d.ts +888 -0
  204. package/dist/contracts/LocalClient.d.ts.map +1 -0
  205. package/dist/contracts/LocalClient.js +429 -0
  206. package/dist/contracts/LocalClient.js.map +1 -0
  207. package/dist/contracts/Locale.d.ts +162 -0
  208. package/dist/contracts/Locale.d.ts.map +1 -0
  209. package/dist/contracts/Locale.js +123 -0
  210. package/dist/contracts/Locale.js.map +1 -0
  211. package/dist/contracts/MachineIdentity.d.ts +434 -0
  212. package/dist/contracts/MachineIdentity.d.ts.map +1 -0
  213. package/dist/contracts/MachineIdentity.js +223 -0
  214. package/dist/contracts/MachineIdentity.js.map +1 -0
  215. package/dist/contracts/MailProvider.d.ts +791 -0
  216. package/dist/contracts/MailProvider.d.ts.map +1 -0
  217. package/dist/contracts/MailProvider.js +237 -0
  218. package/dist/contracts/MailProvider.js.map +1 -0
  219. package/dist/contracts/Memory.d.ts +62 -0
  220. package/dist/contracts/Memory.d.ts.map +1 -0
  221. package/dist/contracts/Memory.js +43 -0
  222. package/dist/contracts/Memory.js.map +1 -0
  223. package/dist/contracts/Messaging.d.ts +154 -0
  224. package/dist/contracts/Messaging.d.ts.map +1 -0
  225. package/dist/contracts/Messaging.js +97 -0
  226. package/dist/contracts/Messaging.js.map +1 -0
  227. package/dist/contracts/Metering.d.ts +334 -0
  228. package/dist/contracts/Metering.d.ts.map +1 -0
  229. package/dist/contracts/Metering.js +202 -0
  230. package/dist/contracts/Metering.js.map +1 -0
  231. package/dist/contracts/ModelProvider.d.ts +142 -0
  232. package/dist/contracts/ModelProvider.d.ts.map +1 -0
  233. package/dist/contracts/ModelProvider.js +72 -0
  234. package/dist/contracts/ModelProvider.js.map +1 -0
  235. package/dist/contracts/ModuleManifest.d.ts +2519 -0
  236. package/dist/contracts/ModuleManifest.d.ts.map +1 -0
  237. package/dist/contracts/ModuleManifest.js +272 -0
  238. package/dist/contracts/ModuleManifest.js.map +1 -0
  239. package/dist/contracts/NotificationChannel.d.ts +378 -0
  240. package/dist/contracts/NotificationChannel.d.ts.map +1 -0
  241. package/dist/contracts/NotificationChannel.js +136 -0
  242. package/dist/contracts/NotificationChannel.js.map +1 -0
  243. package/dist/contracts/Notifications.d.ts +417 -0
  244. package/dist/contracts/Notifications.d.ts.map +1 -0
  245. package/dist/contracts/Notifications.js +267 -0
  246. package/dist/contracts/Notifications.js.map +1 -0
  247. package/dist/contracts/Outbox.d.ts +469 -0
  248. package/dist/contracts/Outbox.d.ts.map +1 -0
  249. package/dist/contracts/Outbox.js +215 -0
  250. package/dist/contracts/Outbox.js.map +1 -0
  251. package/dist/contracts/Privacy.d.ts +1029 -0
  252. package/dist/contracts/Privacy.d.ts.map +1 -0
  253. package/dist/contracts/Privacy.js +437 -0
  254. package/dist/contracts/Privacy.js.map +1 -0
  255. package/dist/contracts/Progress.d.ts +305 -0
  256. package/dist/contracts/Progress.d.ts.map +1 -0
  257. package/dist/contracts/Progress.js +174 -0
  258. package/dist/contracts/Progress.js.map +1 -0
  259. package/dist/contracts/QuerySurface.d.ts +231 -0
  260. package/dist/contracts/QuerySurface.d.ts.map +1 -0
  261. package/dist/contracts/QuerySurface.js +113 -0
  262. package/dist/contracts/QuerySurface.js.map +1 -0
  263. package/dist/contracts/Readiness.d.ts +105 -0
  264. package/dist/contracts/Readiness.d.ts.map +1 -0
  265. package/dist/contracts/Readiness.js +57 -0
  266. package/dist/contracts/Readiness.js.map +1 -0
  267. package/dist/contracts/Release.d.ts +295 -0
  268. package/dist/contracts/Release.d.ts.map +1 -0
  269. package/dist/contracts/Release.js +175 -0
  270. package/dist/contracts/Release.js.map +1 -0
  271. package/dist/contracts/ResultRendering.d.ts +533 -0
  272. package/dist/contracts/ResultRendering.d.ts.map +1 -0
  273. package/dist/contracts/ResultRendering.js +59 -0
  274. package/dist/contracts/ResultRendering.js.map +1 -0
  275. package/dist/contracts/Sandbox.d.ts +1164 -0
  276. package/dist/contracts/Sandbox.d.ts.map +1 -0
  277. package/dist/contracts/Sandbox.js +550 -0
  278. package/dist/contracts/Sandbox.js.map +1 -0
  279. package/dist/contracts/Scheduler.d.ts +814 -0
  280. package/dist/contracts/Scheduler.d.ts.map +1 -0
  281. package/dist/contracts/Scheduler.js +202 -0
  282. package/dist/contracts/Scheduler.js.map +1 -0
  283. package/dist/contracts/ScreenContext.d.ts +514 -0
  284. package/dist/contracts/ScreenContext.d.ts.map +1 -0
  285. package/dist/contracts/ScreenContext.js +272 -0
  286. package/dist/contracts/ScreenContext.js.map +1 -0
  287. package/dist/contracts/Search.d.ts +308 -0
  288. package/dist/contracts/Search.d.ts.map +1 -0
  289. package/dist/contracts/Search.js +107 -0
  290. package/dist/contracts/Search.js.map +1 -0
  291. package/dist/contracts/Secrets.d.ts +483 -0
  292. package/dist/contracts/Secrets.d.ts.map +1 -0
  293. package/dist/contracts/Secrets.js +136 -0
  294. package/dist/contracts/Secrets.js.map +1 -0
  295. package/dist/contracts/Settings.d.ts +221 -0
  296. package/dist/contracts/Settings.d.ts.map +1 -0
  297. package/dist/contracts/Settings.js +163 -0
  298. package/dist/contracts/Settings.js.map +1 -0
  299. package/dist/contracts/Sharing.d.ts +319 -0
  300. package/dist/contracts/Sharing.d.ts.map +1 -0
  301. package/dist/contracts/Sharing.js +172 -0
  302. package/dist/contracts/Sharing.js.map +1 -0
  303. package/dist/contracts/Slot.d.ts +162 -0
  304. package/dist/contracts/Slot.d.ts.map +1 -0
  305. package/dist/contracts/Slot.js +56 -0
  306. package/dist/contracts/Slot.js.map +1 -0
  307. package/dist/contracts/Space.d.ts +256 -0
  308. package/dist/contracts/Space.d.ts.map +1 -0
  309. package/dist/contracts/Space.js +133 -0
  310. package/dist/contracts/Space.js.map +1 -0
  311. package/dist/contracts/StorageAdapter.d.ts +124 -0
  312. package/dist/contracts/StorageAdapter.d.ts.map +1 -0
  313. package/dist/contracts/StorageAdapter.js +96 -0
  314. package/dist/contracts/StorageAdapter.js.map +1 -0
  315. package/dist/contracts/StorageBackend.d.ts +310 -0
  316. package/dist/contracts/StorageBackend.d.ts.map +1 -0
  317. package/dist/contracts/StorageBackend.js +196 -0
  318. package/dist/contracts/StorageBackend.js.map +1 -0
  319. package/dist/contracts/Sync.d.ts +286 -0
  320. package/dist/contracts/Sync.d.ts.map +1 -0
  321. package/dist/contracts/Sync.js +157 -0
  322. package/dist/contracts/Sync.js.map +1 -0
  323. package/dist/contracts/Telemetry.d.ts +183 -0
  324. package/dist/contracts/Telemetry.d.ts.map +1 -0
  325. package/dist/contracts/Telemetry.js +153 -0
  326. package/dist/contracts/Telemetry.js.map +1 -0
  327. package/dist/contracts/ThemeTokens.d.ts +212 -0
  328. package/dist/contracts/ThemeTokens.d.ts.map +1 -0
  329. package/dist/contracts/ThemeTokens.js +111 -0
  330. package/dist/contracts/ThemeTokens.js.map +1 -0
  331. package/dist/contracts/ToolSource.d.ts +135 -0
  332. package/dist/contracts/ToolSource.d.ts.map +1 -0
  333. package/dist/contracts/ToolSource.js +81 -0
  334. package/dist/contracts/ToolSource.js.map +1 -0
  335. package/dist/contracts/Versioning.d.ts +363 -0
  336. package/dist/contracts/Versioning.d.ts.map +1 -0
  337. package/dist/contracts/Versioning.js +201 -0
  338. package/dist/contracts/Versioning.js.map +1 -0
  339. package/dist/contracts/View.d.ts +232 -0
  340. package/dist/contracts/View.d.ts.map +1 -0
  341. package/dist/contracts/View.js +102 -0
  342. package/dist/contracts/View.js.map +1 -0
  343. package/dist/contracts/WorkItems.d.ts +242 -0
  344. package/dist/contracts/WorkItems.d.ts.map +1 -0
  345. package/dist/contracts/WorkItems.js +126 -0
  346. package/dist/contracts/WorkItems.js.map +1 -0
  347. package/dist/contracts/Workflow.d.ts +191 -0
  348. package/dist/contracts/Workflow.d.ts.map +1 -0
  349. package/dist/contracts/Workflow.js +63 -0
  350. package/dist/contracts/Workflow.js.map +1 -0
  351. package/dist/contracts/index.d.ts +75 -0
  352. package/dist/contracts/index.d.ts.map +1 -0
  353. package/dist/contracts/index.js +196 -0
  354. package/dist/contracts/index.js.map +1 -0
  355. package/dist/devices/module.d.ts +3777 -0
  356. package/dist/devices/module.d.ts.map +1 -0
  357. package/dist/devices/module.js +179 -0
  358. package/dist/devices/module.js.map +1 -0
  359. package/dist/drizzle/Entity.d.ts +148 -0
  360. package/dist/drizzle/Entity.d.ts.map +1 -0
  361. package/dist/drizzle/Entity.js +396 -0
  362. package/dist/drizzle/Entity.js.map +1 -0
  363. package/dist/index.d.ts +20 -0
  364. package/dist/index.d.ts.map +1 -0
  365. package/dist/index.js +20 -0
  366. package/dist/index.js.map +1 -0
  367. package/package.json +48 -3
  368. package/schema/Actor.json +46 -0
  369. package/schema/AuditRecord.json +403 -0
  370. package/schema/DaemonHealth.json +29 -0
  371. package/schema/InvocationError.json +257 -0
  372. package/schema/InvocationReceipt.json +253 -0
  373. package/schema/Lockfile.json +129 -0
  374. package/schema/OutboxEvent.json +36 -0
  375. package/schema/PairingConfirm.json +33 -0
  376. package/schema/PairingResult.json +18 -0
  377. package/schema/PairingStart.json +18 -0
  378. package/schema/ProvenanceEntry.json +110 -0
  379. package/schema/ReplayEnvelope.json +269 -0
  380. package/schema/Surface.json +17 -0
  381. package/schema/codegen/LocalClient.json +1298 -0
  382. package/schema/codegen/Sandbox.json +320 -0
  383. package/schema/contracts/ActionConsent.json +1930 -0
  384. package/schema/contracts/ActionRegistry.json +722 -0
  385. package/schema/contracts/Actor.json +451 -0
  386. package/schema/contracts/AgentResources.json +1400 -0
  387. package/schema/contracts/AgentRuntime.json +4017 -0
  388. package/schema/contracts/Approvals.json +2916 -0
  389. package/schema/contracts/Audit.json +3268 -0
  390. package/schema/contracts/CalendarProvider.json +5557 -0
  391. package/schema/contracts/ClientSDK.json +1400 -0
  392. package/schema/contracts/CollabDocument.json +4012 -0
  393. package/schema/contracts/Command.json +616 -0
  394. package/schema/contracts/Connections.json +6687 -0
  395. package/schema/contracts/ContextAccounting.json +685 -0
  396. package/schema/contracts/Daemon.json +4555 -0
  397. package/schema/contracts/DbTx.json +321 -0
  398. package/schema/contracts/Delegation.json +949 -0
  399. package/schema/contracts/DeviceControl.json +2626 -0
  400. package/schema/contracts/Directory.json +5168 -0
  401. package/schema/contracts/DirectoryProvider.json +2090 -0
  402. package/schema/contracts/DocumentSource.json +2044 -0
  403. package/schema/contracts/Files.json +4122 -0
  404. package/schema/contracts/Flags.json +1202 -0
  405. package/schema/contracts/Host.json +1769 -0
  406. package/schema/contracts/HttpApi.json +1615 -0
  407. package/schema/contracts/Ingestion.json +3211 -0
  408. package/schema/contracts/Ingress.json +819 -0
  409. package/schema/contracts/Invocation.json +2044 -0
  410. package/schema/contracts/LocalClient.json +6657 -0
  411. package/schema/contracts/Locale.json +654 -0
  412. package/schema/contracts/MachineIdentity.json +2303 -0
  413. package/schema/contracts/MailProvider.json +6663 -0
  414. package/schema/contracts/Memory.json +579 -0
  415. package/schema/contracts/Messaging.json +1764 -0
  416. package/schema/contracts/Metering.json +3060 -0
  417. package/schema/contracts/ModelProvider.json +1127 -0
  418. package/schema/contracts/ModuleManifest.json +9449 -0
  419. package/schema/contracts/NotificationChannel.json +986 -0
  420. package/schema/contracts/Notifications.json +4280 -0
  421. package/schema/contracts/Outbox.json +1451 -0
  422. package/schema/contracts/Privacy.json +4354 -0
  423. package/schema/contracts/Progress.json +1524 -0
  424. package/schema/contracts/QuerySurface.json +661 -0
  425. package/schema/contracts/Readiness.json +209 -0
  426. package/schema/contracts/Release.json +805 -0
  427. package/schema/contracts/ResultRendering.json +2859 -0
  428. package/schema/contracts/Sandbox.json +2286 -0
  429. package/schema/contracts/Scheduler.json +6138 -0
  430. package/schema/contracts/ScreenContext.json +1238 -0
  431. package/schema/contracts/Search.json +1058 -0
  432. package/schema/contracts/Secrets.json +2444 -0
  433. package/schema/contracts/Settings.json +654 -0
  434. package/schema/contracts/Sharing.json +2854 -0
  435. package/schema/contracts/Slot.json +537 -0
  436. package/schema/contracts/Space.json +892 -0
  437. package/schema/contracts/StorageAdapter.json +623 -0
  438. package/schema/contracts/StorageBackend.json +2421 -0
  439. package/schema/contracts/Sync.json +894 -0
  440. package/schema/contracts/Telemetry.json +696 -0
  441. package/schema/contracts/ThemeTokens.json +547 -0
  442. package/schema/contracts/ToolSource.json +1333 -0
  443. package/schema/contracts/Versioning.json +1481 -0
  444. package/schema/contracts/View.json +750 -0
  445. package/schema/contracts/WorkItems.json +1731 -0
  446. package/schema/contracts/Workflow.json +1242 -0
  447. package/src/Agent.ts +758 -0
  448. package/src/Analytics.ts +110 -0
  449. package/src/Approval.ts +131 -0
  450. package/src/Catalog.ts +192 -0
  451. package/src/Checklist.ts +162 -0
  452. package/src/Data.ts +109 -0
  453. package/src/Devices.ts +721 -0
  454. package/src/Durable.ts +240 -0
  455. package/src/Errors.ts +111 -0
  456. package/src/JsonSchema.ts +166 -0
  457. package/src/Manifest.ts +1147 -0
  458. package/src/Module.ts +640 -0
  459. package/src/Optimistic.ts +332 -0
  460. package/src/Projection.ts +207 -0
  461. package/src/Proposals.ts +89 -0
  462. package/src/Receipt.ts +125 -0
  463. package/src/Records.ts +197 -0
  464. package/src/Render.ts +515 -0
  465. package/src/Rpc.ts +113 -0
  466. package/src/SearchLanguages.ts +33 -0
  467. package/src/Service.ts +102 -0
  468. package/src/Versions.ts +69 -0
  469. package/src/contracts/ActionConsent.ts +150 -0
  470. package/src/contracts/ActionRegistry.ts +39 -0
  471. package/src/contracts/Actor.ts +53 -0
  472. package/src/contracts/AgentResources.ts +167 -0
  473. package/src/contracts/AgentRuntime.ts +154 -0
  474. package/src/contracts/Approvals.ts +133 -0
  475. package/src/contracts/Audit.ts +160 -0
  476. package/src/contracts/CalendarProvider.ts +241 -0
  477. package/src/contracts/Capability.ts +246 -0
  478. package/src/contracts/ClientSDK.ts +199 -0
  479. package/src/contracts/CollabDocument.ts +420 -0
  480. package/src/contracts/Command.ts +74 -0
  481. package/src/contracts/Connections.ts +360 -0
  482. package/src/contracts/ContextAccounting.ts +35 -0
  483. package/src/contracts/Daemon.ts +247 -0
  484. package/src/contracts/DbTx.ts +110 -0
  485. package/src/contracts/Delegation.ts +91 -0
  486. package/src/contracts/DeviceControl.ts +143 -0
  487. package/src/contracts/Directory.ts +384 -0
  488. package/src/contracts/DirectoryProvider.ts +82 -0
  489. package/src/contracts/DocumentSource.ts +71 -0
  490. package/src/contracts/Files.ts +395 -0
  491. package/src/contracts/Flags.ts +241 -0
  492. package/src/contracts/Host.ts +245 -0
  493. package/src/contracts/HttpApi.ts +100 -0
  494. package/src/contracts/Ingestion.ts +315 -0
  495. package/src/contracts/Ingress.ts +132 -0
  496. package/src/contracts/Invocation.ts +122 -0
  497. package/src/contracts/LocalClient.ts +620 -0
  498. package/src/contracts/Locale.ts +133 -0
  499. package/src/contracts/MachineIdentity.ts +305 -0
  500. package/src/contracts/MailProvider.ts +272 -0
  501. package/src/contracts/Memory.ts +47 -0
  502. package/src/contracts/Messaging.ts +108 -0
  503. package/src/contracts/Metering.ts +231 -0
  504. package/src/contracts/ModelProvider.ts +87 -0
  505. package/src/contracts/ModuleManifest.ts +310 -0
  506. package/src/contracts/NotificationChannel.ts +158 -0
  507. package/src/contracts/Notifications.ts +309 -0
  508. package/src/contracts/Outbox.ts +246 -0
  509. package/src/contracts/Privacy.ts +502 -0
  510. package/src/contracts/Progress.ts +196 -0
  511. package/src/contracts/QuerySurface.ts +134 -0
  512. package/src/contracts/Readiness.ts +67 -0
  513. package/src/contracts/Release.ts +199 -0
  514. package/src/contracts/ResultRendering.ts +65 -0
  515. package/src/contracts/Sandbox.ts +648 -0
  516. package/src/contracts/Scheduler.ts +237 -0
  517. package/src/contracts/ScreenContext.ts +316 -0
  518. package/src/contracts/Search.ts +126 -0
  519. package/src/contracts/Secrets.ts +162 -0
  520. package/src/contracts/Settings.ts +207 -0
  521. package/src/contracts/Sharing.ts +205 -0
  522. package/src/contracts/Slot.ts +61 -0
  523. package/src/contracts/Space.ts +157 -0
  524. package/src/contracts/StorageAdapter.ts +104 -0
  525. package/src/contracts/StorageBackend.ts +220 -0
  526. package/src/contracts/Sync.ts +180 -0
  527. package/src/contracts/Telemetry.ts +177 -0
  528. package/src/contracts/ThemeTokens.ts +136 -0
  529. package/src/contracts/ToolSource.ts +94 -0
  530. package/src/contracts/Versioning.ts +237 -0
  531. package/src/contracts/View.ts +116 -0
  532. package/src/contracts/WorkItems.ts +144 -0
  533. package/src/contracts/Workflow.ts +67 -0
  534. package/src/contracts/index.ts +205 -0
  535. package/src/devices/module.ts +201 -0
  536. package/src/drizzle/Entity.ts +524 -0
  537. package/src/index.ts +19 -0
@@ -0,0 +1,857 @@
1
+ /**
2
+ * Records of the device daemon (the Daemon and DeviceControl contracts): pairing a device to a person (or a
3
+ * service principal) in an organisation, the device credential's custody, the loopback relay's local clients,
4
+ * local agent harnesses (Claude Code, Codex) and the turns a headless runner serves, plus the kernel-provided
5
+ * `devices` module (turn requests are app data: they go through the one invocation path).
6
+ *
7
+ * See docs/contracts/daemon.md and docs/contracts/device-control.md.
8
+ */
9
+ import { Schema } from "effect";
10
+ /** Opaque prefixes, recognisable to secret scanners: the device credential and a pairing's poll secret. */
11
+ export declare const DEVICE_CREDENTIAL_PREFIX: {
12
+ /** The device credential the kernel issues once a pairing is confirmed; the daemon keeps it in custody. */
13
+ readonly device: "elxv_";
14
+ /** The secret a pending pairing is polled with (only the daemon that started the pairing has it). */
15
+ readonly poll: "elxp_";
16
+ /** Local client tokens the daemon issues to loopback clients (never sent to the kernel). */
17
+ readonly local: "elxl_";
18
+ };
19
+ /** Where the kernel serves devices (the daemon side uses the device credential; management a person's session). */
20
+ export declare const DEVICE_PATHS: {
21
+ readonly pairStart: "/kernel/device/pair/start";
22
+ readonly pairPoll: "/kernel/device/pair/poll";
23
+ readonly me: "/kernel/device/me";
24
+ readonly relaySession: "/kernel/device/relay-session";
25
+ readonly turnsNext: "/kernel/device/turns/next";
26
+ readonly turnsEvents: "/kernel/device/turns/events";
27
+ readonly turnsComplete: "/kernel/device/turns/complete";
28
+ readonly sessions: "/kernel/device/sessions";
29
+ readonly commandsNext: "/kernel/device/commands/next";
30
+ readonly commandsComplete: "/kernel/device/commands/complete";
31
+ readonly commandsCheck: "/kernel/device/commands/check";
32
+ readonly capabilities: "/kernel/device/capabilities";
33
+ readonly push: "/kernel/device/push";
34
+ /** Management operations: `POST /kernel/devices/<operation>` with a person's session. */
35
+ readonly manage: "/kernel/devices";
36
+ /** The page a person opens to confirm a pairing code (`verification_uri`). */
37
+ readonly verify: "/kernel/devices/verify";
38
+ };
39
+ /** A desktop daemon (beside the shell, usually the Tauri sidecar) or a headless runner on an always-on machine. */
40
+ export declare const DeviceKind: Schema.Literals<readonly ["desktop", "runner"]>;
41
+ export type DeviceKind = typeof DeviceKind.Type;
42
+ /**
43
+ * The local agent harnesses an adapter exists for: Claude Code and Codex (their CLIs' JSON streams), OpenCode and
44
+ * any configured agent that speaks the Agent Client Protocol (`acp`).
45
+ */
46
+ export declare const HarnessKind: Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>;
47
+ export type HarnessKind = typeof HarnessKind.Type;
48
+ /**
49
+ * What a device command acts on (DeviceControl): the daemon's **terminal** and the **files** of its workspace
50
+ * (served by the daemon itself), a **browser** (served by a paired browser-extension companion) and the
51
+ * **computer** (served by a paired computer-use companion). A daemon offers none unless it is started with them.
52
+ */
53
+ export declare const CommandKind: Schema.Literals<readonly ["terminal", "files", "browser", "computer"]>;
54
+ export type CommandKind = typeof CommandKind.Type;
55
+ /**
56
+ * What a device can do: its harnesses, the command kinds it offers now (`commands`: enabled on the daemon and,
57
+ * for a browser or the computer, a companion connected), whether it refuses workspace tools (`toolsOnly`), and
58
+ * `computerUse` / `browserExtension`, true while their companion is connected.
59
+ */
60
+ export declare const DeviceCapabilities: Schema.Struct<{
61
+ readonly harnesses: Schema.$Array<Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>>;
62
+ readonly computerUse: Schema.Boolean;
63
+ readonly browserExtension: Schema.Boolean;
64
+ readonly commands: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["terminal", "files", "browser", "computer"]>>>;
65
+ readonly toolsOnly: Schema.optionalKey<Schema.Boolean>;
66
+ }>;
67
+ export type DeviceCapabilities = typeof DeviceCapabilities.Type;
68
+ /** A paired device, as the kernel lists it (never its credential). */
69
+ export declare const DeviceInfo: Schema.Struct<{
70
+ readonly id: Schema.String;
71
+ readonly orgId: Schema.String;
72
+ /** Whom the device acts for: a person (`user`) or an organisation's service principal (`service`). */
73
+ readonly subject: Schema.String;
74
+ readonly subjectKind: Schema.Literals<readonly ["user", "service"]>;
75
+ /** The person who confirmed the pairing. */
76
+ readonly pairedBy: Schema.String;
77
+ readonly name: Schema.String;
78
+ readonly kind: Schema.Literals<readonly ["desktop", "runner"]>;
79
+ readonly platform: Schema.String;
80
+ readonly capabilities: Schema.Struct<{
81
+ readonly harnesses: Schema.$Array<Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>>;
82
+ readonly computerUse: Schema.Boolean;
83
+ readonly browserExtension: Schema.Boolean;
84
+ readonly commands: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["terminal", "files", "browser", "computer"]>>>;
85
+ readonly toolsOnly: Schema.optionalKey<Schema.Boolean>;
86
+ }>;
87
+ readonly createdAt: Schema.String;
88
+ readonly lastSeenAt: Schema.NullOr<Schema.String>;
89
+ readonly revokedAt: Schema.NullOr<Schema.String>;
90
+ /** Whether the device registered a push subscription (`registerPush`); never the subscription itself. */
91
+ readonly push: Schema.optionalKey<Schema.Boolean>;
92
+ }>;
93
+ export type DeviceInfo = typeof DeviceInfo.Type;
94
+ /** What a daemon sends to start pairing: unauthenticated, rate limited per source address. */
95
+ export declare const PairingRequest: Schema.Struct<{
96
+ readonly name: Schema.String;
97
+ readonly kind: Schema.Literals<readonly ["desktop", "runner"]>;
98
+ readonly platform: Schema.String;
99
+ readonly capabilities: Schema.Struct<{
100
+ readonly harnesses: Schema.$Array<Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>>;
101
+ readonly computerUse: Schema.Boolean;
102
+ readonly browserExtension: Schema.Boolean;
103
+ readonly commands: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["terminal", "files", "browser", "computer"]>>>;
104
+ readonly toolsOnly: Schema.optionalKey<Schema.Boolean>;
105
+ }>;
106
+ }>;
107
+ export type PairingRequest = typeof PairingRequest.Type;
108
+ /**
109
+ * A started pairing (RFC 8628's shape): the daemon shows `userCode` (and `verificationUri`) and polls with
110
+ * `pairingId` and `pollSecret`; a signed-in person confirms the code on the kernel.
111
+ */
112
+ export declare const PairingStarted: Schema.Struct<{
113
+ readonly pairingId: Schema.String;
114
+ readonly pollSecret: Schema.String;
115
+ readonly userCode: Schema.String;
116
+ readonly verificationUri: Schema.String;
117
+ readonly verificationUriComplete: Schema.String;
118
+ readonly expiresAt: Schema.String;
119
+ /** Seconds between polls. */
120
+ readonly interval: Schema.Number;
121
+ }>;
122
+ export type PairingStarted = typeof PairingStarted.Type;
123
+ export declare const PairingPoll: Schema.Struct<{
124
+ readonly pairingId: Schema.String;
125
+ readonly pollSecret: Schema.String;
126
+ }>;
127
+ export type PairingPoll = typeof PairingPoll.Type;
128
+ /**
129
+ * The poll's answer. `paired` carries the device credential, exactly once: a later poll of the same pairing is
130
+ * refused (`InvalidInput`), so a credential is never issued twice.
131
+ */
132
+ export declare const PairingPollResult: Schema.Union<readonly [Schema.Struct<{
133
+ readonly status: Schema.Literal<"pending">;
134
+ }>, Schema.Struct<{
135
+ readonly status: Schema.Literal<"denied">;
136
+ }>, Schema.Struct<{
137
+ readonly status: Schema.Literal<"expired">;
138
+ }>, Schema.Struct<{
139
+ readonly status: Schema.Literal<"paired">;
140
+ readonly deviceId: Schema.String;
141
+ readonly orgId: Schema.String;
142
+ readonly subject: Schema.String;
143
+ readonly credential: Schema.String;
144
+ }>]>;
145
+ export type PairingPollResult = typeof PairingPollResult.Type;
146
+ /** A signed-in person confirms (or denies) a code; `principalId` pairs a runner for a service principal. */
147
+ export declare const PairingDecision: Schema.Struct<{
148
+ readonly userCode: Schema.String;
149
+ readonly principalId: Schema.optionalKey<Schema.String>;
150
+ }>;
151
+ export type PairingDecision = typeof PairingDecision.Type;
152
+ export declare const PairingDecided: Schema.Struct<{
153
+ readonly pairingId: Schema.String;
154
+ readonly status: Schema.Literals<readonly ["approved", "denied"]>;
155
+ readonly deviceId: Schema.NullOr<Schema.String>;
156
+ }>;
157
+ export type PairingDecided = typeof PairingDecided.Type;
158
+ /** A short-lived agent session for a device's harness: every call made with it is agent-originated. */
159
+ export declare const RelaySessionRequest: Schema.Struct<{
160
+ readonly purpose: Schema.String;
161
+ readonly ttlSeconds: Schema.optionalKey<Schema.Number>;
162
+ /**
163
+ * The turn the session serves (one the device holds): the session then carries the authority of the call that
164
+ * queued the turn (its credential's scope, and the credential, re-validated by every call made with it).
165
+ */
166
+ readonly turnId: Schema.optionalKey<Schema.String>;
167
+ }>;
168
+ export declare const RelaySession: Schema.Struct<{
169
+ readonly id: Schema.String;
170
+ readonly token: Schema.String;
171
+ readonly expiresAt: Schema.String;
172
+ }>;
173
+ export type RelaySession = typeof RelaySession.Type;
174
+ /** Who is talking to the daemon over loopback. */
175
+ export declare const LocalClientKind: Schema.Literals<readonly ["host", "shell", "browser-extension", "cli", "computer-use", "desktop-app", "harness"]>;
176
+ export type LocalClientKind = typeof LocalClientKind.Type;
177
+ /** Daemon health: unauthenticated, reveals nothing but whether the daemon is paired. */
178
+ export declare const DaemonHealth: Schema.Struct<{
179
+ readonly status: Schema.Literal<"ok">;
180
+ readonly version: Schema.String;
181
+ readonly runtime: Schema.String;
182
+ /** Whether the daemon holds a device credential the kernel still accepts (as far as it knows). */
183
+ readonly paired: Schema.Boolean;
184
+ }>;
185
+ export type DaemonHealth = typeof DaemonHealth.Type;
186
+ /** A local client asks to pair: its name and kind, shown to the person who approves it. */
187
+ /**
188
+ * The kinds of local client that pair: a `browser-extension` or `computer-use` client may serve as a companion; a
189
+ * `desktop-app` (a native desktop client, decision 14) may use LocalClient (`/client/v1`), the person's session.
190
+ */
191
+ export declare const PairableClientKind: Schema.Literals<readonly ["shell", "browser-extension", "cli", "computer-use", "desktop-app"]>;
192
+ export declare const PairingRequestLocal: Schema.Struct<{
193
+ readonly clientName: Schema.optionalKey<Schema.String>;
194
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["shell", "browser-extension", "cli", "computer-use", "desktop-app"]>>;
195
+ }>;
196
+ /**
197
+ * A local pairing: the host approves it and shows the person its code (never this response, never the log);
198
+ * the caller then types the code.
199
+ */
200
+ export declare const PairingStart: Schema.Struct<{
201
+ readonly pairingId: Schema.String;
202
+ readonly expiresAt: Schema.String;
203
+ }>;
204
+ export type PairingStart = typeof PairingStart.Type;
205
+ export declare const PairingConfirm: Schema.Struct<{
206
+ readonly pairingId: Schema.String;
207
+ readonly code: Schema.String;
208
+ readonly clientName: Schema.String;
209
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["shell", "browser-extension", "cli", "computer-use", "desktop-app"]>>;
210
+ }>;
211
+ export type PairingConfirm = typeof PairingConfirm.Type;
212
+ /** A local client's token: valid only on the daemon's loopback port, never on the kernel. */
213
+ export declare const PairingResult: Schema.Struct<{
214
+ readonly clientId: Schema.String;
215
+ readonly token: Schema.String;
216
+ }>;
217
+ export type PairingResult = typeof PairingResult.Type;
218
+ export declare const HarnessStatus: Schema.Struct<{
219
+ readonly kind: Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>;
220
+ readonly available: Schema.Boolean;
221
+ readonly version: Schema.NullOr<Schema.String>;
222
+ /** Whether the CLI reports it is signed in to the person's subscription (null when it cannot tell). */
223
+ readonly loggedIn: Schema.NullOr<Schema.Boolean>;
224
+ readonly detail: Schema.String;
225
+ }>;
226
+ export type HarnessStatus = typeof HarnessStatus.Type;
227
+ export declare const DaemonStatus: Schema.Struct<{
228
+ readonly mode: Schema.Literals<readonly ["desktop", "headless"]>;
229
+ readonly kernel: Schema.Struct<{
230
+ readonly state: Schema.Literals<readonly ["unpaired", "pairing", "paired", "revoked"]>;
231
+ readonly url: Schema.NullOr<Schema.String>;
232
+ readonly deviceId: Schema.NullOr<Schema.String>;
233
+ readonly orgId: Schema.NullOr<Schema.String>;
234
+ /** A pairing in progress: the code to confirm on the kernel. */
235
+ readonly userCode: Schema.NullOr<Schema.String>;
236
+ readonly verificationUri: Schema.NullOr<Schema.String>;
237
+ }>;
238
+ readonly secretStore: Schema.String;
239
+ readonly harnesses: Schema.$Array<Schema.Struct<{
240
+ readonly kind: Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>;
241
+ readonly available: Schema.Boolean;
242
+ readonly version: Schema.NullOr<Schema.String>;
243
+ /** Whether the CLI reports it is signed in to the person's subscription (null when it cannot tell). */
244
+ readonly loggedIn: Schema.NullOr<Schema.Boolean>;
245
+ readonly detail: Schema.String;
246
+ }>>;
247
+ }>;
248
+ export type DaemonStatus = typeof DaemonStatus.Type;
249
+ export declare const TurnStatus: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "cancelled"]>;
250
+ export type TurnStatus = typeof TurnStatus.Type;
251
+ /** Tokens a harness reported for a turn (the CLI's own figures; null fields when it does not report them). */
252
+ export declare const TurnUsage: Schema.Struct<{
253
+ readonly inputTokens: Schema.Number;
254
+ readonly outputTokens: Schema.Number;
255
+ readonly cachedInputTokens: Schema.NullOr<Schema.Number>;
256
+ readonly costUsd: Schema.NullOr<Schema.Number>;
257
+ }>;
258
+ export type TurnUsage = typeof TurnUsage.Type;
259
+ /**
260
+ * A harness event, normalised from the CLI's stream (Claude Code's stream-json, Codex's JSON events):
261
+ * `started` (the harness's session or thread id), `text` (assistant text), `tool-call`, `tool-result`,
262
+ * `usage`, `error`, `finished`. `data` keeps the normalised fields; raw CLI payloads are not forwarded.
263
+ */
264
+ export declare const TurnEventType: Schema.Literals<readonly ["started", "text", "tool-call", "tool-result", "usage", "error", "finished"]>;
265
+ export type TurnEventType = typeof TurnEventType.Type;
266
+ export declare const HarnessEvent: Schema.Struct<{
267
+ readonly type: Schema.Literals<readonly ["started", "text", "tool-call", "tool-result", "usage", "error", "finished"]>;
268
+ readonly data: Schema.Unknown;
269
+ }>;
270
+ export type HarnessEvent = typeof HarnessEvent.Type;
271
+ export declare const TurnEvent: Schema.Struct<{
272
+ readonly turnId: Schema.String;
273
+ readonly attempt: Schema.Number;
274
+ readonly seq: Schema.Number;
275
+ readonly type: Schema.Literals<readonly ["started", "text", "tool-call", "tool-result", "usage", "error", "finished"]>;
276
+ readonly data: Schema.Unknown;
277
+ readonly at: Schema.String;
278
+ }>;
279
+ export type TurnEvent = typeof TurnEvent.Type;
280
+ export declare const TurnRecord: Schema.Struct<{
281
+ readonly id: Schema.String;
282
+ readonly orgId: Schema.String;
283
+ readonly deviceId: Schema.String;
284
+ readonly requestedBy: Schema.String;
285
+ /** The origin of the request, as the kernel decided it (`system` for workflows and scheduled jobs). */
286
+ readonly source: Schema.Literals<readonly ["person", "agent", "system"]>;
287
+ /** The agent run the turn answers (a run on a paired device records itself here before it waits), if any. */
288
+ readonly parentRunId: Schema.optionalKey<Schema.NullOr<Schema.String>>;
289
+ readonly prompt: Schema.String;
290
+ readonly harness: Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>;
291
+ readonly cwd: Schema.NullOr<Schema.String>;
292
+ readonly model: Schema.NullOr<Schema.String>;
293
+ readonly timeoutMs: Schema.Number;
294
+ readonly status: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "cancelled"]>;
295
+ readonly attempt: Schema.Number;
296
+ readonly result: Schema.NullOr<Schema.String>;
297
+ readonly usage: Schema.NullOr<Schema.Struct<{
298
+ readonly inputTokens: Schema.Number;
299
+ readonly outputTokens: Schema.Number;
300
+ readonly cachedInputTokens: Schema.NullOr<Schema.Number>;
301
+ readonly costUsd: Schema.NullOr<Schema.Number>;
302
+ }>>;
303
+ readonly error: Schema.NullOr<Schema.String>;
304
+ readonly createdAt: Schema.String;
305
+ readonly completedAt: Schema.NullOr<Schema.String>;
306
+ /** Whether the device keeps the harness session so a follow-up turn can resume it. */
307
+ readonly resumable: Schema.Boolean;
308
+ /** The turn this one follows up (it resumed that turn's harness session), or null. */
309
+ readonly followUpOf: Schema.NullOr<Schema.String>;
310
+ }>;
311
+ export type TurnRecord = typeof TurnRecord.Type;
312
+ /** A turn a runner claimed: run it under `lease`; report events and the outcome with it. */
313
+ export declare const ClaimedTurn: Schema.Struct<{
314
+ readonly id: Schema.String;
315
+ readonly attempt: Schema.Number;
316
+ readonly lease: Schema.String;
317
+ readonly prompt: Schema.String;
318
+ readonly harness: Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>;
319
+ readonly cwd: Schema.NullOr<Schema.String>;
320
+ readonly model: Schema.NullOr<Schema.String>;
321
+ readonly timeoutMs: Schema.Number;
322
+ /** How long the lease lasts without a heartbeat (an events call). */
323
+ readonly leaseMs: Schema.Number;
324
+ /** The Eloxiv actions the turn may call (null: every action the subject's policy allows). */
325
+ readonly actions: Schema.NullOr<Schema.$Array<Schema.String>>;
326
+ /** Whether the harness also gets its built-in file and shell tools (off unless the request asked). */
327
+ readonly workspaceTools: Schema.Boolean;
328
+ /** Keep the harness session (and its working directory) so a follow-up turn can resume it. */
329
+ readonly resumable: Schema.optionalKey<Schema.Boolean>;
330
+ /**
331
+ * A follow-up: the harness session to resume, one this device reported for the turn it follows. The daemon
332
+ * resumes only a session it started and still keeps; any other fails the turn.
333
+ */
334
+ readonly resume: Schema.optionalKey<Schema.NullOr<Schema.String>>;
335
+ }>;
336
+ export type ClaimedTurn = typeof ClaimedTurn.Type;
337
+ export declare const NextTurnRequest: Schema.Struct<{
338
+ /** Hold the request this long waiting for a turn (long poll; at most 30 s). */
339
+ readonly waitMs: Schema.optionalKey<Schema.Number>;
340
+ /**
341
+ * The daemon has just started: any turn this device still holds is abandoned (its harness died with the
342
+ * previous process), so it goes back to the queue and is claimed again now, as a new attempt.
343
+ */
344
+ readonly fresh: Schema.optionalKey<Schema.Boolean>;
345
+ }>;
346
+ export declare const NextTurn: Schema.Struct<{
347
+ readonly turn: Schema.NullOr<Schema.Struct<{
348
+ readonly id: Schema.String;
349
+ readonly attempt: Schema.Number;
350
+ readonly lease: Schema.String;
351
+ readonly prompt: Schema.String;
352
+ readonly harness: Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>;
353
+ readonly cwd: Schema.NullOr<Schema.String>;
354
+ readonly model: Schema.NullOr<Schema.String>;
355
+ readonly timeoutMs: Schema.Number;
356
+ /** How long the lease lasts without a heartbeat (an events call). */
357
+ readonly leaseMs: Schema.Number;
358
+ /** The Eloxiv actions the turn may call (null: every action the subject's policy allows). */
359
+ readonly actions: Schema.NullOr<Schema.$Array<Schema.String>>;
360
+ /** Whether the harness also gets its built-in file and shell tools (off unless the request asked). */
361
+ readonly workspaceTools: Schema.Boolean;
362
+ /** Keep the harness session (and its working directory) so a follow-up turn can resume it. */
363
+ readonly resumable: Schema.optionalKey<Schema.Boolean>;
364
+ /**
365
+ * A follow-up: the harness session to resume, one this device reported for the turn it follows. The daemon
366
+ * resumes only a session it started and still keeps; any other fails the turn.
367
+ */
368
+ readonly resume: Schema.optionalKey<Schema.NullOr<Schema.String>>;
369
+ }>>;
370
+ }>;
371
+ export type NextTurn = typeof NextTurn.Type;
372
+ export declare const AppendTurnEvents: Schema.Struct<{
373
+ readonly turnId: Schema.String;
374
+ readonly lease: Schema.String;
375
+ readonly events: Schema.$Array<Schema.Struct<{
376
+ readonly seq: Schema.Number;
377
+ readonly type: Schema.Literals<readonly ["started", "text", "tool-call", "tool-result", "usage", "error", "finished"]>;
378
+ readonly data: Schema.Unknown;
379
+ }>>;
380
+ }>;
381
+ export declare const AppendedTurnEvents: Schema.Struct<{
382
+ readonly accepted: Schema.Number;
383
+ /** The turn was cancelled (or settled otherwise): stop the harness. */
384
+ readonly stop: Schema.Boolean;
385
+ }>;
386
+ export declare const CompleteTurn: Schema.Struct<{
387
+ readonly turnId: Schema.String;
388
+ readonly lease: Schema.String;
389
+ readonly outcome: Schema.Literals<readonly ["succeeded", "failed"]>;
390
+ readonly result: Schema.NullOr<Schema.String>;
391
+ readonly usage: Schema.NullOr<Schema.Struct<{
392
+ readonly inputTokens: Schema.Number;
393
+ readonly outputTokens: Schema.Number;
394
+ readonly cachedInputTokens: Schema.NullOr<Schema.Number>;
395
+ readonly costUsd: Schema.NullOr<Schema.Number>;
396
+ }>>;
397
+ readonly error: Schema.NullOr<Schema.String>;
398
+ /** The harness's session (resumable turns): what a follow-up turn resumes. */
399
+ readonly sessionId: Schema.optionalKey<Schema.NullOr<Schema.String>>;
400
+ }>;
401
+ export type CompleteTurn = typeof CompleteTurn.Type;
402
+ export declare const CompletedTurn: Schema.Struct<{
403
+ /** The turn settled with this report. */
404
+ readonly settled: Schema.Boolean;
405
+ /** The same lease had already settled it: this report changed nothing (a retry after a lost answer). */
406
+ readonly duplicate: Schema.Boolean;
407
+ }>;
408
+ /** A turn and its events, for the person who asked for it or whose device runs it. */
409
+ export declare const TurnView: Schema.Struct<{
410
+ readonly turn: Schema.Struct<{
411
+ readonly id: Schema.String;
412
+ readonly orgId: Schema.String;
413
+ readonly deviceId: Schema.String;
414
+ readonly requestedBy: Schema.String;
415
+ /** The origin of the request, as the kernel decided it (`system` for workflows and scheduled jobs). */
416
+ readonly source: Schema.Literals<readonly ["person", "agent", "system"]>;
417
+ /** The agent run the turn answers (a run on a paired device records itself here before it waits), if any. */
418
+ readonly parentRunId: Schema.optionalKey<Schema.NullOr<Schema.String>>;
419
+ readonly prompt: Schema.String;
420
+ readonly harness: Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>;
421
+ readonly cwd: Schema.NullOr<Schema.String>;
422
+ readonly model: Schema.NullOr<Schema.String>;
423
+ readonly timeoutMs: Schema.Number;
424
+ readonly status: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "cancelled"]>;
425
+ readonly attempt: Schema.Number;
426
+ readonly result: Schema.NullOr<Schema.String>;
427
+ readonly usage: Schema.NullOr<Schema.Struct<{
428
+ readonly inputTokens: Schema.Number;
429
+ readonly outputTokens: Schema.Number;
430
+ readonly cachedInputTokens: Schema.NullOr<Schema.Number>;
431
+ readonly costUsd: Schema.NullOr<Schema.Number>;
432
+ }>>;
433
+ readonly error: Schema.NullOr<Schema.String>;
434
+ readonly createdAt: Schema.String;
435
+ readonly completedAt: Schema.NullOr<Schema.String>;
436
+ /** Whether the device keeps the harness session so a follow-up turn can resume it. */
437
+ readonly resumable: Schema.Boolean;
438
+ /** The turn this one follows up (it resumed that turn's harness session), or null. */
439
+ readonly followUpOf: Schema.NullOr<Schema.String>;
440
+ }>;
441
+ readonly events: Schema.$Array<Schema.Struct<{
442
+ readonly turnId: Schema.String;
443
+ readonly attempt: Schema.Number;
444
+ readonly seq: Schema.Number;
445
+ readonly type: Schema.Literals<readonly ["started", "text", "tool-call", "tool-result", "usage", "error", "finished"]>;
446
+ readonly data: Schema.Unknown;
447
+ readonly at: Schema.String;
448
+ }>>;
449
+ }>;
450
+ export type TurnView = typeof TurnView.Type;
451
+ declare const TurnLeaseLost_base: Schema.Class<TurnLeaseLost, Schema.TaggedStruct<"TurnLeaseLost", {
452
+ readonly message: Schema.String;
453
+ readonly turnId: Schema.String;
454
+ }>, import("effect/Cause").YieldableError>;
455
+ /** A runner's report about a turn it no longer holds (another attempt took it, or it settled). */
456
+ export declare class TurnLeaseLost extends TurnLeaseLost_base {
457
+ }
458
+ /**
459
+ * A session on a device: a local client connected to the daemon (the shell, a browser extension, a CLI), a
460
+ * harness turn, or a computer-use session. Computer use and the browser extension are contract-level here:
461
+ * the daemon reports them when a capability exists; none is implemented yet.
462
+ */
463
+ export declare const DeviceSessionKind: Schema.Literals<readonly ["shell", "browser-extension", "cli", "harness", "computer-use", "desktop-app", "terminal"]>;
464
+ export declare const DeviceSession: Schema.Struct<{
465
+ readonly id: Schema.String;
466
+ readonly kind: Schema.Literals<readonly ["shell", "browser-extension", "cli", "harness", "computer-use", "desktop-app", "terminal"]>;
467
+ readonly label: Schema.String;
468
+ readonly startedAt: Schema.String;
469
+ readonly endedAt: Schema.NullOr<Schema.String>;
470
+ /** For a browser extension: the origin; for a harness: the harness kind; for computer use: the display. */
471
+ readonly detail: Schema.NullOr<Schema.String>;
472
+ }>;
473
+ export type DeviceSession = typeof DeviceSession.Type;
474
+ export declare const ReportSessions: Schema.Struct<{
475
+ readonly sessions: Schema.$Array<Schema.Struct<{
476
+ readonly id: Schema.String;
477
+ readonly kind: Schema.Literals<readonly ["shell", "browser-extension", "cli", "harness", "computer-use", "desktop-app", "terminal"]>;
478
+ readonly label: Schema.String;
479
+ readonly startedAt: Schema.String;
480
+ readonly endedAt: Schema.NullOr<Schema.String>;
481
+ /** For a browser extension: the origin; for a harness: the harness kind; for computer use: the display. */
482
+ readonly detail: Schema.NullOr<Schema.String>;
483
+ }>>;
484
+ }>;
485
+ export declare const DeviceSessions: Schema.Struct<{
486
+ readonly deviceId: Schema.String;
487
+ readonly sessions: Schema.$Array<Schema.Struct<{
488
+ readonly id: Schema.String;
489
+ readonly kind: Schema.Literals<readonly ["shell", "browser-extension", "cli", "harness", "computer-use", "desktop-app", "terminal"]>;
490
+ readonly label: Schema.String;
491
+ readonly startedAt: Schema.String;
492
+ readonly endedAt: Schema.NullOr<Schema.String>;
493
+ /** For a browser extension: the origin; for a harness: the harness kind; for computer use: the display. */
494
+ readonly detail: Schema.NullOr<Schema.String>;
495
+ }>>;
496
+ }>;
497
+ /** Whether a capability is usable on a device now, and why not when it is not. */
498
+ export declare const CapabilityAvailability: Schema.Struct<{
499
+ /** The daemon was started with it (`--allow-commands`). */
500
+ readonly enabled: Schema.Boolean;
501
+ /** It can serve commands now (enabled, and for a browser or the computer, a companion connected). */
502
+ readonly available: Schema.Boolean;
503
+ readonly reason: Schema.NullOr<Schema.String>;
504
+ }>;
505
+ export type CapabilityAvailability = typeof CapabilityAvailability.Type;
506
+ /** What the daemon offers now (`GET /capabilities`): each command kind's availability, its harnesses, the profile. */
507
+ export declare const DeviceAvailability: Schema.Struct<{
508
+ readonly terminal: Schema.Struct<{
509
+ /** The daemon was started with it (`--allow-commands`). */
510
+ readonly enabled: Schema.Boolean;
511
+ /** It can serve commands now (enabled, and for a browser or the computer, a companion connected). */
512
+ readonly available: Schema.Boolean;
513
+ readonly reason: Schema.NullOr<Schema.String>;
514
+ }>;
515
+ readonly files: Schema.Struct<{
516
+ /** The daemon was started with it (`--allow-commands`). */
517
+ readonly enabled: Schema.Boolean;
518
+ /** It can serve commands now (enabled, and for a browser or the computer, a companion connected). */
519
+ readonly available: Schema.Boolean;
520
+ readonly reason: Schema.NullOr<Schema.String>;
521
+ }>;
522
+ readonly browser: Schema.Struct<{
523
+ /** The daemon was started with it (`--allow-commands`). */
524
+ readonly enabled: Schema.Boolean;
525
+ /** It can serve commands now (enabled, and for a browser or the computer, a companion connected). */
526
+ readonly available: Schema.Boolean;
527
+ readonly reason: Schema.NullOr<Schema.String>;
528
+ }>;
529
+ readonly computer: Schema.Struct<{
530
+ /** The daemon was started with it (`--allow-commands`). */
531
+ readonly enabled: Schema.Boolean;
532
+ /** It can serve commands now (enabled, and for a browser or the computer, a companion connected). */
533
+ readonly available: Schema.Boolean;
534
+ readonly reason: Schema.NullOr<Schema.String>;
535
+ }>;
536
+ /** A local PTY for terminal sessions (`POST /terminals`); false: pipes. */
537
+ readonly pty: Schema.Boolean;
538
+ readonly toolsOnly: Schema.Boolean;
539
+ }>;
540
+ export type DeviceAvailability = typeof DeviceAvailability.Type;
541
+ /** What computer use offers on a device (`GET /computer-use`): available while a computer-use companion serves it. */
542
+ export declare const ComputerUseCapability: Schema.Struct<{
543
+ readonly available: Schema.Boolean;
544
+ readonly reason: Schema.String;
545
+ }>;
546
+ /**
547
+ * Each operation's input. Paths are relative to the daemon's workspace and never leave it; `terminal.exec` runs
548
+ * one shell command there. Browser and computer operations are handed to the companion as they are.
549
+ */
550
+ export declare const COMMAND_INPUTS: {
551
+ readonly "terminal.exec": Schema.Struct<{
552
+ readonly command: Schema.String;
553
+ readonly cwd: Schema.optionalKey<Schema.String>;
554
+ }>;
555
+ readonly "files.read": Schema.Struct<{
556
+ readonly path: Schema.String;
557
+ }>;
558
+ readonly "files.write": Schema.Struct<{
559
+ readonly path: Schema.String;
560
+ readonly content: Schema.String;
561
+ }>;
562
+ readonly "files.edit": Schema.Struct<{
563
+ readonly path: Schema.String;
564
+ readonly oldText: Schema.String;
565
+ readonly newText: Schema.String;
566
+ }>;
567
+ readonly "files.list": Schema.Struct<{
568
+ readonly path: Schema.optionalKey<Schema.String>;
569
+ }>;
570
+ readonly "files.search": Schema.Struct<{
571
+ readonly text: Schema.String;
572
+ readonly path: Schema.optionalKey<Schema.String>;
573
+ }>;
574
+ readonly "browser.observe": Schema.Struct<{}>;
575
+ readonly "browser.navigate": Schema.Struct<{
576
+ readonly url: Schema.String;
577
+ }>;
578
+ readonly "browser.click": Schema.Struct<{
579
+ readonly selector: Schema.optionalKey<Schema.String>;
580
+ readonly x: Schema.optionalKey<Schema.Number>;
581
+ readonly y: Schema.optionalKey<Schema.Number>;
582
+ }>;
583
+ readonly "browser.type": Schema.Struct<{
584
+ readonly text: Schema.String;
585
+ readonly selector: Schema.optionalKey<Schema.String>;
586
+ }>;
587
+ readonly "browser.scroll": Schema.Struct<{
588
+ readonly dx: Schema.optionalKey<Schema.Number>;
589
+ readonly dy: Schema.optionalKey<Schema.Number>;
590
+ }>;
591
+ readonly "computer.observe": Schema.Struct<{}>;
592
+ readonly "computer.click": Schema.Struct<{
593
+ readonly x: Schema.Number;
594
+ readonly y: Schema.Number;
595
+ readonly button: Schema.optionalKey<Schema.String>;
596
+ }>;
597
+ readonly "computer.type": Schema.Struct<{
598
+ readonly text: Schema.String;
599
+ }>;
600
+ readonly "computer.key": Schema.Struct<{
601
+ readonly key: Schema.String;
602
+ }>;
603
+ readonly "computer.scroll": Schema.Struct<{
604
+ readonly dx: Schema.optionalKey<Schema.Number>;
605
+ readonly dy: Schema.optionalKey<Schema.Number>;
606
+ }>;
607
+ };
608
+ export type CommandOperation = keyof typeof COMMAND_INPUTS;
609
+ export declare const CommandOperation: Schema.Literals<["browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec", ...("browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec")[]]>;
610
+ /** The kind of device an operation runs on (`terminal.exec` is `terminal`, ...). */
611
+ export declare const commandKindOf: (operation: CommandOperation) => CommandKind;
612
+ /** A command's default and longest time limits once a device takes it (ms), and how long it may wait to be taken. */
613
+ export declare const DEFAULT_COMMAND_TIMEOUT_MS = 60000;
614
+ export declare const MAX_COMMAND_TIMEOUT_MS: number;
615
+ export declare const COMMAND_QUEUE_MS: number;
616
+ export declare const SendCommand: Schema.Struct<{
617
+ readonly deviceId: Schema.String;
618
+ readonly operation: Schema.Literals<["browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec", ...("browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec")[]]>;
619
+ /** The operation's input (see `COMMAND_INPUTS`). */
620
+ readonly input: Schema.Unknown;
621
+ readonly timeoutMs: Schema.optionalKey<Schema.Number>;
622
+ }>;
623
+ export type SendCommand = typeof SendCommand.Type;
624
+ /**
625
+ * `cancelled` means the command never ran: cancelled while queued, or taken by a device that heard of the cancellation
626
+ * before it acted. A command cancelled while it ran ends `failed` (interrupted: what it did before it stopped stands)
627
+ * or as it really ended, with `cancelRequestedAt` set; nothing is ever reported undone.
628
+ */
629
+ export declare const CommandStatus: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "expired", "cancelled"]>;
630
+ export type CommandStatus = typeof CommandStatus.Type;
631
+ export declare const CommandRecord: Schema.Struct<{
632
+ readonly id: Schema.String;
633
+ readonly deviceId: Schema.String;
634
+ readonly requestedBy: Schema.String;
635
+ readonly source: Schema.Literals<readonly ["person", "agent", "system"]>;
636
+ readonly operation: Schema.Literals<["browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec", ...("browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec")[]]>;
637
+ readonly input: Schema.Unknown;
638
+ readonly status: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "expired", "cancelled"]>;
639
+ /** The operation's answer (a command's output, a file's content, a page's text, ...). */
640
+ readonly result: Schema.Unknown;
641
+ readonly error: Schema.NullOr<Schema.String>;
642
+ readonly createdAt: Schema.String;
643
+ readonly completedAt: Schema.NullOr<Schema.String>;
644
+ /** When someone asked to cancel it (null: never). */
645
+ readonly cancelRequestedAt: Schema.NullOr<Schema.String>;
646
+ }>;
647
+ export type CommandRecord = typeof CommandRecord.Type;
648
+ /** A command a device took: run it before `deadline` and report it with `lease`. */
649
+ export declare const ClaimedCommand: Schema.Struct<{
650
+ readonly id: Schema.String;
651
+ readonly lease: Schema.String;
652
+ readonly operation: Schema.Literals<["browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec", ...("browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec")[]]>;
653
+ readonly input: Schema.Unknown;
654
+ readonly timeoutMs: Schema.Number;
655
+ readonly deadline: Schema.String;
656
+ }>;
657
+ export type ClaimedCommand = typeof ClaimedCommand.Type;
658
+ export declare const NextCommandRequest: Schema.Struct<{
659
+ /** The kinds the device can serve now; only commands of these are handed out. */
660
+ readonly kinds: Schema.$Array<Schema.Literals<readonly ["terminal", "files", "browser", "computer"]>>;
661
+ /** Hold the request this long waiting for a command (long poll; at most 30 s). */
662
+ readonly waitMs: Schema.optionalKey<Schema.Number>;
663
+ }>;
664
+ export declare const NextCommand: Schema.Struct<{
665
+ readonly command: Schema.NullOr<Schema.Struct<{
666
+ readonly id: Schema.String;
667
+ readonly lease: Schema.String;
668
+ readonly operation: Schema.Literals<["browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec", ...("browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec")[]]>;
669
+ readonly input: Schema.Unknown;
670
+ readonly timeoutMs: Schema.Number;
671
+ readonly deadline: Schema.String;
672
+ }>>;
673
+ }>;
674
+ export declare const CompleteCommand: Schema.Struct<{
675
+ readonly commandId: Schema.String;
676
+ readonly lease: Schema.String;
677
+ /** `cancelled`: the device did not act (taken, then cancelled before it ran); only after a cancellation was asked. */
678
+ readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "cancelled"]>;
679
+ readonly result: Schema.Unknown;
680
+ readonly error: Schema.NullOr<Schema.String>;
681
+ }>;
682
+ export type CompleteCommand = typeof CompleteCommand.Type;
683
+ export declare const CompletedCommand: Schema.Struct<{
684
+ readonly settled: Schema.Boolean;
685
+ readonly duplicate: Schema.Boolean;
686
+ }>;
687
+ /** A device asks, before it acts and while it waits or acts, whether a command it took should stop. */
688
+ export declare const CheckCommand: Schema.Struct<{
689
+ readonly commandId: Schema.String;
690
+ readonly lease: Schema.String;
691
+ }>;
692
+ /** `stop`: a cancellation was asked, or the device no longer holds the command (its lease or authority). */
693
+ export declare const CheckedCommand: Schema.Struct<{
694
+ readonly stop: Schema.Boolean;
695
+ }>;
696
+ /** A device reports what it offers now (its harnesses, command kinds and profile). */
697
+ export declare const ReportCapabilities: Schema.Struct<{
698
+ readonly capabilities: Schema.Struct<{
699
+ readonly harnesses: Schema.$Array<Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>>;
700
+ readonly computerUse: Schema.Boolean;
701
+ readonly browserExtension: Schema.Boolean;
702
+ readonly commands: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["terminal", "files", "browser", "computer"]>>>;
703
+ readonly toolsOnly: Schema.optionalKey<Schema.Boolean>;
704
+ }>;
705
+ }>;
706
+ /** A device registers (or, with null, removes) the push subscription notifications for its person may use. */
707
+ export declare const RegisterPush: Schema.Struct<{
708
+ readonly subscription: Schema.NullOr<Schema.Union<readonly [Schema.Struct<{
709
+ readonly kind: Schema.Literal<"web-push">;
710
+ readonly endpoint: Schema.String;
711
+ readonly keys: Schema.Struct<{
712
+ readonly p256dh: Schema.String;
713
+ readonly auth: Schema.String;
714
+ }>;
715
+ }>, Schema.Struct<{
716
+ readonly kind: Schema.Literals<readonly ["apns", "fcm"]>;
717
+ readonly token: Schema.String;
718
+ }>]>>;
719
+ }>;
720
+ export declare const RegisteredPush: Schema.Struct<{
721
+ readonly registered: Schema.Boolean;
722
+ }>;
723
+ /** The longest prompt a turn carries (characters). */
724
+ export declare const MAX_TURN_PROMPT = 100000;
725
+ /** A turn's default and longest time limits (ms). */
726
+ export declare const DEFAULT_TURN_TIMEOUT_MS: number;
727
+ export declare const MAX_TURN_TIMEOUT_MS: number;
728
+ export declare const SendTurn: Schema.Struct<{
729
+ readonly deviceId: Schema.String;
730
+ readonly prompt: Schema.String;
731
+ readonly harness: Schema.optionalKey<Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>>;
732
+ /** The working directory on the device (default: the daemon's configured workspace). */
733
+ readonly cwd: Schema.optionalKey<Schema.String>;
734
+ readonly model: Schema.optionalKey<Schema.String>;
735
+ readonly timeoutMs: Schema.optionalKey<Schema.Number>;
736
+ /** Limit the turn to these Eloxiv actions (by name); default every action the device's subject may call. */
737
+ readonly actions: Schema.optionalKey<Schema.$Array<Schema.String>>;
738
+ /**
739
+ * Give the harness its built-in file and shell tools in the working directory. Off by default: a shell runs
740
+ * as the device's OS user and can read what that user can (see docs/contracts/daemon.md).
741
+ */
742
+ readonly workspaceTools: Schema.optionalKey<Schema.Boolean>;
743
+ /**
744
+ * Keep the harness session on the device so a later turn can follow it up (`followUp`). Off by default: the
745
+ * harness keeps nothing after the turn (no transcript on disk, its temporary working directory removed).
746
+ */
747
+ readonly resumable: Schema.optionalKey<Schema.Boolean>;
748
+ /**
749
+ * Follow up an earlier resumable turn on the same device: the harness resumes that turn's session (its
750
+ * conversation and working directory), with the same harness. The new turn is resumable too.
751
+ */
752
+ readonly followUp: Schema.optionalKey<Schema.String>;
753
+ }>;
754
+ export type SendTurn = typeof SendTurn.Type;
755
+ export declare const sendTurn: import("./Module.ts").ActionContract<"devices.sendTurn", Schema.Struct<{
756
+ readonly deviceId: Schema.String;
757
+ readonly prompt: Schema.String;
758
+ readonly harness: Schema.optionalKey<Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>>;
759
+ /** The working directory on the device (default: the daemon's configured workspace). */
760
+ readonly cwd: Schema.optionalKey<Schema.String>;
761
+ readonly model: Schema.optionalKey<Schema.String>;
762
+ readonly timeoutMs: Schema.optionalKey<Schema.Number>;
763
+ /** Limit the turn to these Eloxiv actions (by name); default every action the device's subject may call. */
764
+ readonly actions: Schema.optionalKey<Schema.$Array<Schema.String>>;
765
+ /**
766
+ * Give the harness its built-in file and shell tools in the working directory. Off by default: a shell runs
767
+ * as the device's OS user and can read what that user can (see docs/contracts/daemon.md).
768
+ */
769
+ readonly workspaceTools: Schema.optionalKey<Schema.Boolean>;
770
+ /**
771
+ * Keep the harness session on the device so a later turn can follow it up (`followUp`). Off by default: the
772
+ * harness keeps nothing after the turn (no transcript on disk, its temporary working directory removed).
773
+ */
774
+ readonly resumable: Schema.optionalKey<Schema.Boolean>;
775
+ /**
776
+ * Follow up an earlier resumable turn on the same device: the harness resumes that turn's session (its
777
+ * conversation and working directory), with the same harness. The new turn is resumable too.
778
+ */
779
+ readonly followUp: Schema.optionalKey<Schema.String>;
780
+ }>, Schema.Struct<{
781
+ readonly turnId: Schema.String;
782
+ }>>;
783
+ export declare const cancelTurn: import("./Module.ts").ActionContract<"devices.cancelTurn", Schema.Struct<{
784
+ readonly id: Schema.String;
785
+ }>, Schema.Struct<{
786
+ readonly id: Schema.String;
787
+ readonly status: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "cancelled"]>;
788
+ }>>;
789
+ export declare const turnRequested: import("./Module.ts").EventContract<"devices.turnRequested", Schema.Struct<{
790
+ readonly id: Schema.String;
791
+ readonly deviceId: Schema.String;
792
+ readonly requestedBy: Schema.String;
793
+ readonly timeoutMs: Schema.Number;
794
+ }>>;
795
+ export declare const turnSettled: import("./Module.ts").EventContract<"devices.turnSettled", Schema.Struct<{
796
+ readonly id: Schema.String;
797
+ readonly status: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "cancelled"]>;
798
+ }>>;
799
+ export declare const sendCommand: import("./Module.ts").ActionContract<"devices.sendCommand", Schema.Struct<{
800
+ readonly deviceId: Schema.String;
801
+ readonly operation: Schema.Literals<["browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec", ...("browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec")[]]>;
802
+ /** The operation's input (see `COMMAND_INPUTS`). */
803
+ readonly input: Schema.Unknown;
804
+ readonly timeoutMs: Schema.optionalKey<Schema.Number>;
805
+ }>, Schema.Struct<{
806
+ readonly commandId: Schema.String;
807
+ }>>;
808
+ export declare const cancelCommand: import("./Module.ts").ActionContract<"devices.cancelCommand", Schema.Struct<{
809
+ readonly id: Schema.String;
810
+ }>, Schema.Struct<{
811
+ readonly id: Schema.String;
812
+ readonly status: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "expired", "cancelled"]>;
813
+ readonly cancelRequested: Schema.Boolean;
814
+ }>>;
815
+ export declare const getCommand: import("./Module.ts").ActionContract<"devices.getCommand", Schema.Struct<{
816
+ readonly id: Schema.String;
817
+ }>, Schema.Struct<{
818
+ readonly id: Schema.String;
819
+ readonly deviceId: Schema.String;
820
+ readonly requestedBy: Schema.String;
821
+ readonly source: Schema.Literals<readonly ["person", "agent", "system"]>;
822
+ readonly operation: Schema.Literals<["browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec", ...("browser.click" | "browser.navigate" | "browser.observe" | "browser.scroll" | "browser.type" | "computer.click" | "computer.key" | "computer.observe" | "computer.scroll" | "computer.type" | "files.edit" | "files.list" | "files.read" | "files.search" | "files.write" | "terminal.exec")[]]>;
823
+ readonly input: Schema.Unknown;
824
+ readonly status: Schema.Literals<readonly ["queued", "running", "succeeded", "failed", "expired", "cancelled"]>;
825
+ /** The operation's answer (a command's output, a file's content, a page's text, ...). */
826
+ readonly result: Schema.Unknown;
827
+ readonly error: Schema.NullOr<Schema.String>;
828
+ readonly createdAt: Schema.String;
829
+ readonly completedAt: Schema.NullOr<Schema.String>;
830
+ /** When someone asked to cancel it (null: never). */
831
+ readonly cancelRequestedAt: Schema.NullOr<Schema.String>;
832
+ }>>;
833
+ export declare const DeviceSummary: Schema.Struct<{
834
+ readonly id: Schema.String;
835
+ readonly name: Schema.String;
836
+ readonly kind: Schema.Literals<readonly ["desktop", "runner"]>;
837
+ readonly harnesses: Schema.$Array<Schema.String>;
838
+ /** The command kinds the device offers now. */
839
+ readonly commands: Schema.$Array<Schema.Literals<readonly ["terminal", "files", "browser", "computer"]>>;
840
+ }>;
841
+ export declare const listDevices: import("./Module.ts").ActionContract<"devices.listDevices", Schema.Struct<{}>, Schema.Struct<{
842
+ readonly devices: Schema.$Array<Schema.Struct<{
843
+ readonly id: Schema.String;
844
+ readonly name: Schema.String;
845
+ readonly kind: Schema.Literals<readonly ["desktop", "runner"]>;
846
+ readonly harnesses: Schema.$Array<Schema.String>;
847
+ /** The command kinds the device offers now. */
848
+ readonly commands: Schema.$Array<Schema.Literals<readonly ["terminal", "files", "browser", "computer"]>>;
849
+ }>>;
850
+ }>>;
851
+ export declare const commandRequested: import("./Module.ts").EventContract<"devices.commandRequested", Schema.Struct<{
852
+ readonly id: Schema.String;
853
+ readonly deviceId: Schema.String;
854
+ readonly operation: Schema.String;
855
+ }>>;
856
+ export {};
857
+ //# sourceMappingURL=Devices.d.ts.map