@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
@@ -13,427 +13,900 @@ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip.js";
13
13
  import * as dxos_value from "../value.js";
14
14
  /**
15
15
  * Defined in:
16
- * {@link file://./../../../dxos/client/services.proto}
17
- */
18
- export declare enum SystemStatus {
19
- INACTIVE = 0,
20
- ACTIVE = 1
21
- }
22
- /**
23
- * Defined in:
24
- * {@link file://./../../../dxos/client/services.proto}
25
- */
26
- export interface UpdateStatusRequest {
27
- status: SystemStatus;
28
- }
29
- /**
30
- * Defined in:
31
- * {@link file://./../../../dxos/client/services.proto}
16
+ * {@link file://./../../../dxos/client/invitation.proto}
32
17
  */
33
- export interface QueryStatusRequest {
18
+ export interface AdmissionKeypair {
19
+ publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
34
20
  /**
35
21
  * Options:
36
22
  * - proto3_optional = true
37
23
  */
38
- interval?: number;
24
+ privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
39
25
  }
40
26
  /**
27
+ * Runtime state of the space object.
28
+ *
41
29
  * Defined in:
42
- * {@link file://./../../../dxos/client/services.proto}
30
+ * {@link file://./../../../dxos/client/invitation.proto}
43
31
  */
44
- export interface QueryStatusResponse {
45
- status: SystemStatus;
32
+ export declare enum SpaceState {
33
+ INVALID = 0,
34
+ SPACE_INACTIVE = 2,
35
+ SPACE_ACTIVE = 6,
36
+ SPACE_CLOSED = 1,
37
+ SPACE_CONTROL_ONLY = 7,
38
+ SPACE_INITIALIZING = 4,
39
+ SPACE_READY = 3,
40
+ SPACE_ERROR = 5,
41
+ SPACE_REQUIRES_MIGRATION = 8
46
42
  }
47
43
  /**
44
+ * Represents the invitation state passed between client and service.
45
+ *
48
46
  * Defined in:
49
- * {@link file://./../../../dxos/client/services.proto}
47
+ * {@link file://./../../../dxos/client/invitation.proto}
50
48
  */
51
- export interface GetDiagnosticsRequest {
49
+ export interface Invitation {
52
50
  /**
53
- * Options:
54
- * - proto3_optional = true
51
+ * Local identifier (random).
55
52
  */
56
- keys?: GetDiagnosticsRequest.KEY_OPTION;
57
- }
58
- export declare namespace GetDiagnosticsRequest {
53
+ invitationId: string;
59
54
  /**
60
- * Defined in:
61
- * {@link file://./../../../dxos/client/services.proto}
55
+ * Determines the behavior of the invitation.
62
56
  */
63
- enum KEY_OPTION {
64
- NONE = 0,
65
- TRUNCATE = 1,
66
- HUMANIZE = 2
67
- }
68
- }
69
- /**
70
- * Defined in:
71
- * {@link file://./../../../dxos/client/services.proto}
72
- */
73
- export interface GetDiagnosticsResponse {
74
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
75
- diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
76
- }
77
- /**
78
- * Defined in:
79
- * {@link file://./../../../dxos/client/services.proto}
80
- */
81
- export interface Platform {
82
- type: Platform.PLATFORM_TYPE;
57
+ type: Invitation.Type;
83
58
  /**
84
- * The User-Agent string from a browser
59
+ * Kind of access the invitation will grant.
60
+ */
61
+ kind: Invitation.Kind;
62
+ /**
63
+ * How the invitation is authenticated.
64
+ */
65
+ authMethod: Invitation.AuthMethod;
66
+ /**
67
+ * Swarm rendezvous (random).
68
+ */
69
+ swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
70
+ /**
71
+ * Local state.
72
+ */
73
+ state: Invitation.State;
74
+ /**
75
+ * Timeout for guest to complete invitation once connected (ms).
85
76
  *
86
77
  * Options:
87
78
  * - proto3_optional = true
88
79
  */
89
- userAgent?: string;
80
+ timeout?: number;
90
81
  /**
91
- * e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
82
+ * Guest's identity.
92
83
  *
93
84
  * Options:
94
85
  * - proto3_optional = true
95
86
  */
96
- platform?: string;
87
+ identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
97
88
  /**
98
- * the Node.JS arch string, e.g. 'arm64', 'x64'
89
+ * Space to join (only present if kind is SPACE).
99
90
  *
100
91
  * Options:
101
92
  * - proto3_optional = true
102
93
  */
103
- arch?: string;
94
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
104
95
  /**
105
- * the node.js version string
96
+ * Authentication code created by host (only present if auth_method is SHARED_SECRET).
106
97
  *
107
98
  * Options:
108
99
  * - proto3_optional = true
109
100
  */
110
- runtime?: string;
101
+ authCode?: string;
111
102
  /**
112
- * the number of seconds the client has been up
103
+ * Path or identifier to navigate to after successful authentication.
113
104
  *
114
105
  * Options:
115
106
  * - proto3_optional = true
116
107
  */
117
- uptime?: number;
108
+ target?: string;
118
109
  /**
119
- * e.g. NodeJS.MemoryUsage, subject to change
110
+ * Host should resume invitation on startup until timeout.
120
111
  *
121
112
  * Options:
122
113
  * - proto3_optional = true
123
114
  */
124
- memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
125
- }
126
- export declare namespace Platform {
127
- /**
128
- * Defined in:
129
- * {@link file://./../../../dxos/client/services.proto}
130
- */
131
- enum PLATFORM_TYPE {
132
- BROWSER = 0,
133
- SHARED_WORKER = 1,
134
- NODE = 2
135
- }
136
- }
137
- /**
138
- * Defined in:
139
- * {@link file://./../../../dxos/client/services.proto}
140
- */
141
- export interface SystemService {
142
- /**
143
- * Get the static config of the client.
144
- */
145
- getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
115
+ persistent?: boolean;
146
116
  /**
147
- * Get the diagnostics snapshot.
117
+ * Options:
118
+ * - proto3_optional = true
148
119
  */
149
- getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
120
+ created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
150
121
  /**
151
- * Update the status of the client. Used to re-activate an inactive client.
122
+ * Options:
123
+ * - proto3_optional = true
152
124
  */
153
- updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
125
+ lifetime?: number;
154
126
  /**
155
- * Stream the status of the client.
127
+ * Whether an invitation can be used multiple times.
128
+ *
129
+ * Options:
130
+ * - proto3_optional = true
156
131
  */
157
- queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
132
+ multiUse?: boolean;
158
133
  /**
159
- * Reset the client.
134
+ * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
135
+ *
136
+ * Options:
137
+ * - proto3_optional = true
160
138
  */
161
- reset: (request: void, options?: RequestOptions) => Promise<void>;
139
+ guestKeypair?: AdmissionKeypair;
162
140
  /**
163
- * Get platform Information
141
+ * Present on Type.DELEGATED invitations.
142
+ *
143
+ * Options:
144
+ * - proto3_optional = true
164
145
  */
165
- getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
166
- }
167
- /**
168
- * Defined in:
169
- * {@link file://./../../../dxos/client/services.proto}
170
- */
171
- export interface Identity {
172
- did: string;
173
- identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
146
+ delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
174
147
  /**
148
+ * Role of the admitted member, defaults to ADMIN.
149
+ *
175
150
  * Options:
176
151
  * - proto3_optional = true
177
152
  */
178
- spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
153
+ role?: dxos_halo_credentials.SpaceMember.Role;
179
154
  /**
155
+ * Id of a the space to join (only present if kind is SPACE).
156
+ *
180
157
  * Options:
181
158
  * - proto3_optional = true
182
159
  */
183
- profile?: dxos_halo_credentials.ProfileDocument;
160
+ spaceId?: string;
184
161
  }
185
- /**
186
- * Defined in:
187
- * {@link file://./../../../dxos/client/services.proto}
188
- */
189
- export interface RequestRecoveryChallengeResponse {
190
- deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
191
- controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
192
- challenge: string;
162
+ export declare namespace Invitation {
163
+ /**
164
+ * Defined in:
165
+ * {@link file://./../../../dxos/client/invitation.proto}
166
+ */
167
+ enum Type {
168
+ INTERACTIVE = 0,
169
+ DELEGATED = 1,
170
+ MULTIUSE = 2
171
+ }
172
+ /**
173
+ * Defined in:
174
+ * {@link file://./../../../dxos/client/invitation.proto}
175
+ */
176
+ enum Kind {
177
+ DEVICE = 0,
178
+ SPACE = 1
179
+ }
180
+ /**
181
+ * Defined in:
182
+ * {@link file://./../../../dxos/client/invitation.proto}
183
+ */
184
+ enum AuthMethod {
185
+ NONE = 0,
186
+ SHARED_SECRET = 1,
187
+ KNOWN_PUBLIC_KEY = 2
188
+ }
189
+ /**
190
+ * Defined in:
191
+ * {@link file://./../../../dxos/client/invitation.proto}
192
+ */
193
+ enum State {
194
+ INIT = 0,
195
+ CONNECTING = 1,
196
+ CONNECTED = 2,
197
+ READY_FOR_AUTHENTICATION = 3,
198
+ AUTHENTICATING = 4,
199
+ SUCCESS = 5,
200
+ CANCELLED = 6,
201
+ TIMEOUT = 7,
202
+ ERROR = 8,
203
+ EXPIRED = 9
204
+ }
193
205
  }
194
206
  /**
195
207
  * Defined in:
196
- * {@link file://./../../../dxos/client/services.proto}
208
+ * {@link file://./../../../dxos/client/logging.proto}
197
209
  */
198
- export interface RecoverIdentityRequest {
199
- recoveryCode?: string;
200
- external?: RecoverIdentityRequest.ExternalSignature;
201
- token?: string;
210
+ export interface Metrics {
211
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
212
+ values?: Metrics.KeyPair[];
202
213
  }
203
- export declare namespace RecoverIdentityRequest {
214
+ export declare namespace Metrics {
204
215
  /**
205
216
  * Defined in:
206
- * {@link file://./../../../dxos/client/services.proto}
217
+ * {@link file://./../../../dxos/client/logging.proto}
207
218
  */
208
- interface ExternalSignature {
209
- lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
210
- deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
211
- controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
212
- signature: Uint8Array;
219
+ interface KeyPair {
213
220
  /**
214
221
  * Options:
215
222
  * - proto3_optional = true
216
223
  */
217
- clientDataJson?: Uint8Array;
224
+ key?: string;
218
225
  /**
219
226
  * Options:
220
227
  * - proto3_optional = true
221
228
  */
222
- authenticatorData?: Uint8Array;
229
+ value?: dxos_value.Value;
230
+ /**
231
+ * Options:
232
+ * - proto3_optional = true
233
+ */
234
+ stats?: dxos_value.Stats;
223
235
  }
224
236
  }
225
237
  /**
226
238
  * Defined in:
227
- * {@link file://./../../../dxos/client/services.proto}
239
+ * {@link file://./../../../dxos/client/logging.proto}
228
240
  */
229
- export interface RecoveryCredentialData {
230
- /**
231
- * Recovery key used to validate recovery challenge signature.
232
- */
233
- recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
241
+ export interface ControlMetricsRequest {
234
242
  /**
235
- * Public key used to identify the recovery key.
243
+ * Options:
244
+ * - proto3_optional = true
236
245
  */
237
- lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
246
+ reset?: boolean;
238
247
  /**
239
- * Algorithm used to generate the recovery key.
248
+ * Options:
249
+ * - proto3_optional = true
240
250
  */
241
- algorithm: string;
251
+ record?: boolean;
242
252
  }
243
253
  /**
244
254
  * Defined in:
245
- * {@link file://./../../../dxos/client/services.proto}
255
+ * {@link file://./../../../dxos/client/logging.proto}
246
256
  */
247
- export interface CreateRecoveryCredentialRequest {
257
+ export interface ControlMetricsResponse {
248
258
  /**
249
- * If not provided, a new key will be generated.
250
- *
251
259
  * Options:
252
260
  * - proto3_optional = true
253
261
  */
254
- data?: RecoveryCredentialData;
262
+ recording?: boolean;
255
263
  }
256
264
  /**
257
265
  * Defined in:
258
- * {@link file://./../../../dxos/client/services.proto}
266
+ * {@link file://./../../../dxos/client/logging.proto}
259
267
  */
260
- export interface CreateRecoveryCredentialResponse {
268
+ export interface QueryMetricsRequest {
261
269
  /**
262
270
  * Options:
263
271
  * - proto3_optional = true
264
272
  */
265
- recoveryCode?: string;
273
+ interval?: number;
266
274
  }
267
275
  /**
268
276
  * Defined in:
269
- * {@link file://./../../../dxos/client/services.proto}
277
+ * {@link file://./../../../dxos/client/logging.proto}
270
278
  */
271
- export interface QueryIdentityResponse {
272
- /**
273
- * Options:
274
- * - proto3_optional = true
275
- */
276
- identity?: Identity;
279
+ export interface QueryMetricsResponse {
280
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
281
+ metrics: Metrics;
277
282
  }
278
283
  /**
279
284
  * Defined in:
280
- * {@link file://./../../../dxos/client/services.proto}
285
+ * {@link file://./../../../dxos/client/logging.proto}
281
286
  */
282
- export interface SignPresentationRequest {
283
- presentation: dxos_halo_credentials.Presentation;
287
+ export declare enum LogLevel {
288
+ NONE = 0,
289
+ TRACE = 5,
290
+ DEBUG = 10,
291
+ VERBOSE = 11,
292
+ INFO = 12,
293
+ WARN = 13,
294
+ ERROR = 14
295
+ }
296
+ /**
297
+ * Defined in:
298
+ * {@link file://./../../../dxos/client/logging.proto}
299
+ */
300
+ export interface QueryLogsRequest {
301
+ filters?: QueryLogsRequest.Filter[];
284
302
  /**
285
303
  * Options:
286
304
  * - proto3_optional = true
287
305
  */
288
- nonce?: Uint8Array;
306
+ options?: QueryLogsRequest.MatchingOptions;
307
+ }
308
+ export declare namespace QueryLogsRequest {
309
+ /**
310
+ * Defined in:
311
+ * {@link file://./../../../dxos/client/logging.proto}
312
+ */
313
+ enum MatchingOptions {
314
+ NONE = 0,
315
+ INCLUSIVE = 1,
316
+ EXPLICIT = 2
317
+ }
318
+ /**
319
+ * Defined in:
320
+ * {@link file://./../../../dxos/client/logging.proto}
321
+ */
322
+ interface Filter {
323
+ level: LogLevel;
324
+ /**
325
+ * Options:
326
+ * - proto3_optional = true
327
+ */
328
+ pattern?: string;
329
+ }
289
330
  }
290
331
  /**
291
332
  * Defined in:
292
- * {@link file://./../../../dxos/client/services.proto}
333
+ * {@link file://./../../../dxos/client/logging.proto}
293
334
  */
294
- export interface CreateIdentityRequest {
335
+ export interface LogEntry {
336
+ level: LogLevel;
337
+ message: string;
295
338
  /**
296
339
  * Options:
297
340
  * - proto3_optional = true
298
341
  */
299
- profile?: dxos_halo_credentials.ProfileDocument;
342
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
300
343
  /**
301
344
  * Options:
302
345
  * - proto3_optional = true
303
346
  */
304
- deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
347
+ meta?: LogEntry.Meta;
348
+ /**
349
+ * Options:
350
+ * - proto3_optional = true
351
+ */
352
+ error?: dxos_error.Error;
353
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
305
354
  }
306
- /**
307
- * Defined in:
308
- * {@link file://./../../../dxos/client/services.proto}
309
- */
310
- export interface IdentityService {
311
- createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
312
- requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
313
- recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
314
- createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
315
- queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
316
- updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
317
- signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
318
- createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
355
+ export declare namespace LogEntry {
356
+ /**
357
+ * Defined in:
358
+ * {@link file://./../../../dxos/client/logging.proto}
359
+ */
360
+ interface Meta {
361
+ file: string;
362
+ line: number;
363
+ /**
364
+ * Options:
365
+ * - proto3_optional = true
366
+ */
367
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
368
+ /**
369
+ * Options:
370
+ * - proto3_optional = true
371
+ */
372
+ resourceId?: number;
373
+ }
319
374
  }
320
375
  /**
321
376
  * Defined in:
322
- * {@link file://./../../../dxos/client/services.proto}
377
+ * {@link file://./../../../dxos/client/logging.proto}
323
378
  */
324
- export declare enum DeviceKind {
325
- CURRENT = 0,
326
- TRUSTED = 1
379
+ export interface LoggingService {
380
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
381
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
382
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
327
383
  }
328
384
  /**
329
385
  * Defined in:
330
- * {@link file://./../../../dxos/client/services.proto}
386
+ * {@link file://./../../../dxos/client/queue.proto}
331
387
  */
332
- export interface Device {
333
- deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
334
- kind: DeviceKind;
388
+ export interface QueueQuery {
389
+ spaceId: string;
335
390
  /**
336
391
  * Options:
337
392
  * - proto3_optional = true
338
393
  */
339
- profile?: dxos_halo_credentials.DeviceProfileDocument;
340
- presence: Device.PresenceState;
394
+ queuesNamespace?: string;
395
+ /**
396
+ * Queries the whole space if missing.
397
+ */
398
+ queueIds?: string[];
399
+ /**
400
+ * Filter items after this cursor. Exclusive.
401
+ *
402
+ * Options:
403
+ * - proto3_optional = true
404
+ */
405
+ after?: string;
406
+ /**
407
+ * Filter items before this cursor. Exclusive.
408
+ *
409
+ * Options:
410
+ * - proto3_optional = true
411
+ */
412
+ before?: string;
413
+ /**
414
+ * Filter items after this position. Inclusive.
415
+ *
416
+ * Options:
417
+ * - proto3_optional = true
418
+ */
419
+ beginPosition?: string;
420
+ /**
421
+ * Filter items before this position. Exclusive.
422
+ *
423
+ * Options:
424
+ * - proto3_optional = true
425
+ */
426
+ endPosition?: string;
427
+ /**
428
+ * Options:
429
+ * - proto3_optional = true
430
+ */
431
+ limit?: number;
432
+ /**
433
+ * Options:
434
+ * - proto3_optional = true
435
+ */
436
+ reverse?: boolean;
437
+ objectIds?: string[];
341
438
  }
342
- export declare namespace Device {
439
+ /**
440
+ * Defined in:
441
+ * {@link file://./../../../dxos/client/queue.proto}
442
+ */
443
+ export interface QueueQueryResult {
444
+ objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
343
445
  /**
344
- * Defined in:
345
- * {@link file://./../../../dxos/client/services.proto}
446
+ * Cursor to query the next items. Can be passed to `after` in query to keep querying.
346
447
  */
347
- enum PresenceState {
348
- OFFLINE = 0,
349
- ONLINE = 1,
350
- REMOVED = 2
351
- }
448
+ nextCursor: string;
449
+ prevCursor: string;
352
450
  }
353
451
  /**
354
452
  * Defined in:
355
- * {@link file://./../../../dxos/client/services.proto}
453
+ * {@link file://./../../../dxos/client/queue.proto}
356
454
  */
357
- export interface QueryDevicesResponse {
358
- devices?: Device[];
455
+ export interface QueryQueueRequest {
456
+ query: QueueQuery;
359
457
  }
360
458
  /**
361
459
  * Defined in:
362
- * {@link file://./../../../dxos/client/services.proto}
460
+ * {@link file://./../../../dxos/client/queue.proto}
363
461
  */
364
- export interface DevicesService {
365
- updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
366
- queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
462
+ export interface InsertIntoQueueRequest {
463
+ subspaceTag: string;
464
+ spaceId: string;
465
+ queueId: string;
466
+ objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
367
467
  }
368
468
  /**
369
469
  * Defined in:
370
- * {@link file://./../../../dxos/client/services.proto}
470
+ * {@link file://./../../../dxos/client/queue.proto}
371
471
  */
372
- export interface Contact {
373
- identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
374
- /**
375
- * Options:
376
- * - proto3_optional = true
377
- */
378
- profile?: dxos_halo_credentials.ProfileDocument;
379
- commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
472
+ export interface DeleteFromQueueRequest {
473
+ subspaceTag: string;
474
+ spaceId: string;
475
+ queueId: string;
476
+ objectIds?: string[];
380
477
  }
381
478
  /**
382
479
  * Defined in:
383
- * {@link file://./../../../dxos/client/services.proto}
480
+ * {@link file://./../../../dxos/client/queue.proto}
384
481
  */
385
- export interface ContactBook {
386
- contacts?: Contact[];
482
+ export interface QueueService {
483
+ queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
484
+ insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
485
+ deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
387
486
  }
388
487
  /**
389
488
  * Defined in:
390
489
  * {@link file://./../../../dxos/client/services.proto}
391
490
  */
392
- export interface ContactsService {
393
- getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
394
- queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
491
+ export declare enum SystemStatus {
492
+ INACTIVE = 0,
493
+ ACTIVE = 1
395
494
  }
396
495
  /**
397
496
  * Defined in:
398
497
  * {@link file://./../../../dxos/client/services.proto}
399
498
  */
400
- export interface SpaceMember {
401
- identity: Identity;
402
- presence: SpaceMember.PresenceState;
403
- peerStates?: dxos_mesh_presence.PeerState[];
404
- role: dxos_halo_credentials.SpaceMember.Role;
405
- }
406
- export declare namespace SpaceMember {
407
- /**
408
- * Defined in:
409
- * {@link file://./../../../dxos/client/services.proto}
410
- */
411
- enum PresenceState {
412
- OFFLINE = 0,
413
- ONLINE = 1
414
- }
499
+ export interface UpdateStatusRequest {
500
+ status: SystemStatus;
415
501
  }
416
502
  /**
417
503
  * Defined in:
418
504
  * {@link file://./../../../dxos/client/services.proto}
419
505
  */
420
- export interface Space {
421
- id: string;
422
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
423
- state: SpaceState;
424
- /**
425
- * Options:
426
- * - proto3_optional = true
427
- */
428
- pipeline?: Space.PipelineState;
506
+ export interface QueryStatusRequest {
429
507
  /**
430
508
  * Options:
431
509
  * - proto3_optional = true
432
510
  */
433
- error?: dxos_error.Error;
434
- /**
435
- * Options:
436
- * - proto3_optional = true
511
+ interval?: number;
512
+ }
513
+ /**
514
+ * Defined in:
515
+ * {@link file://./../../../dxos/client/services.proto}
516
+ */
517
+ export interface QueryStatusResponse {
518
+ status: SystemStatus;
519
+ }
520
+ /**
521
+ * Defined in:
522
+ * {@link file://./../../../dxos/client/services.proto}
523
+ */
524
+ export interface GetDiagnosticsRequest {
525
+ /**
526
+ * Options:
527
+ * - proto3_optional = true
528
+ */
529
+ keys?: GetDiagnosticsRequest.KEY_OPTION;
530
+ }
531
+ export declare namespace GetDiagnosticsRequest {
532
+ /**
533
+ * Defined in:
534
+ * {@link file://./../../../dxos/client/services.proto}
535
+ */
536
+ enum KEY_OPTION {
537
+ NONE = 0,
538
+ TRUNCATE = 1,
539
+ HUMANIZE = 2
540
+ }
541
+ }
542
+ /**
543
+ * Defined in:
544
+ * {@link file://./../../../dxos/client/services.proto}
545
+ */
546
+ export interface GetDiagnosticsResponse {
547
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
548
+ diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
549
+ }
550
+ /**
551
+ * Defined in:
552
+ * {@link file://./../../../dxos/client/services.proto}
553
+ */
554
+ export interface Platform {
555
+ type: Platform.PLATFORM_TYPE;
556
+ /**
557
+ * The User-Agent string from a browser
558
+ *
559
+ * Options:
560
+ * - proto3_optional = true
561
+ */
562
+ userAgent?: string;
563
+ /**
564
+ * e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
565
+ *
566
+ * Options:
567
+ * - proto3_optional = true
568
+ */
569
+ platform?: string;
570
+ /**
571
+ * the Node.JS arch string, e.g. 'arm64', 'x64'
572
+ *
573
+ * Options:
574
+ * - proto3_optional = true
575
+ */
576
+ arch?: string;
577
+ /**
578
+ * the node.js version string
579
+ *
580
+ * Options:
581
+ * - proto3_optional = true
582
+ */
583
+ runtime?: string;
584
+ /**
585
+ * the number of seconds the client has been up
586
+ *
587
+ * Options:
588
+ * - proto3_optional = true
589
+ */
590
+ uptime?: number;
591
+ /**
592
+ * e.g. NodeJS.MemoryUsage, subject to change
593
+ *
594
+ * Options:
595
+ * - proto3_optional = true
596
+ */
597
+ memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
598
+ }
599
+ export declare namespace Platform {
600
+ /**
601
+ * Defined in:
602
+ * {@link file://./../../../dxos/client/services.proto}
603
+ */
604
+ enum PLATFORM_TYPE {
605
+ BROWSER = 0,
606
+ SHARED_WORKER = 1,
607
+ NODE = 2
608
+ }
609
+ }
610
+ /**
611
+ * Defined in:
612
+ * {@link file://./../../../dxos/client/services.proto}
613
+ */
614
+ export interface SystemService {
615
+ /**
616
+ * Get the static config of the client.
617
+ */
618
+ getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
619
+ /**
620
+ * Get the diagnostics snapshot.
621
+ */
622
+ getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
623
+ /**
624
+ * Update the status of the client. Used to re-activate an inactive client.
625
+ */
626
+ updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
627
+ /**
628
+ * Stream the status of the client.
629
+ */
630
+ queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
631
+ /**
632
+ * Reset the client.
633
+ */
634
+ reset: (request: void, options?: RequestOptions) => Promise<void>;
635
+ /**
636
+ * Get platform Information
637
+ */
638
+ getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
639
+ }
640
+ /**
641
+ * Defined in:
642
+ * {@link file://./../../../dxos/client/services.proto}
643
+ */
644
+ export interface Identity {
645
+ did: string;
646
+ identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
647
+ /**
648
+ * Options:
649
+ * - proto3_optional = true
650
+ */
651
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
652
+ /**
653
+ * Options:
654
+ * - proto3_optional = true
655
+ */
656
+ profile?: dxos_halo_credentials.ProfileDocument;
657
+ }
658
+ /**
659
+ * Defined in:
660
+ * {@link file://./../../../dxos/client/services.proto}
661
+ */
662
+ export interface RequestRecoveryChallengeResponse {
663
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
664
+ controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
665
+ challenge: string;
666
+ }
667
+ /**
668
+ * Defined in:
669
+ * {@link file://./../../../dxos/client/services.proto}
670
+ */
671
+ export interface RecoverIdentityRequest {
672
+ recoveryCode?: string;
673
+ external?: RecoverIdentityRequest.ExternalSignature;
674
+ token?: string;
675
+ }
676
+ export declare namespace RecoverIdentityRequest {
677
+ /**
678
+ * Defined in:
679
+ * {@link file://./../../../dxos/client/services.proto}
680
+ */
681
+ interface ExternalSignature {
682
+ lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
683
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
684
+ controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
685
+ signature: Uint8Array;
686
+ /**
687
+ * Options:
688
+ * - proto3_optional = true
689
+ */
690
+ clientDataJson?: Uint8Array;
691
+ /**
692
+ * Options:
693
+ * - proto3_optional = true
694
+ */
695
+ authenticatorData?: Uint8Array;
696
+ }
697
+ }
698
+ /**
699
+ * Defined in:
700
+ * {@link file://./../../../dxos/client/services.proto}
701
+ */
702
+ export interface RecoveryCredentialData {
703
+ /**
704
+ * Recovery key used to validate recovery challenge signature.
705
+ */
706
+ recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
707
+ /**
708
+ * Public key used to identify the recovery key.
709
+ */
710
+ lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
711
+ /**
712
+ * Algorithm used to generate the recovery key.
713
+ */
714
+ algorithm: string;
715
+ }
716
+ /**
717
+ * Defined in:
718
+ * {@link file://./../../../dxos/client/services.proto}
719
+ */
720
+ export interface CreateRecoveryCredentialRequest {
721
+ /**
722
+ * If not provided, a new key will be generated.
723
+ *
724
+ * Options:
725
+ * - proto3_optional = true
726
+ */
727
+ data?: RecoveryCredentialData;
728
+ }
729
+ /**
730
+ * Defined in:
731
+ * {@link file://./../../../dxos/client/services.proto}
732
+ */
733
+ export interface CreateRecoveryCredentialResponse {
734
+ /**
735
+ * Options:
736
+ * - proto3_optional = true
737
+ */
738
+ recoveryCode?: string;
739
+ }
740
+ /**
741
+ * Defined in:
742
+ * {@link file://./../../../dxos/client/services.proto}
743
+ */
744
+ export interface QueryIdentityResponse {
745
+ /**
746
+ * Options:
747
+ * - proto3_optional = true
748
+ */
749
+ identity?: Identity;
750
+ }
751
+ /**
752
+ * Defined in:
753
+ * {@link file://./../../../dxos/client/services.proto}
754
+ */
755
+ export interface SignPresentationRequest {
756
+ presentation: dxos_halo_credentials.Presentation;
757
+ /**
758
+ * Options:
759
+ * - proto3_optional = true
760
+ */
761
+ nonce?: Uint8Array;
762
+ }
763
+ /**
764
+ * Defined in:
765
+ * {@link file://./../../../dxos/client/services.proto}
766
+ */
767
+ export interface CreateIdentityRequest {
768
+ /**
769
+ * Options:
770
+ * - proto3_optional = true
771
+ */
772
+ profile?: dxos_halo_credentials.ProfileDocument;
773
+ /**
774
+ * Options:
775
+ * - proto3_optional = true
776
+ */
777
+ deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
778
+ }
779
+ /**
780
+ * Defined in:
781
+ * {@link file://./../../../dxos/client/services.proto}
782
+ */
783
+ export interface IdentityService {
784
+ createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
785
+ requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
786
+ recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
787
+ createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
788
+ queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
789
+ updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
790
+ signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
791
+ createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
792
+ }
793
+ /**
794
+ * Defined in:
795
+ * {@link file://./../../../dxos/client/services.proto}
796
+ */
797
+ export declare enum DeviceKind {
798
+ CURRENT = 0,
799
+ TRUSTED = 1
800
+ }
801
+ /**
802
+ * Defined in:
803
+ * {@link file://./../../../dxos/client/services.proto}
804
+ */
805
+ export interface Device {
806
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
807
+ kind: DeviceKind;
808
+ /**
809
+ * Options:
810
+ * - proto3_optional = true
811
+ */
812
+ profile?: dxos_halo_credentials.DeviceProfileDocument;
813
+ presence: Device.PresenceState;
814
+ }
815
+ export declare namespace Device {
816
+ /**
817
+ * Defined in:
818
+ * {@link file://./../../../dxos/client/services.proto}
819
+ */
820
+ enum PresenceState {
821
+ OFFLINE = 0,
822
+ ONLINE = 1,
823
+ REMOVED = 2
824
+ }
825
+ }
826
+ /**
827
+ * Defined in:
828
+ * {@link file://./../../../dxos/client/services.proto}
829
+ */
830
+ export interface QueryDevicesResponse {
831
+ devices?: Device[];
832
+ }
833
+ /**
834
+ * Defined in:
835
+ * {@link file://./../../../dxos/client/services.proto}
836
+ */
837
+ export interface DevicesService {
838
+ updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
839
+ queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
840
+ }
841
+ /**
842
+ * Defined in:
843
+ * {@link file://./../../../dxos/client/services.proto}
844
+ */
845
+ export interface Contact {
846
+ identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
847
+ /**
848
+ * Options:
849
+ * - proto3_optional = true
850
+ */
851
+ profile?: dxos_halo_credentials.ProfileDocument;
852
+ commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
853
+ }
854
+ /**
855
+ * Defined in:
856
+ * {@link file://./../../../dxos/client/services.proto}
857
+ */
858
+ export interface ContactBook {
859
+ contacts?: Contact[];
860
+ }
861
+ /**
862
+ * Defined in:
863
+ * {@link file://./../../../dxos/client/services.proto}
864
+ */
865
+ export interface ContactsService {
866
+ getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
867
+ queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
868
+ }
869
+ /**
870
+ * Defined in:
871
+ * {@link file://./../../../dxos/client/services.proto}
872
+ */
873
+ export interface SpaceMember {
874
+ identity: Identity;
875
+ presence: SpaceMember.PresenceState;
876
+ peerStates?: dxos_mesh_presence.PeerState[];
877
+ role: dxos_halo_credentials.SpaceMember.Role;
878
+ }
879
+ export declare namespace SpaceMember {
880
+ /**
881
+ * Defined in:
882
+ * {@link file://./../../../dxos/client/services.proto}
883
+ */
884
+ enum PresenceState {
885
+ OFFLINE = 0,
886
+ ONLINE = 1
887
+ }
888
+ }
889
+ /**
890
+ * Defined in:
891
+ * {@link file://./../../../dxos/client/services.proto}
892
+ */
893
+ export interface Space {
894
+ id: string;
895
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
896
+ state: SpaceState;
897
+ /**
898
+ * Options:
899
+ * - proto3_optional = true
900
+ */
901
+ pipeline?: Space.PipelineState;
902
+ /**
903
+ * Options:
904
+ * - proto3_optional = true
905
+ */
906
+ error?: dxos_error.Error;
907
+ /**
908
+ * Options:
909
+ * - proto3_optional = true
437
910
  */
438
911
  edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
439
912
  members?: SpaceMember[];
@@ -714,665 +1187,322 @@ export interface CreateEpochResponse {
714
1187
  */
715
1188
  export interface UpdateMemberRoleRequest {
716
1189
  spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
717
- memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
718
- newRole: dxos_halo_credentials.SpaceMember.Role;
719
- }
720
- /**
721
- * Defined in:
722
- * {@link file://./../../../dxos/client/services.proto}
723
- */
724
- export interface AdmitContactRequest {
725
- contact: Contact;
726
- role: dxos_halo_credentials.SpaceMember.Role;
727
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
728
- }
729
- /**
730
- * Defined in:
731
- * {@link file://./../../../dxos/client/services.proto}
732
- */
733
- export interface ContactAdmission {
734
- credential: dxos_halo_credentials.Credential;
735
- }
736
- /**
737
- * Defined in:
738
- * {@link file://./../../../dxos/client/services.proto}
739
- */
740
- export interface JoinSpaceResponse {
741
- space: Space;
742
- }
743
- /**
744
- * Defined in:
745
- * {@link file://./../../../dxos/client/services.proto}
746
- */
747
- export interface JoinBySpaceKeyRequest {
748
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
749
- }
750
- /**
751
- * Defined in:
752
- * {@link file://./../../../dxos/client/services.proto}
753
- */
754
- export interface SpaceArchive {
755
- filename: string;
756
- contents: Uint8Array;
757
- }
758
- /**
759
- * Defined in:
760
- * {@link file://./../../../dxos/client/services.proto}
761
- */
762
- export interface ExportSpaceRequest {
763
- spaceId: string;
764
- }
765
- /**
766
- * Defined in:
767
- * {@link file://./../../../dxos/client/services.proto}
768
- */
769
- export interface ExportSpaceResponse {
770
- archive: SpaceArchive;
771
- }
772
- /**
773
- * Defined in:
774
- * {@link file://./../../../dxos/client/services.proto}
775
- */
776
- export interface ImportSpaceRequest {
777
- archive: SpaceArchive;
778
- }
779
- /**
780
- * Defined in:
781
- * {@link file://./../../../dxos/client/services.proto}
782
- */
783
- export interface ImportSpaceResponse {
784
- /**
785
- * the ID of the new space.
786
- */
787
- newSpaceId: string;
788
- }
789
- /**
790
- * Defined in:
791
- * {@link file://./../../../dxos/client/services.proto}
792
- */
793
- export interface SpacesService {
794
- createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
795
- updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
796
- querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
797
- updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
798
- admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
799
- joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
800
- /**
801
- * Broadcast an ephemeral message to the space swarm.
802
- */
803
- postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
804
- /**
805
- * Subscribe to messages from the space swarm.
806
- */
807
- subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
808
- /**
809
- * Write credentials to the space control feed.
810
- */
811
- writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
812
- /**
813
- * Query credentials from the space control feed.
814
- */
815
- queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
816
- createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
817
- exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
818
- importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
819
- }
820
- /**
821
- * Defined in:
822
- * {@link file://./../../../dxos/client/services.proto}
823
- */
824
- export interface AcceptInvitationRequest {
825
- invitation: Invitation;
826
- /**
827
- * Options:
828
- * - proto3_optional = true
829
- */
830
- deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
831
- }
832
- /**
833
- * Defined in:
834
- * {@link file://./../../../dxos/client/services.proto}
835
- */
836
- export interface AuthenticationRequest {
837
- invitationId: string;
838
- authCode: string;
839
- }
840
- /**
841
- * Defined in:
842
- * {@link file://./../../../dxos/client/services.proto}
843
- */
844
- export interface CancelInvitationRequest {
845
- invitationId: string;
846
- }
847
- /**
848
- * Defined in:
849
- * {@link file://./../../../dxos/client/services.proto}
850
- */
851
- export interface InvitationMethod {
852
- created?: Invitation;
853
- accepted?: Invitation;
854
- }
855
- /**
856
- * Defined in:
857
- * {@link file://./../../../dxos/client/services.proto}
858
- */
859
- export interface QueryInvitationsResponse {
860
- action: QueryInvitationsResponse.Action;
861
- type: QueryInvitationsResponse.Type;
862
- invitations?: Invitation[];
863
- /**
864
- * Options:
865
- * - proto3_optional = true
866
- */
867
- existing?: boolean;
868
- }
869
- export declare namespace QueryInvitationsResponse {
870
- /**
871
- * Defined in:
872
- * {@link file://./../../../dxos/client/services.proto}
873
- */
874
- enum Action {
875
- ADDED = 0,
876
- REMOVED = 1,
877
- SAVED = 2,
878
- LOAD_COMPLETE = 3
879
- }
880
- /**
881
- * Defined in:
882
- * {@link file://./../../../dxos/client/services.proto}
883
- */
884
- enum Type {
885
- CREATED = 0,
886
- ACCEPTED = 1
887
- }
888
- }
889
- /**
890
- * Defined in:
891
- * {@link file://./../../../dxos/client/services.proto}
892
- */
893
- export interface LoadPersistentInvitationsResponse {
894
- invitations?: Invitation[];
1190
+ memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1191
+ newRole: dxos_halo_credentials.SpaceMember.Role;
895
1192
  }
896
1193
  /**
897
1194
  * Defined in:
898
1195
  * {@link file://./../../../dxos/client/services.proto}
899
1196
  */
900
- export interface InvitationsService {
901
- createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
902
- acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
903
- authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
904
- cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
905
- queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
1197
+ export interface AdmitContactRequest {
1198
+ contact: Contact;
1199
+ role: dxos_halo_credentials.SpaceMember.Role;
1200
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
906
1201
  }
907
1202
  /**
908
1203
  * Defined in:
909
1204
  * {@link file://./../../../dxos/client/services.proto}
910
1205
  */
911
- export declare enum ConnectionState {
912
- OFFLINE = 0,
913
- ONLINE = 1
1206
+ export interface ContactAdmission {
1207
+ credential: dxos_halo_credentials.Credential;
914
1208
  }
915
1209
  /**
916
1210
  * Defined in:
917
1211
  * {@link file://./../../../dxos/client/services.proto}
918
1212
  */
919
- export interface NetworkStatus {
920
- swarm: ConnectionState;
921
- signaling?: NetworkStatus.Signal[];
922
- connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
923
- }
924
- export declare namespace NetworkStatus {
925
- /**
926
- * Defined in:
927
- * {@link file://./../../../dxos/client/services.proto}
928
- */
929
- interface Signal {
930
- server: string;
931
- state: dxos_mesh_signal.SignalState;
932
- }
1213
+ export interface JoinSpaceResponse {
1214
+ space: Space;
933
1215
  }
934
1216
  /**
935
1217
  * Defined in:
936
1218
  * {@link file://./../../../dxos/client/services.proto}
937
1219
  */
938
- export interface UpdateConfigRequest {
939
- swarm: ConnectionState;
1220
+ export interface JoinBySpaceKeyRequest {
1221
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
940
1222
  }
941
1223
  /**
942
1224
  * Defined in:
943
1225
  * {@link file://./../../../dxos/client/services.proto}
944
1226
  */
945
- export interface SubscribeSwarmStateRequest {
946
- topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1227
+ export interface SpaceArchive {
1228
+ filename: string;
1229
+ contents: Uint8Array;
947
1230
  }
948
1231
  /**
949
1232
  * Defined in:
950
1233
  * {@link file://./../../../dxos/client/services.proto}
951
1234
  */
952
- export interface NetworkService {
953
- updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
954
- queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
955
- joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
956
- leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
957
- /**
958
- * Query the swarm state without joining it.
959
- */
960
- querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
961
- subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
962
- sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
963
- subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
1235
+ export interface ExportSpaceRequest {
1236
+ spaceId: string;
964
1237
  }
965
1238
  /**
966
1239
  * Defined in:
967
1240
  * {@link file://./../../../dxos/client/services.proto}
968
1241
  */
969
- export interface EdgeAgentService {
970
- queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
971
- createAgent: (request: void, options?: RequestOptions) => Promise<void>;
972
- queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
1242
+ export interface ExportSpaceResponse {
1243
+ archive: SpaceArchive;
973
1244
  }
974
1245
  /**
975
1246
  * Defined in:
976
1247
  * {@link file://./../../../dxos/client/services.proto}
977
1248
  */
978
- export declare enum EdgeStatus {
979
- NOT_CONNECTED = 0,
980
- CONNECTED = 1
1249
+ export interface ImportSpaceRequest {
1250
+ archive: SpaceArchive;
981
1251
  }
982
1252
  /**
983
1253
  * Defined in:
984
1254
  * {@link file://./../../../dxos/client/services.proto}
985
1255
  */
986
- export interface QueryEdgeStatusResponse {
987
- status: EdgeStatus;
1256
+ export interface ImportSpaceResponse {
1257
+ /**
1258
+ * the ID of the new space.
1259
+ */
1260
+ newSpaceId: string;
988
1261
  }
989
1262
  /**
990
1263
  * Defined in:
991
1264
  * {@link file://./../../../dxos/client/services.proto}
992
1265
  */
993
- export interface QueryAgentStatusResponse {
994
- status: QueryAgentStatusResponse.AgentStatus;
995
- }
996
- export declare namespace QueryAgentStatusResponse {
1266
+ export interface SpacesService {
1267
+ createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
1268
+ updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
1269
+ querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
1270
+ updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
1271
+ admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
1272
+ joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
997
1273
  /**
998
- * Defined in:
999
- * {@link file://./../../../dxos/client/services.proto}
1274
+ * Broadcast an ephemeral message to the space swarm.
1000
1275
  */
1001
- enum AgentStatus {
1002
- UNKNOWN = 0,
1003
- ACTIVE = 1,
1004
- INACTIVE = 2,
1005
- NOT_FOUND = 3
1006
- }
1276
+ postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
1277
+ /**
1278
+ * Subscribe to messages from the space swarm.
1279
+ */
1280
+ subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
1281
+ /**
1282
+ * Write credentials to the space control feed.
1283
+ */
1284
+ writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
1285
+ /**
1286
+ * Query credentials from the space control feed.
1287
+ */
1288
+ queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
1289
+ createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
1290
+ exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
1291
+ importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
1007
1292
  }
1008
1293
  /**
1009
1294
  * Defined in:
1010
- * {@link file://./../../../dxos/client/invitation.proto}
1295
+ * {@link file://./../../../dxos/client/services.proto}
1011
1296
  */
1012
- export interface AdmissionKeypair {
1013
- publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1297
+ export interface AcceptInvitationRequest {
1298
+ invitation: Invitation;
1014
1299
  /**
1015
1300
  * Options:
1016
1301
  * - proto3_optional = true
1017
1302
  */
1018
- privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
1303
+ deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
1019
1304
  }
1020
1305
  /**
1021
- * Runtime state of the space object.
1022
- *
1023
1306
  * Defined in:
1024
- * {@link file://./../../../dxos/client/invitation.proto}
1307
+ * {@link file://./../../../dxos/client/services.proto}
1025
1308
  */
1026
- export declare enum SpaceState {
1027
- INVALID = 0,
1028
- SPACE_INACTIVE = 2,
1029
- SPACE_ACTIVE = 6,
1030
- SPACE_CLOSED = 1,
1031
- SPACE_CONTROL_ONLY = 7,
1032
- SPACE_INITIALIZING = 4,
1033
- SPACE_READY = 3,
1034
- SPACE_ERROR = 5,
1035
- SPACE_REQUIRES_MIGRATION = 8
1309
+ export interface AuthenticationRequest {
1310
+ invitationId: string;
1311
+ authCode: string;
1036
1312
  }
1037
1313
  /**
1038
- * Represents the invitation state passed between client and service.
1039
- *
1040
1314
  * Defined in:
1041
- * {@link file://./../../../dxos/client/invitation.proto}
1315
+ * {@link file://./../../../dxos/client/services.proto}
1042
1316
  */
1043
- export interface Invitation {
1044
- /**
1045
- * Local identifier (random).
1046
- */
1317
+ export interface CancelInvitationRequest {
1047
1318
  invitationId: string;
1319
+ }
1320
+ /**
1321
+ * Defined in:
1322
+ * {@link file://./../../../dxos/client/services.proto}
1323
+ */
1324
+ export interface InvitationMethod {
1325
+ created?: Invitation;
1326
+ accepted?: Invitation;
1327
+ }
1328
+ /**
1329
+ * Defined in:
1330
+ * {@link file://./../../../dxos/client/services.proto}
1331
+ */
1332
+ export interface QueryInvitationsResponse {
1333
+ action: QueryInvitationsResponse.Action;
1334
+ type: QueryInvitationsResponse.Type;
1335
+ invitations?: Invitation[];
1048
1336
  /**
1049
- * Determines the behavior of the invitation.
1050
- */
1051
- type: Invitation.Type;
1052
- /**
1053
- * Kind of access the invitation will grant.
1054
- */
1055
- kind: Invitation.Kind;
1056
- /**
1057
- * How the invitation is authenticated.
1058
- */
1059
- authMethod: Invitation.AuthMethod;
1060
- /**
1061
- * Swarm rendezvous (random).
1062
- */
1063
- swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1064
- /**
1065
- * Local state.
1066
- */
1067
- state: Invitation.State;
1068
- /**
1069
- * Timeout for guest to complete invitation once connected (ms).
1070
- *
1071
- * Options:
1072
- * - proto3_optional = true
1073
- */
1074
- timeout?: number;
1075
- /**
1076
- * Guest's identity.
1077
- *
1078
- * Options:
1079
- * - proto3_optional = true
1080
- */
1081
- identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1082
- /**
1083
- * Space to join (only present if kind is SPACE).
1084
- *
1085
- * Options:
1086
- * - proto3_optional = true
1087
- */
1088
- spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1089
- /**
1090
- * Authentication code created by host (only present if auth_method is SHARED_SECRET).
1091
- *
1092
- * Options:
1093
- * - proto3_optional = true
1094
- */
1095
- authCode?: string;
1096
- /**
1097
- * Path or identifier to navigate to after successful authentication.
1098
- *
1099
- * Options:
1100
- * - proto3_optional = true
1101
- */
1102
- target?: string;
1103
- /**
1104
- * Host should resume invitation on startup until timeout.
1105
- *
1106
- * Options:
1107
- * - proto3_optional = true
1108
- */
1109
- persistent?: boolean;
1110
- /**
1111
- * Options:
1112
- * - proto3_optional = true
1113
- */
1114
- created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1115
- /**
1116
- * Options:
1117
- * - proto3_optional = true
1118
- */
1119
- lifetime?: number;
1120
- /**
1121
- * Whether an invitation can be used multiple times.
1122
- *
1123
- * Options:
1124
- * - proto3_optional = true
1125
- */
1126
- multiUse?: boolean;
1127
- /**
1128
- * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
1129
- *
1130
- * Options:
1131
- * - proto3_optional = true
1132
- */
1133
- guestKeypair?: AdmissionKeypair;
1134
- /**
1135
- * Present on Type.DELEGATED invitations.
1136
- *
1137
- * Options:
1138
- * - proto3_optional = true
1139
- */
1140
- delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1141
- /**
1142
- * Role of the admitted member, defaults to ADMIN.
1143
- *
1144
- * Options:
1145
- * - proto3_optional = true
1146
- */
1147
- role?: dxos_halo_credentials.SpaceMember.Role;
1148
- /**
1149
- * Id of a the space to join (only present if kind is SPACE).
1150
- *
1151
1337
  * Options:
1152
1338
  * - proto3_optional = true
1153
1339
  */
1154
- spaceId?: string;
1340
+ existing?: boolean;
1155
1341
  }
1156
- export declare namespace Invitation {
1157
- /**
1158
- * Defined in:
1159
- * {@link file://./../../../dxos/client/invitation.proto}
1160
- */
1161
- enum Type {
1162
- INTERACTIVE = 0,
1163
- DELEGATED = 1,
1164
- MULTIUSE = 2
1165
- }
1166
- /**
1167
- * Defined in:
1168
- * {@link file://./../../../dxos/client/invitation.proto}
1169
- */
1170
- enum Kind {
1171
- DEVICE = 0,
1172
- SPACE = 1
1173
- }
1342
+ export declare namespace QueryInvitationsResponse {
1174
1343
  /**
1175
1344
  * Defined in:
1176
- * {@link file://./../../../dxos/client/invitation.proto}
1345
+ * {@link file://./../../../dxos/client/services.proto}
1177
1346
  */
1178
- enum AuthMethod {
1179
- NONE = 0,
1180
- SHARED_SECRET = 1,
1181
- KNOWN_PUBLIC_KEY = 2
1347
+ enum Action {
1348
+ ADDED = 0,
1349
+ REMOVED = 1,
1350
+ SAVED = 2,
1351
+ LOAD_COMPLETE = 3
1182
1352
  }
1183
1353
  /**
1184
1354
  * Defined in:
1185
- * {@link file://./../../../dxos/client/invitation.proto}
1355
+ * {@link file://./../../../dxos/client/services.proto}
1186
1356
  */
1187
- enum State {
1188
- INIT = 0,
1189
- CONNECTING = 1,
1190
- CONNECTED = 2,
1191
- READY_FOR_AUTHENTICATION = 3,
1192
- AUTHENTICATING = 4,
1193
- SUCCESS = 5,
1194
- CANCELLED = 6,
1195
- TIMEOUT = 7,
1196
- ERROR = 8,
1197
- EXPIRED = 9
1357
+ enum Type {
1358
+ CREATED = 0,
1359
+ ACCEPTED = 1
1198
1360
  }
1199
1361
  }
1200
1362
  /**
1201
1363
  * Defined in:
1202
- * {@link file://./../../../dxos/client/logging.proto}
1364
+ * {@link file://./../../../dxos/client/services.proto}
1203
1365
  */
1204
- export interface Metrics {
1205
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1206
- values?: Metrics.KeyPair[];
1207
- }
1208
- export declare namespace Metrics {
1209
- /**
1210
- * Defined in:
1211
- * {@link file://./../../../dxos/client/logging.proto}
1212
- */
1213
- interface KeyPair {
1214
- /**
1215
- * Options:
1216
- * - proto3_optional = true
1217
- */
1218
- key?: string;
1219
- /**
1220
- * Options:
1221
- * - proto3_optional = true
1222
- */
1223
- value?: dxos_value.Value;
1224
- /**
1225
- * Options:
1226
- * - proto3_optional = true
1227
- */
1228
- stats?: dxos_value.Stats;
1229
- }
1366
+ export interface LoadPersistentInvitationsResponse {
1367
+ invitations?: Invitation[];
1230
1368
  }
1231
1369
  /**
1232
1370
  * Defined in:
1233
- * {@link file://./../../../dxos/client/logging.proto}
1371
+ * {@link file://./../../../dxos/client/services.proto}
1234
1372
  */
1235
- export interface ControlMetricsRequest {
1236
- /**
1237
- * Options:
1238
- * - proto3_optional = true
1239
- */
1240
- reset?: boolean;
1241
- /**
1242
- * Options:
1243
- * - proto3_optional = true
1244
- */
1245
- record?: boolean;
1373
+ export interface InvitationsService {
1374
+ createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
1375
+ acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
1376
+ authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
1377
+ cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
1378
+ queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
1246
1379
  }
1247
1380
  /**
1248
1381
  * Defined in:
1249
- * {@link file://./../../../dxos/client/logging.proto}
1382
+ * {@link file://./../../../dxos/client/services.proto}
1250
1383
  */
1251
- export interface ControlMetricsResponse {
1252
- /**
1253
- * Options:
1254
- * - proto3_optional = true
1255
- */
1256
- recording?: boolean;
1384
+ export declare enum ConnectionState {
1385
+ OFFLINE = 0,
1386
+ ONLINE = 1
1257
1387
  }
1258
1388
  /**
1259
1389
  * Defined in:
1260
- * {@link file://./../../../dxos/client/logging.proto}
1390
+ * {@link file://./../../../dxos/client/services.proto}
1261
1391
  */
1262
- export interface QueryMetricsRequest {
1392
+ export interface NetworkStatus {
1393
+ swarm: ConnectionState;
1394
+ signaling?: NetworkStatus.Signal[];
1395
+ connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
1396
+ }
1397
+ export declare namespace NetworkStatus {
1263
1398
  /**
1264
- * Options:
1265
- * - proto3_optional = true
1399
+ * Defined in:
1400
+ * {@link file://./../../../dxos/client/services.proto}
1266
1401
  */
1267
- interval?: number;
1402
+ interface Signal {
1403
+ server: string;
1404
+ state: dxos_mesh_signal.SignalState;
1405
+ }
1268
1406
  }
1269
1407
  /**
1270
1408
  * Defined in:
1271
- * {@link file://./../../../dxos/client/logging.proto}
1409
+ * {@link file://./../../../dxos/client/services.proto}
1272
1410
  */
1273
- export interface QueryMetricsResponse {
1274
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1275
- metrics: Metrics;
1411
+ export interface UpdateConfigRequest {
1412
+ swarm: ConnectionState;
1276
1413
  }
1277
1414
  /**
1278
1415
  * Defined in:
1279
- * {@link file://./../../../dxos/client/logging.proto}
1416
+ * {@link file://./../../../dxos/client/services.proto}
1280
1417
  */
1281
- export declare enum LogLevel {
1282
- NONE = 0,
1283
- TRACE = 5,
1284
- DEBUG = 10,
1285
- VERBOSE = 11,
1286
- INFO = 12,
1287
- WARN = 13,
1288
- ERROR = 14
1418
+ export interface SubscribeSwarmStateRequest {
1419
+ topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1289
1420
  }
1290
1421
  /**
1291
1422
  * Defined in:
1292
- * {@link file://./../../../dxos/client/logging.proto}
1423
+ * {@link file://./../../../dxos/client/services.proto}
1293
1424
  */
1294
- export interface QueryLogsRequest {
1295
- filters?: QueryLogsRequest.Filter[];
1425
+ export interface NetworkService {
1426
+ updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1427
+ queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1428
+ joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
1429
+ leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
1296
1430
  /**
1297
- * Options:
1298
- * - proto3_optional = true
1431
+ * Query the swarm state without joining it.
1299
1432
  */
1300
- options?: QueryLogsRequest.MatchingOptions;
1433
+ querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
1434
+ subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
1435
+ sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
1436
+ subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
1301
1437
  }
1302
- export declare namespace QueryLogsRequest {
1303
- /**
1304
- * Defined in:
1305
- * {@link file://./../../../dxos/client/logging.proto}
1306
- */
1307
- enum MatchingOptions {
1308
- NONE = 0,
1309
- INCLUSIVE = 1,
1310
- EXPLICIT = 2
1311
- }
1312
- /**
1313
- * Defined in:
1314
- * {@link file://./../../../dxos/client/logging.proto}
1315
- */
1316
- interface Filter {
1317
- level: LogLevel;
1318
- /**
1319
- * Options:
1320
- * - proto3_optional = true
1321
- */
1322
- pattern?: string;
1323
- }
1438
+ /**
1439
+ * Defined in:
1440
+ * {@link file://./../../../dxos/client/services.proto}
1441
+ */
1442
+ export interface EdgeAgentService {
1443
+ queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
1444
+ createAgent: (request: void, options?: RequestOptions) => Promise<void>;
1445
+ queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
1324
1446
  }
1325
1447
  /**
1326
1448
  * Defined in:
1327
- * {@link file://./../../../dxos/client/logging.proto}
1449
+ * {@link file://./../../../dxos/client/services.proto}
1328
1450
  */
1329
- export interface LogEntry {
1330
- level: LogLevel;
1331
- message: string;
1451
+ export interface EdgeStatus {
1452
+ state: EdgeStatus.ConnectionState;
1332
1453
  /**
1333
- * Options:
1334
- * - proto3_optional = true
1454
+ * Latency in ms
1335
1455
  */
1336
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1456
+ rtt: number;
1337
1457
  /**
1338
- * Options:
1339
- * - proto3_optional = true
1458
+ * How long the connection has been up
1340
1459
  */
1341
- meta?: LogEntry.Meta;
1460
+ uptime: number;
1342
1461
  /**
1343
- * Options:
1344
- * - proto3_optional = true
1462
+ * Upload rate in bytes per second
1345
1463
  */
1346
- error?: dxos_error.Error;
1347
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1464
+ rateBytesUp: number;
1465
+ /**
1466
+ * Download rate in bytes per second
1467
+ */
1468
+ rateBytesDown: number;
1469
+ messagesSent: number;
1470
+ messagesReceived: number;
1348
1471
  }
1349
- export declare namespace LogEntry {
1472
+ export declare namespace EdgeStatus {
1350
1473
  /**
1351
1474
  * Defined in:
1352
- * {@link file://./../../../dxos/client/logging.proto}
1475
+ * {@link file://./../../../dxos/client/services.proto}
1353
1476
  */
1354
- interface Meta {
1355
- file: string;
1356
- line: number;
1357
- /**
1358
- * Options:
1359
- * - proto3_optional = true
1360
- */
1361
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1362
- /**
1363
- * Options:
1364
- * - proto3_optional = true
1365
- */
1366
- resourceId?: number;
1477
+ enum ConnectionState {
1478
+ NOT_CONNECTED = 0,
1479
+ CONNECTED = 1
1367
1480
  }
1368
1481
  }
1369
1482
  /**
1370
1483
  * Defined in:
1371
- * {@link file://./../../../dxos/client/logging.proto}
1484
+ * {@link file://./../../../dxos/client/services.proto}
1372
1485
  */
1373
- export interface LoggingService {
1374
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1375
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1376
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1486
+ export interface QueryEdgeStatusResponse {
1487
+ status: EdgeStatus;
1488
+ }
1489
+ /**
1490
+ * Defined in:
1491
+ * {@link file://./../../../dxos/client/services.proto}
1492
+ */
1493
+ export interface QueryAgentStatusResponse {
1494
+ status: QueryAgentStatusResponse.AgentStatus;
1495
+ }
1496
+ export declare namespace QueryAgentStatusResponse {
1497
+ /**
1498
+ * Defined in:
1499
+ * {@link file://./../../../dxos/client/services.proto}
1500
+ */
1501
+ enum AgentStatus {
1502
+ UNKNOWN = 0,
1503
+ ACTIVE = 1,
1504
+ INACTIVE = 2,
1505
+ NOT_FOUND = 3
1506
+ }
1377
1507
  }
1378
1508
  //# sourceMappingURL=services.d.ts.map