@dxos/client 2.33.9-dev.6efa8ddf → 2.33.9-dev.8e92e630

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 (57) hide show
  1. package/dist/browser.js +18 -11
  2. package/dist/src/proto/gen/dxos/client.d.ts +18 -216
  3. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
  4. package/dist/src/proto/gen/dxos/client.js +0 -4
  5. package/dist/src/proto/gen/dxos/client.js.map +1 -1
  6. package/dist/src/proto/gen/dxos/config.d.ts +0 -457
  7. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  8. package/dist/src/proto/gen/dxos/config.js +0 -10
  9. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  10. package/dist/src/proto/gen/dxos/credentials.d.ts +0 -39
  11. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  12. package/dist/src/proto/gen/dxos/devtools.d.ts +30 -266
  13. package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
  14. package/dist/src/proto/gen/dxos/echo/feed.d.ts +6 -65
  15. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  16. package/dist/src/proto/gen/dxos/echo/feed.js +0 -4
  17. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
  18. package/dist/src/proto/gen/dxos/echo/invitation.d.ts +3 -19
  19. package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
  20. package/dist/src/proto/gen/dxos/echo/invitation.js +0 -6
  21. package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
  22. package/dist/src/proto/gen/dxos/echo/service.d.ts +13 -49
  23. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  24. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +13 -45
  25. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  26. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +2 -9
  27. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  28. package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -44
  29. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  30. package/dist/src/proto/gen/dxos/halo/keys.js +0 -4
  31. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
  32. package/dist/src/proto/gen/dxos/rpc.d.ts +8 -48
  33. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  34. package/dist/src/proto/gen/dxos/rpc.js +0 -4
  35. package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
  36. package/dist/src/proto/gen/google/protobuf.d.ts +80 -80
  37. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  38. package/dist/src/proto/gen/index.d.ts.map +1 -1
  39. package/dist/src/proto/gen/index.js +1 -1
  40. package/dist/src/proto/gen/index.js.map +1 -1
  41. package/dist/src/services/services.test.js +1 -3
  42. package/dist/src/services/services.test.js.map +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +17 -17
  45. package/src/proto/gen/dxos/client.ts +18 -216
  46. package/src/proto/gen/dxos/config.ts +0 -457
  47. package/src/proto/gen/dxos/credentials.ts +0 -39
  48. package/src/proto/gen/dxos/devtools.ts +30 -266
  49. package/src/proto/gen/dxos/echo/feed.ts +6 -65
  50. package/src/proto/gen/dxos/echo/invitation.ts +3 -19
  51. package/src/proto/gen/dxos/echo/service.ts +13 -49
  52. package/src/proto/gen/dxos/echo/snapshot.ts +13 -45
  53. package/src/proto/gen/dxos/echo/timeframe.ts +2 -9
  54. package/src/proto/gen/dxos/halo/keys.ts +2 -44
  55. package/src/proto/gen/dxos/rpc.ts +8 -48
  56. package/src/proto/gen/google/protobuf.ts +80 -80
  57. package/src/proto/gen/index.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client",
3
- "version": "2.33.9-dev.6efa8ddf",
3
+ "version": "2.33.9-dev.8e92e630",
4
4
  "license": "MIT",
5
5
  "author": "DXOS.org",
6
6
  "main": "dist/src/index.js",
@@ -14,14 +14,14 @@
14
14
  "src"
15
15
  ],
