@dxos/protocols 0.8.4-main.f9ba587 → 0.8.4-main.fbb7a13

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 (354) hide show
  1. package/dist/src/FunctionProtocol.d.ts +82 -0
  2. package/dist/src/FunctionProtocol.d.ts.map +1 -0
  3. package/dist/src/FunctionProtocol.js +4 -0
  4. package/dist/src/FunctionProtocol.js.map +1 -0
  5. package/dist/src/automerge.d.ts +8 -0
  6. package/dist/src/automerge.d.ts.map +1 -1
  7. package/dist/src/automerge.js.map +1 -1
  8. package/dist/src/buf/proto/gen/dxos/agent/dashboard_pb.d.ts +1 -1
  9. package/dist/src/buf/proto/gen/dxos/agent/dashboard_pb.js +1 -1
  10. package/dist/src/buf/proto/gen/dxos/agent/echo-proxy_pb.d.ts +1 -1
  11. package/dist/src/buf/proto/gen/dxos/agent/echo-proxy_pb.js +1 -1
  12. package/dist/src/buf/proto/gen/dxos/agent/epoch_pb.d.ts +1 -1
  13. package/dist/src/buf/proto/gen/dxos/agent/epoch_pb.js +1 -1
  14. package/dist/src/buf/proto/gen/dxos/agent/functions_pb.d.ts +1 -1
  15. package/dist/src/buf/proto/gen/dxos/agent/functions_pb.js +1 -1
  16. package/dist/src/buf/proto/gen/dxos/bot_pb.d.ts +1 -1
  17. package/dist/src/buf/proto/gen/dxos/bot_pb.js +1 -1
  18. package/dist/src/buf/proto/gen/dxos/client/invitation_pb.d.ts +1 -1
  19. package/dist/src/buf/proto/gen/dxos/client/invitation_pb.js +1 -1
  20. package/dist/src/buf/proto/gen/dxos/client/logging_pb.d.ts +1 -1
  21. package/dist/src/buf/proto/gen/dxos/client/logging_pb.js +1 -1
  22. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +189 -0
  23. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -0
  24. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +39 -0
  25. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -0
  26. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +65 -19
  27. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
  28. package/dist/src/buf/proto/gen/dxos/client/services_pb.js +28 -23
  29. package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
  30. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +40 -7
  31. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
  32. package/dist/src/buf/proto/gen/dxos/config_pb.js +7 -2
  33. package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
  34. package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.d.ts +1 -1
  35. package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.js +1 -1
  36. package/dist/src/buf/proto/gen/dxos/devtools/host_pb.d.ts +1 -1
  37. package/dist/src/buf/proto/gen/dxos/devtools/host_pb.js +1 -1
  38. package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.d.ts +1 -1
  39. package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.js +1 -1
  40. package/dist/src/buf/proto/gen/dxos/echo/blob_pb.d.ts +1 -1
  41. package/dist/src/buf/proto/gen/dxos/echo/blob_pb.js +1 -1
  42. package/dist/src/buf/proto/gen/dxos/echo/feed_pb.d.ts +1 -1
  43. package/dist/src/buf/proto/gen/dxos/echo/feed_pb.js +1 -1
  44. package/dist/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +1 -1
  45. package/dist/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
  46. package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.d.ts +1 -1
  47. package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.js +1 -1
  48. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +1 -1
  49. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +1 -1
  50. package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.d.ts +1 -1
  51. package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.js +1 -1
  52. package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.d.ts +1 -1
  53. package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.js +1 -1
  54. package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.d.ts +1 -1
  55. package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.js +1 -1
  56. package/dist/src/buf/proto/gen/dxos/echo/object_pb.d.ts +1 -1
  57. package/dist/src/buf/proto/gen/dxos/echo/object_pb.js +1 -1
  58. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +13 -3
  59. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
  60. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +2 -2
  61. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
  62. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +71 -10
  63. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
  64. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +16 -6
  65. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
  66. package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.d.ts +1 -1
  67. package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.js +1 -1
  68. package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.d.ts +1 -1
  69. package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.js +1 -1
  70. package/dist/src/buf/proto/gen/dxos/edge/calls_pb.d.ts +1 -1
  71. package/dist/src/buf/proto/gen/dxos/edge/calls_pb.js +1 -1
  72. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +1 -1
  73. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +1 -1
  74. package/dist/src/buf/proto/gen/dxos/edge/signal_pb.d.ts +1 -1
  75. package/dist/src/buf/proto/gen/dxos/edge/signal_pb.js +1 -1
  76. package/dist/src/buf/proto/gen/dxos/error_pb.d.ts +1 -1
  77. package/dist/src/buf/proto/gen/dxos/error_pb.js +1 -1
  78. package/dist/src/buf/proto/gen/dxos/field_options_pb.d.ts +1 -1
  79. package/dist/src/buf/proto/gen/dxos/field_options_pb.js +1 -1
  80. package/dist/src/buf/proto/gen/dxos/google_pb.d.ts +1 -1
  81. package/dist/src/buf/proto/gen/dxos/google_pb.js +2 -2
  82. package/dist/src/buf/proto/gen/dxos/google_pb.js.map +1 -1
  83. package/dist/src/buf/proto/gen/dxos/gravity_pb.d.ts +1 -1
  84. package/dist/src/buf/proto/gen/dxos/gravity_pb.js +1 -1
  85. package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.d.ts +1 -1
  86. package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.js +1 -1
  87. package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.d.ts +1 -1
  88. package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.js +1 -1
  89. package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.d.ts +1 -1
  90. package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.js +1 -1
  91. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +1 -1
  92. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +1 -1
  93. package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.d.ts +1 -1
  94. package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js +1 -1
  95. package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.d.ts +1 -1
  96. package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.js +1 -1
  97. package/dist/src/buf/proto/gen/dxos/halo/keys_pb.d.ts +1 -1
  98. package/dist/src/buf/proto/gen/dxos/halo/keys_pb.js +1 -1
  99. package/dist/src/buf/proto/gen/dxos/halo/signed_pb.d.ts +1 -1
  100. package/dist/src/buf/proto/gen/dxos/halo/signed_pb.js +1 -1
  101. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +2 -1
  102. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
  103. package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
  104. package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
  105. package/dist/src/buf/proto/gen/dxos/keys_pb.d.ts +1 -1
  106. package/dist/src/buf/proto/gen/dxos/keys_pb.js +1 -1
  107. package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.d.ts +1 -1
  108. package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.js +1 -1
  109. package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.d.ts +1 -1
  110. package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.js +1 -1
  111. package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.d.ts +1 -1
  112. package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.js +1 -1
  113. package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.d.ts +1 -1
  114. package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.js +1 -1
  115. package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.d.ts +1 -1
  116. package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.js +1 -1
  117. package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.d.ts +1 -1
  118. package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.js +1 -1
  119. package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.d.ts +1 -1
  120. package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.js +1 -1
  121. package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.d.ts +1 -1
  122. package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.js +1 -1
  123. package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.d.ts +1 -1
  124. package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.js +1 -1
  125. package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.d.ts +1 -1
  126. package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.js +1 -1
  127. package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.d.ts +1 -1
  128. package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.js +1 -1
  129. package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.d.ts +1 -1
  130. package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.js +1 -1
  131. package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.d.ts +1 -1
  132. package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.js +1 -1
  133. package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.d.ts +1 -1
  134. package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.js +1 -1
  135. package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.d.ts +1 -1
  136. package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.js +1 -1
  137. package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.d.ts +1 -1
  138. package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.js +1 -1
  139. package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.d.ts +1 -1
  140. package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.js +1 -1
  141. package/dist/src/buf/proto/gen/dxos/registry_pb.d.ts +1 -1
  142. package/dist/src/buf/proto/gen/dxos/registry_pb.js +1 -1
  143. package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +1 -1
  144. package/dist/src/buf/proto/gen/dxos/rpc_pb.js +1 -1
  145. package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.d.ts +1 -1
  146. package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.js +1 -1
  147. package/dist/src/buf/proto/gen/dxos/service/publisher_pb.d.ts +1 -1
  148. package/dist/src/buf/proto/gen/dxos/service/publisher_pb.js +1 -1
  149. package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.d.ts +1 -1
  150. package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.js +1 -1
  151. package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.d.ts +1 -1
  152. package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.js +1 -1
  153. package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -1
  154. package/dist/src/buf/proto/gen/dxos/tracing_pb.js +2 -2
  155. package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
  156. package/dist/src/buf/proto/gen/dxos/type_pb.d.ts +1 -1
  157. package/dist/src/buf/proto/gen/dxos/type_pb.js +1 -1
  158. package/dist/src/buf/proto/gen/dxos/value_pb.d.ts +1 -1
  159. package/dist/src/buf/proto/gen/dxos/value_pb.js +1 -1
  160. package/dist/src/buf/proto/gen/example/testing/data_pb.d.ts +1 -1
  161. package/dist/src/buf/proto/gen/example/testing/data_pb.js +1 -1
  162. package/dist/src/buf/proto/gen/example/testing/rpc_pb.d.ts +1 -1
  163. package/dist/src/buf/proto/gen/example/testing/rpc_pb.js +1 -1
  164. package/dist/src/edge/EdgeFunctionEnv.d.ts +120 -0
  165. package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -0
  166. package/dist/src/edge/EdgeFunctionEnv.js +4 -0
  167. package/dist/src/edge/EdgeFunctionEnv.js.map +1 -0
  168. package/dist/src/edge/edge.d.ts +346 -0
  169. package/dist/src/edge/edge.d.ts.map +1 -0
  170. package/dist/src/edge/edge.js +160 -0
  171. package/dist/src/edge/edge.js.map +1 -0
  172. package/dist/src/edge/errors.d.ts +29 -0
  173. package/dist/src/edge/errors.d.ts.map +1 -0
  174. package/dist/src/edge/errors.js +69 -0
  175. package/dist/src/edge/errors.js.map +1 -0
  176. package/dist/src/edge/index.d.ts +4 -0
  177. package/dist/src/edge/index.d.ts.map +1 -0
  178. package/dist/src/edge/index.js +7 -0
  179. package/dist/src/edge/index.js.map +1 -0
  180. package/dist/src/errors/base-errors.d.ts +86 -8
  181. package/dist/src/errors/base-errors.d.ts.map +1 -1
  182. package/dist/src/errors/base-errors.js +4 -19
  183. package/dist/src/errors/base-errors.js.map +1 -1
  184. package/dist/src/errors/encoding.d.ts +1 -1
  185. package/dist/src/errors/encoding.d.ts.map +1 -1
  186. package/dist/src/errors/encoding.js.map +1 -1
  187. package/dist/src/errors/errors.d.ts +618 -41
  188. package/dist/src/errors/errors.d.ts.map +1 -1
  189. package/dist/src/errors/errors.js +49 -103
  190. package/dist/src/errors/errors.js.map +1 -1
  191. package/dist/src/errors/errors.test.js +1 -1
  192. package/dist/src/errors/errors.test.js.map +1 -1
  193. package/dist/src/errors/helpers.d.ts +8 -4
  194. package/dist/src/errors/helpers.d.ts.map +1 -1
  195. package/dist/src/errors/helpers.js +3 -3
  196. package/dist/src/errors/helpers.js.map +1 -1
  197. package/dist/src/feed-replication.d.ts.map +1 -1
  198. package/dist/src/index.d.ts +7 -7
  199. package/dist/src/index.d.ts.map +1 -1
  200. package/dist/src/index.js +7 -7
  201. package/dist/src/index.js.map +1 -1
  202. package/dist/src/indexing.d.ts +1 -1
  203. package/dist/src/indexing.d.ts.map +1 -1
  204. package/dist/src/indexing.js +1 -1
  205. package/dist/src/indexing.js.map +1 -1
  206. package/dist/src/invitation.d.ts +1 -1
  207. package/dist/src/invitation.d.ts.map +1 -1
  208. package/dist/src/invitation.js +1 -1
  209. package/dist/src/invitation.js.map +1 -1
  210. package/dist/src/messenger.d.ts +16 -0
  211. package/dist/src/messenger.d.ts.map +1 -0
  212. package/dist/src/messenger.js +4 -0
  213. package/dist/src/messenger.js.map +1 -0
  214. package/dist/src/proto/gen/dxos/client/services.d.ts +895 -765
  215. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  216. package/dist/src/proto/gen/dxos/client/services.js +103 -100
  217. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  218. package/dist/src/proto/gen/dxos/config.d.ts +33 -2
  219. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  220. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  221. package/dist/src/proto/gen/dxos/echo/query.d.ts +17 -1
  222. package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  223. package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
  224. package/dist/src/proto/gen/dxos/echo/service.d.ts +43 -8
  225. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  226. package/dist/src/proto/gen/index.d.ts +10 -0
  227. package/dist/src/proto/gen/index.d.ts.map +1 -1
  228. package/dist/src/proto/gen/index.js +1 -1
  229. package/dist/src/proto/gen/index.js.map +1 -1
  230. package/dist/src/proto/index.d.ts +1 -1
  231. package/dist/src/proto/index.d.ts.map +1 -1
  232. package/dist/src/proto/index.js +0 -1
  233. package/dist/src/proto/index.js.map +1 -1
  234. package/dist/src/queue.d.ts +2 -23
  235. package/dist/src/queue.d.ts.map +1 -1
  236. package/dist/src/queue.js +2 -1
  237. package/dist/src/queue.js.map +1 -1
  238. package/dist/tsconfig.tsbuildinfo +1 -1
  239. package/package.json +19 -17
  240. package/src/FunctionProtocol.ts +104 -0
  241. package/src/automerge.ts +8 -0
  242. package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +3 -3
  243. package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +3 -3
  244. package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +3 -3
  245. package/src/buf/proto/gen/dxos/agent/functions_pb.ts +3 -3
  246. package/src/buf/proto/gen/dxos/bot_pb.ts +3 -3
  247. package/src/buf/proto/gen/dxos/client/invitation_pb.ts +3 -3
  248. package/src/buf/proto/gen/dxos/client/logging_pb.ts +3 -3
  249. package/src/buf/proto/gen/dxos/client/queue_pb.ts +231 -0
  250. package/src/buf/proto/gen/dxos/client/services_pb.ts +84 -29
  251. package/src/buf/proto/gen/dxos/config_pb.ts +48 -10
  252. package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +3 -3
  253. package/src/buf/proto/gen/dxos/devtools/host_pb.ts +3 -3
  254. package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +3 -3
  255. package/src/buf/proto/gen/dxos/echo/blob_pb.ts +3 -3
  256. package/src/buf/proto/gen/dxos/echo/feed_pb.ts +3 -3
  257. package/src/buf/proto/gen/dxos/echo/filter_pb.ts +3 -3
  258. package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +3 -3
  259. package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +3 -3
  260. package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +3 -3
  261. package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +3 -3
  262. package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +3 -3
  263. package/src/buf/proto/gen/dxos/echo/object_pb.ts +3 -3
  264. package/src/buf/proto/gen/dxos/echo/query_pb.ts +18 -6
  265. package/src/buf/proto/gen/dxos/echo/service_pb.ts +87 -18
  266. package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +3 -3
  267. package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +3 -3
  268. package/src/buf/proto/gen/dxos/edge/calls_pb.ts +3 -3
  269. package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +3 -3
  270. package/src/buf/proto/gen/dxos/edge/signal_pb.ts +3 -3
  271. package/src/buf/proto/gen/dxos/error_pb.ts +3 -3
  272. package/src/buf/proto/gen/dxos/field_options_pb.ts +3 -3
  273. package/src/buf/proto/gen/dxos/google_pb.ts +3 -3
  274. package/src/buf/proto/gen/dxos/gravity_pb.ts +3 -3
  275. package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +3 -3
  276. package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +3 -3
  277. package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +3 -3
  278. package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +3 -3
  279. package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +3 -3
  280. package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +3 -3
  281. package/src/buf/proto/gen/dxos/halo/keys_pb.ts +3 -3
  282. package/src/buf/proto/gen/dxos/halo/signed_pb.ts +3 -3
  283. package/src/buf/proto/gen/dxos/iframe_pb.ts +4 -3
  284. package/src/buf/proto/gen/dxos/keys_pb.ts +3 -3
  285. package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +3 -3
  286. package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +3 -3
  287. package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +3 -3
  288. package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +3 -3
  289. package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +3 -3
  290. package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +3 -3
  291. package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +3 -3
  292. package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +3 -3
  293. package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +3 -3
  294. package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +3 -3
  295. package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +3 -3
  296. package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +3 -3
  297. package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +3 -3
  298. package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +3 -3
  299. package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +3 -3
  300. package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +3 -3
  301. package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +3 -3
  302. package/src/buf/proto/gen/dxos/registry_pb.ts +3 -3
  303. package/src/buf/proto/gen/dxos/rpc_pb.ts +3 -3
  304. package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +3 -3
  305. package/src/buf/proto/gen/dxos/service/publisher_pb.ts +3 -3
  306. package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +3 -3
  307. package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +3 -3
  308. package/src/buf/proto/gen/dxos/tracing_pb.ts +3 -3
  309. package/src/buf/proto/gen/dxos/type_pb.ts +3 -3
  310. package/src/buf/proto/gen/dxos/value_pb.ts +3 -3
  311. package/src/buf/proto/gen/example/testing/data_pb.ts +3 -3
  312. package/src/buf/proto/gen/example/testing/rpc_pb.ts +3 -3
  313. package/src/edge/EdgeFunctionEnv.ts +193 -0
  314. package/src/edge/edge.ts +484 -0
  315. package/src/edge/errors.ts +85 -0
  316. package/src/edge/index.ts +7 -0
  317. package/src/errors/base-errors.ts +4 -20
  318. package/src/errors/encoding.ts +2 -1
  319. package/src/errors/errors.test.ts +1 -1
  320. package/src/errors/errors.ts +57 -122
  321. package/src/errors/helpers.ts +5 -5
  322. package/src/feed-replication.ts +1 -0
  323. package/src/index.ts +9 -7
  324. package/src/indexing.ts +1 -1
  325. package/src/invitation.ts +1 -1
  326. package/src/messenger.ts +22 -0
  327. package/src/proto/dxos/client/queue.proto +67 -0
  328. package/src/proto/dxos/client/services.proto +20 -3
  329. package/src/proto/dxos/config.proto +38 -40
  330. package/src/proto/dxos/echo/query.proto +4 -1
  331. package/src/proto/dxos/echo/service.proto +38 -6
  332. package/src/proto/dxos/iframe.proto +1 -0
  333. package/src/proto/gen/dxos/client/services.ts +895 -765
  334. package/src/proto/gen/dxos/config.ts +33 -2
  335. package/src/proto/gen/dxos/echo/query.ts +17 -1
  336. package/src/proto/gen/dxos/echo/service.ts +42 -8
  337. package/src/proto/gen/index.ts +11 -1
  338. package/src/proto/index.ts +1 -1
  339. package/src/queue.ts +10 -29
  340. package/dist/src/edge-error.d.ts +0 -26
  341. package/dist/src/edge-error.d.ts.map +0 -1
  342. package/dist/src/edge-error.js +0 -62
  343. package/dist/src/edge-error.js.map +0 -1
  344. package/dist/src/edge.d.ts +0 -198
  345. package/dist/src/edge.d.ts.map +0 -1
  346. package/dist/src/edge.js +0 -43
  347. package/dist/src/edge.js.map +0 -1
  348. package/dist/src/query.d.ts +0 -5
  349. package/dist/src/query.d.ts.map +0 -1
  350. package/dist/src/query.js +0 -8
  351. package/dist/src/query.js.map +0 -1
  352. package/src/edge-error.ts +0 -79
  353. package/src/edge.ts +0 -222
  354. package/src/query.ts +0 -8
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.8.4-main.f9ba587",
3
+ "version": "0.8.4-main.fbb7a13",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "info@dxos.org",
9
- "sideEffects": true,
13
+ "sideEffects": false,
10
14
  "type": "module",
