@dxos/protocols 0.8.4-main.b97322e → 0.8.4-main.bd9b33e6c8

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