@dxos/protocols 0.8.4-main.b97322e → 0.8.4-main.bcb3aa67d6

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 (405) hide show
  1. package/README.md +1 -1
  2. package/dist/src/FeedProtocol.d.ts +528 -0
  3. package/dist/src/FeedProtocol.d.ts.map +1 -0
  4. package/dist/src/FeedProtocol.js +237 -0
  5. package/dist/src/FeedProtocol.js.map +1 -0
  6. package/dist/src/FunctionProtocol.d.ts +82 -0
  7. package/dist/src/FunctionProtocol.d.ts.map +1 -0
  8. package/dist/src/FunctionProtocol.js +4 -0
  9. package/dist/src/FunctionProtocol.js.map +1 -0
  10. package/dist/src/automerge.d.ts +8 -0
  11. package/dist/src/automerge.d.ts.map +1 -1
  12. package/dist/src/automerge.js.map +1 -1
  13. package/dist/src/buf/proto/gen/dxos/agent/dashboard_pb.d.ts +1 -1
  14. package/dist/src/buf/proto/gen/dxos/agent/dashboard_pb.js +1 -1
  15. package/dist/src/buf/proto/gen/dxos/agent/echo-proxy_pb.d.ts +1 -1
  16. package/dist/src/buf/proto/gen/dxos/agent/echo-proxy_pb.js +1 -1
  17. package/dist/src/buf/proto/gen/dxos/agent/epoch_pb.d.ts +1 -1
  18. package/dist/src/buf/proto/gen/dxos/agent/epoch_pb.js +1 -1
  19. package/dist/src/buf/proto/gen/dxos/agent/functions_pb.d.ts +1 -1
  20. package/dist/src/buf/proto/gen/dxos/agent/functions_pb.js +1 -1
  21. package/dist/src/buf/proto/gen/dxos/bot_pb.d.ts +1 -1
  22. package/dist/src/buf/proto/gen/dxos/bot_pb.js +1 -1
  23. package/dist/src/buf/proto/gen/dxos/client/invitation_pb.d.ts +1 -1
  24. package/dist/src/buf/proto/gen/dxos/client/invitation_pb.js +1 -1
  25. package/dist/src/buf/proto/gen/dxos/client/logging_pb.d.ts +1 -1
  26. package/dist/src/buf/proto/gen/dxos/client/logging_pb.js +1 -1
  27. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +231 -0
  28. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -0
  29. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +44 -0
  30. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -0
  31. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +98 -22
  32. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
  33. package/dist/src/buf/proto/gen/dxos/client/services_pb.js +68 -54
  34. package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
  35. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +36 -7
  36. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
  37. package/dist/src/buf/proto/gen/dxos/config_pb.js +7 -2
  38. package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
  39. package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.d.ts +1 -1
  40. package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.js +1 -1
  41. package/dist/src/buf/proto/gen/dxos/devtools/host_pb.d.ts +1 -1
  42. package/dist/src/buf/proto/gen/dxos/devtools/host_pb.js +1 -1
  43. package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.d.ts +1 -1
  44. package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.js +1 -1
  45. package/dist/src/buf/proto/gen/dxos/echo/blob_pb.d.ts +1 -1
  46. package/dist/src/buf/proto/gen/dxos/echo/blob_pb.js +1 -1
  47. package/dist/src/buf/proto/gen/dxos/echo/feed_pb.d.ts +1 -1
  48. package/dist/src/buf/proto/gen/dxos/echo/feed_pb.js +1 -1
  49. package/dist/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +1 -1
  50. package/dist/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
  51. package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.d.ts +1 -1
  52. package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.js +1 -1
  53. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +7 -1
  54. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts.map +1 -1
  55. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +2 -2
  56. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js.map +1 -1
  57. package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.d.ts +1 -1
  58. package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.js +1 -1
  59. package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.d.ts +1 -1
  60. package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.js +1 -1
  61. package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.d.ts +1 -1
  62. package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.js +1 -1
  63. package/dist/src/buf/proto/gen/dxos/echo/object_pb.d.ts +1 -1
  64. package/dist/src/buf/proto/gen/dxos/echo/object_pb.js +1 -1
  65. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +13 -3
  66. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
  67. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +2 -2
  68. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
  69. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +71 -10
  70. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
  71. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +16 -6
  72. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
  73. package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.d.ts +1 -1
  74. package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.js +1 -1
  75. package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.d.ts +1 -1
  76. package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.js +1 -1
  77. package/dist/src/buf/proto/gen/dxos/edge/calls_pb.d.ts +1 -1
  78. package/dist/src/buf/proto/gen/dxos/edge/calls_pb.js +1 -1
  79. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +29 -1
  80. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts.map +1 -1
  81. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +11 -6
  82. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js.map +1 -1
  83. package/dist/src/buf/proto/gen/dxos/edge/signal_pb.d.ts +1 -1
  84. package/dist/src/buf/proto/gen/dxos/edge/signal_pb.js +1 -1
  85. package/dist/src/buf/proto/gen/dxos/error_pb.d.ts +1 -1
  86. package/dist/src/buf/proto/gen/dxos/error_pb.js +1 -1
  87. package/dist/src/buf/proto/gen/dxos/field_options_pb.d.ts +1 -1
  88. package/dist/src/buf/proto/gen/dxos/field_options_pb.js +1 -1
  89. package/dist/src/buf/proto/gen/dxos/google_pb.d.ts +1 -1
  90. package/dist/src/buf/proto/gen/dxos/google_pb.js +2 -2
  91. package/dist/src/buf/proto/gen/dxos/google_pb.js.map +1 -1
  92. package/dist/src/buf/proto/gen/dxos/gravity_pb.d.ts +1 -1
  93. package/dist/src/buf/proto/gen/dxos/gravity_pb.js +1 -1
  94. package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.d.ts +1 -1
  95. package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.js +1 -1
  96. package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.d.ts +1 -1
  97. package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.js +1 -1
  98. package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.d.ts +1 -1
  99. package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.js +1 -1
  100. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +40 -1
  101. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts.map +1 -1
  102. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +28 -3
  103. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js.map +1 -1
  104. package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.d.ts +1 -1
  105. package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js +1 -1
  106. package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.d.ts +1 -1
  107. package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.js +1 -1
  108. package/dist/src/buf/proto/gen/dxos/halo/keys_pb.d.ts +1 -1
  109. package/dist/src/buf/proto/gen/dxos/halo/keys_pb.js +1 -1
  110. package/dist/src/buf/proto/gen/dxos/halo/signed_pb.d.ts +1 -1
  111. package/dist/src/buf/proto/gen/dxos/halo/signed_pb.js +1 -1
  112. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +2 -1
  113. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
  114. package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
  115. package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
  116. package/dist/src/buf/proto/gen/dxos/keys_pb.d.ts +1 -1
  117. package/dist/src/buf/proto/gen/dxos/keys_pb.js +1 -1
  118. package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.d.ts +1 -1
  119. package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.js +1 -1
  120. package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.d.ts +1 -1
  121. package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.js +1 -1
  122. package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.d.ts +1 -1
  123. package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.js +1 -1
  124. package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.d.ts +1 -1
  125. package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.js +1 -1
  126. package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.d.ts +1 -1
  127. package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.js +1 -1
  128. package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.d.ts +1 -1
  129. package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.js +1 -1
  130. package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.d.ts +1 -1
  131. package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.js +1 -1
  132. package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.d.ts +1 -1
  133. package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.js +1 -1
  134. package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.d.ts +1 -1
  135. package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.js +1 -1
  136. package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.d.ts +1 -1
  137. package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.js +1 -1
  138. package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.d.ts +1 -1
  139. package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.js +1 -1
  140. package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.d.ts +1 -1
  141. package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.js +1 -1
  142. package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.d.ts +1 -1
  143. package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.js +1 -1
  144. package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.d.ts +1 -1
  145. package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.js +1 -1
  146. package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.d.ts +1 -1
  147. package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.js +1 -1
  148. package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.d.ts +1 -1
  149. package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.js +1 -1
  150. package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.d.ts +1 -1
  151. package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.js +1 -1
  152. package/dist/src/buf/proto/gen/dxos/registry_pb.d.ts +1 -1
  153. package/dist/src/buf/proto/gen/dxos/registry_pb.js +1 -1
  154. package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +1 -1
  155. package/dist/src/buf/proto/gen/dxos/rpc_pb.js +1 -1
  156. package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.d.ts +1 -1
  157. package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.js +1 -1
  158. package/dist/src/buf/proto/gen/dxos/service/publisher_pb.d.ts +1 -1
  159. package/dist/src/buf/proto/gen/dxos/service/publisher_pb.js +1 -1
  160. package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.d.ts +1 -1
  161. package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.js +1 -1
  162. package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.d.ts +1 -1
  163. package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.js +1 -1
  164. package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -1
  165. package/dist/src/buf/proto/gen/dxos/tracing_pb.js +2 -2
  166. package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
  167. package/dist/src/buf/proto/gen/dxos/type_pb.d.ts +1 -1
  168. package/dist/src/buf/proto/gen/dxos/type_pb.js +1 -1
  169. package/dist/src/buf/proto/gen/dxos/value_pb.d.ts +1 -1
  170. package/dist/src/buf/proto/gen/dxos/value_pb.js +1 -1
  171. package/dist/src/buf/proto/gen/example/testing/data_pb.d.ts +1 -1
  172. package/dist/src/buf/proto/gen/example/testing/data_pb.js +1 -1
  173. package/dist/src/buf/proto/gen/example/testing/rpc_pb.d.ts +1 -1
  174. package/dist/src/buf/proto/gen/example/testing/rpc_pb.js +1 -1
  175. package/dist/src/codec.test.js +1 -1
  176. package/dist/src/edge/EdgeFunctionEnv.d.ts +108 -0
  177. package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -0
  178. package/dist/src/edge/EdgeFunctionEnv.js +4 -0
  179. package/dist/src/edge/EdgeFunctionEnv.js.map +1 -0
  180. package/dist/src/edge/edge.d.ts +511 -0
  181. package/dist/src/edge/edge.d.ts.map +1 -0
  182. package/dist/src/edge/edge.js +173 -0
  183. package/dist/src/edge/edge.js.map +1 -0
  184. package/dist/src/edge/errors.d.ts +29 -0
  185. package/dist/src/edge/errors.d.ts.map +1 -0
  186. package/dist/src/edge/errors.js +69 -0
  187. package/dist/src/edge/errors.js.map +1 -0
  188. package/dist/src/edge/index.d.ts +4 -0
  189. package/dist/src/edge/index.d.ts.map +1 -0
  190. package/dist/src/edge/index.js +7 -0
  191. package/dist/src/edge/index.js.map +1 -0
  192. package/dist/src/errors/base-errors.d.ts +86 -8
  193. package/dist/src/errors/base-errors.d.ts.map +1 -1
  194. package/dist/src/errors/base-errors.js +4 -19
  195. package/dist/src/errors/base-errors.js.map +1 -1
  196. package/dist/src/errors/encoding.d.ts +2 -2
  197. package/dist/src/errors/encoding.d.ts.map +1 -1
  198. package/dist/src/errors/encoding.js +1 -1
  199. package/dist/src/errors/encoding.js.map +1 -1
  200. package/dist/src/errors/errors.d.ts +619 -42
  201. package/dist/src/errors/errors.d.ts.map +1 -1
  202. package/dist/src/errors/errors.js +50 -104
  203. package/dist/src/errors/errors.js.map +1 -1
  204. package/dist/src/errors/errors.test.js +2 -2
  205. package/dist/src/errors/errors.test.js.map +1 -1
  206. package/dist/src/errors/helpers.d.ts +9 -5
  207. package/dist/src/errors/helpers.d.ts.map +1 -1
  208. package/dist/src/errors/helpers.js +3 -3
  209. package/dist/src/errors/helpers.js.map +1 -1
  210. package/dist/src/errors/index.d.ts +5 -5
  211. package/dist/src/errors/index.js +5 -5
  212. package/dist/src/feed-replication.d.ts.map +1 -1
  213. package/dist/src/index.d.ts +12 -12
  214. package/dist/src/index.d.ts.map +1 -1
  215. package/dist/src/index.js +11 -10
  216. package/dist/src/index.js.map +1 -1
  217. package/dist/src/indexing.d.ts +1 -1
  218. package/dist/src/indexing.d.ts.map +1 -1
  219. package/dist/src/indexing.js +1 -1
  220. package/dist/src/indexing.js.map +1 -1
  221. package/dist/src/indexing.test.js +1 -1
  222. package/dist/src/invitation.d.ts +1 -1
  223. package/dist/src/invitation.d.ts.map +1 -1
  224. package/dist/src/invitation.js +1 -1
  225. package/dist/src/invitation.js.map +1 -1
  226. package/dist/src/messenger.d.ts +16 -0
  227. package/dist/src/messenger.d.ts.map +1 -0
  228. package/dist/src/messenger.js +4 -0
  229. package/dist/src/messenger.js.map +1 -0
  230. package/dist/src/proto/gen/dxos/client/services.d.ts +1016 -851
  231. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  232. package/dist/src/proto/gen/dxos/client/services.js +104 -100
  233. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  234. package/dist/src/proto/gen/dxos/config.d.ts +28 -2
  235. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  236. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  237. package/dist/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  238. package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  239. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +4 -0
  240. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  241. package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -1
  242. package/dist/src/proto/gen/dxos/echo/query.d.ts +17 -1
  243. package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  244. package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
  245. package/dist/src/proto/gen/dxos/echo/service.d.ts +43 -8
  246. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  247. package/dist/src/proto/gen/dxos/edge/messenger.d.ts +24 -0
  248. package/dist/src/proto/gen/dxos/edge/messenger.d.ts.map +1 -1
  249. package/dist/src/proto/gen/dxos/edge/messenger.js.map +1 -1
  250. package/dist/src/proto/gen/dxos/halo/credentials.d.ts +15 -1
  251. package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  252. package/dist/src/proto/gen/dxos/halo/credentials.js +9 -0
  253. package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
  254. package/dist/src/proto/gen/google/protobuf.d.ts +326 -40
  255. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  256. package/dist/src/proto/gen/google/protobuf.js +127 -1
  257. package/dist/src/proto/gen/google/protobuf.js.map +1 -1
  258. package/dist/src/proto/gen/index.d.ts +38 -0
  259. package/dist/src/proto/gen/index.d.ts.map +1 -1
  260. package/dist/src/proto/gen/index.js +1 -1
  261. package/dist/src/proto/gen/index.js.map +1 -1
  262. package/dist/src/proto/index.d.ts +2 -2
  263. package/dist/src/proto/index.js +1 -1
  264. package/dist/src/proto/types.d.ts +1 -1
  265. package/dist/src/space-archive.d.ts +60 -1
  266. package/dist/src/space-archive.d.ts.map +1 -1
  267. package/dist/src/space-archive.js +13 -1
  268. package/dist/src/space-archive.js.map +1 -1
  269. package/dist/src/types.d.ts +2 -2
  270. package/dist/tsconfig.tsbuildinfo +1 -1
  271. package/package.json +19 -17
  272. package/src/FeedProtocol.ts +320 -0
  273. package/src/FunctionProtocol.ts +102 -0
  274. package/src/automerge.ts +8 -0
  275. package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +3 -3
  276. package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +3 -3
  277. package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +3 -3
  278. package/src/buf/proto/gen/dxos/agent/functions_pb.ts +3 -3
  279. package/src/buf/proto/gen/dxos/bot_pb.ts +3 -3
  280. package/src/buf/proto/gen/dxos/client/invitation_pb.ts +3 -3
  281. package/src/buf/proto/gen/dxos/client/logging_pb.ts +3 -3
  282. package/src/buf/proto/gen/dxos/client/queue_pb.ts +280 -0
  283. package/src/buf/proto/gen/dxos/client/services_pb.ts +154 -62
  284. package/src/buf/proto/gen/dxos/config_pb.ts +43 -10
  285. package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +3 -3
  286. package/src/buf/proto/gen/dxos/devtools/host_pb.ts +3 -3
  287. package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +3 -3
  288. package/src/buf/proto/gen/dxos/echo/blob_pb.ts +3 -3
  289. package/src/buf/proto/gen/dxos/echo/feed_pb.ts +3 -3
  290. package/src/buf/proto/gen/dxos/echo/filter_pb.ts +3 -3
  291. package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +3 -3
  292. package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +11 -4
  293. package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +3 -3
  294. package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +3 -3
  295. package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +3 -3
  296. package/src/buf/proto/gen/dxos/echo/object_pb.ts +3 -3
  297. package/src/buf/proto/gen/dxos/echo/query_pb.ts +18 -6
  298. package/src/buf/proto/gen/dxos/echo/service_pb.ts +87 -18
  299. package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +3 -3
  300. package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +3 -3
  301. package/src/buf/proto/gen/dxos/edge/calls_pb.ts +3 -3
  302. package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +41 -8
  303. package/src/buf/proto/gen/dxos/edge/signal_pb.ts +3 -3
  304. package/src/buf/proto/gen/dxos/error_pb.ts +3 -3
  305. package/src/buf/proto/gen/dxos/field_options_pb.ts +3 -3
  306. package/src/buf/proto/gen/dxos/google_pb.ts +3 -3
  307. package/src/buf/proto/gen/dxos/gravity_pb.ts +3 -3
  308. package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +3 -3
  309. package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +3 -3
  310. package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +3 -3
  311. package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +51 -5
  312. package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +3 -3
  313. package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +3 -3
  314. package/src/buf/proto/gen/dxos/halo/keys_pb.ts +3 -3
  315. package/src/buf/proto/gen/dxos/halo/signed_pb.ts +3 -3
  316. package/src/buf/proto/gen/dxos/iframe_pb.ts +4 -3
  317. package/src/buf/proto/gen/dxos/keys_pb.ts +3 -3
  318. package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +3 -3
  319. package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +3 -3
  320. package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +3 -3
  321. package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +3 -3
  322. package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +3 -3
  323. package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +3 -3
  324. package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +3 -3
  325. package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +3 -3
  326. package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +3 -3
  327. package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +3 -3
  328. package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +3 -3
  329. package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +3 -3
  330. package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +3 -3
  331. package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +3 -3
  332. package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +3 -3
  333. package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +3 -3
  334. package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +3 -3
  335. package/src/buf/proto/gen/dxos/registry_pb.ts +3 -3
  336. package/src/buf/proto/gen/dxos/rpc_pb.ts +3 -3
  337. package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +3 -3
  338. package/src/buf/proto/gen/dxos/service/publisher_pb.ts +3 -3
  339. package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +3 -3
  340. package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +3 -3
  341. package/src/buf/proto/gen/dxos/tracing_pb.ts +3 -3
  342. package/src/buf/proto/gen/dxos/type_pb.ts +3 -3
  343. package/src/buf/proto/gen/dxos/value_pb.ts +3 -3
  344. package/src/buf/proto/gen/example/testing/data_pb.ts +3 -3
  345. package/src/buf/proto/gen/example/testing/rpc_pb.ts +3 -3
  346. package/src/codec.test.ts +1 -1
  347. package/src/edge/EdgeFunctionEnv.ts +187 -0
  348. package/src/edge/edge.ts +604 -0
  349. package/src/edge/errors.ts +85 -0
  350. package/src/edge/index.ts +7 -0
  351. package/src/errors/base-errors.ts +4 -20
  352. package/src/errors/encoding.ts +3 -2
  353. package/src/errors/errors.test.ts +2 -2
  354. package/src/errors/errors.ts +58 -123
  355. package/src/errors/helpers.ts +6 -6
  356. package/src/errors/index.ts +5 -5
  357. package/src/feed-replication.ts +1 -0
  358. package/src/index.ts +12 -12
  359. package/src/indexing.test.ts +1 -1
  360. package/src/indexing.ts +1 -1
  361. package/src/invitation.ts +1 -1
  362. package/src/messenger.ts +22 -0
  363. package/src/proto/dxos/client/queue.proto +78 -0
  364. package/src/proto/dxos/client/services.proto +29 -4
  365. package/src/proto/dxos/config.proto +36 -40
  366. package/src/proto/dxos/echo/metadata.proto +3 -0
  367. package/src/proto/dxos/echo/query.proto +4 -1
  368. package/src/proto/dxos/echo/service.proto +38 -6
  369. package/src/proto/dxos/edge/messenger.proto +10 -0
  370. package/src/proto/dxos/halo/credentials.proto +15 -0
  371. package/src/proto/dxos/iframe.proto +1 -0
  372. package/src/proto/gen/dxos/client/services.ts +1016 -851
  373. package/src/proto/gen/dxos/config.ts +28 -2
  374. package/src/proto/gen/dxos/devtools/host.ts +31 -31
  375. package/src/proto/gen/dxos/echo/metadata.ts +4 -0
  376. package/src/proto/gen/dxos/echo/query.ts +17 -1
  377. package/src/proto/gen/dxos/echo/service.ts +42 -8
  378. package/src/proto/gen/dxos/edge/messenger.ts +24 -0
  379. package/src/proto/gen/dxos/halo/credentials.ts +15 -1
  380. package/src/proto/gen/google/protobuf.ts +326 -40
  381. package/src/proto/gen/index.ts +39 -1
  382. package/src/proto/index.ts +2 -2
  383. package/src/proto/types.ts +1 -1
  384. package/src/space-archive.ts +70 -1
  385. package/src/types.ts +2 -2
  386. package/dist/src/edge-error.d.ts +0 -26
  387. package/dist/src/edge-error.d.ts.map +0 -1
  388. package/dist/src/edge-error.js +0 -62
  389. package/dist/src/edge-error.js.map +0 -1
  390. package/dist/src/edge.d.ts +0 -198
  391. package/dist/src/edge.d.ts.map +0 -1
  392. package/dist/src/edge.js +0 -43
  393. package/dist/src/edge.js.map +0 -1
  394. package/dist/src/query.d.ts +0 -5
  395. package/dist/src/query.d.ts.map +0 -1
  396. package/dist/src/query.js +0 -8
  397. package/dist/src/query.js.map +0 -1
  398. package/dist/src/queue.d.ts +0 -24
  399. package/dist/src/queue.d.ts.map +0 -1
  400. package/dist/src/queue.js +0 -4
  401. package/dist/src/queue.js.map +0 -1
  402. package/src/edge-error.ts +0 -79
  403. package/src/edge.ts +0 -222
  404. package/src/query.ts +0 -8
  405. package/src/queue.ts +0 -33
