@dxos/protocols 0.8.4-main.72ec0f3 → 0.8.4-main.765dc60934

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 (470) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +1 -1
  3. package/dist/src/FeedProtocol.d.ts +528 -0
  4. package/dist/src/FeedProtocol.d.ts.map +1 -0
  5. package/dist/src/FeedProtocol.js +237 -0
  6. package/dist/src/FeedProtocol.js.map +1 -0
  7. package/dist/src/FunctionProtocol.d.ts +15 -2
  8. package/dist/src/FunctionProtocol.d.ts.map +1 -1
  9. package/dist/src/TraceProtocol.d.ts +15 -0
  10. package/dist/src/TraceProtocol.d.ts.map +1 -0
  11. package/dist/src/TraceProtocol.js +4 -0
  12. package/dist/src/TraceProtocol.js.map +1 -0
  13. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +237 -0
  14. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -0
  15. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +44 -0
  16. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -0
  17. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +64 -3
  18. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
  19. package/dist/src/buf/proto/gen/dxos/client/services_pb.js +68 -37
  20. package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
  21. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +112 -0
  22. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
  23. package/dist/src/buf/proto/gen/dxos/config_pb.js +72 -1
  24. package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
  25. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +6 -0
  26. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts.map +1 -1
  27. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +1 -1
  28. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js.map +1 -1
  29. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +12 -2
  30. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
  31. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +1 -1
  32. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
  33. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +68 -7
  34. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
  35. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +15 -5
  36. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
  37. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +28 -0
  38. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts.map +1 -1
  39. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +10 -5
  40. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js.map +1 -1
  41. package/dist/src/buf/proto/gen/dxos/google_pb.js +1 -1
  42. package/dist/src/buf/proto/gen/dxos/google_pb.js.map +1 -1
  43. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +39 -0
  44. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts.map +1 -1
  45. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +27 -2
  46. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js.map +1 -1
  47. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +1 -10
  48. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
  49. package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
  50. package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
  51. package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +24 -0
  52. package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts.map +1 -1
  53. package/dist/src/buf/proto/gen/dxos/rpc_pb.js +12 -7
  54. package/dist/src/buf/proto/gen/dxos/rpc_pb.js.map +1 -1
  55. package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -139
  56. package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts.map +1 -1
  57. package/dist/src/buf/proto/gen/dxos/tracing_pb.js +11 -45
  58. package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
  59. package/dist/src/edge/EdgeFunctionEnv.d.ts +128 -0
  60. package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -0
  61. package/dist/src/edge/EdgeFunctionEnv.js +4 -0
  62. package/dist/src/edge/EdgeFunctionEnv.js.map +1 -0
  63. package/dist/src/{edge.d.ts → edge/edge.d.ts} +212 -27
  64. package/dist/src/edge/edge.d.ts.map +1 -0
  65. package/dist/src/{edge.js → edge/edge.js} +40 -15
  66. package/dist/src/edge/edge.js.map +1 -0
  67. package/dist/src/{edge-error.d.ts → edge/errors.d.ts} +6 -7
  68. package/dist/src/edge/errors.d.ts.map +1 -0
  69. package/dist/src/{edge-error.js → edge/errors.js} +13 -14
  70. package/dist/src/edge/errors.js.map +1 -0
  71. package/dist/src/edge/index.d.ts +5 -0
  72. package/dist/src/edge/index.d.ts.map +1 -0
  73. package/dist/src/edge/index.js +8 -0
  74. package/dist/src/edge/index.js.map +1 -0
  75. package/dist/src/edge/registry.d.ts +212 -0
  76. package/dist/src/edge/registry.d.ts.map +1 -0
  77. package/dist/src/edge/registry.js +139 -0
  78. package/dist/src/edge/registry.js.map +1 -0
  79. package/dist/src/errors/base-errors.d.ts +86 -8
  80. package/dist/src/errors/base-errors.d.ts.map +1 -1
  81. package/dist/src/errors/base-errors.js +4 -20
  82. package/dist/src/errors/base-errors.js.map +1 -1
  83. package/dist/src/errors/encoding.d.ts +2 -2
  84. package/dist/src/errors/encoding.d.ts.map +1 -1
  85. package/dist/src/errors/encoding.js.map +1 -1
  86. package/dist/src/errors/errors.d.ts +619 -42
  87. package/dist/src/errors/errors.d.ts.map +1 -1
  88. package/dist/src/errors/errors.js +49 -103
  89. package/dist/src/errors/errors.js.map +1 -1
  90. package/dist/src/errors/errors.test.js +1 -1
  91. package/dist/src/errors/errors.test.js.map +1 -1
  92. package/dist/src/errors/helpers.d.ts +9 -5
  93. package/dist/src/errors/helpers.d.ts.map +1 -1
  94. package/dist/src/errors/helpers.js +3 -3
  95. package/dist/src/errors/helpers.js.map +1 -1
  96. package/dist/src/errors/index.d.ts +5 -5
  97. package/dist/src/errors/parameter.d.ts.map +1 -1
  98. package/dist/src/feed-replication.d.ts.map +1 -1
  99. package/dist/src/index.d.ts +12 -13
  100. package/dist/src/index.d.ts.map +1 -1
  101. package/dist/src/index.js +4 -5
  102. package/dist/src/index.js.map +1 -1
  103. package/dist/src/indexing.d.ts.map +1 -1
  104. package/dist/src/messenger.d.ts +16 -0
  105. package/dist/src/messenger.d.ts.map +1 -0
  106. package/dist/src/messenger.js +4 -0
  107. package/dist/src/messenger.js.map +1 -0
  108. package/dist/src/proto/gen/dxos/agent/dashboard.d.ts +3 -6
  109. package/dist/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
  110. package/dist/src/proto/gen/dxos/agent/dashboard.js.map +1 -1
  111. package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -2
  112. package/dist/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
  113. package/dist/src/proto/gen/dxos/agent/epoch.d.ts +1 -2
  114. package/dist/src/proto/gen/dxos/agent/epoch.d.ts.map +1 -1
  115. package/dist/src/proto/gen/dxos/agent/functions.d.ts +6 -12
  116. package/dist/src/proto/gen/dxos/agent/functions.d.ts.map +1 -1
  117. package/dist/src/proto/gen/dxos/bot.d.ts +12 -24
  118. package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
  119. package/dist/src/proto/gen/dxos/bot.js.map +1 -1
  120. package/dist/src/proto/gen/dxos/client/services.d.ts +384 -294
  121. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  122. package/dist/src/proto/gen/dxos/client/services.js +40 -27
  123. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  124. package/dist/src/proto/gen/dxos/config.d.ts +115 -100
  125. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  126. package/dist/src/proto/gen/dxos/config.js +26 -0
  127. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  128. package/dist/src/proto/gen/dxos/devtools/host.d.ts +71 -119
  129. package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  130. package/dist/src/proto/gen/dxos/devtools/swarm.d.ts +4 -8
  131. package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  132. package/dist/src/proto/gen/dxos/echo/blob.d.ts +1 -2
  133. package/dist/src/proto/gen/dxos/echo/blob.d.ts.map +1 -1
  134. package/dist/src/proto/gen/dxos/echo/blob.js.map +1 -1
  135. package/dist/src/proto/gen/dxos/echo/feed.d.ts +4 -8
  136. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  137. package/dist/src/proto/gen/dxos/echo/filter.d.ts +2 -4
  138. package/dist/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
  139. package/dist/src/proto/gen/dxos/echo/filter.js.map +1 -1
  140. package/dist/src/proto/gen/dxos/echo/indexing.d.ts +2 -4
  141. package/dist/src/proto/gen/dxos/echo/indexing.d.ts.map +1 -1
  142. package/dist/src/proto/gen/dxos/echo/indexing.js.map +1 -1
  143. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +12 -16
  144. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  145. package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -1
  146. package/dist/src/proto/gen/dxos/echo/model/document.d.ts +11 -22
  147. package/dist/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
  148. package/dist/src/proto/gen/dxos/echo/model/document.js.map +1 -1
  149. package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts +1 -2
  150. package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -1
  151. package/dist/src/proto/gen/dxos/echo/model/text.d.ts +2 -4
  152. package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
  153. package/dist/src/proto/gen/dxos/echo/object.d.ts +6 -12
  154. package/dist/src/proto/gen/dxos/echo/object.d.ts.map +1 -1
  155. package/dist/src/proto/gen/dxos/echo/object.js.map +1 -1
  156. package/dist/src/proto/gen/dxos/echo/query.d.ts +21 -9
  157. package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  158. package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
  159. package/dist/src/proto/gen/dxos/echo/service.d.ts +61 -34
  160. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  161. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +2 -4
  162. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  163. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +2 -4
  164. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  165. package/dist/src/proto/gen/dxos/edge/calls.d.ts +5 -10
  166. package/dist/src/proto/gen/dxos/edge/calls.d.ts.map +1 -1
  167. package/dist/src/proto/gen/dxos/edge/messenger.d.ts +28 -10
  168. package/dist/src/proto/gen/dxos/edge/messenger.d.ts.map +1 -1
  169. package/dist/src/proto/gen/dxos/edge/messenger.js.map +1 -1
  170. package/dist/src/proto/gen/dxos/edge/signal.d.ts +7 -14
  171. package/dist/src/proto/gen/dxos/edge/signal.d.ts.map +1 -1
  172. package/dist/src/proto/gen/dxos/error.d.ts +1 -2
  173. package/dist/src/proto/gen/dxos/error.d.ts.map +1 -1
  174. package/dist/src/proto/gen/dxos/gravity.d.ts +10 -20
  175. package/dist/src/proto/gen/dxos/gravity.d.ts.map +1 -1
  176. package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +1 -2
  177. package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -1
  178. package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +6 -12
  179. package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -1
  180. package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -1
  181. package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts +2 -4
  182. package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -1
  183. package/dist/src/proto/gen/dxos/halo/credentials.d.ts +35 -43
  184. package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  185. package/dist/src/proto/gen/dxos/halo/credentials.js +9 -0
  186. package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
  187. package/dist/src/proto/gen/dxos/halo/invitations.d.ts +13 -26
  188. package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  189. package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  190. package/dist/src/proto/gen/dxos/halo/keyring.d.ts +1 -2
  191. package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -1
  192. package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -4
  193. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  194. package/dist/src/proto/gen/dxos/halo/signed.d.ts +4 -8
  195. package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
  196. package/dist/src/proto/gen/dxos/iframe.d.ts +4 -18
  197. package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  198. package/dist/src/proto/gen/dxos/iframe.js.map +1 -1
  199. package/dist/src/proto/gen/dxos/keys.d.ts +2 -4
  200. package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -1
  201. package/dist/src/proto/gen/dxos/mesh/bridge.d.ts +12 -24
  202. package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
  203. package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts +1 -2
  204. package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -1
  205. package/dist/src/proto/gen/dxos/mesh/messaging.d.ts +2 -4
  206. package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -1
  207. package/dist/src/proto/gen/dxos/mesh/muxer.d.ts +5 -10
  208. package/dist/src/proto/gen/dxos/mesh/muxer.d.ts.map +1 -1
  209. package/dist/src/proto/gen/dxos/mesh/presence.d.ts +1 -2
  210. package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
  211. package/dist/src/proto/gen/dxos/mesh/protocol.d.ts +3 -6
  212. package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -1
  213. package/dist/src/proto/gen/dxos/mesh/replicator.d.ts +2 -4
  214. package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -1
  215. package/dist/src/proto/gen/dxos/mesh/signal.d.ts +9 -18
  216. package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
  217. package/dist/src/proto/gen/dxos/mesh/signal.js.map +1 -1
  218. package/dist/src/proto/gen/dxos/mesh/swarm.d.ts +6 -12
  219. package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
  220. package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts +2 -4
  221. package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts.map +1 -1
  222. package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts +2 -4
  223. package/dist/src/proto/gen/dxos/mesh/teleport/automerge.d.ts.map +1 -1
  224. package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts +3 -6
  225. package/dist/src/proto/gen/dxos/mesh/teleport/blobsync.d.ts.map +1 -1
  226. package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts +3 -6
  227. package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts.map +1 -1
  228. package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -2
  229. package/dist/src/proto/gen/dxos/mesh/teleport/gossip.d.ts.map +1 -1
  230. package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts +1 -2
  231. package/dist/src/proto/gen/dxos/mesh/teleport/notarization.d.ts.map +1 -1
  232. package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts +5 -10
  233. package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts.map +1 -1
  234. package/dist/src/proto/gen/dxos/mesh/teleport.d.ts +2 -4
  235. package/dist/src/proto/gen/dxos/mesh/teleport.d.ts.map +1 -1
  236. package/dist/src/proto/gen/dxos/registry.d.ts +3 -6
  237. package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -1
  238. package/dist/src/proto/gen/dxos/rpc.d.ts +24 -12
  239. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  240. package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
  241. package/dist/src/proto/gen/dxos/service/agentmanager.d.ts +4 -8
  242. package/dist/src/proto/gen/dxos/service/agentmanager.d.ts.map +1 -1
  243. package/dist/src/proto/gen/dxos/service/agentmanager.js.map +1 -1
  244. package/dist/src/proto/gen/dxos/service/publisher.d.ts +5 -10
  245. package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
  246. package/dist/src/proto/gen/dxos/service/supervisor.d.ts +12 -24
  247. package/dist/src/proto/gen/dxos/service/supervisor.d.ts.map +1 -1
  248. package/dist/src/proto/gen/dxos/service/supervisor.js.map +1 -1
  249. package/dist/src/proto/gen/dxos/service/tunnel.d.ts +3 -6
  250. package/dist/src/proto/gen/dxos/service/tunnel.d.ts.map +1 -1
  251. package/dist/src/proto/gen/dxos/tracing.d.ts +10 -99
  252. package/dist/src/proto/gen/dxos/tracing.d.ts.map +1 -1
  253. package/dist/src/proto/gen/dxos/type.d.ts +12 -24
  254. package/dist/src/proto/gen/dxos/type.d.ts.map +1 -1
  255. package/dist/src/proto/gen/dxos/value.d.ts +2 -4
  256. package/dist/src/proto/gen/dxos/value.d.ts.map +1 -1
  257. package/dist/src/proto/gen/example/testing/data.d.ts +4 -8
  258. package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -1
  259. package/dist/src/proto/gen/example/testing/rpc.d.ts +7 -14
  260. package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
  261. package/dist/src/proto/gen/google/protobuf.d.ts +326 -40
  262. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  263. package/dist/src/proto/gen/google/protobuf.js +127 -1
  264. package/dist/src/proto/gen/google/protobuf.js.map +1 -1
  265. package/dist/src/proto/gen/index.d.ts +40 -7
  266. package/dist/src/proto/gen/index.d.ts.map +1 -1
  267. package/dist/src/proto/gen/index.js +1 -1
  268. package/dist/src/proto/gen/index.js.map +1 -1
  269. package/dist/src/proto/index.d.ts +2 -2
  270. package/dist/src/proto/substitutions.d.ts +8 -8
  271. package/dist/src/proto/substitutions.d.ts.map +1 -1
  272. package/dist/src/proto/types.d.ts +1 -1
  273. package/dist/src/space-archive.d.ts +62 -3
  274. package/dist/src/space-archive.d.ts.map +1 -1
  275. package/dist/src/space-archive.js +13 -1
  276. package/dist/src/space-archive.js.map +1 -1
  277. package/dist/src/types.d.ts +2 -2
  278. package/dist/tsconfig.tsbuildinfo +1 -1
  279. package/package.json +20 -35
  280. package/src/FeedProtocol.ts +320 -0
  281. package/src/FunctionProtocol.ts +17 -6
  282. package/src/TraceProtocol.ts +21 -0
  283. package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +1 -1
  284. package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +1 -1
  285. package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +1 -1
  286. package/src/buf/proto/gen/dxos/agent/functions_pb.ts +1 -1
  287. package/src/buf/proto/gen/dxos/bot_pb.ts +1 -1
  288. package/src/buf/proto/gen/dxos/client/invitation_pb.ts +1 -1
  289. package/src/buf/proto/gen/dxos/client/logging_pb.ts +1 -1
  290. package/src/buf/proto/gen/dxos/client/queue_pb.ts +286 -0
  291. package/src/buf/proto/gen/dxos/client/services_pb.ts +114 -40
  292. package/src/buf/proto/gen/dxos/config_pb.ts +132 -2
  293. package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +1 -1
  294. package/src/buf/proto/gen/dxos/devtools/host_pb.ts +1 -1
  295. package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +1 -1
  296. package/src/buf/proto/gen/dxos/echo/blob_pb.ts +1 -1
  297. package/src/buf/proto/gen/dxos/echo/feed_pb.ts +1 -1
  298. package/src/buf/proto/gen/dxos/echo/filter_pb.ts +1 -1
  299. package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +1 -1
  300. package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +9 -2
  301. package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +1 -1
  302. package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +1 -1
  303. package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +1 -1
  304. package/src/buf/proto/gen/dxos/echo/object_pb.ts +1 -1
  305. package/src/buf/proto/gen/dxos/echo/query_pb.ts +16 -4
  306. package/src/buf/proto/gen/dxos/echo/service_pb.ts +81 -13
  307. package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +1 -1
  308. package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +1 -1
  309. package/src/buf/proto/gen/dxos/edge/calls_pb.ts +1 -1
  310. package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +39 -6
  311. package/src/buf/proto/gen/dxos/edge/signal_pb.ts +1 -1
  312. package/src/buf/proto/gen/dxos/error_pb.ts +1 -1
  313. package/src/buf/proto/gen/dxos/field_options_pb.ts +1 -1
  314. package/src/buf/proto/gen/dxos/google_pb.ts +1 -1
  315. package/src/buf/proto/gen/dxos/gravity_pb.ts +1 -1
  316. package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +1 -1
  317. package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +1 -1
  318. package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +1 -1
  319. package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +49 -3
  320. package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +1 -1
  321. package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +1 -1
  322. package/src/buf/proto/gen/dxos/halo/keys_pb.ts +1 -1
  323. package/src/buf/proto/gen/dxos/halo/signed_pb.ts +1 -1
  324. package/src/buf/proto/gen/dxos/iframe_pb.ts +3 -14
  325. package/src/buf/proto/gen/dxos/keys_pb.ts +1 -1
  326. package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +1 -1
  327. package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +1 -1
  328. package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +1 -1
  329. package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +1 -1
  330. package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +1 -1
  331. package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +1 -1
  332. package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +1 -1
  333. package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +1 -1
  334. package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +1 -1
  335. package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +1 -1
  336. package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +1 -1
  337. package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +1 -1
  338. package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +1 -1
  339. package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +1 -1
  340. package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +1 -1
  341. package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +1 -1
  342. package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +1 -1
  343. package/src/buf/proto/gen/dxos/registry_pb.ts +1 -1
  344. package/src/buf/proto/gen/dxos/rpc_pb.ts +37 -8
  345. package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +1 -1
  346. package/src/buf/proto/gen/dxos/service/publisher_pb.ts +1 -1
  347. package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +1 -1
  348. package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +1 -1
  349. package/src/buf/proto/gen/dxos/tracing_pb.ts +12 -179
  350. package/src/buf/proto/gen/dxos/type_pb.ts +1 -1
  351. package/src/buf/proto/gen/dxos/value_pb.ts +1 -1
  352. package/src/buf/proto/gen/example/testing/data_pb.ts +1 -1
  353. package/src/buf/proto/gen/example/testing/rpc_pb.ts +1 -1
  354. package/src/codec.test.ts +1 -1
  355. package/src/edge/EdgeFunctionEnv.ts +222 -0
  356. package/src/{edge.ts → edge/edge.ts} +174 -40
  357. package/src/{edge-error.ts → edge/errors.ts} +15 -16
  358. package/src/edge/index.ts +8 -0
  359. package/src/edge/registry.ts +164 -0
  360. package/src/errors/base-errors.ts +4 -22
  361. package/src/errors/encoding.ts +2 -3
  362. package/src/errors/errors.test.ts +2 -2
  363. package/src/errors/errors.ts +57 -124
  364. package/src/errors/helpers.ts +6 -7
  365. package/src/errors/index.ts +5 -5
  366. package/src/feed-replication.ts +1 -0
  367. package/src/index.ts +12 -13
  368. package/src/indexing.test.ts +1 -1
  369. package/src/messenger.ts +22 -0
  370. package/src/proto/dxos/client/queue.proto +81 -0
  371. package/src/proto/dxos/client/services.proto +19 -1
  372. package/src/proto/dxos/config.proto +50 -1
  373. package/src/proto/dxos/echo/metadata.proto +3 -0
  374. package/src/proto/dxos/echo/query.proto +4 -1
  375. package/src/proto/dxos/echo/service.proto +38 -4
  376. package/src/proto/dxos/edge/messenger.proto +10 -0
  377. package/src/proto/dxos/halo/credentials.proto +15 -0
  378. package/src/proto/dxos/iframe.proto +1 -3
  379. package/src/proto/dxos/rpc.proto +7 -0
  380. package/src/proto/dxos/tracing.proto +0 -40
  381. package/src/proto/gen/dxos/agent/dashboard.ts +3 -6
  382. package/src/proto/gen/dxos/agent/echoproxy.ts +1 -2
  383. package/src/proto/gen/dxos/agent/epoch.ts +1 -2
  384. package/src/proto/gen/dxos/agent/functions.ts +6 -12
  385. package/src/proto/gen/dxos/bot.ts +12 -24
  386. package/src/proto/gen/dxos/client/services.ts +384 -294
  387. package/src/proto/gen/dxos/config.ts +115 -100
  388. package/src/proto/gen/dxos/devtools/host.ts +71 -119
  389. package/src/proto/gen/dxos/devtools/swarm.ts +4 -8
  390. package/src/proto/gen/dxos/echo/blob.ts +1 -2
  391. package/src/proto/gen/dxos/echo/feed.ts +4 -8
  392. package/src/proto/gen/dxos/echo/filter.ts +2 -4
  393. package/src/proto/gen/dxos/echo/indexing.ts +2 -4
  394. package/src/proto/gen/dxos/echo/metadata.ts +12 -16
  395. package/src/proto/gen/dxos/echo/model/document.ts +11 -22
  396. package/src/proto/gen/dxos/echo/model/messenger.ts +1 -2
  397. package/src/proto/gen/dxos/echo/model/text.ts +2 -4
  398. package/src/proto/gen/dxos/echo/object.ts +6 -12
  399. package/src/proto/gen/dxos/echo/query.ts +21 -9
  400. package/src/proto/gen/dxos/echo/service.ts +60 -34
  401. package/src/proto/gen/dxos/echo/snapshot.ts +2 -4
  402. package/src/proto/gen/dxos/echo/timeframe.ts +2 -4
  403. package/src/proto/gen/dxos/edge/calls.ts +5 -10
  404. package/src/proto/gen/dxos/edge/messenger.ts +28 -10
  405. package/src/proto/gen/dxos/edge/signal.ts +7 -14
  406. package/src/proto/gen/dxos/error.ts +1 -2
  407. package/src/proto/gen/dxos/gravity.ts +10 -20
  408. package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -2
  409. package/src/proto/gen/dxos/halo/credentials/greet.ts +6 -12
  410. package/src/proto/gen/dxos/halo/credentials/identity.ts +2 -4
  411. package/src/proto/gen/dxos/halo/credentials.ts +35 -43
  412. package/src/proto/gen/dxos/halo/invitations.ts +13 -26
  413. package/src/proto/gen/dxos/halo/keyring.ts +1 -2
  414. package/src/proto/gen/dxos/halo/keys.ts +2 -4
  415. package/src/proto/gen/dxos/halo/signed.ts +4 -8
  416. package/src/proto/gen/dxos/iframe.ts +4 -18
  417. package/src/proto/gen/dxos/keys.ts +2 -4
  418. package/src/proto/gen/dxos/mesh/bridge.ts +12 -24
  419. package/src/proto/gen/dxos/mesh/broadcast.ts +1 -2
  420. package/src/proto/gen/dxos/mesh/messaging.ts +2 -4
  421. package/src/proto/gen/dxos/mesh/muxer.ts +5 -10
  422. package/src/proto/gen/dxos/mesh/presence.ts +1 -2
  423. package/src/proto/gen/dxos/mesh/protocol.ts +3 -6
  424. package/src/proto/gen/dxos/mesh/replicator.ts +2 -4
  425. package/src/proto/gen/dxos/mesh/signal.ts +9 -18
  426. package/src/proto/gen/dxos/mesh/swarm.ts +6 -12
  427. package/src/proto/gen/dxos/mesh/teleport/auth.ts +2 -4
  428. package/src/proto/gen/dxos/mesh/teleport/automerge.ts +2 -4
  429. package/src/proto/gen/dxos/mesh/teleport/blobsync.ts +3 -6
  430. package/src/proto/gen/dxos/mesh/teleport/control.ts +3 -6
  431. package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -2
  432. package/src/proto/gen/dxos/mesh/teleport/notarization.ts +1 -2
  433. package/src/proto/gen/dxos/mesh/teleport/replicator.ts +5 -10
  434. package/src/proto/gen/dxos/mesh/teleport.ts +2 -4
  435. package/src/proto/gen/dxos/registry.ts +3 -6
  436. package/src/proto/gen/dxos/rpc.ts +24 -12
  437. package/src/proto/gen/dxos/service/agentmanager.ts +4 -8
  438. package/src/proto/gen/dxos/service/publisher.ts +5 -10
  439. package/src/proto/gen/dxos/service/supervisor.ts +12 -24
  440. package/src/proto/gen/dxos/service/tunnel.ts +3 -6
  441. package/src/proto/gen/dxos/tracing.ts +10 -96
  442. package/src/proto/gen/dxos/type.ts +12 -24
  443. package/src/proto/gen/dxos/value.ts +2 -4
  444. package/src/proto/gen/example/testing/data.ts +4 -8
  445. package/src/proto/gen/example/testing/rpc.ts +7 -14
  446. package/src/proto/gen/google/protobuf.ts +326 -40
  447. package/src/proto/gen/index.ts +41 -8
  448. package/src/proto/index.ts +2 -2
  449. package/src/proto/types.ts +1 -1
  450. package/src/space-archive.ts +70 -1
  451. package/src/types.ts +2 -2
  452. package/dist/src/edge-error.d.ts.map +0 -1
  453. package/dist/src/edge-error.js.map +0 -1
  454. package/dist/src/edge.d.ts.map +0 -1
  455. package/dist/src/edge.js.map +0 -1
  456. package/dist/src/query.d.ts +0 -5
  457. package/dist/src/query.d.ts.map +0 -1
  458. package/dist/src/query.js +0 -8
  459. package/dist/src/query.js.map +0 -1
  460. package/dist/src/queue.d.ts +0 -37
  461. package/dist/src/queue.d.ts.map +0 -1
  462. package/dist/src/queue.js +0 -8
  463. package/dist/src/queue.js.map +0 -1
  464. package/dist/src/tracing.d.ts +0 -40
  465. package/dist/src/tracing.d.ts.map +0 -1
  466. package/dist/src/tracing.js +0 -50
  467. package/dist/src/tracing.js.map +0 -1
  468. package/src/query.ts +0 -8
  469. package/src/queue.ts +0 -51
  470. package/src/tracing.ts +0 -86