11
15
  "exports": {
12
16
  ".": {
@@ -59,27 +63,25 @@
59
63
  "src"
60
64
  ],
61
65
  "dependencies": {
62
- "@bufbuild/protobuf": "^2.1.0",
63
- "@dxos/codec-protobuf": "0.8.4-main.f9ba587",
64
- "@dxos/effect": "0.8.4-main.f9ba587",
65
- "@dxos/invariant": "0.8.4-main.f9ba587",
66
- "@dxos/keys": "0.8.4-main.f9ba587",
67
- "@dxos/timeframe": "0.8.4-main.f9ba587",
68
- "@dxos/util": "0.8.4-main.f9ba587"
66
+ "@bufbuild/protobuf": "2.10.1",
67
+ "@dxos/codec-protobuf": "0.8.4-main.fbb7a13",
68
+ "@dxos/errors": "0.8.4-main.fbb7a13",
69
+ "@dxos/invariant": "0.8.4-main.fbb7a13",
70
+ "@dxos/effect": "0.8.4-main.fbb7a13",
71
+ "@dxos/timeframe": "0.8.4-main.fbb7a13",
72
+ "@dxos/util": "0.8.4-main.fbb7a13",
73
+ "@dxos/keys": "0.8.4-main.fbb7a13"
69
74
  },
70
75
  "devDependencies": {
71
- "@bufbuild/buf": "^1.43.0",
72
- "@bufbuild/protoc-gen-es": "^2.1.0",
73
- "effect": "3.16.13",
74
- "@dxos/protobuf-compiler": "0.8.4-main.f9ba587"
76
+ "@bufbuild/buf": "1.61.0",
77
+ "@bufbuild/protoc-gen-es": "2.10.1",
78
+ "effect": "3.19.11",
79
+ "@dxos/protobuf-compiler": "0.8.4-main.fbb7a13"
75
80
  },
76
81
  "peerDependencies": {
77
- "effect": "^3.13.3"
82
+ "effect": "3.19.11"
78
83
  },
79
84
  "publishConfig": {
80
85
  "access": "public"
81
- },
82
- "scripts": {
83
- "compile:buf": "buf generate"
84
86
  }
85
87
  }