@@ -0,0 +1,280 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
2
+ // @generated from file dxos/client/queue.proto (package dxos.client.services, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { EmptySchema } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
9
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * Describes the file dxos/client/queue.proto.
13
+ */
14
+ export const file_dxos_client_queue: GenFile = /*@__PURE__*/
15
+ fileDesc("ChdkeG9zL2NsaWVudC9xdWV1ZS5wcm90bxIUZHhvcy5jbGllbnQuc2VydmljZXMi0wIKClF1ZXVlUXVlcnkSEAoIc3BhY2VfaWQYASABKAkSHQoQcXVldWVzX25hbWVzcGFjZRgCIAEoCUgAiAEBEhEKCXF1ZXVlX2lkcxgDIAMoCRISCgVhZnRlchgEIAEoCUgBiAEBEhMKBmJlZm9yZRgFIAEoCUgCiAEBEhsKDmJlZ2luX3Bvc2l0aW9uGAYgASgDSAOIAQESGQoMZW5kX3Bvc2l0aW9uGAcgASgDSASIAQESEgoFbGltaXQYCCABKAVIBYgBARIUCgdyZXZlcnNlGAkgASgISAaIAQESEgoKb2JqZWN0X2lkcxhkIAMoCUITChFfcXVldWVzX25hbWVzcGFjZUIICgZfYWZ0ZXJCCQoHX2JlZm9yZUIRCg9fYmVnaW5fcG9zaXRpb25CDwoNX2VuZF9wb3NpdGlvbkIICgZfbGltaXRCCgoIX3JldmVyc2UiZgoQUXVldWVRdWVyeVJlc3VsdBIoCgdvYmplY3RzGAEgAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBITCgtuZXh0X2N1cnNvchgCIAEoCRITCgtwcmV2X2N1cnNvchgDIAEoCSJEChFRdWVyeVF1ZXVlUmVxdWVzdBIvCgVxdWVyeRgBIAEoCzIgLmR4b3MuY2xpZW50LnNlcnZpY2VzLlF1ZXVlUXVlcnkifAoWSW5zZXJ0SW50b1F1ZXVlUmVxdWVzdBIUCgxzdWJzcGFjZV90YWcYASABKAkSEAoIc3BhY2VfaWQYAiABKAkSEAoIcXVldWVfaWQYAyABKAkSKAoHb2JqZWN0cxgEIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiZgoWRGVsZXRlRnJvbVF1ZXVlUmVxdWVzdBIUCgxzdWJzcGFjZV90YWcYASABKAkSEAoIc3BhY2VfaWQYAiABKAkSEAoIcXVldWVfaWQYAyABKAkSEgoKb2JqZWN0X2lkcxgEIAMoCSKgAQoQU3luY1F1ZXVlUmVxdWVzdBIUCgxzdWJzcGFjZV90YWcYASABKAkSEAoIc3BhY2VfaWQYAiABKAkSEAoIcXVldWVfaWQYAyABKAkSGAoLc2hvdWxkX3B1c2gYBCABKAhIAIgBARIYCgtzaG91bGRfcHVsbBgFIAEoCEgBiAEBQg4KDF9zaG91bGRfcHVzaEIOCgxfc2hvdWxkX3B1bGwy7AIKDFF1ZXVlU2VydmljZRJdCgpRdWVyeVF1ZXVlEicuZHhvcy5jbGllbnQuc2VydmljZXMuUXVlcnlRdWV1ZVJlcXVlc3QaJi5keG9zLmNsaWVudC5zZXJ2aWNlcy5RdWV1ZVF1ZXJ5UmVzdWx0ElcKD0luc2VydEludG9RdWV1ZRIsLmR4b3MuY2xpZW50LnNlcnZpY2VzLkluc2VydEludG9RdWV1ZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkSVwoPRGVsZXRlRnJvbVF1ZXVlEiwuZHhvcy5jbGllbnQuc2VydmljZXMuRGVsZXRlRnJvbVF1ZXVlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRJLCglTeW5jUXVldWUSJi5keG9zLmNsaWVudC5zZXJ2aWNlcy5TeW5jUXVldWVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5YgZwcm90bzM", [file_google_protobuf_struct, file_google_protobuf_empty]);
16
+
17
+ /**
18
+ * @generated from message dxos.client.services.QueueQuery
19
+ */
20
+ export type QueueQuery = Message<"dxos.client.services.QueueQuery"> & {
21
+ /**
22
+ * @generated from field: string space_id = 1;
23
+ */
24
+ spaceId: string;
25
+
26
+ /**
27
+ * @generated from field: optional string queues_namespace = 2;
28
+ */
29
+ queuesNamespace?: string;
30
+
31
+ /**
32
+ * / Queries the whole space if missing.
33
+ *
34
+ * @generated from field: repeated string queue_ids = 3;
35
+ */
36
+ queueIds: string[];
37
+
38
+ /**
39
+ * / Filter items after this cursor. Exclusive.
40
+ *
41
+ * @generated from field: optional string after = 4;
42
+ */
43
+ after?: string;
44
+
45
+ /**
46
+ * / Filter items before this cursor. Exclusive.
47
+ *
48
+ * @generated from field: optional string before = 5;
49
+ */
50
+ before?: string;
51
+
52
+ /**
53
+ * / Filter items after this position. Inclusive.
54
+ *
55
+ * @generated from field: optional int64 begin_position = 6;
56
+ */
57
+ beginPosition?: bigint;
58
+
59
+ /**
60
+ * / Filter items before this position. Exclusive.
61
+ *
62
+ * @generated from field: optional int64 end_position = 7;
63
+ */
64
+ endPosition?: bigint;
65
+
66
+ /**
67
+ * @generated from field: optional int32 limit = 8;
68
+ */
69
+ limit?: number;
70
+
71
+ /**
72
+ * @generated from field: optional bool reverse = 9;
73
+ */
74
+ reverse?: boolean;
75
+
76
+ /**
77
+ * TODO(dmaretskyi): Remove this field -- raw queues dont index object IDs anymore.
78
+ *
79
+ * @generated from field: repeated string object_ids = 100;
80
+ */
81
+ objectIds: string[];
82
+ };
83
+
84
+ /**
85
+ * Describes the message dxos.client.services.QueueQuery.
86
+ * Use `create(QueueQuerySchema)` to create a new message.
87
+ */
88
+ export const QueueQuerySchema: GenMessage<QueueQuery> = /*@__PURE__*/
89
+ messageDesc(file_dxos_client_queue, 0);
90
+
91
+ /**
92
+ * @generated from message dxos.client.services.QueueQueryResult
93
+ */
94
+ export type QueueQueryResult = Message<"dxos.client.services.QueueQueryResult"> & {
95
+ /**
96
+ * @generated from field: repeated google.protobuf.Struct objects = 1;
97
+ */
98
+ objects: JsonObject[];
99
+
100
+ /**
101
+ * / Cursor to query the next items. Can be passed to `after` in query to keep querying.
102
+ *
103
+ * @generated from field: string next_cursor = 2;
104
+ */
105
+ nextCursor: string;
106
+
107
+ /**
108
+ * @generated from field: string prev_cursor = 3;
109
+ */
110
+ prevCursor: string;
111
+ };
112
+
113
+ /**
114
+ * Describes the message dxos.client.services.QueueQueryResult.
115
+ * Use `create(QueueQueryResultSchema)` to create a new message.
116
+ */
117
+ export const QueueQueryResultSchema: GenMessage<QueueQueryResult> = /*@__PURE__*/
118
+ messageDesc(file_dxos_client_queue, 1);
119
+
120
+ /**
121
+ * @generated from message dxos.client.services.QueryQueueRequest
122
+ */
123
+ export type QueryQueueRequest = Message<"dxos.client.services.QueryQueueRequest"> & {
124
+ /**
125
+ * @generated from field: dxos.client.services.QueueQuery query = 1;
126
+ */
127
+ query?: QueueQuery;
128
+ };
129
+
130
+ /**
131
+ * Describes the message dxos.client.services.QueryQueueRequest.
132
+ * Use `create(QueryQueueRequestSchema)` to create a new message.
133
+ */
134
+ export const QueryQueueRequestSchema: GenMessage<QueryQueueRequest> = /*@__PURE__*/
135
+ messageDesc(file_dxos_client_queue, 2);
136
+
137
+ /**
138
+ * @generated from message dxos.client.services.InsertIntoQueueRequest
139
+ */
140
+ export type InsertIntoQueueRequest = Message<"dxos.client.services.InsertIntoQueueRequest"> & {
141
+ /**
142
+ * @generated from field: string subspace_tag = 1;
143
+ */
144
+ subspaceTag: string;
145
+
146
+ /**
147
+ * @generated from field: string space_id = 2;
148
+ */
149
+ spaceId: string;
150
+
151
+ /**
152
+ * @generated from field: string queue_id = 3;
153
+ */
154
+ queueId: string;
155
+
156
+ /**
157
+ * @generated from field: repeated google.protobuf.Struct objects = 4;
158
+ */
159
+ objects: JsonObject[];
160
+ };
161
+
162
+ /**
163
+ * Describes the message dxos.client.services.InsertIntoQueueRequest.
164
+ * Use `create(InsertIntoQueueRequestSchema)` to create a new message.
165
+ */
166
+ export const InsertIntoQueueRequestSchema: GenMessage<InsertIntoQueueRequest> = /*@__PURE__*/
167
+ messageDesc(file_dxos_client_queue, 3);
168
+
169
+ /**
170
+ * @generated from message dxos.client.services.DeleteFromQueueRequest
171
+ */
172
+ export type DeleteFromQueueRequest = Message<"dxos.client.services.DeleteFromQueueRequest"> & {
173
+ /**
174
+ * @generated from field: string subspace_tag = 1;
175
+ */
176
+ subspaceTag: string;
177
+
178
+ /**
179
+ * @generated from field: string space_id = 2;
180
+ */
181
+ spaceId: string;
182
+
183
+ /**
184
+ * @generated from field: string queue_id = 3;
185
+ */
186
+ queueId: string;
187
+
188
+ /**
189
+ * @generated from field: repeated string object_ids = 4;
190
+ */
191
+ objectIds: string[];
192
+ };
193
+
194
+ /**
195
+ * Describes the message dxos.client.services.DeleteFromQueueRequest.
196
+ * Use `create(DeleteFromQueueRequestSchema)` to create a new message.
197
+ */
198
+ export const DeleteFromQueueRequestSchema: GenMessage<DeleteFromQueueRequest> = /*@__PURE__*/
199
+ messageDesc(file_dxos_client_queue, 4);
200
+
201
+ /**
202
+ * @generated from message dxos.client.services.SyncQueueRequest
203
+ */
204
+ export type SyncQueueRequest = Message<"dxos.client.services.SyncQueueRequest"> & {
205
+ /**
206
+ * @generated from field: string subspace_tag = 1;
207
+ */
208
+ subspaceTag: string;
209
+
210
+ /**
211
+ * @generated from field: string space_id = 2;
212
+ */
213
+ spaceId: string;
214
+
215
+ /**
216
+ * @generated from field: string queue_id = 3;
217
+ */
218
+ queueId: string;
219
+
220
+ /**
221
+ * / Whether to push local changes to the server. Defaults to true.
222
+ *
223
+ * @generated from field: optional bool should_push = 4;
224
+ */
225
+ shouldPush?: boolean;
226
+
227
+ /**
228
+ * / Whether to pull remote changes from the server. Defaults to true.
229
+ *
230
+ * @generated from field: optional bool should_pull = 5;
231
+ */
232
+ shouldPull?: boolean;
233
+ };
234
+
235
+ /**
236
+ * Describes the message dxos.client.services.SyncQueueRequest.
237
+ * Use `create(SyncQueueRequestSchema)` to create a new message.
238
+ */
239
+ export const SyncQueueRequestSchema: GenMessage<SyncQueueRequest> = /*@__PURE__*/
240
+ messageDesc(file_dxos_client_queue, 5);
241
+
242
+ /**
243
+ * @generated from service dxos.client.services.QueueService
244
+ */
245
+ export const QueueService: GenService<{
246
+ /**
247
+ * @generated from rpc dxos.client.services.QueueService.QueryQueue
248
+ */
249
+ queryQueue: {
250
+ methodKind: "unary";
251
+ input: typeof QueryQueueRequestSchema;
252
+ output: typeof QueueQueryResultSchema;
253
+ },
254
+ /**
255
+ * @generated from rpc dxos.client.services.QueueService.InsertIntoQueue
256
+ */
257
+ insertIntoQueue: {
258
+ methodKind: "unary";
259
+ input: typeof InsertIntoQueueRequestSchema;
260
+ output: typeof EmptySchema;
261
+ },
262
+ /**
263
+ * @generated from rpc dxos.client.services.QueueService.DeleteFromQueue
264
+ */
265
+ deleteFromQueue: {
266
+ methodKind: "unary";
267
+ input: typeof DeleteFromQueueRequestSchema;
268
+ output: typeof EmptySchema;
269
+ },
270
+ /**
271
+ * @generated from rpc dxos.client.services.QueueService.SyncQueue
272
+ */
273
+ syncQueue: {
274
+ methodKind: "unary";
275
+ input: typeof SyncQueueRequestSchema;
276
+ output: typeof EmptySchema;
277
+ },
278
+ }> = /*@__PURE__*/
279
+ serviceDesc(file_dxos_client_queue, 0);
280
+