@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,1295 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://eloxiv.dev/schema/codegen/LocalClient.json",
4
+ "title": "LocalClient",
5
+ "description": "The protocol native clients reach the client core through (decision 14): JSON over HTTP and one server-sent event stream, served by the device daemon under /client/v1 on loopback, for the host's per-launch secret and paired desktop-app clients only. The daemon holds the person's session (desktop sign-in through its own loopback callback) and the replica; no kernel credential is ever in an answer or an event. Events carry the generation they belong to; after a context reset no event of an older generation is sent.",
6
+ "version": "1.1.0",
7
+ "$defs": {
8
+ "ActionCall": {
9
+ "type": "object",
10
+ "properties": {
11
+ "input": {},
12
+ "idempotencyKey": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "maxLength": 255
16
+ },
17
+ "generation": {
18
+ "type": "integer",
19
+ "minimum": 0,
20
+ "maximum": 9007199254740991,
21
+ "description": "The generation the client made the request in (1.1.0): when another is current, the request is refused with StaleGeneration (naming the current one) and nothing is run. Absent, the current generation is used."
22
+ }
23
+ },
24
+ "additionalProperties": true,
25
+ "description": "A non-optimistic action call's input, optional idempotency key and, since 1.1.0, the generation the client made it in (`generation`, see `ExpectedGeneration`)."
26
+ },
27
+ "ActionFailed": {
28
+ "type": "object",
29
+ "properties": {
30
+ "_tag": {
31
+ "type": "string",
32
+ "enum": [
33
+ "ActionFailed"
34
+ ]
35
+ },
36
+ "message": {
37
+ "type": "string"
38
+ },
39
+ "action": {
40
+ "type": "string"
41
+ },
42
+ "effect": {
43
+ "type": "string",
44
+ "enum": [
45
+ "none",
46
+ "unknown"
47
+ ]
48
+ }
49
+ },
50
+ "required": [
51
+ "_tag",
52
+ "message",
53
+ "action"
54
+ ],
55
+ "additionalProperties": true
56
+ },
57
+ "ActionResult": {
58
+ "description": "The action's result envelope as every surface returns it: `{ kind: \"output\", output }` or, for a replayed idempotent call, `{ kind: \"replay\", receipt }`."
59
+ },
60
+ "AgentRunEvent": {
61
+ "type": "object",
62
+ "properties": {
63
+ "runId": {
64
+ "type": "string"
65
+ },
66
+ "seq": {
67
+ "type": "integer",
68
+ "minimum": -1,
69
+ "maximum": 9007199254740991
70
+ },
71
+ "type": {
72
+ "$ref": "#/$defs/RunEventKind"
73
+ },
74
+ "data": {},
75
+ "at": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ "required": [
80
+ "runId",
81
+ "seq",
82
+ "type",
83
+ "data",
84
+ "at"
85
+ ],
86
+ "additionalProperties": true,
87
+ "description": "One event of an agent run, as the chat SDK's `chatClient.events` delivers it: its run, its stored sequence number (`-1` for streamed text, `text-delta`, whose `data` has `delta`, `step` and `attempt`), its type, its data (`consent-required`: `consentId`, `action`, `toolCallId`, `step`; `model-step`: `step`, `text`; `run-finished`: `status`, ...) and when it happened (empty for streamed text)."
88
+ },
89
+ "AppInfo": {
90
+ "type": "object",
91
+ "properties": {
92
+ "queries": {
93
+ "type": "array",
94
+ "items": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "mutators": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "string"
102
+ }
103
+ },
104
+ "actions": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "string"
108
+ }
109
+ }
110
+ },
111
+ "required": [
112
+ "queries",
113
+ "mutators",
114
+ "actions"
115
+ ],
116
+ "additionalProperties": true,
117
+ "description": "What the app composed into the daemon offers: its named queries, optimistic mutators and actions."
118
+ },
119
+ "ApprovalRequired": {
120
+ "type": "object",
121
+ "properties": {
122
+ "_tag": {
123
+ "type": "string",
124
+ "enum": [
125
+ "ApprovalRequired"
126
+ ]
127
+ },
128
+ "message": {
129
+ "type": "string"
130
+ },
131
+ "action": {
132
+ "type": "string"
133
+ },
134
+ "approvalId": {
135
+ "type": "string"
136
+ }
137
+ },
138
+ "required": [
139
+ "_tag",
140
+ "message",
141
+ "action",
142
+ "approvalId"
143
+ ],
144
+ "additionalProperties": true
145
+ },
146
+ "ClientNotConfigured": {
147
+ "type": "object",
148
+ "properties": {
149
+ "_tag": {
150
+ "type": "string",
151
+ "enum": [
152
+ "ClientNotConfigured"
153
+ ]
154
+ },
155
+ "message": {
156
+ "type": "string"
157
+ }
158
+ },
159
+ "required": [
160
+ "_tag",
161
+ "message"
162
+ ],
163
+ "additionalProperties": true
164
+ },
165
+ "ClientOutdated": {
166
+ "type": "object",
167
+ "properties": {
168
+ "_tag": {
169
+ "type": "string",
170
+ "enum": [
171
+ "ClientOutdated"
172
+ ]
173
+ },
174
+ "message": {
175
+ "type": "string"
176
+ },
177
+ "action": {
178
+ "type": "string"
179
+ },
180
+ "clientVersion": {
181
+ "type": "string"
182
+ },
183
+ "minClientVersion": {
184
+ "type": "string"
185
+ }
186
+ },
187
+ "required": [
188
+ "_tag",
189
+ "message",
190
+ "action",
191
+ "clientVersion",
192
+ "minClientVersion"
193
+ ],
194
+ "additionalProperties": true
195
+ },
196
+ "ConnectionEvent": {
197
+ "type": "object",
198
+ "properties": {
199
+ "seq": {
200
+ "type": "integer",
201
+ "minimum": 1,
202
+ "maximum": 9007199254740991,
203
+ "description": "Increases by one per event on its stream, starting at 1."
204
+ },
205
+ "type": {
206
+ "type": "string",
207
+ "enum": [
208
+ "connection"
209
+ ]
210
+ },
211
+ "state": {
212
+ "$ref": "#/$defs/ConnectionState"
213
+ }
214
+ },
215
+ "required": [
216
+ "seq",
217
+ "type",
218
+ "state"
219
+ ],
220
+ "additionalProperties": true,
221
+ "description": "The replica's connection changed."
222
+ },
223
+ "ConnectionState": {
224
+ "type": "string",
225
+ "enum": [
226
+ "connecting",
227
+ "connected",
228
+ "disconnected",
229
+ "needsAuth"
230
+ ],
231
+ "description": "The replica's connection to the sync server."
232
+ },
233
+ "ConsentRequired": {
234
+ "type": "object",
235
+ "properties": {
236
+ "_tag": {
237
+ "type": "string",
238
+ "enum": [
239
+ "ConsentRequired"
240
+ ]
241
+ },
242
+ "message": {
243
+ "type": "string"
244
+ },
245
+ "action": {
246
+ "type": "string"
247
+ },
248
+ "consentId": {
249
+ "type": "string"
250
+ }
251
+ },
252
+ "required": [
253
+ "_tag",
254
+ "message",
255
+ "action",
256
+ "consentId"
257
+ ],
258
+ "additionalProperties": true
259
+ },
260
+ "ContextEvent": {
261
+ "type": "object",
262
+ "properties": {
263
+ "seq": {
264
+ "type": "integer",
265
+ "minimum": 1,
266
+ "maximum": 9007199254740991,
267
+ "description": "Increases by one per event on its stream, starting at 1."
268
+ },
269
+ "type": {
270
+ "type": "string",
271
+ "enum": [
272
+ "context"
273
+ ]
274
+ },
275
+ "generation": {
276
+ "type": "integer",
277
+ "minimum": 0,
278
+ "maximum": 9007199254740991
279
+ },
280
+ "reason": {
281
+ "$ref": "#/$defs/ContextReason"
282
+ }
283
+ },
284
+ "required": [
285
+ "seq",
286
+ "type",
287
+ "generation",
288
+ "reason"
289
+ ],
290
+ "additionalProperties": true,
291
+ "description": "A reset: drop every row, view and write of older generations. After it, no event of an older generation is ever sent; subscriptions of older generations are gone (subscribe again)."
292
+ },
293
+ "ContextReason": {
294
+ "type": "string",
295
+ "enum": [
296
+ "org",
297
+ "signOut",
298
+ "needsAuth"
299
+ ],
300
+ "description": "Why the context was reset: another organisation was selected, the person signed out, or the sync server refused the session."
301
+ },
302
+ "Empty": {
303
+ "type": "object",
304
+ "description": "No fields."
305
+ },
306
+ "EngineReadiness": {
307
+ "type": "object",
308
+ "properties": {
309
+ "state": {
310
+ "type": "string",
311
+ "enum": [
312
+ "configured",
313
+ "missing",
314
+ "unavailable",
315
+ "unknown"
316
+ ]
317
+ },
318
+ "provider": {
319
+ "anyOf": [
320
+ {
321
+ "type": "string"
322
+ },
323
+ {
324
+ "type": "null"
325
+ }
326
+ ]
327
+ },
328
+ "model": {
329
+ "anyOf": [
330
+ {
331
+ "type": "string"
332
+ },
333
+ {
334
+ "type": "null"
335
+ }
336
+ ]
337
+ },
338
+ "detail": {
339
+ "type": "string"
340
+ }
341
+ },
342
+ "required": [
343
+ "state",
344
+ "provider",
345
+ "model",
346
+ "detail"
347
+ ],
348
+ "additionalProperties": true,
349
+ "description": "Whether the person's agent can answer in the selected organisation, as the kernel decides it: `configured`, `missing` (no model set up: a chat keeps its draft and does not send), `unavailable`, or `unknown` (the kernel could not be asked, which holds nothing back). `detail` is for people; never a credential."
350
+ },
351
+ "Event": {
352
+ "description": "One event on the stream (`GET /client/v1/events`), tagged by `type`; each is one SSE `data:` line.",
353
+ "oneOf": [
354
+ {
355
+ "$ref": "#/$defs/SessionEvent"
356
+ },
357
+ {
358
+ "$ref": "#/$defs/ContextEvent"
359
+ },
360
+ {
361
+ "$ref": "#/$defs/RowsEvent"
362
+ },
363
+ {
364
+ "$ref": "#/$defs/WriteEvent"
365
+ },
366
+ {
367
+ "$ref": "#/$defs/ConnectionEvent"
368
+ },
369
+ {
370
+ "$ref": "#/$defs/RunEvent"
371
+ }
372
+ ]
373
+ },
374
+ "FollowRun": {
375
+ "type": "object",
376
+ "properties": {
377
+ "runId": {
378
+ "type": "string",
379
+ "minLength": 1,
380
+ "maxLength": 128
381
+ },
382
+ "after": {
383
+ "type": "integer",
384
+ "minimum": -1,
385
+ "maximum": 9007199254740991
386
+ },
387
+ "id": {
388
+ "type": "string",
389
+ "minLength": 1,
390
+ "maxLength": 128
391
+ }
392
+ },
393
+ "required": [
394
+ "runId"
395
+ ],
396
+ "additionalProperties": true,
397
+ "description": "Follow an agent run's events (`runId`, from `agent.send`'s answer or `agent.runs`) after the stored event `after` (exclusive; default -1, from the start), under an optional client-chosen id. The run must be the person's, in the selected organisation."
398
+ },
399
+ "Forbidden": {
400
+ "type": "object",
401
+ "properties": {
402
+ "_tag": {
403
+ "type": "string",
404
+ "enum": [
405
+ "Forbidden"
406
+ ]
407
+ },
408
+ "message": {
409
+ "type": "string"
410
+ },
411
+ "action": {
412
+ "type": "string"
413
+ }
414
+ },
415
+ "required": [
416
+ "_tag",
417
+ "message",
418
+ "action"
419
+ ],
420
+ "additionalProperties": true
421
+ },
422
+ "GenerationAnswer": {
423
+ "type": "object",
424
+ "properties": {
425
+ "generation": {
426
+ "type": "integer",
427
+ "minimum": 0,
428
+ "maximum": 9007199254740991
429
+ }
430
+ },
431
+ "required": [
432
+ "generation"
433
+ ],
434
+ "additionalProperties": true,
435
+ "description": "The generation now current."
436
+ },
437
+ "Hello": {
438
+ "type": "object",
439
+ "properties": {
440
+ "protocol": {
441
+ "type": "string",
442
+ "enum": [
443
+ "eloxiv.local-client"
444
+ ]
445
+ },
446
+ "version": {
447
+ "type": "string"
448
+ },
449
+ "features": {
450
+ "type": "array",
451
+ "items": {
452
+ "type": "string"
453
+ }
454
+ },
455
+ "app": {
456
+ "$ref": "#/$defs/AppInfo"
457
+ }
458
+ },
459
+ "required": [
460
+ "protocol",
461
+ "version",
462
+ "features",
463
+ "app"
464
+ ],
465
+ "additionalProperties": true,
466
+ "description": "The protocol, its version and features, and the app."
467
+ },
468
+ "IdempotencyConflict": {
469
+ "type": "object",
470
+ "properties": {
471
+ "_tag": {
472
+ "type": "string",
473
+ "enum": [
474
+ "IdempotencyConflict"
475
+ ]
476
+ },
477
+ "message": {
478
+ "type": "string"
479
+ },
480
+ "key": {
481
+ "type": "string"
482
+ }
483
+ },
484
+ "required": [
485
+ "_tag",
486
+ "message",
487
+ "key"
488
+ ],
489
+ "additionalProperties": true
490
+ },
491
+ "InvalidInput": {
492
+ "type": "object",
493
+ "properties": {
494
+ "_tag": {
495
+ "type": "string",
496
+ "enum": [
497
+ "InvalidInput"
498
+ ]
499
+ },
500
+ "message": {
501
+ "type": "string"
502
+ }
503
+ },
504
+ "required": [
505
+ "_tag",
506
+ "message"
507
+ ],
508
+ "additionalProperties": true
509
+ },
510
+ "InvocationError": {
511
+ "description": "The kernel's standard error for a refused or failed action: `{ _tag, message, ...fields }`.",
512
+ "oneOf": [
513
+ {
514
+ "$ref": "#/$defs/Unauthenticated"
515
+ },
516
+ {
517
+ "$ref": "#/$defs/Forbidden"
518
+ },
519
+ {
520
+ "$ref": "#/$defs/ApprovalRequired"
521
+ },
522
+ {
523
+ "$ref": "#/$defs/ConsentRequired"
524
+ },
525
+ {
526
+ "$ref": "#/$defs/IdempotencyConflict"
527
+ },
528
+ {
529
+ "$ref": "#/$defs/InvalidInput"
530
+ },
531
+ {
532
+ "$ref": "#/$defs/UnknownAction"
533
+ },
534
+ {
535
+ "$ref": "#/$defs/ActionFailed"
536
+ },
537
+ {
538
+ "$ref": "#/$defs/ClientOutdated"
539
+ }
540
+ ]
541
+ },
542
+ "LocalClientError": {
543
+ "description": "A refusal: `{ _tag, message, ...fields }`.",
544
+ "oneOf": [
545
+ {
546
+ "$ref": "#/$defs/Unauthenticated"
547
+ },
548
+ {
549
+ "$ref": "#/$defs/Forbidden"
550
+ },
551
+ {
552
+ "$ref": "#/$defs/ApprovalRequired"
553
+ },
554
+ {
555
+ "$ref": "#/$defs/ConsentRequired"
556
+ },
557
+ {
558
+ "$ref": "#/$defs/IdempotencyConflict"
559
+ },
560
+ {
561
+ "$ref": "#/$defs/InvalidInput"
562
+ },
563
+ {
564
+ "$ref": "#/$defs/UnknownAction"
565
+ },
566
+ {
567
+ "$ref": "#/$defs/ActionFailed"
568
+ },
569
+ {
570
+ "$ref": "#/$defs/ClientOutdated"
571
+ },
572
+ {
573
+ "$ref": "#/$defs/ClientNotConfigured"
574
+ },
575
+ {
576
+ "$ref": "#/$defs/NotSignedIn"
577
+ },
578
+ {
579
+ "$ref": "#/$defs/UnknownSubscription"
580
+ },
581
+ {
582
+ "$ref": "#/$defs/UnknownQuery"
583
+ },
584
+ {
585
+ "$ref": "#/$defs/UnknownMutator"
586
+ },
587
+ {
588
+ "$ref": "#/$defs/StaleGeneration"
589
+ },
590
+ {
591
+ "$ref": "#/$defs/SignInFailed"
592
+ },
593
+ {
594
+ "$ref": "#/$defs/ProtocolVersion"
595
+ }
596
+ ]
597
+ },
598
+ "NotSignedIn": {
599
+ "type": "object",
600
+ "properties": {
601
+ "_tag": {
602
+ "type": "string",
603
+ "enum": [
604
+ "NotSignedIn"
605
+ ]
606
+ },
607
+ "message": {
608
+ "type": "string"
609
+ }
610
+ },
611
+ "required": [
612
+ "_tag",
613
+ "message"
614
+ ],
615
+ "additionalProperties": true
616
+ },
617
+ "Ok": {
618
+ "type": "object",
619
+ "properties": {
620
+ "ok": {
621
+ "type": "boolean",
622
+ "enum": [
623
+ true
624
+ ]
625
+ }
626
+ },
627
+ "required": [
628
+ "ok"
629
+ ],
630
+ "additionalProperties": true,
631
+ "description": "Done."
632
+ },
633
+ "Organization": {
634
+ "type": "object",
635
+ "properties": {
636
+ "orgId": {
637
+ "type": "string"
638
+ },
639
+ "name": {
640
+ "type": "string"
641
+ },
642
+ "roles": {
643
+ "type": "array",
644
+ "items": {
645
+ "type": "string"
646
+ }
647
+ }
648
+ },
649
+ "required": [
650
+ "orgId",
651
+ "name",
652
+ "roles"
653
+ ],
654
+ "additionalProperties": true,
655
+ "description": "An organisation the person belongs to, with their roles in it."
656
+ },
657
+ "ProtocolVersion": {
658
+ "type": "object",
659
+ "properties": {
660
+ "_tag": {
661
+ "type": "string",
662
+ "enum": [
663
+ "ProtocolVersion"
664
+ ]
665
+ },
666
+ "message": {
667
+ "type": "string"
668
+ },
669
+ "version": {
670
+ "type": "string"
671
+ }
672
+ },
673
+ "required": [
674
+ "_tag",
675
+ "message",
676
+ "version"
677
+ ],
678
+ "additionalProperties": true
679
+ },
680
+ "RowsEvent": {
681
+ "type": "object",
682
+ "properties": {
683
+ "seq": {
684
+ "type": "integer",
685
+ "minimum": 1,
686
+ "maximum": 9007199254740991,
687
+ "description": "Increases by one per event on its stream, starting at 1."
688
+ },
689
+ "type": {
690
+ "type": "string",
691
+ "enum": [
692
+ "rows"
693
+ ]
694
+ },
695
+ "subscription": {
696
+ "type": "string"
697
+ },
698
+ "generation": {
699
+ "type": "integer",
700
+ "minimum": 0,
701
+ "maximum": 9007199254740991,
702
+ "description": "The context the event belongs to."
703
+ },
704
+ "status": {
705
+ "$ref": "#/$defs/RowsStatus"
706
+ },
707
+ "rows": {
708
+ "type": "array"
709
+ },
710
+ "error": {
711
+ "$ref": "#/$defs/InvocationError"
712
+ }
713
+ },
714
+ "required": [
715
+ "seq",
716
+ "type",
717
+ "subscription",
718
+ "generation",
719
+ "status",
720
+ "rows"
721
+ ],
722
+ "additionalProperties": true,
723
+ "description": "A subscription's full snapshot (version 1 sends the whole result on every change). With status `error`, `error` is why, as the kernel's typed error (the server's refusal of the query, or `ActionFailed` naming the query), like a rejected write's."
724
+ },
725
+ "RowsStatus": {
726
+ "type": "string",
727
+ "enum": [
728
+ "unknown",
729
+ "cached",
730
+ "complete",
731
+ "error"
732
+ ],
733
+ "description": "How settled a snapshot is: `unknown` (only what the replica held before asking), `cached` (a result an earlier session settled), `complete` (the server answered), `error`."
734
+ },
735
+ "RunEvent": {
736
+ "type": "object",
737
+ "properties": {
738
+ "seq": {
739
+ "type": "integer",
740
+ "minimum": 1,
741
+ "maximum": 9007199254740991,
742
+ "description": "Increases by one per event on its stream, starting at 1."
743
+ },
744
+ "type": {
745
+ "type": "string",
746
+ "enum": [
747
+ "run"
748
+ ]
749
+ },
750
+ "subscription": {
751
+ "type": "string"
752
+ },
753
+ "generation": {
754
+ "type": "integer",
755
+ "minimum": 0,
756
+ "maximum": 9007199254740991,
757
+ "description": "The context the event belongs to."
758
+ },
759
+ "event": {
760
+ "$ref": "#/$defs/AgentRunEvent"
761
+ },
762
+ "error": {
763
+ "$ref": "#/$defs/InvocationError"
764
+ }
765
+ },
766
+ "required": [
767
+ "seq",
768
+ "type",
769
+ "subscription",
770
+ "generation"
771
+ ],
772
+ "additionalProperties": true,
773
+ "description": "One event of a run subscription (`POST /client/v1/runs`, LocalClient 1.1.0), sent only to the client that made it: `event` is the run's next event (a stored event at most once, by its `seq`; streamed text as it comes). The subscription ends after the event of type `run-finished`, or with `error` (and no `event`) when the kernel refused the stream (the session ended, not the person's run); nothing of it follows either. A context reset ends it too, like every subscription."
774
+ },
775
+ "RunEventKind": {
776
+ "type": "string",
777
+ "enum": [
778
+ "run-started",
779
+ "model-step",
780
+ "tool-call",
781
+ "tool-result",
782
+ "consent-required",
783
+ "consent-decided",
784
+ "compacted",
785
+ "delegated",
786
+ "seat-spawned",
787
+ "team-message",
788
+ "reply-discarded",
789
+ "answer-checked",
790
+ "reconciled",
791
+ "processor-tripped",
792
+ "run-finished",
793
+ "text-delta"
794
+ ],
795
+ "description": "What a run's event is (the AgentRuntime contract's run event types): `text-delta` is streamed text, never stored; every other one is stored, numbered by `seq`."
796
+ },
797
+ "SelectOrg": {
798
+ "type": "object",
799
+ "properties": {
800
+ "orgId": {
801
+ "type": "string",
802
+ "minLength": 1
803
+ }
804
+ },
805
+ "required": [
806
+ "orgId"
807
+ ],
808
+ "additionalProperties": true,
809
+ "description": "Select an organisation the person belongs to."
810
+ },
811
+ "SessionEvent": {
812
+ "type": "object",
813
+ "properties": {
814
+ "seq": {
815
+ "type": "integer",
816
+ "minimum": 1,
817
+ "maximum": 9007199254740991,
818
+ "description": "Increases by one per event on its stream, starting at 1."
819
+ },
820
+ "type": {
821
+ "type": "string",
822
+ "enum": [
823
+ "session"
824
+ ]
825
+ },
826
+ "session": {
827
+ "$ref": "#/$defs/SessionState"
828
+ }
829
+ },
830
+ "required": [
831
+ "seq",
832
+ "type",
833
+ "session"
834
+ ],
835
+ "additionalProperties": true,
836
+ "description": "The session changed."
837
+ },
838
+ "SessionState": {
839
+ "description": "Where the person's session stands, tagged by `state`.",
840
+ "oneOf": [
841
+ {
842
+ "$ref": "#/$defs/SignedOut"
843
+ },
844
+ {
845
+ "$ref": "#/$defs/SigningIn"
846
+ },
847
+ {
848
+ "$ref": "#/$defs/SignedIn"
849
+ },
850
+ {
851
+ "$ref": "#/$defs/SigningOut"
852
+ }
853
+ ]
854
+ },
855
+ "SignInCallback": {
856
+ "type": "object",
857
+ "properties": {
858
+ "code": {
859
+ "type": "string"
860
+ },
861
+ "state": {
862
+ "type": "string"
863
+ }
864
+ },
865
+ "required": [
866
+ "code",
867
+ "state"
868
+ ],
869
+ "additionalProperties": true,
870
+ "description": "What the browser brings to the callback (query parameters)."
871
+ },
872
+ "SignInFailed": {
873
+ "type": "object",
874
+ "properties": {
875
+ "_tag": {
876
+ "type": "string",
877
+ "enum": [
878
+ "SignInFailed"
879
+ ]
880
+ },
881
+ "message": {
882
+ "type": "string"
883
+ }
884
+ },
885
+ "required": [
886
+ "_tag",
887
+ "message"
888
+ ],
889
+ "additionalProperties": true
890
+ },
891
+ "SignInStarted": {
892
+ "type": "object",
893
+ "properties": {
894
+ "url": {
895
+ "type": "string"
896
+ },
897
+ "state": {
898
+ "type": "string"
899
+ }
900
+ },
901
+ "required": [
902
+ "url",
903
+ "state"
904
+ ],
905
+ "additionalProperties": true,
906
+ "description": "Open `url` (the app's web sign-in page with the desktop sign-in parameters) in the system browser; `state` identifies this sign-in."
907
+ },
908
+ "SignedIn": {
909
+ "type": "object",
910
+ "properties": {
911
+ "state": {
912
+ "type": "string",
913
+ "enum": [
914
+ "signedIn"
915
+ ]
916
+ },
917
+ "user": {
918
+ "$ref": "#/$defs/User"
919
+ },
920
+ "organizations": {
921
+ "type": "array",
922
+ "items": {
923
+ "$ref": "#/$defs/Organization"
924
+ }
925
+ },
926
+ "orgId": {
927
+ "anyOf": [
928
+ {
929
+ "type": "string"
930
+ },
931
+ {
932
+ "type": "null"
933
+ }
934
+ ]
935
+ },
936
+ "generation": {
937
+ "type": "integer",
938
+ "minimum": 0,
939
+ "maximum": 9007199254740991
940
+ }
941
+ },
942
+ "required": [
943
+ "state",
944
+ "user",
945
+ "organizations",
946
+ "orgId",
947
+ "generation"
948
+ ],
949
+ "additionalProperties": true,
950
+ "description": "A person is signed in. `orgId` is the selected organisation (the first membership until another is selected; null when they belong to none); `generation` is the current context's (see the `context` event)."
951
+ },
952
+ "SignedOut": {
953
+ "type": "object",
954
+ "properties": {
955
+ "state": {
956
+ "type": "string",
957
+ "enum": [
958
+ "signedOut"
959
+ ]
960
+ }
961
+ },
962
+ "required": [
963
+ "state"
964
+ ],
965
+ "additionalProperties": true,
966
+ "description": "No person is signed in."
967
+ },
968
+ "SigningIn": {
969
+ "type": "object",
970
+ "properties": {
971
+ "state": {
972
+ "type": "string",
973
+ "enum": [
974
+ "signingIn"
975
+ ]
976
+ }
977
+ },
978
+ "required": [
979
+ "state"
980
+ ],
981
+ "additionalProperties": true,
982
+ "description": "A desktop sign-in was started and its callback has not arrived yet."
983
+ },
984
+ "SigningOut": {
985
+ "type": "object",
986
+ "properties": {
987
+ "state": {
988
+ "type": "string",
989
+ "enum": [
990
+ "signingOut"
991
+ ]
992
+ }
993
+ },
994
+ "required": [
995
+ "state"
996
+ ],
997
+ "additionalProperties": true,
998
+ "description": "Sign-out started: nothing more is read or written; the session is kept until the kernel confirms its revocation."
999
+ },
1000
+ "StaleGeneration": {
1001
+ "type": "object",
1002
+ "properties": {
1003
+ "_tag": {
1004
+ "type": "string",
1005
+ "enum": [
1006
+ "StaleGeneration"
1007
+ ]
1008
+ },
1009
+ "message": {
1010
+ "type": "string"
1011
+ },
1012
+ "generation": {
1013
+ "type": "integer",
1014
+ "minimum": 0,
1015
+ "maximum": 9007199254740991
1016
+ }
1017
+ },
1018
+ "required": [
1019
+ "_tag",
1020
+ "message",
1021
+ "generation"
1022
+ ],
1023
+ "additionalProperties": true
1024
+ },
1025
+ "Subscribe": {
1026
+ "type": "object",
1027
+ "properties": {
1028
+ "query": {
1029
+ "type": "string"
1030
+ },
1031
+ "args": {},
1032
+ "id": {
1033
+ "type": "string",
1034
+ "minLength": 1,
1035
+ "maxLength": 128
1036
+ }
1037
+ },
1038
+ "required": [
1039
+ "query"
1040
+ ],
1041
+ "additionalProperties": true,
1042
+ "description": "Run a named query (`hello.greetings`) live with its arguments, under an optional client-chosen id."
1043
+ },
1044
+ "Subscribed": {
1045
+ "type": "object",
1046
+ "properties": {
1047
+ "id": {
1048
+ "type": "string"
1049
+ },
1050
+ "generation": {
1051
+ "type": "integer",
1052
+ "minimum": 0,
1053
+ "maximum": 9007199254740991
1054
+ }
1055
+ },
1056
+ "required": [
1057
+ "id",
1058
+ "generation"
1059
+ ],
1060
+ "additionalProperties": true,
1061
+ "description": "The subscription's id and the generation it belongs to; its first `rows` event follows on the stream."
1062
+ },
1063
+ "Unauthenticated": {
1064
+ "type": "object",
1065
+ "properties": {
1066
+ "_tag": {
1067
+ "type": "string",
1068
+ "enum": [
1069
+ "Unauthenticated"
1070
+ ]
1071
+ },
1072
+ "message": {
1073
+ "type": "string"
1074
+ }
1075
+ },
1076
+ "required": [
1077
+ "_tag",
1078
+ "message"
1079
+ ],
1080
+ "additionalProperties": true
1081
+ },
1082
+ "UnknownAction": {
1083
+ "type": "object",
1084
+ "properties": {
1085
+ "_tag": {
1086
+ "type": "string",
1087
+ "enum": [
1088
+ "UnknownAction"
1089
+ ]
1090
+ },
1091
+ "message": {
1092
+ "type": "string"
1093
+ },
1094
+ "action": {
1095
+ "type": "string"
1096
+ }
1097
+ },
1098
+ "required": [
1099
+ "_tag",
1100
+ "message",
1101
+ "action"
1102
+ ],
1103
+ "additionalProperties": true
1104
+ },
1105
+ "UnknownMutator": {
1106
+ "type": "object",
1107
+ "properties": {
1108
+ "_tag": {
1109
+ "type": "string",
1110
+ "enum": [
1111
+ "UnknownMutator"
1112
+ ]
1113
+ },
1114
+ "message": {
1115
+ "type": "string"
1116
+ },
1117
+ "mutator": {
1118
+ "type": "string"
1119
+ }
1120
+ },
1121
+ "required": [
1122
+ "_tag",
1123
+ "message",
1124
+ "mutator"
1125
+ ],
1126
+ "additionalProperties": true
1127
+ },
1128
+ "UnknownQuery": {
1129
+ "type": "object",
1130
+ "properties": {
1131
+ "_tag": {
1132
+ "type": "string",
1133
+ "enum": [
1134
+ "UnknownQuery"
1135
+ ]
1136
+ },
1137
+ "message": {
1138
+ "type": "string"
1139
+ },
1140
+ "query": {
1141
+ "type": "string"
1142
+ }
1143
+ },
1144
+ "required": [
1145
+ "_tag",
1146
+ "message",
1147
+ "query"
1148
+ ],
1149
+ "additionalProperties": true
1150
+ },
1151
+ "UnknownSubscription": {
1152
+ "type": "object",
1153
+ "properties": {
1154
+ "_tag": {
1155
+ "type": "string",
1156
+ "enum": [
1157
+ "UnknownSubscription"
1158
+ ]
1159
+ },
1160
+ "message": {
1161
+ "type": "string"
1162
+ },
1163
+ "id": {
1164
+ "type": "string"
1165
+ }
1166
+ },
1167
+ "required": [
1168
+ "_tag",
1169
+ "message",
1170
+ "id"
1171
+ ],
1172
+ "additionalProperties": true
1173
+ },
1174
+ "User": {
1175
+ "type": "object",
1176
+ "properties": {
1177
+ "id": {
1178
+ "type": "string"
1179
+ },
1180
+ "email": {
1181
+ "type": "string"
1182
+ },
1183
+ "name": {
1184
+ "type": "string"
1185
+ }
1186
+ },
1187
+ "required": [
1188
+ "id",
1189
+ "email",
1190
+ "name"
1191
+ ],
1192
+ "additionalProperties": true,
1193
+ "description": "The signed-in person: never a credential."
1194
+ },
1195
+ "Write": {
1196
+ "type": "object",
1197
+ "properties": {
1198
+ "mutator": {
1199
+ "type": "string"
1200
+ },
1201
+ "input": {},
1202
+ "id": {
1203
+ "type": "string",
1204
+ "minLength": 1,
1205
+ "maxLength": 128
1206
+ },
1207
+ "generation": {
1208
+ "type": "integer",
1209
+ "minimum": 0,
1210
+ "maximum": 9007199254740991,
1211
+ "description": "The generation the client made the request in (1.1.0): when another is current, the request is refused with StaleGeneration (naming the current one) and nothing is run. Absent, the current generation is used."
1212
+ }
1213
+ },
1214
+ "required": [
1215
+ "mutator",
1216
+ "input"
1217
+ ],
1218
+ "additionalProperties": true,
1219
+ "description": "An optimistic write: the mutator (named by its action, `hello.greet`), its input, an optional client-chosen id and, since 1.1.0, the generation the client made it in (`generation`, see `ExpectedGeneration`)."
1220
+ },
1221
+ "WriteAccepted": {
1222
+ "type": "object",
1223
+ "properties": {
1224
+ "id": {
1225
+ "type": "string"
1226
+ },
1227
+ "generation": {
1228
+ "type": "integer",
1229
+ "minimum": 0,
1230
+ "maximum": 9007199254740991
1231
+ }
1232
+ },
1233
+ "required": [
1234
+ "id",
1235
+ "generation"
1236
+ ],
1237
+ "additionalProperties": true,
1238
+ "description": "The write's id and generation; its `write` events follow on the stream."
1239
+ },
1240
+ "WriteEvent": {
1241
+ "type": "object",
1242
+ "properties": {
1243
+ "seq": {
1244
+ "type": "integer",
1245
+ "minimum": 1,
1246
+ "maximum": 9007199254740991,
1247
+ "description": "Increases by one per event on its stream, starting at 1."
1248
+ },
1249
+ "type": {
1250
+ "type": "string",
1251
+ "enum": [
1252
+ "write"
1253
+ ]
1254
+ },
1255
+ "id": {
1256
+ "type": "string"
1257
+ },
1258
+ "generation": {
1259
+ "type": "integer",
1260
+ "minimum": 0,
1261
+ "maximum": 9007199254740991,
1262
+ "description": "The context the event belongs to."
1263
+ },
1264
+ "phase": {
1265
+ "$ref": "#/$defs/WritePhase"
1266
+ },
1267
+ "error": {
1268
+ "$ref": "#/$defs/InvocationError"
1269
+ },
1270
+ "message": {
1271
+ "type": "string"
1272
+ }
1273
+ },
1274
+ "required": [
1275
+ "seq",
1276
+ "type",
1277
+ "id",
1278
+ "generation",
1279
+ "phase"
1280
+ ],
1281
+ "additionalProperties": true,
1282
+ "description": "An optimistic write's outcome. `rejected` carries the kernel's typed error and is sent only after the replica rolled the prediction back; `notConfirmed` carries why."
1283
+ },
1284
+ "WritePhase": {
1285
+ "type": "string",
1286
+ "enum": [
1287
+ "predicted",
1288
+ "confirmed",
1289
+ "rejected",
1290
+ "notConfirmed"
1291
+ ],
1292
+ "description": "An optimistic write's progress: `predicted` (in the replica), `confirmed` (the server ran it and the replica holds its rows), `rejected` (refused, after the replica dropped the prediction), `notConfirmed` (the replica went offline or closed first: it may still run)."
1293
+ }
1294
+ }
1295
+ }