@dxos/protocols 0.8.4-main.28f8d3d → 0.8.4-main.2c6827d

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 (281) hide show
  1. package/dist/src/FunctionProtocol.d.ts +76 -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/services_pb.d.ts +65 -19
  23. package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
  24. package/dist/src/buf/proto/gen/dxos/client/services_pb.js +28 -23
  25. package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
  26. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +36 -7
  27. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
  28. package/dist/src/buf/proto/gen/dxos/config_pb.js +7 -2
  29. package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
  30. package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.d.ts +1 -1
  31. package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.js +1 -1
  32. package/dist/src/buf/proto/gen/dxos/devtools/host_pb.d.ts +1 -1
  33. package/dist/src/buf/proto/gen/dxos/devtools/host_pb.js +1 -1
  34. package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.d.ts +1 -1
  35. package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.js +1 -1
  36. package/dist/src/buf/proto/gen/dxos/echo/blob_pb.d.ts +1 -1
  37. package/dist/src/buf/proto/gen/dxos/echo/blob_pb.js +1 -1
  38. package/dist/src/buf/proto/gen/dxos/echo/feed_pb.d.ts +1 -1
  39. package/dist/src/buf/proto/gen/dxos/echo/feed_pb.js +1 -1
  40. package/dist/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +1 -1
  41. package/dist/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
  42. package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.d.ts +1 -1
  43. package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.js +1 -1
  44. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +1 -1
  45. package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +1 -1
  46. package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.d.ts +1 -1
  47. package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.js +1 -1
  48. package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.d.ts +1 -1
  49. package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.js +1 -1
  50. package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.d.ts +1 -1
  51. package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.js +1 -1
  52. package/dist/src/buf/proto/gen/dxos/echo/object_pb.d.ts +1 -1
  53. package/dist/src/buf/proto/gen/dxos/echo/object_pb.js +1 -1
  54. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +1 -1
  55. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +1 -1
  56. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +16 -1
  57. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
  58. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +2 -2
  59. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
  60. package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.d.ts +1 -1
  61. package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.js +1 -1
  62. package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.d.ts +1 -1
  63. package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.js +1 -1
  64. package/dist/src/buf/proto/gen/dxos/edge/calls_pb.d.ts +1 -1
  65. package/dist/src/buf/proto/gen/dxos/edge/calls_pb.js +1 -1
  66. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +1 -1
  67. package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +1 -1
  68. package/dist/src/buf/proto/gen/dxos/edge/signal_pb.d.ts +1 -1
  69. package/dist/src/buf/proto/gen/dxos/edge/signal_pb.js +1 -1
  70. package/dist/src/buf/proto/gen/dxos/error_pb.d.ts +1 -1
  71. package/dist/src/buf/proto/gen/dxos/error_pb.js +1 -1
  72. package/dist/src/buf/proto/gen/dxos/field_options_pb.d.ts +1 -1
  73. package/dist/src/buf/proto/gen/dxos/field_options_pb.js +1 -1
  74. package/dist/src/buf/proto/gen/dxos/google_pb.d.ts +1 -1
  75. package/dist/src/buf/proto/gen/dxos/google_pb.js +2 -2
  76. package/dist/src/buf/proto/gen/dxos/gravity_pb.d.ts +1 -1
  77. package/dist/src/buf/proto/gen/dxos/gravity_pb.js +1 -1
  78. package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.d.ts +1 -1
  79. package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.js +1 -1
  80. package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.d.ts +1 -1
  81. package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.js +1 -1
  82. package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.d.ts +1 -1
  83. package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.js +1 -1
  84. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +1 -1
  85. package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +1 -1
  86. package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.d.ts +1 -1
  87. package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js +1 -1
  88. package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.d.ts +1 -1
  89. package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.js +1 -1
  90. package/dist/src/buf/proto/gen/dxos/halo/keys_pb.d.ts +1 -1
  91. package/dist/src/buf/proto/gen/dxos/halo/keys_pb.js +1 -1
  92. package/dist/src/buf/proto/gen/dxos/halo/signed_pb.d.ts +1 -1
  93. package/dist/src/buf/proto/gen/dxos/halo/signed_pb.js +1 -1
  94. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +1 -1
  95. package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
  96. package/dist/src/buf/proto/gen/dxos/keys_pb.d.ts +1 -1
  97. package/dist/src/buf/proto/gen/dxos/keys_pb.js +1 -1
  98. package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.d.ts +1 -1
  99. package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.js +1 -1
  100. package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.d.ts +1 -1
  101. package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.js +1 -1
  102. package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.d.ts +1 -1
  103. package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.js +1 -1
  104. package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.d.ts +1 -1
  105. package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.js +1 -1
  106. package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.d.ts +1 -1
  107. package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.js +1 -1
  108. package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.d.ts +1 -1
  109. package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.js +1 -1
  110. package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.d.ts +1 -1
  111. package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.js +1 -1
  112. package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.d.ts +1 -1
  113. package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.js +1 -1
  114. package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.d.ts +1 -1
  115. package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.js +1 -1
  116. package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.d.ts +1 -1
  117. package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.js +1 -1
  118. package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.d.ts +1 -1
  119. package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.js +1 -1
  120. package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.d.ts +1 -1
  121. package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.js +1 -1
  122. package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.d.ts +1 -1
  123. package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.js +1 -1
  124. package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.d.ts +1 -1
  125. package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.js +1 -1
  126. package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.d.ts +1 -1
  127. package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.js +1 -1
  128. package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.d.ts +1 -1
  129. package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.js +1 -1
  130. package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.d.ts +1 -1
  131. package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.js +1 -1
  132. package/dist/src/buf/proto/gen/dxos/registry_pb.d.ts +1 -1
  133. package/dist/src/buf/proto/gen/dxos/registry_pb.js +1 -1
  134. package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +1 -1
  135. package/dist/src/buf/proto/gen/dxos/rpc_pb.js +1 -1
  136. package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.d.ts +1 -1
  137. package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.js +1 -1
  138. package/dist/src/buf/proto/gen/dxos/service/publisher_pb.d.ts +1 -1
  139. package/dist/src/buf/proto/gen/dxos/service/publisher_pb.js +1 -1
  140. package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.d.ts +1 -1
  141. package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.js +1 -1
  142. package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.d.ts +1 -1
  143. package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.js +1 -1
  144. package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -1
  145. package/dist/src/buf/proto/gen/dxos/tracing_pb.js +2 -2
  146. package/dist/src/buf/proto/gen/dxos/type_pb.d.ts +1 -1
  147. package/dist/src/buf/proto/gen/dxos/type_pb.js +1 -1
  148. package/dist/src/buf/proto/gen/dxos/value_pb.d.ts +1 -1
  149. package/dist/src/buf/proto/gen/dxos/value_pb.js +1 -1
  150. package/dist/src/buf/proto/gen/example/testing/data_pb.d.ts +1 -1
  151. package/dist/src/buf/proto/gen/example/testing/data_pb.js +1 -1
  152. package/dist/src/buf/proto/gen/example/testing/rpc_pb.d.ts +1 -1
  153. package/dist/src/buf/proto/gen/example/testing/rpc_pb.js +1 -1
  154. package/dist/src/edge-error.d.ts +11 -7
  155. package/dist/src/edge-error.d.ts.map +1 -1
  156. package/dist/src/edge-error.js +24 -16
  157. package/dist/src/edge-error.js.map +1 -1
  158. package/dist/src/edge.d.ts +97 -7
  159. package/dist/src/edge.d.ts.map +1 -1
  160. package/dist/src/edge.js +109 -3
  161. package/dist/src/edge.js.map +1 -1
  162. package/dist/src/errors/base-errors.d.ts.map +1 -1
  163. package/dist/src/errors/base-errors.js +1 -0
  164. package/dist/src/errors/base-errors.js.map +1 -1
  165. package/dist/src/index.d.ts +8 -7
  166. package/dist/src/index.d.ts.map +1 -1
  167. package/dist/src/index.js +8 -6
  168. package/dist/src/index.js.map +1 -1
  169. package/dist/src/indexing.d.ts +1 -1
  170. package/dist/src/indexing.d.ts.map +1 -1
  171. package/dist/src/indexing.js +1 -1
  172. package/dist/src/indexing.js.map +1 -1
  173. package/dist/src/invitation.d.ts +1 -1
  174. package/dist/src/invitation.d.ts.map +1 -1
  175. package/dist/src/invitation.js +1 -1
  176. package/dist/src/invitation.js.map +1 -1
  177. package/dist/src/proto/gen/dxos/client/services.d.ts +30 -3
  178. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  179. package/dist/src/proto/gen/dxos/client/services.js +9 -6
  180. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  181. package/dist/src/proto/gen/dxos/config.d.ts +28 -2
  182. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  183. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  184. package/dist/src/proto/gen/dxos/echo/service.d.ts +9 -0
  185. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  186. package/dist/src/proto/gen/index.d.ts +2 -0
  187. package/dist/src/proto/gen/index.d.ts.map +1 -1
  188. package/dist/src/proto/gen/index.js +1 -1
  189. package/dist/src/proto/gen/index.js.map +1 -1
  190. package/dist/src/queue.d.ts +13 -0
  191. package/dist/src/queue.d.ts.map +1 -1
  192. package/dist/src/queue.js +4 -0
  193. package/dist/src/queue.js.map +1 -1
  194. package/dist/tsconfig.tsbuildinfo +1 -1
  195. package/package.json +13 -15
  196. package/src/FunctionProtocol.ts +100 -0
  197. package/src/automerge.ts +8 -0
  198. package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +3 -3
  199. package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +3 -3
  200. package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +3 -3
  201. package/src/buf/proto/gen/dxos/agent/functions_pb.ts +3 -3
  202. package/src/buf/proto/gen/dxos/bot_pb.ts +3 -3
  203. package/src/buf/proto/gen/dxos/client/invitation_pb.ts +3 -3
  204. package/src/buf/proto/gen/dxos/client/logging_pb.ts +3 -3
  205. package/src/buf/proto/gen/dxos/client/services_pb.ts +84 -29
  206. package/src/buf/proto/gen/dxos/config_pb.ts +43 -10
  207. package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +3 -3
  208. package/src/buf/proto/gen/dxos/devtools/host_pb.ts +3 -3
  209. package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +3 -3
  210. package/src/buf/proto/gen/dxos/echo/blob_pb.ts +3 -3
  211. package/src/buf/proto/gen/dxos/echo/feed_pb.ts +3 -3
  212. package/src/buf/proto/gen/dxos/echo/filter_pb.ts +3 -3
  213. package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +3 -3
  214. package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +3 -3
  215. package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +3 -3
  216. package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +3 -3
  217. package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +3 -3
  218. package/src/buf/proto/gen/dxos/echo/object_pb.ts +3 -3
  219. package/src/buf/proto/gen/dxos/echo/query_pb.ts +3 -3
  220. package/src/buf/proto/gen/dxos/echo/service_pb.ts +21 -4
  221. package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +3 -3
  222. package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +3 -3
  223. package/src/buf/proto/gen/dxos/edge/calls_pb.ts +3 -3
  224. package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +3 -3
  225. package/src/buf/proto/gen/dxos/edge/signal_pb.ts +3 -3
  226. package/src/buf/proto/gen/dxos/error_pb.ts +3 -3
  227. package/src/buf/proto/gen/dxos/field_options_pb.ts +3 -3
  228. package/src/buf/proto/gen/dxos/google_pb.ts +3 -3
  229. package/src/buf/proto/gen/dxos/gravity_pb.ts +3 -3
  230. package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +3 -3
  231. package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +3 -3
  232. package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +3 -3
  233. package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +3 -3
  234. package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +3 -3
  235. package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +3 -3
  236. package/src/buf/proto/gen/dxos/halo/keys_pb.ts +3 -3
  237. package/src/buf/proto/gen/dxos/halo/signed_pb.ts +3 -3
  238. package/src/buf/proto/gen/dxos/iframe_pb.ts +3 -3
  239. package/src/buf/proto/gen/dxos/keys_pb.ts +3 -3
  240. package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +3 -3
  241. package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +3 -3
  242. package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +3 -3
  243. package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +3 -3
  244. package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +3 -3
  245. package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +3 -3
  246. package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +3 -3
  247. package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +3 -3
  248. package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +3 -3
  249. package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +3 -3
  250. package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +3 -3
  251. package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +3 -3
  252. package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +3 -3
  253. package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +3 -3
  254. package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +3 -3
  255. package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +3 -3
  256. package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +3 -3
  257. package/src/buf/proto/gen/dxos/registry_pb.ts +3 -3
  258. package/src/buf/proto/gen/dxos/rpc_pb.ts +3 -3
  259. package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +3 -3
  260. package/src/buf/proto/gen/dxos/service/publisher_pb.ts +3 -3
  261. package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +3 -3
  262. package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +3 -3
  263. package/src/buf/proto/gen/dxos/tracing_pb.ts +3 -3
  264. package/src/buf/proto/gen/dxos/type_pb.ts +3 -3
  265. package/src/buf/proto/gen/dxos/value_pb.ts +3 -3
  266. package/src/buf/proto/gen/example/testing/data_pb.ts +3 -3
  267. package/src/buf/proto/gen/example/testing/rpc_pb.ts +3 -3
  268. package/src/edge-error.ts +25 -18
  269. package/src/edge.ts +209 -8
  270. package/src/errors/base-errors.ts +2 -0
  271. package/src/index.ts +8 -7
  272. package/src/indexing.ts +1 -1
  273. package/src/invitation.ts +1 -1
  274. package/src/proto/dxos/client/services.proto +20 -3
  275. package/src/proto/dxos/config.proto +36 -40
  276. package/src/proto/dxos/echo/service.proto +11 -0
  277. package/src/proto/gen/dxos/client/services.ts +30 -3
  278. package/src/proto/gen/dxos/config.ts +28 -2
  279. package/src/proto/gen/dxos/echo/service.ts +9 -0
  280. package/src/proto/gen/index.ts +3 -1
  281. package/src/queue.ts +18 -0
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file dxos/mesh/broadcast.proto.
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  /**
6
6
  * Describes the file dxos/mesh/broadcast.proto.
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Any } from "@bufbuild/protobuf/wkt";
3
3
  import type { PublicKey } from "../keys_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_keys } from "../keys_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file dxos/mesh/muxer.proto.
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  /**
6
6
  * Describes the file dxos/mesh/muxer.proto.
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { PublicKey } from "../keys_pb.js";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_dxos_keys } from "../keys_pb.js";
6
6
  import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Any } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message as Message$1 } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/mesh/protocol.proto.
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Any } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2019 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/mesh/replicator.proto.
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Any, EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { JsonObject, Message as Message$1 } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/mesh/signal.proto.
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { PublicKey } from "../keys_pb.js";
3
3
  import type { JsonObject, Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_keys } from "../keys_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Credential } from "../../halo/credentials_pb.js";
3
3
  import type { PublicKey } from "../../keys_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_dxos_halo_credentials } from "../../halo/credentials_pb.js";
6
6
  import { file_dxos_keys } from "../../keys_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file dxos/mesh/teleport/auth.proto.
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  /**
6
6
  * Describes the file dxos/mesh/teleport/auth.proto.
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/mesh/teleport/automerge.proto.
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any, file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/mesh/teleport/blobsync.proto.
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/mesh/teleport/control.proto.
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Any, EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { PublicKey } from "../../keys_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_keys } from "../../keys_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Credential } from "../../halo/credentials_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_keys } from "../../keys_pb.js";
7
7
  import { file_dxos_halo_credentials } from "../../halo/credentials_pb.js";
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { PublicKey } from "../../keys_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_keys } from "../../keys_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { JsonObject, Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/registry.proto.
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Any } from "@bufbuild/protobuf/wkt";
3
3
  import type { Error } from "./error_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
- import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_error } from "./error_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Credential, Presentation } from "../halo/credentials_pb.js";
3
3
  import type { PublicKey } from "../keys_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any, file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_config } from "../config_pb.js";
7
7
  import { file_dxos_halo_credentials } from "../halo/credentials_pb.js";
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Module, Package } from "../config_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_config } from "../config_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Config } from "../config_pb.js";
4
4
  import type { Credential, Presentation } from "../halo/credentials_pb.js";
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_config } from "../config_pb.js";
7
7
  import { file_dxos_halo_credentials } from "../halo/credentials_pb.js";
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file dxos/service/tunnel.proto.
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Error } from "./error_pb.js";
4
4
  import type { LogEntry } from "./client/logging_pb.js";
@@ -1,7 +1,7 @@
1
- // @generated by protoc-gen-es v2.1.0 with parameter "target=ts,import_extension=js"
1
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
2
2
  // @generated from file dxos/tracing.proto (package dxos.tracing, syntax proto3)
3
3
  /* eslint-disable */