@@ -0,0 +1,104 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { type SpaceId } from '@dxos/keys';
6
+ import type * as QueryProto from '@dxos/protocols/proto/dxos/echo/query';
7
+ import type * as DataProto from '@dxos/protocols/proto/dxos/echo/service';
8
+
9
+ import { type EdgeFunctionEnv } from './edge';
10
+ import { type QueueService } from './queue';
11
+
12
+ //
13
+ // Function protocol definition
14
+ //
15
+
16
+ // - All types must be trivially serializable - no class instances.
17
+ // - Cannot use effect.
18
+ // - Protobuf service definitions are allowed (Q: What about PublicKey, Timeframe, etc.).
19
+ // - Breaking changes in this interface should be carefully considered.
20
+
21
+ // TODO(dmaretskyi): Consider moving this to protocols.
22
+
23
+ /**
24
+ * Function implementation.
25
+ * This is a contract between the user-defined function and the runtime.
26
+ */
27
+ export interface Func {
28
+ readonly meta: Meta;
29
+ readonly handler: Handler;
30
+ }
31
+
32
+ /**
33
+ * Function metadata.
34
+ */
35
+ export interface Meta {
36
+ readonly key: string;
37
+ name?: string;
38
+ description?: string;
39
+ /**
40
+ * Required services.
41
+ */
42
+ readonly services: readonly string[];
43
+ /**
44
+ * JSON schema format
45
+ */
46
+ readonly inputSchema: unknown;
47
+ /**
48
+ * JSON schema format.
49
+ */
50
+ readonly outputSchema?: unknown;
51
+ }
52
+
53
+ /**
54
+ * Function handler.
55
+ * Executed by the runtime
56
+ */
57
+ export type Handler = (opts: { data: unknown; context: Context }) => Promise<unknown>;
58
+
59
+ /**
60
+ * Function context.
61
+ */
62
+ export interface Context {
63
+ services: {
64
+ /**
65
+ * Query service.
66
+ * Available if the function is invoked in context of a space.
67
+ */
68
+ queryService?: QueryProto.QueryService;
69
+
70
+ /**
71
+ * Data service.
72
+ * Available if the function is invoked in context of a space.
73
+ */
74
+ dataService?: DataProto.DataService;
75
+
76
+ /**
77
+ * Queue service.
78
+ * Available if the function is invoked in context of a space.
79
+ */
80
+ queueService?: QueueService;
81
+
82
+ /**
83
+ * Functions service.
84
+ * Available if the function is invoked in context of a space.
85
+ */
86
+ functionsAiService?: EdgeFunctionEnv.FunctionsAiService;
87
+ };
88
+
89
+ /**
90
+ * That space that the function is invoked in context of.
91
+ */
92
+ spaceId?: SpaceId;
93
+
94
+ /**
95
+ * Hex-encoded space key.
96
+ * @deprecated We need to remove this but ECHO keeps dragging this in.
97
+ */
98
+ spaceKey?: string;
99
+
100
+ /**
101
+ * Automerge URL of the space-root document.
102
+ */
103
+ spaceRootUrl?: string;
104
+ }
package/src/automerge.ts CHANGED
@@ -16,6 +16,7 @@ export type LeaveProtocolMessage = {
16
16
  type: 'leave';
17
17
  targetId?: PeerId;
18
18
  senderId: PeerId;
19
+ metadata?: Record<string, unknown>;
19
20
  };
