@dxos/protocols 0.8.4-main.ef1bc66f44 → 0.8.4-main.f466a3d56e

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