package/LICENSE CHANGED
@@ -1,8 +1,105 @@
1
- MIT License
2
- Copyright (c) 2022 DXOS
1
+ # Functional Source License, Version 1.1, ALv2 Future License
3
2
 
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ ## Abbreviation
5
4
 
6
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ FSL-1.1-Apache-2.0
7
6
 
8
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7
+ ## Notice
8
+
9
+ Copyright 2026 DXOS
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the Apache License, Version 2.0 that is effective on the second anniversary of
91
+ the date we make the Software available. On or after that date, you may use the
92
+ Software under the Apache License, Version 2.0, in which case the following
93
+ will apply:
94
+
95
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
+ this file except in compliance with the License.
97
+
98
+ You may obtain a copy of the License at
99
+
100
+ http://www.apache.org/licenses/LICENSE-2.0
101
+
102
+ Unless required by applicable law or agreed to in writing, software distributed
103
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
+ specific language governing permissions and limitations under the License.
package/README.md CHANGED
@@ -8,4 +8,4 @@ Generate by running script:
8
8
 
9
9
  ```bash
10
10
  moon run protocols:prebuild
11
- ```
11
+ ```
@@ -0,0 +1,528 @@
1
+ export { type QueueService, type QueueQuery, type QueueQueryResult as QueryResult, type QueryQueueRequest, type InsertIntoQueueRequest, type DeleteFromQueueRequest, type SyncQueueRequest, } from './proto/gen/dxos/client/services.js';
2
+ export declare const KEY_QUEUE_POSITION = "org.dxos.key.queue-position";
3
+ import * as Schema from 'effect/Schema';
4
+ import { SpaceId } from '@dxos/keys';
5
+ /**
6
+ * Opaque pagination cursor for feed queries.
7
+ */
8
+ export declare const FeedCursor: Schema.brand<typeof Schema.String, "@dxos/feed/FeedCursor">;
9
+ export type FeedCursor = Schema.Schema.Type<typeof FeedCursor>;
10
+ /**
11
+ * Replicated queue block payload and ordering metadata.
12
+ */
13
+ export declare const Block: Schema.Struct<{
14
+ /**
15
+ * Appears on blocks returned from query.
16
+ */
17
+ feedId: Schema.UndefinedOr<typeof Schema.String>;
18
+ /**
19
+ * Actor that produced this block.
20
+ */
21
+ actorId: typeof Schema.String;
22
+ /**
23
+ * Per-feed monotonic sequence assigned by the actor.
24
+ */
25
+ sequence: typeof Schema.Number;
26
+ /**
27
+ * Actor of the immediate predecessor block, if any.
28
+ */
29
+ prevActorId: Schema.NullOr<typeof Schema.String>;
30
+ /**
31
+ * Sequence of the immediate predecessor block, if any.
32
+ */
33
+ prevSequence: Schema.NullOr<typeof Schema.Number>;
34
+ /**
35
+ * Globally ordered position assigned by a position authority.
36
+ * Unlike `sequence` (per-feed causal order), this enables merged incremental reads across feeds.
37
+ */
38
+ position: Schema.NullOr<typeof Schema.Number>;
39
+ /**
40
+ * Milliseconds since Unix epoch when the block was created.
41
+ */
42
+ timestamp: typeof Schema.Number;
43
+ /**
44
+ * Serialized application payload.
45
+ */
46
+ data: typeof Schema.Uint8Array;
47
+ /**
48
+ * Local insertion ID.
49
+ * Not replicated.
50
+ */
51
+ insertionId: Schema.optional<typeof Schema.Number>;
52
+ }>;
53
+ export interface Block extends Schema.Schema.Type<typeof Block> {
54
+ }
55
+ /**
56
+ * Query parameters for retrieving blocks from one namespace in one space.
57
+ */
58
+ export declare const QueryRequest: Schema.Struct<{
59
+ /**
60
+ * Optional request correlation identifier.
61
+ */
62
+ requestId: Schema.optional<typeof Schema.String>;
63
+ /**
64
+ * Target space identifier.
65
+ */
66
+ spaceId: Schema.Schema<SpaceId, string, never> & {
67
+ byteLength: number;
68
+ encode: (value: Uint8Array<ArrayBufferLike>) => SpaceId;
69
+ decode: (value: SpaceId) => Uint8Array<ArrayBufferLike>;
70
+ isValid: (value: unknown) => value is SpaceId;
71
+ make: (value: string) => SpaceId;
72
+ random: () => SpaceId;
73
+ };
74
+ /**
75
+ * Feed namespace to query.
76
+ */
77
+ feedNamespace: typeof Schema.String;
78
+ query: Schema.optional<Schema.Union<[Schema.Struct<{
79
+ /**
80
+ * Explicit list of feed IDs to read from.
81
+ */
82
+ feedIds: Schema.Array$<typeof Schema.String>;
83
+ }>, Schema.Struct<{
84
+ /**
85
+ * Existing subscription to resolve feed IDs from.
86
+ */
87
+ subscriptionId: typeof Schema.String;
88
+ }>]>>;
89
+ /**
90
+ * Get changes following this cursor (exclusive).
91
+ *
92
+ * Must not be used with `position`.
93
+ */
94
+ cursor: Schema.optional<Schema.brand<typeof Schema.String, "@dxos/feed/FeedCursor">>;
95
+ /**
96
+ * Get changes following this position.
97
+ * Returned blocks have strictly greater position than this.
98
+ *
99
+ * Must not be used with `cursor`.
100
+ */
101
+ position: Schema.optional<typeof Schema.Number>;
102
+ /**
103
+ * Only return blocks that are not positioned.
104
+ *
105
+ * Must not be used with `cursor` or `position`.
106
+ */
107
+ unpositionedOnly: Schema.optional<typeof Schema.Boolean>;
108
+ /**
109
+ * Maximum number of blocks to return.
110
+ */
111
+ limit: Schema.optional<typeof Schema.Number>;
112
+ }>;
113
+ export interface QueryRequest extends Schema.Schema.Type<typeof QueryRequest> {
114
+ }
115
+ /**
116
+ * Result payload for a query operation.
117
+ */
118
+ export declare const QueryResponse: Schema.Struct<{
119
+ /**
120
+ * Echoed request correlation identifier.
121
+ */
122
+ requestId: Schema.optional<typeof Schema.String>;
123
+ /**
124
+ * Cursor to continue reading from this result boundary.
125
+ */
126
+ nextCursor: Schema.brand<typeof Schema.String, "@dxos/feed/FeedCursor">;
127
+ /**
128
+ * Indicates whether more matching blocks are available.
129
+ */
130
+ hasMore: typeof Schema.Boolean;
131
+ /**
132
+ * Returned blocks for the current page.
133
+ */
134
+ blocks: Schema.Array$<Schema.Struct<{
135
+ /**
136
+ * Appears on blocks returned from query.
137
+ */
138
+ feedId: Schema.UndefinedOr<typeof Schema.String>;
139
+ /**
140
+ * Actor that produced this block.
141
+ */
142
+ actorId: typeof Schema.String;
143
+ /**
144
+ * Per-feed monotonic sequence assigned by the actor.
145
+ */
146
+ sequence: typeof Schema.Number;
147
+ /**
148
+ * Actor of the immediate predecessor block, if any.
149
+ */
150
+ prevActorId: Schema.NullOr<typeof Schema.String>;
151
+ /**
152
+ * Sequence of the immediate predecessor block, if any.
153
+ */
154
+ prevSequence: Schema.NullOr<typeof Schema.Number>;
155
+ /**
156
+ * Globally ordered position assigned by a position authority.
157
+ * Unlike `sequence` (per-feed causal order), this enables merged incremental reads across feeds.
158
+ */
159
+ position: Schema.NullOr<typeof Schema.Number>;
160
+ /**
161
+ * Milliseconds since Unix epoch when the block was created.
162
+ */
163
+ timestamp: typeof Schema.Number;
164
+ /**
165
+ * Serialized application payload.
166
+ */
167
+ data: typeof Schema.Uint8Array;
168
+ /**
169
+ * Local insertion ID.
170
+ * Not replicated.
171
+ */
172
+ insertionId: Schema.optional<typeof Schema.Number>;
173
+ }>>;
174
+ }>;
175
+ export interface QueryResponse extends Schema.Schema.Type<typeof QueryResponse> {
176
+ }
177
+ /**
178
+ * Parameters for creating or refreshing a feed subscription.
179
+ */
180
+ export declare const SubscribeRequest: Schema.Struct<{
181
+ /**
182
+ * Optional request correlation identifier.
183
+ */
184
+ requestId: Schema.optional<typeof Schema.String>;
185
+ /**
186
+ * Optional space scope for the subscription.
187
+ */
188
+ spaceId: Schema.optional<typeof Schema.String>;
189
+ /**
190
+ * Feeds to include in the subscription.
191
+ */
192
+ feedIds: Schema.Array$<typeof Schema.String>;
193
+ }>;
194
+ export interface SubscribeRequest extends Schema.Schema.Type<typeof SubscribeRequest> {
195
+ }
196
+ /**
197
+ * Response payload for subscription creation.
198
+ */
199
+ export declare const SubscribeResponse: Schema.Struct<{
200
+ /**
201
+ * Echoed request correlation identifier.
202
+ */
203
+ requestId: Schema.optional<typeof Schema.String>;
204
+ /**
205
+ * Identifier to use in subsequent subscription queries.
206
+ */
207
+ subscriptionId: typeof Schema.String;
208
+ /**
209
+ * Expiration timestamp in milliseconds since Unix epoch.
210
+ */
211
+ expiresAt: typeof Schema.Number;
212
+ }>;
213
+ export interface SubscribeResponse extends Schema.Schema.Type<typeof SubscribeResponse> {
214
+ }
215
+ /**
216
+ * Request payload for appending one or more blocks.
217
+ */
218
+ export declare const AppendRequest: Schema.Struct<{
219
+ /**
220
+ * Optional request correlation identifier.
221
+ */
222
+ requestId: Schema.optional<typeof Schema.String>;
223
+ /**
224
+ * Target space identifier.
225
+ */
226
+ spaceId: typeof Schema.String;
227
+ /**
228
+ * Namespace that all appended blocks belong to.
229
+ */
230
+ feedNamespace: typeof Schema.String;
231
+ /**
232
+ * Blocks to append.
233
+ */
234
+ blocks: Schema.Array$<Schema.Struct<{
235
+ /**
236
+ * Appears on blocks returned from query.
237
+ */
238
+ feedId: Schema.UndefinedOr<typeof Schema.String>;
239
+ /**
240
+ * Actor that produced this block.
241
+ */
242
+ actorId: typeof Schema.String;
243
+ /**
244
+ * Per-feed monotonic sequence assigned by the actor.
245
+ */
246
+ sequence: typeof Schema.Number;
247
+ /**
248
+ * Actor of the immediate predecessor block, if any.
249
+ */
250
+ prevActorId: Schema.NullOr<typeof Schema.String>;
251
+ /**
252
+ * Sequence of the immediate predecessor block, if any.
253
+ */
254
+ prevSequence: Schema.NullOr<typeof Schema.Number>;
255
+ /**
256
+ * Globally ordered position assigned by a position authority.
257
+ * Unlike `sequence` (per-feed causal order), this enables merged incremental reads across feeds.
258
+ */
259
+ position: Schema.NullOr<typeof Schema.Number>;
260
+ /**
261
+ * Milliseconds since Unix epoch when the block was created.
262
+ */
263
+ timestamp: typeof Schema.Number;
264
+ /**
265
+ * Serialized application payload.
266
+ */
267
+ data: typeof Schema.Uint8Array;
268
+ /**
269
+ * Local insertion ID.
270
+ * Not replicated.
271
+ */
272
+ insertionId: Schema.optional<typeof Schema.Number>;
273
+ }>>;
274
+ }>;
275
+ export interface AppendRequest extends Schema.Schema.Type<typeof AppendRequest> {
276
+ }
277
+ /**
278
+ * Result payload for append operations.
279
+ */
280
+ export declare const AppendResponse: Schema.Struct<{
281
+ /**
282
+ * Echoed request correlation identifier.
283
+ */
284
+ requestId: Schema.optional<typeof Schema.String>;
285
+ /**
286
+ * Assigned global positions for appended blocks.
287
+ */
288
+ positions: Schema.Array$<typeof Schema.Number>;
289
+ }>;
290
+ export interface AppendResponse extends Schema.Schema.Type<typeof AppendResponse> {
291
+ }
292
+ /**
293
+ * Tagged transport message union for queue protocol RPC traffic.
294
+ */
295
+ export declare const ProtocolMessage: Schema.extend<Schema.Union<[Schema.TaggedStruct<"QueryRequest", Readonly<{
296
+ /**
297
+ * Optional request correlation identifier.
298
+ */
299
+ requestId: Schema.optional<typeof Schema.String>;
300
+ /**
301
+ * Target space identifier.
302
+ */
303
+ spaceId: Schema.Schema<SpaceId, string, never> & {
304
+ byteLength: number;
305
+ encode: (value: Uint8Array) => SpaceId;
306
+ decode: (value: SpaceId) => Uint8Array;
307
+ isValid: (value: unknown) => value is SpaceId;
308
+ make: (value: string) => SpaceId;
309
+ random: () => SpaceId;
310
+ };
311
+ /**
312
+ * Feed namespace to query.
313
+ */
314
+ feedNamespace: typeof Schema.String;
315
+ query: Schema.optional<Schema.Union<[Schema.Struct<{
316
+ /**
317
+ * Explicit list of feed IDs to read from.
318
+ */
319
+ feedIds: Schema.Array$<typeof Schema.String>;
320
+ }>, Schema.Struct<{
321
+ /**
322
+ * Existing subscription to resolve feed IDs from.
323
+ */
324
+ subscriptionId: typeof Schema.String;
325
+ }>]>>;
326
+ /**
327
+ * Get changes following this cursor (exclusive).
328
+ *
329
+ * Must not be used with `position`.
330
+ */
331
+ cursor: Schema.optional<Schema.brand<typeof Schema.String, "@dxos/feed/FeedCursor">>;
332
+ /**
333
+ * Get changes following this position.
334
+ * Returned blocks have strictly greater position than this.
335
+ *
336
+ * Must not be used with `cursor`.
337
+ */
338
+ position: Schema.optional<typeof Schema.Number>;
339
+ /**
340
+ * Only return blocks that are not positioned.
341
+ *
342
+ * Must not be used with `cursor` or `position`.
343
+ */
344
+ unpositionedOnly: Schema.optional<typeof Schema.Boolean>;
345
+ /**
346
+ * Maximum number of blocks to return.
347
+ */
348
+ limit: Schema.optional<typeof Schema.Number>;
349
+ }>>, Schema.TaggedStruct<"QueryResponse", Readonly<{
350
+ /**
351
+ * Echoed request correlation identifier.
352
+ */
353
+ requestId: Schema.optional<typeof Schema.String>;
354
+ /**
355
+ * Cursor to continue reading from this result boundary.
356
+ */
357
+ nextCursor: Schema.brand<typeof Schema.String, "@dxos/feed/FeedCursor">;
358
+ /**
359
+ * Indicates whether more matching blocks are available.
360
+ */
361
+ hasMore: typeof Schema.Boolean;
362
+ /**
363
+ * Returned blocks for the current page.
364
+ */
365
+ blocks: Schema.Array$<Schema.Struct<{
366
+ /**
367
+ * Appears on blocks returned from query.
368
+ */
369
+ feedId: Schema.UndefinedOr<typeof Schema.String>;
370
+ /**
371
+ * Actor that produced this block.
372
+ */
373
+ actorId: typeof Schema.String;
374
+ /**
375
+ * Per-feed monotonic sequence assigned by the actor.
376
+ */
377
+ sequence: typeof Schema.Number;
378
+ /**
379
+ * Actor of the immediate predecessor block, if any.
380
+ */
381
+ prevActorId: Schema.NullOr<typeof Schema.String>;
382
+ /**
383
+ * Sequence of the immediate predecessor block, if any.
384
+ */
385
+ prevSequence: Schema.NullOr<typeof Schema.Number>;
386
+ /**
387
+ * Globally ordered position assigned by a position authority.
388
+ * Unlike `sequence` (per-feed causal order), this enables merged incremental reads across feeds.
389
+ */
390
+ position: Schema.NullOr<typeof Schema.Number>;
391
+ /**
392
+ * Milliseconds since Unix epoch when the block was created.
393
+ */
394
+ timestamp: typeof Schema.Number;
395
+ /**
396
+ * Serialized application payload.
397
+ */
398
+ data: typeof Schema.Uint8Array;
399
+ /**
400
+ * Local insertion ID.
401
+ * Not replicated.
402
+ */
403
+ insertionId: Schema.optional<typeof Schema.Number>;
404
+ }>>;
405
+ }>>, Schema.TaggedStruct<"SubscribeRequest", Readonly<{
406
+ /**
407
+ * Optional request correlation identifier.
408
+ */
409
+ requestId: Schema.optional<typeof Schema.String>;
410
+ /**
411
+ * Optional space scope for the subscription.
412
+ */
413
+ spaceId: Schema.optional<typeof Schema.String>;
414
+ /**
415
+ * Feeds to include in the subscription.
416
+ */
417
+ feedIds: Schema.Array$<typeof Schema.String>;
418
+ }>>, Schema.TaggedStruct<"SubscribeResponse", Readonly<{
419
+ /**
420
+ * Echoed request correlation identifier.
421
+ */
422
+ requestId: Schema.optional<typeof Schema.String>;
423
+ /**
424
+ * Identifier to use in subsequent subscription queries.
425
+ */
426
+ subscriptionId: typeof Schema.String;
427
+ /**
428
+ * Expiration timestamp in milliseconds since Unix epoch.
429
+ */
430
+ expiresAt: typeof Schema.Number;
431
+ }>>, Schema.TaggedStruct<"AppendRequest", Readonly<{
432
+ /**
433
+ * Optional request correlation identifier.
434
+ */
435
+ requestId: Schema.optional<typeof Schema.String>;
436
+ /**
437
+ * Target space identifier.
438
+ */
439
+ spaceId: typeof Schema.String;
440
+ /**
441
+ * Namespace that all appended blocks belong to.
442
+ */
443
+ feedNamespace: typeof Schema.String;
444
+ /**
445
+ * Blocks to append.
446
+ */
447
+ blocks: Schema.Array$<Schema.Struct<{
448
+ /**
449
+ * Appears on blocks returned from query.
450
+ */
451
+ feedId: Schema.UndefinedOr<typeof Schema.String>;
452
+ /**
453
+ * Actor that produced this block.
454
+ */
455
+ actorId: typeof Schema.String;
456
+ /**
457
+ * Per-feed monotonic sequence assigned by the actor.
458
+ */
459
+ sequence: typeof Schema.Number;
460
+ /**
461
+ * Actor of the immediate predecessor block, if any.
462
+ */
463
+ prevActorId: Schema.NullOr<typeof Schema.String>;
464
+ /**
465
+ * Sequence of the immediate predecessor block, if any.
466
+ */
467
+ prevSequence: Schema.NullOr<typeof Schema.Number>;
468
+ /**
469
+ * Globally ordered position assigned by a position authority.
470
+ * Unlike `sequence` (per-feed causal order), this enables merged incremental reads across feeds.
471
+ */
472
+ position: Schema.NullOr<typeof Schema.Number>;
473
+ /**
474
+ * Milliseconds since Unix epoch when the block was created.
475
+ */
476
+ timestamp: typeof Schema.Number;
477
+ /**
478
+ * Serialized application payload.
479
+ */
480
+ data: typeof Schema.Uint8Array;
481
+ /**
482
+ * Local insertion ID.
483
+ * Not replicated.
484
+ */
485
+ insertionId: Schema.optional<typeof Schema.Number>;
486
+ }>>;
487
+ }>>, Schema.TaggedStruct<"AppendResponse", Readonly<{
488
+ /**
489
+ * Echoed request correlation identifier.
490
+ */
491
+ requestId: Schema.optional<typeof Schema.String>;
492
+ /**
493
+ * Assigned global positions for appended blocks.
494
+ */
495
+ positions: Schema.Array$<typeof Schema.Number>;
496
+ }>>, Schema.TaggedStruct<"Error", {
497
+ /**
498
+ * Human-readable error message.
499
+ */
500
+ message: typeof Schema.String;
501
+ }>]>, Schema.Struct<{
502
+ senderPeerId: Schema.UndefinedOr<typeof Schema.String>;
503
+ /**
504
+ * Could be undefined if the recipient could be assumed from the context.
505
+ */
506
+ recipientPeerId: Schema.UndefinedOr<typeof Schema.String>;
507
+ }>>;
508
+ export type ProtocolMessage = Schema.Schema.Type<typeof ProtocolMessage>;
509
+ /**
510
+ * Reserved namespaces with protocol-level semantics.
511
+ */
512
+ export declare const WellKnownNamespaces: {
513
+ readonly data: 'data';
514
+ readonly trace: 'trace';
515
+ };
516
+ export declare const isWellKnownNamespace: (namespace: string) => boolean;
517
+ /**
518
+ * Encodes queue replicator service identifier as `<service>:<namespace>:<spaceId>`.
519
+ */
520
+ export declare const encodeServiceId: (namespace: string, spaceId: SpaceId) => string;
521
+ /**
522
+ * Decodes and validates queue replicator service identifier.
523
+ */
524
+ export declare const decodeServiceId: (serviceId: string) => {
525
+ namespace: keyof typeof WellKnownNamespaces;
526
+ spaceId: SpaceId;
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