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

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 (296) 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 +142 -7
  159. package/dist/src/edge.d.ts.map +1 -1
  160. package/dist/src/edge.js +114 -2
  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/errors/encoding.d.ts.map +1 -1
  166. package/dist/src/errors/encoding.js.map +1 -1
  167. package/dist/src/errors/errors.d.ts +1 -1
  168. package/dist/src/errors/errors.d.ts.map +1 -1
  169. package/dist/src/errors/errors.js.map +1 -1
  170. package/dist/src/errors/helpers.d.ts.map +1 -1
  171. package/dist/src/errors/helpers.js.map +1 -1
  172. package/dist/src/index.d.ts +8 -7
  173. package/dist/src/index.d.ts.map +1 -1
  174. package/dist/src/index.js +7 -7
  175. package/dist/src/index.js.map +1 -1
  176. package/dist/src/indexing.d.ts +1 -1
  177. package/dist/src/indexing.d.ts.map +1 -1
  178. package/dist/src/indexing.js +1 -1
  179. package/dist/src/indexing.js.map +1 -1
  180. package/dist/src/invitation.d.ts +1 -1
  181. package/dist/src/invitation.d.ts.map +1 -1
  182. package/dist/src/invitation.js +1 -1
  183. package/dist/src/invitation.js.map +1 -1
  184. package/dist/src/proto/gen/dxos/client/services.d.ts +793 -766
  185. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  186. package/dist/src/proto/gen/dxos/client/services.js +103 -100
  187. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  188. package/dist/src/proto/gen/dxos/config.d.ts +28 -2
  189. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  190. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  191. package/dist/src/proto/gen/dxos/echo/service.d.ts +9 -0
  192. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  193. package/dist/src/proto/gen/index.d.ts +2 -0
  194. package/dist/src/proto/gen/index.d.ts.map +1 -1
  195. package/dist/src/proto/gen/index.js +1 -1
  196. package/dist/src/proto/gen/index.js.map +1 -1
  197. package/dist/src/proto/index.d.ts +1 -1
  198. package/dist/src/proto/index.d.ts.map +1 -1
  199. package/dist/src/proto/index.js +0 -1
  200. package/dist/src/proto/index.js.map +1 -1
  201. package/dist/src/queue.d.ts +13 -0
  202. package/dist/src/queue.d.ts.map +1 -1
  203. package/dist/src/queue.js +4 -0
  204. package/dist/src/queue.js.map +1 -1
  205. package/dist/tsconfig.tsbuildinfo +1 -1
  206. package/package.json +13 -15
  207. package/src/FunctionProtocol.ts +100 -0
  208. package/src/automerge.ts +8 -0
  209. package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +3 -3
  210. package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +3 -3
  211. package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +3 -3
  212. package/src/buf/proto/gen/dxos/agent/functions_pb.ts +3 -3
  213. package/src/buf/proto/gen/dxos/bot_pb.ts +3 -3
  214. package/src/buf/proto/gen/dxos/client/invitation_pb.ts +3 -3
  215. package/src/buf/proto/gen/dxos/client/logging_pb.ts +3 -3
  216. package/src/buf/proto/gen/dxos/client/services_pb.ts +84 -29
  217. package/src/buf/proto/gen/dxos/config_pb.ts +43 -10
  218. package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +3 -3
  219. package/src/buf/proto/gen/dxos/devtools/host_pb.ts +3 -3
  220. package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +3 -3
  221. package/src/buf/proto/gen/dxos/echo/blob_pb.ts +3 -3
  222. package/src/buf/proto/gen/dxos/echo/feed_pb.ts +3 -3
  223. package/src/buf/proto/gen/dxos/echo/filter_pb.ts +3 -3
  224. package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +3 -3
  225. package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +3 -3
  226. package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +3 -3
  227. package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +3 -3
  228. package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +3 -3
  229. package/src/buf/proto/gen/dxos/echo/object_pb.ts +3 -3
  230. package/src/buf/proto/gen/dxos/echo/query_pb.ts +3 -3
  231. package/src/buf/proto/gen/dxos/echo/service_pb.ts +21 -4
  232. package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +3 -3
  233. package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +3 -3
  234. package/src/buf/proto/gen/dxos/edge/calls_pb.ts +3 -3
  235. package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +3 -3
  236. package/src/buf/proto/gen/dxos/edge/signal_pb.ts +3 -3
  237. package/src/buf/proto/gen/dxos/error_pb.ts +3 -3
  238. package/src/buf/proto/gen/dxos/field_options_pb.ts +3 -3
  239. package/src/buf/proto/gen/dxos/google_pb.ts +3 -3
  240. package/src/buf/proto/gen/dxos/gravity_pb.ts +3 -3
  241. package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +3 -3
  242. package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +3 -3
  243. package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +3 -3
  244. package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +3 -3
  245. package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +3 -3
  246. package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +3 -3
  247. package/src/buf/proto/gen/dxos/halo/keys_pb.ts +3 -3
  248. package/src/buf/proto/gen/dxos/halo/signed_pb.ts +3 -3
  249. package/src/buf/proto/gen/dxos/iframe_pb.ts +3 -3
  250. package/src/buf/proto/gen/dxos/keys_pb.ts +3 -3
  251. package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +3 -3
  252. package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +3 -3
  253. package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +3 -3
  254. package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +3 -3
  255. package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +3 -3
  256. package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +3 -3
  257. package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +3 -3
  258. package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +3 -3
  259. package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +3 -3
  260. package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +3 -3
  261. package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +3 -3
  262. package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +3 -3
  263. package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +3 -3
  264. package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +3 -3
  265. package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +3 -3
  266. package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +3 -3
  267. package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +3 -3
  268. package/src/buf/proto/gen/dxos/registry_pb.ts +3 -3
  269. package/src/buf/proto/gen/dxos/rpc_pb.ts +3 -3
  270. package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +3 -3
  271. package/src/buf/proto/gen/dxos/service/publisher_pb.ts +3 -3
  272. package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +3 -3
  273. package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +3 -3
  274. package/src/buf/proto/gen/dxos/tracing_pb.ts +3 -3
  275. package/src/buf/proto/gen/dxos/type_pb.ts +3 -3
  276. package/src/buf/proto/gen/dxos/value_pb.ts +3 -3
  277. package/src/buf/proto/gen/example/testing/data_pb.ts +3 -3
  278. package/src/buf/proto/gen/example/testing/rpc_pb.ts +3 -3
  279. package/src/edge-error.ts +25 -18
  280. package/src/edge.ts +263 -8
  281. package/src/errors/base-errors.ts +2 -0
  282. package/src/errors/encoding.ts +2 -1
  283. package/src/errors/errors.ts +2 -1
  284. package/src/errors/helpers.ts +2 -1
  285. package/src/index.ts +8 -7
  286. package/src/indexing.ts +1 -1
  287. package/src/invitation.ts +1 -1
  288. package/src/proto/dxos/client/services.proto +20 -3
  289. package/src/proto/dxos/config.proto +36 -40
  290. package/src/proto/dxos/echo/service.proto +11 -0
  291. package/src/proto/gen/dxos/client/services.ts +793 -766
  292. package/src/proto/gen/dxos/config.ts +28 -2
  293. package/src/proto/gen/dxos/echo/service.ts +9 -0
  294. package/src/proto/gen/index.ts +3 -1
  295. package/src/proto/index.ts +1 -1
  296. package/src/queue.ts +18 -0