20
21
 
21
22
  export type PeerProtocolMessage = {
@@ -39,6 +40,7 @@ export type RequestProtocolMessage = {
39
40
  targetId: PeerId;
40
41
  documentId: string;
41
42
  data: Uint8Array;
43
+ metadata?: Record<string, unknown>;
42
44
  };
43
45
 
44
46
  /**
@@ -50,6 +52,7 @@ export type SyncProtocolMessage = {
50
52
  targetId: PeerId;
51
53
  documentId: string;
52
54
  data: Uint8Array;
55
+ metadata?: Record<string, unknown>;
53
56
  };
54
57
 
55
58
  /**
@@ -61,6 +64,7 @@ export type UnavailableProtocolMessage = {
61
64
  senderId: PeerId;
62
65
  targetId: PeerId;
63
66
  documentId: string;
67
+ metadata?: Record<string, unknown>;
64
68
  };
65
69
 
66
70
  /**
@@ -82,6 +86,7 @@ export type EphemeralProtocolMessage = {
82
86
  sessionId: string;
83
87
  documentId: string;
84
88
  data: Uint8Array;
89
+ metadata?: Record<string, unknown>;
85
90
  };
86
91
 
87
92
  export type ErrorProtocolMessage = {
@@ -89,6 +94,7 @@ export type ErrorProtocolMessage = {
89
94
  senderId?: PeerId;
90
95
  targetId?: PeerId;
91
96
  message: string;
97
+ metadata?: Record<string, unknown>;
92
98
  };
93
99
 
94
100
  export const MESSAGE_TYPE_COLLECTION_QUERY = 'collection-query';
@@ -104,6 +110,7 @@ export type CollectionQueryMessage = {
104
110
  * Remote peer will skip sending the state if it has the same tag.
105
111
  */
106
112
  stateTag?: string;
113
+ metadata?: Record<string, unknown>;
107
114
  };
