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