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

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