@dxos/protocols 0.8.4-main.3eb6e50203 → 0.8.4-main.3fbcb4aa9b

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