@dxos/protocols 0.8.4-main.937b3ca → 0.8.4-main.9be5663bfe

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