@dxos/protocols 0.8.4-main.c85a9c8dae → 0.8.4-main.cb12b3f963

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