108
115
 
109
116
  export const MESSAGE_TYPE_COLLECTION_STATE = 'collection-state';
@@ -123,6 +130,7 @@ export type CollectionStateMessage = {
123
130
  * Identifier of the current state.
124
131
  */
125
132
  stateTag?: string;
133
+ metadata?: Record<string, unknown>;
126
134
  };
127
135
 
128
136
  export type AutomergeProtocolMessage =
@@ -2,12 +2,12 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- // @generated by protoc-gen-es v2.1.0 with parameter "target=ts,import_extension=js"
5
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
6
6
  // @generated from file dxos/agent/dashboard.proto (package dxos.agent.dashboard, syntax proto3)
7
7
  /* eslint-disable */
8
8
 
9
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
10
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
9
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
10
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
11
11
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
12
12
  import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
13
13
  import type { Runtime_Agent_Plugin } from "../config_pb.js";
@@ -2,12 +2,12 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- // @generated by protoc-gen-es v2.1.0 with parameter "target=ts,import_extension=js"
5
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
6
6
  // @generated from file dxos/agent/echo-proxy.proto (package dxos.agent.echoproxy, syntax proto3)
7
7
  /* eslint-disable */
8
8
 
9
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
10
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
9
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
10
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
11
11
  import type { Message } from "@bufbuild/protobuf";