@@ -13,447 +13,817 @@ 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;
305
- }
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>;
319
- }
320
- /**
321
- * Defined in:
322
- * {@link file://./../../../dxos/client/services.proto}
323
- */
324
- export declare enum DeviceKind {
325
- CURRENT = 0,
326
- TRUSTED = 1
327
- }
328
- /**
329
- * Defined in:
330
- * {@link file://./../../../dxos/client/services.proto}
331
- */
332
- export interface Device {
333
- deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
334
- kind: DeviceKind;
347
+ meta?: LogEntry.Meta;
335
348
  /**
336
349
  * Options:
337
350
  * - proto3_optional = true
338
351
  */
339
- profile?: dxos_halo_credentials.DeviceProfileDocument;
340
- presence: Device.PresenceState;
352
+ error?: dxos_error.Error;
353
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
341
354
  }
342
- export declare namespace Device {
355
+ export declare namespace LogEntry {
343
356
  /**
344
357
  * Defined in:
345
- * {@link file://./../../../dxos/client/services.proto}
358
+ * {@link file://./../../../dxos/client/logging.proto}
346
359
  */
347
- enum PresenceState {
348
- OFFLINE = 0,
349
- ONLINE = 1,
350
- REMOVED = 2
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;
351
373
  }
352
374
  }
353
375
  /**
354
376
  * Defined in:
355
- * {@link file://./../../../dxos/client/services.proto}
377
+ * {@link file://./../../../dxos/client/logging.proto}
356
378
  */
357
- export interface QueryDevicesResponse {
358
- devices?: Device[];
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>;
359
383
  }
360
384
  /**
361
385
  * Defined in:
362
386
  * {@link file://./../../../dxos/client/services.proto}
363
387
  */
364
- export interface DevicesService {
365
- updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
366
- queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
388
+ export declare enum SystemStatus {
389
+ INACTIVE = 0,
390
+ ACTIVE = 1
367
391
  }
368
392
  /**
369
393
  * Defined in:
370
394
  * {@link file://./../../../dxos/client/services.proto}
371
395
  */
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"]>[];
396
+ export interface UpdateStatusRequest {
397
+ status: SystemStatus;
380
398
  }
381
399
  /**
382
400
  * Defined in:
383
401
  * {@link file://./../../../dxos/client/services.proto}
384
402
  */
385
- export interface ContactBook {
386
- contacts?: Contact[];
403
+ export interface QueryStatusRequest {
404
+ /**
405
+ * Options:
406
+ * - proto3_optional = true
407
+ */
408
+ interval?: number;
387
409
  }
388
410
  /**
389
411
  * Defined in:
390
412
  * {@link file://./../../../dxos/client/services.proto}
391
413
  */
392
- export interface ContactsService {
393
- getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
394
- queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
414
+ export interface QueryStatusResponse {
415
+ status: SystemStatus;
395
416
  }
396
417
  /**
397
418
  * Defined in:
398
419
  * {@link file://./../../../dxos/client/services.proto}
399
420
  */
400
- export interface SpaceMember {
401
- identity: Identity;
402
- presence: SpaceMember.PresenceState;
403
- peerStates?: dxos_mesh_presence.PeerState[];
404
- role: dxos_halo_credentials.SpaceMember.Role;
421
+ export interface GetDiagnosticsRequest {
422
+ /**
423
+ * Options:
424
+ * - proto3_optional = true
425
+ */
426
+ keys?: GetDiagnosticsRequest.KEY_OPTION;
405
427
  }
406
- export declare namespace SpaceMember {
428
+ export declare namespace GetDiagnosticsRequest {
407
429
  /**
408
430
  * Defined in:
409
431
  * {@link file://./../../../dxos/client/services.proto}
410
432
  */
411
- enum PresenceState {
412
- OFFLINE = 0,
413
- ONLINE = 1
433
+ enum KEY_OPTION {
434
+ NONE = 0,
435
+ TRUNCATE = 1,
436
+ HUMANIZE = 2
414
437
  }
415
438
  }
416
439
  /**
417
440
  * Defined in:
418
441
  * {@link file://./../../../dxos/client/services.proto}
419
442
  */
420
- export interface Space {
421
- id: string;
422
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
423
- state: SpaceState;
443
+ export interface GetDiagnosticsResponse {
444
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
445
+ diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
446
+ }
447
+ /**
448
+ * Defined in:
449
+ * {@link file://./../../../dxos/client/services.proto}
450
+ */
451
+ export interface Platform {
452
+ type: Platform.PLATFORM_TYPE;
424
453
  /**
454
+ * The User-Agent string from a browser
455
+ *
425
456
  * Options:
426
457
  * - proto3_optional = true
427
458
  */
428
- pipeline?: Space.PipelineState;
459
+ userAgent?: string;
429
460
  /**
461
+ * e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
462
+ *
430
463
  * Options:
431
464
  * - proto3_optional = true
432
465
  */
433
- error?: dxos_error.Error;
466
+ platform?: string;
434
467
  /**
468
+ * the Node.JS arch string, e.g. 'arm64', 'x64'
469
+ *
435
470
  * Options:
436
471
  * - proto3_optional = true
437
472
  */
438
- edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
439
- members?: SpaceMember[];
473
+ arch?: string;
440
474
  /**
475
+ * the node.js version string
476
+ *
441
477
  * Options:
442
478
  * - proto3_optional = true
443
479
  */
444
- creator?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
480
+ runtime?: string;
445
481
  /**
482
+ * the number of seconds the client has been up
483
+ *
446
484
  * Options:
447
485
  * - proto3_optional = true
448
486
  */
449
- cache?: dxos_echo_metadata.SpaceCache;
450
- metrics: Space.Metrics;
451
- }
452
- export declare namespace Space {
487
+ uptime?: number;
453
488
  /**
454
- * Defined in:
455
- * {@link file://./../../../dxos/client/services.proto}
456
- */
489
+ * e.g. NodeJS.MemoryUsage, subject to change
490
+ *
491
+ * Options:
492
+ * - proto3_optional = true
493
+ */
494
+ memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
495
+ }
496
+ export declare namespace Platform {
497
+ /**
498
+ * Defined in:
499
+ * {@link file://./../../../dxos/client/services.proto}
500
+ */
501
+ enum PLATFORM_TYPE {
502
+ BROWSER = 0,
503
+ SHARED_WORKER = 1,
504
+ NODE = 2
505
+ }
506
+ }
507
+ /**
508
+ * Defined in:
509
+ * {@link file://./../../../dxos/client/services.proto}
510
+ */
511
+ export interface SystemService {
512
+ /**
513
+ * Get the static config of the client.
514
+ */
515
+ getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
516
+ /**
517
+ * Get the diagnostics snapshot.
518
+ */
519
+ getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
520
+ /**
521
+ * Update the status of the client. Used to re-activate an inactive client.
522
+ */
523
+ updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
524
+ /**
525
+ * Stream the status of the client.
526
+ */
527
+ queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
528
+ /**
529
+ * Reset the client.
530
+ */
531
+ reset: (request: void, options?: RequestOptions) => Promise<void>;
532
+ /**
533
+ * Get platform Information
534
+ */
535
+ getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
536
+ }
537
+ /**
538
+ * Defined in:
539
+ * {@link file://./../../../dxos/client/services.proto}
540
+ */
541
+ export interface Identity {
542
+ did: string;
543
+ identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
544
+ /**
545
+ * Options:
546
+ * - proto3_optional = true
547
+ */
548
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
549
+ /**
550
+ * Options:
551
+ * - proto3_optional = true
552
+ */
553
+ profile?: dxos_halo_credentials.ProfileDocument;
554
+ }
555
+ /**
556
+ * Defined in:
557
+ * {@link file://./../../../dxos/client/services.proto}
558
+ */
559
+ export interface RequestRecoveryChallengeResponse {
560
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
561
+ controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
562
+ challenge: string;
563
+ }
564
+ /**
565
+ * Defined in:
566
+ * {@link file://./../../../dxos/client/services.proto}
567
+ */
568
+ export interface RecoverIdentityRequest {
569
+ recoveryCode?: string;
570
+ external?: RecoverIdentityRequest.ExternalSignature;
571
+ token?: string;
572
+ }
573
+ export declare namespace RecoverIdentityRequest {
574
+ /**
575
+ * Defined in:
576
+ * {@link file://./../../../dxos/client/services.proto}
577
+ */
578
+ interface ExternalSignature {
579
+ lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
580
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
581
+ controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
582
+ signature: Uint8Array;
583
+ /**
584
+ * Options:
585
+ * - proto3_optional = true
586
+ */
587
+ clientDataJson?: Uint8Array;
588
+ /**
589
+ * Options:
590
+ * - proto3_optional = true
591
+ */
592
+ authenticatorData?: Uint8Array;
593
+ }
594
+ }
595
+ /**
596
+ * Defined in:
597
+ * {@link file://./../../../dxos/client/services.proto}
598
+ */
599
+ export interface RecoveryCredentialData {
600
+ /**
601
+ * Recovery key used to validate recovery challenge signature.
602
+ */
603
+ recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
604
+ /**
605
+ * Public key used to identify the recovery key.
606
+ */
607
+ lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
608
+ /**
609
+ * Algorithm used to generate the recovery key.
610
+ */
611
+ algorithm: string;
612
+ }
613
+ /**
614
+ * Defined in:
615
+ * {@link file://./../../../dxos/client/services.proto}
616
+ */
617
+ export interface CreateRecoveryCredentialRequest {
618
+ /**
619
+ * If not provided, a new key will be generated.
620
+ *
621
+ * Options:
622
+ * - proto3_optional = true
623
+ */
624
+ data?: RecoveryCredentialData;
625
+ }
626
+ /**
627
+ * Defined in:
628
+ * {@link file://./../../../dxos/client/services.proto}
629
+ */
630
+ export interface CreateRecoveryCredentialResponse {
631
+ /**
632
+ * Options:
633
+ * - proto3_optional = true
634
+ */
635
+ recoveryCode?: string;
636
+ }
637
+ /**
638
+ * Defined in:
639
+ * {@link file://./../../../dxos/client/services.proto}
640
+ */
641
+ export interface QueryIdentityResponse {
642
+ /**
643
+ * Options:
644
+ * - proto3_optional = true
645
+ */
646
+ identity?: Identity;
647
+ }
648
+ /**
649
+ * Defined in:
650
+ * {@link file://./../../../dxos/client/services.proto}
651
+ */
652
+ export interface SignPresentationRequest {
653
+ presentation: dxos_halo_credentials.Presentation;
654
+ /**
655
+ * Options:
656
+ * - proto3_optional = true
657
+ */
658
+ nonce?: Uint8Array;
659
+ }
660
+ /**
661
+ * Defined in:
662
+ * {@link file://./../../../dxos/client/services.proto}
663
+ */
664
+ export interface CreateIdentityRequest {
665
+ /**
666
+ * Options:
667
+ * - proto3_optional = true
668
+ */
669
+ profile?: dxos_halo_credentials.ProfileDocument;
670
+ /**
671
+ * Options:
672
+ * - proto3_optional = true
673
+ */
674
+ deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
675
+ }
676
+ /**
677
+ * Defined in:
678
+ * {@link file://./../../../dxos/client/services.proto}
679
+ */
680
+ export interface IdentityService {
681
+ createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
682
+ requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
683
+ recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
684
+ createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
685
+ queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
686
+ updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
687
+ signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
688
+ createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
689
+ }
690
+ /**
691
+ * Defined in:
692
+ * {@link file://./../../../dxos/client/services.proto}
693
+ */
694
+ export declare enum DeviceKind {
695
+ CURRENT = 0,
696
+ TRUSTED = 1
697
+ }
698
+ /**
699
+ * Defined in:
700
+ * {@link file://./../../../dxos/client/services.proto}
701
+ */
702
+ export interface Device {
703
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
704
+ kind: DeviceKind;
705
+ /**
706
+ * Options:
707
+ * - proto3_optional = true
708
+ */
709
+ profile?: dxos_halo_credentials.DeviceProfileDocument;
710
+ presence: Device.PresenceState;
711
+ }
712
+ export declare namespace Device {
713
+ /**
714
+ * Defined in:
715
+ * {@link file://./../../../dxos/client/services.proto}
716
+ */
717
+ enum PresenceState {
718
+ OFFLINE = 0,
719
+ ONLINE = 1,
720
+ REMOVED = 2
721
+ }
722
+ }
723
+ /**
724
+ * Defined in:
725
+ * {@link file://./../../../dxos/client/services.proto}
726
+ */
727
+ export interface QueryDevicesResponse {
728
+ devices?: Device[];
729
+ }
730
+ /**
731
+ * Defined in:
732
+ * {@link file://./../../../dxos/client/services.proto}
733
+ */
734
+ export interface DevicesService {
735
+ updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
736
+ queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
737
+ }
738
+ /**
739
+ * Defined in:
740
+ * {@link file://./../../../dxos/client/services.proto}
741
+ */
742
+ export interface Contact {
743
+ identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
744
+ /**
745
+ * Options:
746
+ * - proto3_optional = true
747
+ */
748
+ profile?: dxos_halo_credentials.ProfileDocument;
749
+ commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
750
+ }
751
+ /**
752
+ * Defined in:
753
+ * {@link file://./../../../dxos/client/services.proto}
754
+ */
755
+ export interface ContactBook {
756
+ contacts?: Contact[];
757
+ }
758
+ /**
759
+ * Defined in:
760
+ * {@link file://./../../../dxos/client/services.proto}
761
+ */
762
+ export interface ContactsService {
763
+ getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
764
+ queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
765
+ }
766
+ /**
767
+ * Defined in:
768
+ * {@link file://./../../../dxos/client/services.proto}
769
+ */
770
+ export interface SpaceMember {
771
+ identity: Identity;
772
+ presence: SpaceMember.PresenceState;
773
+ peerStates?: dxos_mesh_presence.PeerState[];
774
+ role: dxos_halo_credentials.SpaceMember.Role;
775
+ }
776
+ export declare namespace SpaceMember {
777
+ /**
778
+ * Defined in:
779
+ * {@link file://./../../../dxos/client/services.proto}
780
+ */
781
+ enum PresenceState {
782
+ OFFLINE = 0,
783
+ ONLINE = 1
784
+ }
785
+ }
786
+ /**
787
+ * Defined in:
788
+ * {@link file://./../../../dxos/client/services.proto}
789
+ */
790
+ export interface Space {
791
+ id: string;
792
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
793
+ state: SpaceState;
794
+ /**
795
+ * Options:
796
+ * - proto3_optional = true
797
+ */
798
+ pipeline?: Space.PipelineState;
799
+ /**
800
+ * Options:
801
+ * - proto3_optional = true
802
+ */
803
+ error?: dxos_error.Error;
804
+ /**
805
+ * Options:
806
+ * - proto3_optional = true
807
+ */
808
+ edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
809
+ members?: SpaceMember[];
810
+ /**
811
+ * Options:
812
+ * - proto3_optional = true
813
+ */
814
+ creator?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
815
+ /**
816
+ * Options:
817
+ * - proto3_optional = true
818
+ */
819
+ cache?: dxos_echo_metadata.SpaceCache;
820
+ metrics: Space.Metrics;
821
+ }
822
+ export declare namespace Space {
823
+ /**
824
+ * Defined in:
825
+ * {@link file://./../../../dxos/client/services.proto}
826
+ */
457
827
  interface Metrics {
458
828
  /**
459
829
  * Options:
@@ -714,665 +1084,322 @@ export interface CreateEpochResponse {
714
1084
  */
715
1085
  export interface UpdateMemberRoleRequest {
716
1086
  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[];
1087
+ memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1088
+ newRole: dxos_halo_credentials.SpaceMember.Role;
895
1089
  }
896
1090
  /**
897
1091
  * Defined in:
898
1092
  * {@link file://./../../../dxos/client/services.proto}
899
1093
  */
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>;
1094
+ export interface AdmitContactRequest {
1095
+ contact: Contact;
1096
+ role: dxos_halo_credentials.SpaceMember.Role;
1097
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
906
1098
  }
907
1099
  /**
908
1100
  * Defined in:
909
1101
  * {@link file://./../../../dxos/client/services.proto}
910
1102
  */
911
- export declare enum ConnectionState {
912
- OFFLINE = 0,
913
- ONLINE = 1
1103
+ export interface ContactAdmission {
1104
+ credential: dxos_halo_credentials.Credential;
914
1105
  }
915
1106
  /**
916
1107
  * Defined in:
917
1108
  * {@link file://./../../../dxos/client/services.proto}
918
1109
  */
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
- }
1110
+ export interface JoinSpaceResponse {
1111
+ space: Space;
933
1112
  }
934
1113
  /**
935
1114
  * Defined in:
936
1115
  * {@link file://./../../../dxos/client/services.proto}
937
1116
  */
938
- export interface UpdateConfigRequest {
939
- swarm: ConnectionState;
1117
+ export interface JoinBySpaceKeyRequest {
1118
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
940
1119
  }
941
1120
  /**
942
1121
  * Defined in:
943
1122
  * {@link file://./../../../dxos/client/services.proto}
944
1123
  */
945
- export interface SubscribeSwarmStateRequest {
946
- topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1124
+ export interface SpaceArchive {
1125
+ filename: string;
1126
+ contents: Uint8Array;
947
1127
  }
948
1128
  /**
949
1129
  * Defined in:
950
1130
  * {@link file://./../../../dxos/client/services.proto}
951
1131
  */
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>;
1132
+ export interface ExportSpaceRequest {
1133
+ spaceId: string;
964
1134
  }
965
1135
  /**
966
1136
  * Defined in:
967
1137
  * {@link file://./../../../dxos/client/services.proto}
968
1138
  */
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>;
1139
+ export interface ExportSpaceResponse {
1140
+ archive: SpaceArchive;
973
1141
  }
974
1142
  /**
975
1143
  * Defined in:
976
1144
  * {@link file://./../../../dxos/client/services.proto}
977
1145
  */
978
- export declare enum EdgeStatus {
979
- NOT_CONNECTED = 0,
980
- CONNECTED = 1
1146
+ export interface ImportSpaceRequest {
1147
+ archive: SpaceArchive;
981
1148
  }
982
1149
  /**
983
1150
  * Defined in:
984
1151
  * {@link file://./../../../dxos/client/services.proto}
985
1152
  */
986
- export interface QueryEdgeStatusResponse {
987
- status: EdgeStatus;
1153
+ export interface ImportSpaceResponse {
1154
+ /**
1155
+ * the ID of the new space.
1156
+ */
1157
+ newSpaceId: string;
988
1158
  }
989
1159
  /**
990
1160
  * Defined in:
991
1161
  * {@link file://./../../../dxos/client/services.proto}
992
1162
  */
993
- export interface QueryAgentStatusResponse {
994
- status: QueryAgentStatusResponse.AgentStatus;
995
- }
996
- export declare namespace QueryAgentStatusResponse {
1163
+ export interface SpacesService {
1164
+ createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
1165
+ updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
1166
+ querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
1167
+ updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
1168
+ admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
1169
+ joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
997
1170
  /**
998
- * Defined in:
999
- * {@link file://./../../../dxos/client/services.proto}
1171
+ * Broadcast an ephemeral message to the space swarm.
1000
1172
  */
1001
- enum AgentStatus {
1002
- UNKNOWN = 0,
1003
- ACTIVE = 1,
1004
- INACTIVE = 2,
1005
- NOT_FOUND = 3
1006
- }
1173
+ postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
1174
+ /**
1175
+ * Subscribe to messages from the space swarm.
1176
+ */
1177
+ subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
1178
+ /**
1179
+ * Write credentials to the space control feed.
1180
+ */
1181
+ writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
1182
+ /**
1183
+ * Query credentials from the space control feed.
1184
+ */
1185
+ queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
1186
+ createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
1187
+ exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
1188
+ importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
1007
1189
  }
1008
1190
  /**
1009
1191
  * Defined in:
1010
- * {@link file://./../../../dxos/client/invitation.proto}
1192
+ * {@link file://./../../../dxos/client/services.proto}
1011
1193
  */
1012
- export interface AdmissionKeypair {
1013
- publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1194
+ export interface AcceptInvitationRequest {
1195
+ invitation: Invitation;
1014
1196
  /**
1015
1197
  * Options:
1016
1198
  * - proto3_optional = true
1017
1199
  */
1018
- privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
1200
+ deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
1019
1201
  }
1020
1202
  /**
1021
- * Runtime state of the space object.
1022
- *
1023
1203
  * Defined in:
1024
- * {@link file://./../../../dxos/client/invitation.proto}
1204
+ * {@link file://./../../../dxos/client/services.proto}
1025
1205
  */
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
1206
+ export interface AuthenticationRequest {
1207
+ invitationId: string;
1208
+ authCode: string;
1036
1209
  }
1037
1210
  /**
1038
- * Represents the invitation state passed between client and service.
1039
- *
1040
1211
  * Defined in:
1041
- * {@link file://./../../../dxos/client/invitation.proto}
1212
+ * {@link file://./../../../dxos/client/services.proto}
1042
1213
  */
1043
- export interface Invitation {
1044
- /**
1045
- * Local identifier (random).
1046
- */
1214
+ export interface CancelInvitationRequest {
1047
1215
  invitationId: string;
1216
+ }
1217
+ /**
1218
+ * Defined in:
1219
+ * {@link file://./../../../dxos/client/services.proto}
1220
+ */
1221
+ export interface InvitationMethod {
1222
+ created?: Invitation;
1223
+ accepted?: Invitation;
1224
+ }
1225
+ /**
1226
+ * Defined in:
1227
+ * {@link file://./../../../dxos/client/services.proto}
1228
+ */
1229
+ export interface QueryInvitationsResponse {
1230
+ action: QueryInvitationsResponse.Action;
1231
+ type: QueryInvitationsResponse.Type;
1232
+ invitations?: Invitation[];
1048
1233
  /**
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
1234
  * Options:
1152
1235
  * - proto3_optional = true
1153
1236
  */
1154
- spaceId?: string;
1237
+ existing?: boolean;
1155
1238
  }
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
- }
1239
+ export declare namespace QueryInvitationsResponse {
1174
1240
  /**
1175
1241
  * Defined in:
1176
- * {@link file://./../../../dxos/client/invitation.proto}
1242
+ * {@link file://./../../../dxos/client/services.proto}
1177
1243
  */
1178
- enum AuthMethod {
1179
- NONE = 0,
1180
- SHARED_SECRET = 1,
1181
- KNOWN_PUBLIC_KEY = 2
1244
+ enum Action {
1245
+ ADDED = 0,
1246
+ REMOVED = 1,
1247
+ SAVED = 2,
1248
+ LOAD_COMPLETE = 3
1182
1249
  }
1183
1250
  /**
1184
1251
  * Defined in:
1185
- * {@link file://./../../../dxos/client/invitation.proto}
1252
+ * {@link file://./../../../dxos/client/services.proto}
1186
1253
  */
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
1254
+ enum Type {
1255
+ CREATED = 0,
1256
+ ACCEPTED = 1
1198
1257
  }
1199
1258
  }
1200
1259
  /**
1201
1260
  * Defined in:
1202
- * {@link file://./../../../dxos/client/logging.proto}
1261
+ * {@link file://./../../../dxos/client/services.proto}
1203
1262
  */
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
- }
1263
+ export interface LoadPersistentInvitationsResponse {
1264
+ invitations?: Invitation[];
1230
1265
  }
1231
1266
  /**
1232
1267
  * Defined in:
1233
- * {@link file://./../../../dxos/client/logging.proto}
1268
+ * {@link file://./../../../dxos/client/services.proto}
1234
1269
  */
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;
1270
+ export interface InvitationsService {
1271
+ createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
1272
+ acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
1273
+ authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
1274
+ cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
1275
+ queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
1246
1276
  }
1247
1277
  /**
1248
1278
  * Defined in:
1249
- * {@link file://./../../../dxos/client/logging.proto}
1279
+ * {@link file://./../../../dxos/client/services.proto}
1250
1280
  */
1251
- export interface ControlMetricsResponse {
1252
- /**
1253
- * Options:
1254
- * - proto3_optional = true
1255
- */
1256
- recording?: boolean;
1281
+ export declare enum ConnectionState {
1282
+ OFFLINE = 0,
1283
+ ONLINE = 1
1257
1284
  }
1258
1285
  /**
1259
1286
  * Defined in:
1260
- * {@link file://./../../../dxos/client/logging.proto}
1287
+ * {@link file://./../../../dxos/client/services.proto}
1261
1288
  */
1262
- export interface QueryMetricsRequest {
1289
+ export interface NetworkStatus {
1290
+ swarm: ConnectionState;
1291
+ signaling?: NetworkStatus.Signal[];
1292
+ connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
1293
+ }
1294
+ export declare namespace NetworkStatus {
1263
1295
  /**
1264
- * Options:
1265
- * - proto3_optional = true
1296
+ * Defined in:
1297
+ * {@link file://./../../../dxos/client/services.proto}
1266
1298
  */
1267
- interval?: number;
1299
+ interface Signal {
1300
+ server: string;
1301
+ state: dxos_mesh_signal.SignalState;
1302
+ }
1268
1303
  }
1269
1304
  /**
1270
1305
  * Defined in:
1271
- * {@link file://./../../../dxos/client/logging.proto}
1306
+ * {@link file://./../../../dxos/client/services.proto}
1272
1307
  */
1273
- export interface QueryMetricsResponse {
1274
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1275
- metrics: Metrics;
1308
+ export interface UpdateConfigRequest {
1309
+ swarm: ConnectionState;
1276
1310
  }
1277
1311
  /**
1278
1312
  * Defined in:
1279
- * {@link file://./../../../dxos/client/logging.proto}
1313
+ * {@link file://./../../../dxos/client/services.proto}
1280
1314
  */
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
1315
+ export interface SubscribeSwarmStateRequest {
1316
+ topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1289
1317
  }
1290
1318
  /**
1291
1319
  * Defined in:
1292
- * {@link file://./../../../dxos/client/logging.proto}
1320
+ * {@link file://./../../../dxos/client/services.proto}
1293
1321
  */
1294
- export interface QueryLogsRequest {
1295
- filters?: QueryLogsRequest.Filter[];
1322
+ export interface NetworkService {
1323
+ updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1324
+ queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1325
+ joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
1326
+ leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
1296
1327
  /**
1297
- * Options:
1298
- * - proto3_optional = true
1328
+ * Query the swarm state without joining it.
1299
1329
  */
1300
- options?: QueryLogsRequest.MatchingOptions;
1330
+ querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
1331
+ subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
1332
+ sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
1333
+ subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
1301
1334
  }
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
- }
1335
+ /**
1336
+ * Defined in:
1337
+ * {@link file://./../../../dxos/client/services.proto}
1338
+ */
1339
+ export interface EdgeAgentService {
1340
+ queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
1341
+ createAgent: (request: void, options?: RequestOptions) => Promise<void>;
1342
+ queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
1324
1343
  }
1325
1344
  /**
1326
1345
  * Defined in:
1327
- * {@link file://./../../../dxos/client/logging.proto}
1346
+ * {@link file://./../../../dxos/client/services.proto}
1328
1347
  */
1329
- export interface LogEntry {
1330
- level: LogLevel;
1331
- message: string;
1348
+ export interface EdgeStatus {
1349
+ state: EdgeStatus.ConnectionState;
1332
1350
  /**
1333
- * Options:
1334
- * - proto3_optional = true
1351
+ * Latency in ms
1335
1352
  */
1336
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1353
+ rtt: number;
1337
1354
  /**
1338
- * Options:
1339
- * - proto3_optional = true
1355
+ * How long the connection has been up
1340
1356
  */
1341
- meta?: LogEntry.Meta;
1357
+ uptime: number;
1342
1358
  /**
1343
- * Options:
1344
- * - proto3_optional = true
1359
+ * Upload rate in bytes per second
1345
1360
  */
1346
- error?: dxos_error.Error;
1347
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1361
+ rateBytesUp: number;
1362
+ /**
1363
+ * Download rate in bytes per second
1364
+ */
1365
+ rateBytesDown: number;
1366
+ messagesSent: number;
1367
+ messagesReceived: number;
1348
1368
  }
1349
- export declare namespace LogEntry {
1369
+ export declare namespace EdgeStatus {
1350
1370
  /**
1351
1371
  * Defined in:
1352
- * {@link file://./../../../dxos/client/logging.proto}
1372
+ * {@link file://./../../../dxos/client/services.proto}
1353
1373
  */
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;
1374
+ enum ConnectionState {
1375
+ NOT_CONNECTED = 0,
1376
+ CONNECTED = 1
1367
1377
  }
1368
1378
  }
1369
1379
  /**
1370
1380
  * Defined in:
1371
- * {@link file://./../../../dxos/client/logging.proto}
1381
+ * {@link file://./../../../dxos/client/services.proto}
1372
1382
  */
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>;
1383
+ export interface QueryEdgeStatusResponse {
1384
+ status: EdgeStatus;
1385
+ }
1386
+ /**
1387
+ * Defined in:
1388
+ * {@link file://./../../../dxos/client/services.proto}
1389
+ */
1390
+ export interface QueryAgentStatusResponse {
1391
+ status: QueryAgentStatusResponse.AgentStatus;
1392
+ }
1393
+ export declare namespace QueryAgentStatusResponse {
1394
+ /**
1395
+ * Defined in:
1396
+ * {@link file://./../../../dxos/client/services.proto}
1397
+ */
1398
+ enum AgentStatus {
1399
+ UNKNOWN = 0,
1400
+ ACTIVE = 1,
1401
+ INACTIVE = 2,
1402
+ NOT_FOUND = 3
1403
+ }
1377
1404
  }
1378
1405
  //# sourceMappingURL=services.d.ts.map