@dxos/protocols 0.8.4-main.fbb7a13 → 0.8.4-main.fcc0d83b33

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