12
12
 
13
13
  /**
@@ -2,12 +2,12 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- // @generated by protoc-gen-es v2.1.0 with parameter "target=ts,import_extension=js"
5
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
6
6
  // @generated from file dxos/agent/epoch.proto (package dxos.agent.epoch, syntax proto3)
7
7
  /* eslint-disable */
8
8
 
9
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
10
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
9
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
10
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
11
11
  import type { Message } from "@bufbuild/protobuf";
12
12
 
13
13
  /**
@@ -2,14 +2,14 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- // @generated by protoc-gen-es v2.1.0 with parameter "target=ts,import_extension=js"
5
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
6
6
  // @generated from file dxos/agent/functions.proto (package dxos.agent.functions, syntax proto3)
7
7
  /* eslint-disable */
8
8
 
9
9
  // TODO(burdon): dxos.agent.plugin.functions
10
10
 
11
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
12
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
11
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
12
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
13
13
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
14
14
  import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
15
15
  import type { Message } from "@bufbuild/protobuf";
@@ -2,12 +2,12 @@
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
4
 
5
- // @generated by protoc-gen-es v2.1.0 with parameter "target=ts,import_extension=js"
5
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
6
6
  // @generated from file dxos/bot.proto (package dxos.bot, syntax proto3)
7
7
  /* eslint-disable */
