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

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