@dxos/protocols 0.8.4-main.fffef41 → 0.8.4-staging.60fe92afc8

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