8
8
 
9
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
10
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
9
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
10
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
11
11
  import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
12
12
  import { file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
13
13
  import type { Invitation } from "./client/invitation_pb.js";
@@ -2,14 +2,14 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- // @generated by protoc-gen-es v2.1.0 with parameter "target=ts,import_extension=js"
5
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
6
6
  // @generated from file dxos/client/invitation.proto (package dxos.client.services, syntax proto3)
7
7
  /* eslint-disable */
8
8
 
9
9
  // TODO(burdon): Reorganize packages (e.g., client.services, echo.database).
10
10
 
11
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
12
- import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
11
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
12
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
13
13
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
14
14
  import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
15
15
  import { file_dxos_config } from "../config_pb.js";
@@ -2,12 +2,12 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- // @generated by protoc-gen-es v2.1.0 with parameter "target=ts,import_extension=js"
5
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
6
6
  // @generated from file dxos/client/logging.proto (package dxos.client.services, syntax proto3)
7
7
  /* eslint-disable */
8
8
 
9
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
10
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
9
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
10
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
11
11
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
12
12
  import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
13
13
  import { file_dxos_config } from "../config_pb.js";
@@ -0,0 +1,231 @@
1
+ // @generated by protoc-gen-es v2.10.1 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("ChdkeG9zL2NsaWVudC9xdWV1ZS5wcm90bxIUZHhvcy5jbGllbnQuc2VydmljZXMi0wIKClF1ZXVlUXVlcnkSEAoIc3BhY2VfaWQYASABKAkSHQoQcXVldWVzX25hbWVzcGFjZRgCIAEoCUgAiAEBEhEKCXF1ZXVlX2lkcxgDIAMoCRISCgVhZnRlchgEIAEoCUgBiAEBEhMKBmJlZm9yZRgFIAEoCUgCiAEBEhsKDmJlZ2luX3Bvc2l0aW9uGAYgASgDSAOIAQESGQoMZW5kX3Bvc2l0aW9uGAcgASgDSASIAQESEgoFbGltaXQYCCABKAVIBYgBARIUCgdyZXZlcnNlGAkgASgISAaIAQESEgoKb2JqZWN0X2lkcxhkIAMoCUITChFfcXVldWVzX25hbWVzcGFjZUIICgZfYWZ0ZXJCCQoHX2JlZm9yZUIRCg9fYmVnaW5fcG9zaXRpb25CDwoNX2VuZF9wb3NpdGlvbkIICgZfbGltaXRCCgoIX3JldmVyc2UiZgoQUXVldWVRdWVyeVJlc3VsdBIoCgdvYmplY3RzGAEgAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBITCgtuZXh0X2N1cnNvchgCIAEoCRITCgtwcmV2X2N1cnNvchgDIAEoCSJEChFRdWVyeVF1ZXVlUmVxdWVzdBIvCgVxdWVyeRgBIAEoCzIgLmR4b3MuY2xpZW50LnNlcnZpY2VzLlF1ZXVlUXVlcnkifAoWSW5zZXJ0SW50b1F1ZXVlUmVxdWVzdBIUCgxzdWJzcGFjZV90YWcYASABKAkSEAoIc3BhY2VfaWQYAiABKAkSEAoIcXVldWVfaWQYAyABKAkSKAoHb2JqZWN0cxgEIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiZgoWRGVsZXRlRnJvbVF1ZXVlUmVxdWVzdBIUCgxzdWJzcGFjZV90YWcYASABKAkSEAoIc3BhY2VfaWQYAiABKAkSEAoIcXVldWVfaWQYAyABKAkSEgoKb2JqZWN0X2lkcxgEIAMoCTKfAgoMUXVldWVTZXJ2aWNlEl0KClF1ZXJ5UXVldWUSJy5keG9zLmNsaWVudC5zZXJ2aWNlcy5RdWVyeVF1ZXVlUmVxdWVzdBomLmR4b3MuY2xpZW50LnNlcnZpY2VzLlF1ZXVlUXVlcnlSZXN1bHQSVwoPSW5zZXJ0SW50b1F1ZXVlEiwuZHhvcy5jbGllbnQuc2VydmljZXMuSW5zZXJ0SW50b1F1ZXVlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRJXCg9EZWxldGVGcm9tUXVldWUSLC5keG9zLmNsaWVudC5zZXJ2aWNlcy5EZWxldGVGcm9tUXVldWVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5YgZwcm90bzM", [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 service dxos.client.services.QueueService
203
+ */
204
+ export const QueueService: GenService<{
205
+ /**
206
+ * @generated from rpc dxos.client.services.QueueService.QueryQueue
207
+ */
208
+ queryQueue: {
209
+ methodKind: "unary";
210
+ input: typeof QueryQueueRequestSchema;
211
+ output: typeof QueueQueryResultSchema;
212
+ },
213
+ /**
214
+ * @generated from rpc dxos.client.services.QueueService.InsertIntoQueue
215
+ */
216
+ insertIntoQueue: {
217
+ methodKind: "unary";
218
+ input: typeof InsertIntoQueueRequestSchema;
219
+ output: typeof EmptySchema;
220
+ },
221
+ /**
222
+ * @generated from rpc dxos.client.services.QueueService.DeleteFromQueue
223
+ */
224
+ deleteFromQueue: {
225
+ methodKind: "unary";
226
+ input: typeof DeleteFromQueueRequestSchema;
227
+ output: typeof EmptySchema;
228
+ },
229
+ }> = /*@__PURE__*/
230
+ serviceDesc(file_dxos_client_queue, 0);
231
+