16
16
  "dependencies": {
17
- "@dxos/async": "2.33.9-dev.6efa8ddf",
18
- "@dxos/codec-protobuf": "2.33.9-dev.6efa8ddf",
19
- "@dxos/config": "2.33.9-dev.6efa8ddf",
20
- "@dxos/debug": "2.33.9-dev.6efa8ddf",
21
- "@dxos/model-factory": "2.33.9-dev.6efa8ddf",
22
- "@dxos/protocols": "2.33.9-dev.6efa8ddf",
23
- "@dxos/rpc": "2.33.9-dev.6efa8ddf",
24
- "@dxos/util": "2.33.9-dev.6efa8ddf",
17
+ "@dxos/async": "2.33.9-dev.8e92e630",
18
+ "@dxos/codec-protobuf": "2.33.9-dev.8e92e630",
19
+ "@dxos/config": "2.33.9-dev.8e92e630",
20
+ "@dxos/debug": "2.33.9-dev.8e92e630",
21
+ "@dxos/model-factory": "2.33.9-dev.8e92e630",
22
+ "@dxos/protocols": "2.33.9-dev.8e92e630",
23
+ "@dxos/rpc": "2.33.9-dev.8e92e630",
24
+ "@dxos/util": "2.33.9-dev.8e92e630",
25
25
  "abstract-leveldown": "~7.0.0",
26
26
  "assert": "^2.0.0",
27
27
  "debug": "^4.3.3",
@@ -34,16 +34,16 @@
34
34
  "uuid": "^8.3.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@dxos/credentials": "2.33.9-dev.6efa8ddf",
38
- "@dxos/crypto": "2.33.9-dev.6efa8ddf",
39
- "@dxos/echo-db": "2.33.9-dev.6efa8ddf",
40
- "@dxos/echo-protocol": "2.33.9-dev.6efa8ddf",
37
+ "@dxos/credentials": "2.33.9-dev.8e92e630",
38
+ "@dxos/crypto": "2.33.9-dev.8e92e630",
39
+ "@dxos/echo-db": "2.33.9-dev.8e92e630",
40
+ "@dxos/echo-protocol": "2.33.9-dev.8e92e630",
41
41
  "@dxos/eslint-plugin": "~1.0.34",
42
- "@dxos/feed-store": "2.33.9-dev.6efa8ddf",
43
- "@dxos/network-manager": "2.33.9-dev.6efa8ddf",
44
- "@dxos/object-model": "2.33.9-dev.6efa8ddf",
42
+ "@dxos/feed-store": "2.33.9-dev.8e92e630",
43
+ "@dxos/network-manager": "2.33.9-dev.8e92e630",
44
+ "@dxos/object-model": "2.33.9-dev.8e92e630",
45
45
  "@dxos/protocols-toolchain": "2.33.8",
46
- "@dxos/random-access-multi-storage": "2.33.9-dev.6efa8ddf",
46
+ "@dxos/random-access-multi-storage": "2.33.9-dev.8e92e630",
47
47
  "@dxos/testutils": "2.33.8",
48
48
  "@koush/wrtc": "^0.5.3",
49
49
  "@types/debug": "^4.1.7",
@@ -11,18 +11,10 @@ import * as dxos_echo_timeframe from "./echo/timeframe";
11
11
  import * as dxos_halo_keys from "./halo/keys";
12
12
  import * as dxos_rpc from "./rpc";
13
13
  import * as google_protobuf from "../google/protobuf";
14
- /**
15
- * Defined in:
16
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
17
- */
18
14
  export interface SystemService {
19
15
  getConfig: (request: void) => Promise<dxos_config.Config>;
20
16
  reset: (request: void) => Promise<void>;
21
17
  }
22
- /**
23
- * Defined in:
24
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
25
- */
26
18
  export enum InvitationState {
27
19
  WAITING_FOR_CONNECTION = 1,
28
20
  CONNECTED = 2,
@@ -31,134 +23,59 @@ export enum InvitationState {
31
23
  }
32
24
  /**
33
25
  * Invitation process created by sender.
34
- *
35
- * Defined in:
36
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
37
26
  */
38
27
  export interface InvitationRequest {
39
- /**
40
- * Options:
41
- * - proto3_optional = true
42
- */
43
28
  descriptor?: dxos_echo_invitation.InvitationDescriptor;
44
- state: InvitationState;
29
+ state?: InvitationState;
45
30
  /**
46
31
  * Only if state == ERROR.
47
- *
48
- * Options:
49
- * - proto3_optional = true
50
32
  */
51
33
  error?: string;
52
34
  }
53
35
  /**
54
36
  * Invitation that is being redeemed.
55
- *
56
- * Defined in:
57
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
58
37
  */
59
38
  export interface RedeemedInvitation {
60
- id: string;
61
- state: InvitationState;
39
+ id?: string;
40
+ state?: InvitationState;
62
41
  /**
63
42
  * Only if state == ERROR.
64
- *
65
- * Options:
66
- * - proto3_optional = true
67
43
  */
68
44
  error?: string;
69
45
  /**
70
46
  * Only on party invitations that are finished.
71
- *
72
- * Options:
73
- * - proto3_optional = true
74
47
  */
75
48
  partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
76
49
  }
77
- /**
78
- * Defined in:
79
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
80
- */
81
50
  export interface AuthenticateInvitationRequest {
82
51
  /**
83
52
  * Id from corresponding RedeemedInvitation.
84
53
  */
85
- processId: string;
86
- secret: Uint8Array;
54
+ processId?: string;
55
+ secret?: Uint8Array;
87
56
  }
88
- /**
89
- * Defined in:
90
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
91
- */
92
57
  export interface Profile {
93
58
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
94
- /**
95
- * Options:
96
- * - proto3_optional = true
97
- */
98
59
  username?: string;
99
60
  }
100
- /**
101
- * Defined in:
102
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
103
- */
104
61
  export interface SubscribeProfileResponse {
105
- /**
106
- * Options:
107
- * - proto3_optional = true
108
- */
109
62
  profile?: Profile;
110
63
  }
111
- /**
112
- * Defined in:
113
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
114
- */
115
64
  export interface CreateProfileRequest {
116
- /**
117
- * Options:
118
- * - proto3_optional = true
119
- */
120
65
  username?: string;
121
- /**
122
- * Options:
123
- * - proto3_optional = true
124
- */
125
66
  publicKey?: Uint8Array;
126
- /**
127
- * Options:
128
- * - proto3_optional = true
129
- */
130
67
  secretKey?: Uint8Array;
131
68
  }
132
- /**
133
- * Defined in:
134
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
135
- */
136
69
  export interface RecoverProfileRequest {
137
- seedPhrase: string;
70
+ seedPhrase?: string;
138
71
  }
139
- /**
140
- * Defined in:
141
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
142
- */
143
72
  export interface Contact {
144
- publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
145
- /**
146
- * Options:
147
- * - proto3_optional = true
148
- */
73
+ publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
149
74
  displayName?: string;
150
75
  }
151
- /**
152
- * Defined in:
153
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
154
- */
155
76
  export interface Contacts {
156
77
  contacts?: Contact[];
157
78
  }
158
- /**
159
- * Defined in:
160
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
161
- */
162
79
  export interface ProfileService {
163
80
  subscribeProfile: (request: void) => Stream<SubscribeProfileResponse>;
164
81
  createProfile: (request: CreateProfileRequest) => Promise<Profile>;
@@ -167,57 +84,29 @@ export interface ProfileService {
167
84
  acceptInvitation: (request: dxos_echo_invitation.InvitationDescriptor) => Stream<RedeemedInvitation>;
168
85
  authenticateInvitation: (request: AuthenticateInvitationRequest) => Promise<void>;
169
86
  }
170
- /**
171
- * Defined in:
172
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
173
- */
174
87
  export interface AddKeyRecordRequest {
175
- keyRecord: dxos_halo_keys.KeyRecord;
88
+ keyRecord?: dxos_halo_keys.KeyRecord;
176
89
  }
177
- /**
178
- * Defined in:
179
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
180
- */
181
90
  export interface SignRequest {
182
91
  /**
183
92
  * - The public key of the key that is supposed to be used for signing.
184
93
  */
185
- publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
186
- payload: Uint8Array;
94
+ publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
95
+ payload?: Uint8Array;
187
96
  }
188
- /**
189
- * Defined in:
190
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
191
- */
192
97
  export interface SignResponse {
193
- signed: Uint8Array;
98
+ signed?: Uint8Array;
194
99
  }
195
- /**
196
- * Defined in:
197
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
198
- */
199
100
  export interface SetPreferenceRequest {
200
- key: string;
201
- value: string;
101
+ key?: string;
102
+ value?: string;
202
103
  }
203
- /**
204
- * Defined in:
205
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
206
- */
207
104
  export interface GetPreferenceRequest {
208
- key: string;
105
+ key?: string;
209
106
  }
210
- /**
211
- * Defined in:
212
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
213
- */
214
107
  export interface GetPreferenceResponse {
215
- value: string;
108
+ value?: string;
216
109
  }
217
- /**
218
- * Defined in:
219
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
220
- */
221
110
  export interface HaloService {
222
111
  sign: (request: SignRequest) => Promise<SignResponse>;
223
112
  addKeyRecord: (request: AddKeyRecordRequest) => Promise<void>;
@@ -227,10 +116,6 @@ export interface HaloService {
227
116
  setDevicePreference: (request: SetPreferenceRequest) => Promise<void>;
228
117
  getDevicePreference: (request: GetPreferenceRequest) => Promise<GetPreferenceResponse>;
229
118
  }
230
- /**
231
- * Defined in:
232
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
233
- */
234
119
  export interface Party {
235
120
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
236
121
  isOpen: boolean;
@@ -238,144 +123,61 @@ export interface Party {
238
123
  members?: Party.Member[];
239
124
  }
240
125
  export namespace Party {
241
- /**
242
- * Defined in:
243
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
244
- */
245
126
  export interface Member {
246
127
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
247
- /**
248
- * Options:
249
- * - proto3_optional = true
250
- */
251
128
  displayName?: string;
252
129
  }
253
130
  }
254
- /**
255
- * Defined in:
256
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
257
- */
258
131
  export interface SubscribePartyRequest {
259
132
  partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
260
133
  }
261
- /**
262
- * Defined in:
263
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
264
- */
265
134
  export interface GetPartyDetailsRequest {
266
135
  partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
267
136
  }
268
- /**
269
- * Defined in:
270
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
271
- */
272
137
  export interface PartyDetails {
273
138
  /**
274
139
  * The timeframe of mutations processed by the client.
275
140
  */
276
141
  processedTimeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
277
142
  }
278
- /**
279
- * Defined in:
280
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
281
- */
282
143
  export interface SubscribePartyResponse {
283
- /**
284
- * Options:
285
- * - proto3_optional = true
286
- */
287
144
  party?: Party;
288
145
  }
289
- /**
290
- * Defined in:
291
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
292
- */
293
146
  export interface SubscribePartiesResponse {
294
147
  parties?: Party[];
295
148
  }
296
- /**
297
- * Defined in:
298
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
299
- */
300
149
  export interface CreateInvitationRequest {
301
150
  partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
302
151
  /**
303
152
  * When specified the invitation will be of OFFLINE type, not requiring secret exchange.
304
- *
305
- * Options:
306
- * - proto3_optional = true
307
153
  */
308
154
  inviteeKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
309
155
  }
310
- /**
311
- * Defined in:
312
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
313
- */
314
156
  export interface PartyActivationOptions {
315
- global: boolean;
316
- device: boolean;
157
+ global?: boolean;
158
+ device?: boolean;
317
159
  }
318
- /**
319
- * Defined in:
320
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
321
- */
322
160
  export interface SetPartyStateRequest {
323
161
  partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
324
- /**
325
- * Options:
326
- * - proto3_optional = true
327
- */
328
162
  open?: boolean;
329
- /**
330
- * Options:
331
- * - proto3_optional = true
332
- */
333
163
  activeGlobal?: boolean;
334
- /**
335
- * Options:
336
- * - proto3_optional = true
337
- */
338
164
  activeDevice?: boolean;
339
165
  }
340
- /**
341
- * Defined in:
342
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
343
- */
344
166
  export interface SubscribeMembersRequest {
345
167
  partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
346
168
  }
347
- /**
348
- * Defined in:
349
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
350
- */
351
169
  export interface SubscribeMembersResponse {
352
170
  members?: SubscribeMembersResponse.PartyMember[];
353
171
  }
354
172
  export namespace SubscribeMembersResponse {
355
- /**
356
- * Defined in:
357
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
358
- */
359
173
  export interface PartyMember {
360
174
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
361
- /**
362
- * Options:
363
- * - proto3_optional = true
364
- */
365
175
  displayName?: string;
366
176
  }
367
177
  }
368
- /**
369
- * Defined in:
370
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
371
- */
372
178
  export interface CreateSnaspotRequest {
373
- partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
179
+ partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
374
180
  }
375
- /**
376
- * Defined in:
377
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/client.proto}
378
- */
379
181
  export interface PartyService {
380
182
  subscribeToParty: (request: SubscribePartyRequest) => Stream<SubscribePartyResponse>;
381
183
  subscribeParties: (request: void) => Stream<SubscribePartiesResponse>;