4
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_error } from "./error_pb.js";
7
7
  import { file_dxos_client_logging } from "./client/logging_pb.js";
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Record_Extension } from "./registry_pb.js";
3
3
  import type { JsonObject, Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
6
6
  import { file_dxos_registry } from "./registry_pb.js";
7
7
  /**
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file dxos/value.proto.
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  /**
6
6
  * Describes the file dxos/value.proto.
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file example/testing/data.proto.
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  /**
6
6
  * Describes the file example/testing/data.proto.
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Any, EmptySchema } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  import { file_google_protobuf_any, file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
6
6
  /**
7
7
  * Describes the file example/testing/rpc.proto.
@@ -1,8 +1,16 @@
1
- import { type EdgeErrorData, type EdgeHttpFailure } from './edge';
1
+ import { type EdgeErrorData, type EdgeFailure } from './edge.js';
2
+ /**
3
+ * Error thrown when a call to the Edge service fails.
4
+ * There 3 possible sources of failure:
5
+ * 1. EdgeFailure (JSON body with { success: false }) -> Processing the request failed and was gracefully handled by EDGE service.
6
+ * 2. Http failure (non-ok code) -> The HTTP request failed (e.g. timeout, network error).
7
+ * -> Unhandled exception on EDGE side, EDGE would provide serialized error in the response body.
8
+ * 3. Processing failure -> Unhandled exception on client side while processing the response.
9
+ */
2
10
  export declare class EdgeCallFailedError extends Error {
11
+ static fromUnsuccessfulResponse(response: Response, body: EdgeFailure): EdgeCallFailedError;
12
+ static fromHttpFailure(response: Response): Promise<EdgeCallFailedError>;
3
13
  static fromProcessingFailureCause(cause: Error): EdgeCallFailedError;
4
- static fromHttpFailure(response: Response): EdgeCallFailedError;
5
- static fromUnsuccessfulResponse(response: Response, body: EdgeHttpFailure): EdgeCallFailedError;
6
14
  readonly reason: string;
7
15
  readonly errorData?: EdgeErrorData;
8
16
  readonly isRetryable?: boolean;
@@ -19,8 +27,4 @@ export declare class EdgeAuthChallengeError extends EdgeCallFailedError {
19
27
  readonly challenge: string;
20
28
  constructor(challenge: string, errorData: EdgeErrorData);
21
29
  }
22
- export declare const createRetryableHttpFailure: (args: {
23
- reason: any;
24
- retryAfterSeconds: number;
25
- }) => Response;
26
30
  //# sourceMappingURL=edge-error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edge-error.d.ts","sourceRoot":"","sources":["../../src/edge-error.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAElE,qBAAa,mBAAoB,SAAQ,KAAK;WAC9B,0BAA0B,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;WAQ7D,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,mBAAmB;WAQxD,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,GAAG,mBAAmB;IAStG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,KAAK,CAAC;KACf;CAOF;AAED,qBAAa,sBAAuB,SAAQ,mBAAmB;aAE3C,SAAS,EAAE,MAAM;gBAAjB,SAAS,EAAE,MAAM,EACjC,SAAS,EAAE,aAAa;CAI3B;AAOD,eAAO,MAAM,0BAA0B,GAAI,MAAM;IAAE,MAAM,EAAE,GAAG,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,aAI1F,CAAC"}
1
+ {"version":3,"file":"edge-error.d.ts","sourceRoot":"","sources":["../../src/edge-error.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAkC,MAAM,WAAW,CAAC;AAGjG;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;WAC9B,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,GAAG,mBAAmB;WAY9E,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,mBAAmB,CAAC;WASvE,0BAA0B,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;IAQ3E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,KAAK,CAAC;KACf;CAOF;AAED,qBAAa,sBAAuB,SAAQ,mBAAmB;aAE3C,SAAS,EAAE,MAAM;gBAAjB,SAAS,EAAE,MAAM,EACjC,SAAS,EAAE,aAAa;CAI3B"}
@@ -1,27 +1,40 @@
1
1
  //
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
+ import { EdgeHttpErrorCodec, ErrorCodec } from './edge.js';
5
+ // TODO(burdon): Reconcile with @dxos/errors.
6
+ /**
7
+ * Error thrown when a call to the Edge service fails.
8
+ * There 3 possible sources of failure:
9
+ * 1. EdgeFailure (JSON body with { success: false }) -> Processing the request failed and was gracefully handled by EDGE service.
10
+ * 2. Http failure (non-ok code) -> The HTTP request failed (e.g. timeout, network error).
11
+ * -> Unhandled exception on EDGE side, EDGE would provide serialized error in the response body.
12
+ * 3. Processing failure -> Unhandled exception on client side while processing the response.
13
+ */
4
14
  export class EdgeCallFailedError extends Error {
5
- static fromProcessingFailureCause(cause) {
6
- return new EdgeCallFailedError({
7
- reason: 'Error processing request.',
8
- isRetryable: true,
9
- cause,
15
+ static fromUnsuccessfulResponse(response, body) {
16
+ const error = new EdgeCallFailedError({
17
+ reason: body.reason,
18
+ errorData: body.errorData,
19
+ isRetryable: body.errorData == null && response.headers.has('Retry-After'),
20
+ retryAfterMs: getRetryAfterMillis(response),
21
+ cause: body.cause ? ErrorCodec.decode(body.cause) : undefined,
10
22
  });
23
+ return error;
11
24
  }
12
- static fromHttpFailure(response) {
25
+ static async fromHttpFailure(response) {
13
26
  return new EdgeCallFailedError({
14
27
  reason: `HTTP code ${response.status}: ${response.statusText}.`,
15
28
  isRetryable: isRetryableCode(response.status),
16
29
  retryAfterMs: getRetryAfterMillis(response),
30
+ cause: await EdgeHttpErrorCodec.decode(response),
17
31
  });
18
32
  }
19
- static fromUnsuccessfulResponse(response, body) {
33
+ static fromProcessingFailureCause(cause) {
20
34
  return new EdgeCallFailedError({
21
- reason: body.reason,
22
- errorData: body.errorData,
23
- isRetryable: body.errorData == null && response.headers.has('Retry-After'),
24
- retryAfterMs: getRetryAfterMillis(response),
35
+ reason: 'Error processing request.',
36
+ isRetryable: true,
37
+ cause,
25
38
  });
26
39
  }
27
40
  reason;
@@ -47,11 +60,6 @@ const getRetryAfterMillis = (response) => {
47
60
  const retryAfter = Number(response.headers.get('Retry-After'));
48
61
  return Number.isNaN(retryAfter) || retryAfter === 0 ? undefined : retryAfter * 1000;
49
62
  };
50
- export const createRetryableHttpFailure = (args) => {
51
- return new Response(JSON.stringify({ success: false, reason: args.reason }), {
52
- headers: { 'Retry-After': String(args.retryAfterSeconds) },
53
- });
54
- };
55
63
  const isRetryableCode = (status) => {
56
64
  if (status === 501) {
57
65
  // Not Implemented
@@ -1 +1 @@
1
- {"version":3,"file":"edge-error.js","sourceRoot":"","sources":["../../src/edge-error.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAIF,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IACrC,MAAM,CAAC,0BAA0B,CAAC,KAAY;QACnD,OAAO,IAAI,mBAAmB,CAAC;YAC7B,MAAM,EAAE,2BAA2B;YACnC,WAAW,EAAE,IAAI;YACjB,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,QAAkB;QAC9C,OAAO,IAAI,mBAAmB,CAAC;YAC7B,MAAM,EAAE,aAAa,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,GAAG;YAC/D,WAAW,EAAE,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC7C,YAAY,EAAE,mBAAmB,CAAC,QAAQ,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,wBAAwB,CAAC,QAAkB,EAAE,IAAqB;QAC9E,OAAO,IAAI,mBAAmB,CAAC;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,WAAW,EAAE,IAAI,CAAC,SAAS,IAAI,IAAI,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;YAC1E,YAAY,EAAE,mBAAmB,CAAC,QAAQ,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAEQ,MAAM,CAAS;IACf,SAAS,CAAiB;IAC1B,WAAW,CAAW;IACtB,YAAY,CAAU;IAE/B,YAAY,IAMX;QACC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC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