@dxos/client 2.33.9-dev.d9963f00 → 2.33.9-dev.eb69ac10

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 (66) hide show
  1. package/dist/browser.js +39 -44
  2. package/dist/src/api/invitations/invitation.d.ts.map +1 -1
  3. package/dist/src/api/invitations/invitation.js +1 -0
  4. package/dist/src/api/invitations/invitation.js.map +1 -1
  5. package/dist/src/proto/gen/dxos/client.d.ts +216 -18
  6. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
  7. package/dist/src/proto/gen/dxos/client.js +4 -0
  8. package/dist/src/proto/gen/dxos/client.js.map +1 -1
  9. package/dist/src/proto/gen/dxos/config.d.ts +457 -0
  10. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  11. package/dist/src/proto/gen/dxos/config.js +10 -0
  12. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  13. package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
  14. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  15. package/dist/src/proto/gen/dxos/devtools.d.ts +266 -30
  16. package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
  17. package/dist/src/proto/gen/dxos/echo/feed.d.ts +65 -6
  18. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  19. package/dist/src/proto/gen/dxos/echo/feed.js +4 -0
  20. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
  21. package/dist/src/proto/gen/dxos/echo/invitation.d.ts +19 -3
  22. package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
  23. package/dist/src/proto/gen/dxos/echo/invitation.js +6 -0
  24. package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
  25. package/dist/src/proto/gen/dxos/echo/service.d.ts +49 -13
  26. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  27. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +45 -13
  28. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  29. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +9 -2
  30. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  31. package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
  32. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  33. package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
  34. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
  35. package/dist/src/proto/gen/dxos/rpc.d.ts +58 -8
  36. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  37. package/dist/src/proto/gen/dxos/rpc.js +4 -0
  38. package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
  39. package/dist/src/proto/gen/google/protobuf.d.ts +80 -80
  40. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  41. package/dist/src/proto/gen/index.d.ts.map +1 -1
  42. package/dist/src/proto/gen/index.js +1 -1
  43. package/dist/src/proto/gen/index.js.map +1 -1
  44. package/dist/src/proto/index.d.ts +1 -0
  45. package/dist/src/proto/index.d.ts.map +1 -1
  46. package/dist/src/proto/index.js.map +1 -1
  47. package/dist/src/services/services.test.js +3 -1
  48. package/dist/src/services/services.test.js.map +1 -1
  49. package/dist/tsconfig.tsbuildinfo +1 -1
  50. package/package.json +17 -17
  51. package/src/api/invitations/invitation.ts +1 -0
  52. package/src/proto/gen/dxos/client.ts +216 -18
  53. package/src/proto/gen/dxos/config.ts +457 -0
  54. package/src/proto/gen/dxos/credentials.ts +39 -0
  55. package/src/proto/gen/dxos/devtools.ts +266 -30
  56. package/src/proto/gen/dxos/echo/feed.ts +65 -6
  57. package/src/proto/gen/dxos/echo/invitation.ts +19 -3
  58. package/src/proto/gen/dxos/echo/service.ts +49 -13
  59. package/src/proto/gen/dxos/echo/snapshot.ts +45 -13
  60. package/src/proto/gen/dxos/echo/timeframe.ts +9 -2
  61. package/src/proto/gen/dxos/halo/keys.ts +44 -2
  62. package/src/proto/gen/dxos/rpc.ts +58 -8
  63. package/src/proto/gen/google/protobuf.ts +80 -80
  64. package/src/proto/gen/index.ts +1 -1
  65. package/src/proto/index.ts +1 -0
  66. package/src/services/services.test.ts +2 -1
@@ -11,82 +11,250 @@ 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/config.proto}
17
+ */
14
18
  export interface Config {
19
+ /**
20
+ * Options:
21
+ * - proto3_optional = true
22
+ */
15
23
  version?: number;
24
+ /**
25
+ * Options:
26
+ * - proto3_optional = true
27
+ */
16
28
  package?: Package;
29
+ /**
30
+ * Options:
31
+ * - proto3_optional = true
32
+ */
17
33
  runtime?: Runtime;
18
34
  }
35
+ /**
36
+ * Defined in:
37
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
38
+ */
19
39
  export interface Package {
40
+ /**
41
+ * Options:
42
+ * - proto3_optional = true
43
+ */
20
44
  license?: string;
21
45
  repos?: Repo[];
22
46
  modules?: Module[];
23
47
  }
48
+ /**
49
+ * Defined in:
50
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
51
+ */
24
52
  export interface Repo {
53
+ /**
54
+ * Options:
55
+ * - proto3_optional = true
56
+ */
25
57
  name?: string;
58
+ /**
59
+ * Options:
60
+ * - proto3_optional = true
61
+ */
26
62
  url?: string;
63
+ /**
64
+ * Options:
65
+ * - proto3_optional = true
66
+ */
27
67
  version?: string;
28
68
  }
69
+ /**
70
+ * Defined in:
71
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
72
+ */
29
73
  export interface Module {
74
+ /**
75
+ * Options:
76
+ * - proto3_optional = true
77
+ */
30
78
  name?: string;
79
+ /**
80
+ * Options:
81
+ * - proto3_optional = true
82
+ */
31
83
  type?: string;
84
+ /**
85
+ * Options:
86
+ * - proto3_optional = true
87
+ */
32
88
  displayName?: string;
89
+ /**
90
+ * Options:
91
+ * - proto3_optional = true
92
+ */
33
93
  description?: string;
34
94
  tags?: string[];
95
+ /**
96
+ * Options:
97
+ * - proto3_optional = true
98
+ */
35
99
  build?: Module.Build;
36
100
  repos?: Repo[];
37
101
  /**
38
102
  * The data will be validated based on the type when being published.
103
+ *
104
+ * Options:
105
+ * - proto3_optional = true
39
106
  */
40
107
  record?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
41
108
  }
42
109
  export namespace Module {
110
+ /**
111
+ * Defined in:
112
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
113
+ */
43
114
  export interface Build {
115
+ /**
116
+ * Options:
117
+ * - proto3_optional = true
118
+ */
44
119
  command?: string;
120
+ /**
121
+ * Options:
122
+ * - proto3_optional = true
123
+ */
45
124
  outdir?: string;
125
+ /**
126
+ * Options:
127
+ * - proto3_optional = true
128
+ */
46
129
  version?: string;
130
+ /**
131
+ * Options:
132
+ * - proto3_optional = true
133
+ */
47
134
  tag?: string;
48
135
  }
49
136
  }
137
+ /**
138
+ * Defined in:
139
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
140
+ */
50
141
  export interface Runtime {
142
+ /**
143
+ * Options:
144
+ * - proto3_optional = true
145
+ */
51
146
  client?: Runtime.Client;
147
+ /**
148
+ * Options:
149
+ * - proto3_optional = true
150
+ */
52
151
  app?: Runtime.App;
152
+ /**
153
+ * Options:
154
+ * - proto3_optional = true
155
+ */
53
156
  cli?: Runtime.CLI;
157
+ /**
158
+ * Options:
159
+ * - proto3_optional = true
160
+ */
54
161
  props?: Runtime.Props;
162
+ /**
163
+ * Options:
164
+ * - proto3_optional = true
165
+ */
55
166
  services?: Runtime.Services;
167
+ /**
168
+ * Options:
169
+ * - proto3_optional = true
170
+ */
56
171
  system?: Runtime.System;
57
172
  }
58
173
  export namespace Runtime {
174
+ /**
175
+ * Defined in:
176
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
177
+ */
59
178
  export interface Client {
60
179
  /**
61
180
  * Options:
62
181
  * - (env) = "DEBUG"
182
+ * - proto3_optional = true
63
183
  */
64
184
  debug?: string;
185
+ /**
186
+ * Options:
187
+ * - proto3_optional = true
188
+ */
65
189
  storage?: Runtime.Client.Storage;
190
+ /**
191
+ * Options:
192
+ * - proto3_optional = true
193
+ */
66
194
  enableSnapshots?: boolean;
67
195
  /**
68
196
  * Milliseconds
197
+ *
198
+ * Options:
199
+ * - proto3_optional = true
69
200
  */
70
201
  snapshotInterval?: number;
71
202
  /**
72
203
  * Milliseconds
204
+ *
205
+ * Options:
206
+ * - proto3_optional = true
73
207
  */
74
208
  invitationExpiration?: number;
209
+ /**
210
+ * Options:
211
+ * - proto3_optional = true
212
+ */
75
213
  mode?: Runtime.Client.Mode;
76
214
  }
77
215
  export namespace Client {
216
+ /**
217
+ * Whether the client services are local with ClientServiceHost or remote and need to be accessed via ClientServiceProxy. Defaults to AUTOMATIC.
218
+ *
219
+ * Defined in:
220
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
221
+ */
78
222
  export enum Mode {
79
223
  AUTOMATIC = 0,
80
224
  LOCAL = 1,
81
225
  REMOTE = 2
82
226
  }
227
+ /**
228
+ * Defined in:
229
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
230
+ */
83
231
  export interface Storage {
232
+ /**
233
+ * Options:
234
+ * - proto3_optional = true
235
+ */
84
236
  persistent?: boolean;
237
+ /**
238
+ * Options:
239
+ * - proto3_optional = true
240
+ */
85
241
  storageType?: Runtime.Client.Storage.StorageDriver;
242
+ /**
243
+ * Options:
244
+ * - proto3_optional = true
245
+ */
86
246
  keyStorage?: Runtime.Client.Storage.StorageDriver;
247
+ /**
248
+ * Options:
249
+ * - proto3_optional = true
250
+ */
87
251
  path?: string;
88
252
  }
89
253
  export namespace Storage {
254
+ /**
255
+ * Defined in:
256
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
257
+ */
90
258
  export enum StorageDriver {
91
259
  RAM = 0,
92
260
  IDB = 1,
@@ -98,78 +266,266 @@ export namespace Runtime {
98
266
  }
99
267
  }
100
268
  }
269
+ /**
270
+ * Defined in:
271
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
272
+ */
101
273
  export interface App {
274
+ /**
275
+ * Options:
276
+ * - proto3_optional = true
277
+ */
102
278
  org?: string;
279
+ /**
280
+ * Options:
281
+ * - proto3_optional = true
282
+ */
103
283
  theme?: string;
284
+ /**
285
+ * Options:
286
+ * - proto3_optional = true
287
+ */
104
288
  website?: string;
105
289
  /**
106
290
  * Options:
107
291
  * - (env) = "PUBLIC_URL"
292
+ * - proto3_optional = true
108
293
  */
109
294
  publicUrl?: string;
110
295
  }
296
+ /**
297
+ * Defined in:
298
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
299
+ */
111
300
  export interface CLI {
301
+ /**
302
+ * Options:
303
+ * - proto3_optional = true
304
+ */
112
305
  nodePath?: string;
306
+ /**
307
+ * Options:
308
+ * - proto3_optional = true
309
+ */
113
310
  app?: Runtime.CLI.AppServe;
311
+ /**
312
+ * Options:
313
+ * - proto3_optional = true
314
+ */
114
315
  console?: Runtime.CLI.Package;
316
+ /**
317
+ * Options:
318
+ * - proto3_optional = true
319
+ */
115
320
  mdns?: Runtime.CLI.Package;
321
+ /**
322
+ * Options:
323
+ * - proto3_optional = true
324
+ */
116
325
  signal?: Runtime.CLI.Package;
326
+ /**
327
+ * Options:
328
+ * - proto3_optional = true
329
+ */
117
330
  npmClient?: string;
331
+ /**
332
+ * Options:
333
+ * - proto3_optional = true
334
+ */
118
335
  channel?: string;
119
336
  }
120
337
  export namespace CLI {
338
+ /**
339
+ * Defined in:
340
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
341
+ */
121
342
  export interface AppServe {
343
+ /**
344
+ * Options:
345
+ * - proto3_optional = true
346
+ */
122
347
  serve?: Runtime.CLI.AppServe.Serve;
123
348
  }
124
349
  export namespace AppServe {
350
+ /**
351
+ * Defined in:
352
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
353
+ */
125
354
  export interface Serve {
355
+ /**
356
+ * Options:
357
+ * - proto3_optional = true
358
+ */
126
359
  config?: string;
360
+ /**
361
+ * Options:
362
+ * - proto3_optional = true
363
+ */
127
364
  loginApp?: string;
365
+ /**
366
+ * Options:
367
+ * - proto3_optional = true
368
+ */
128
369
  keyPhrase?: string;
129
370
  }
130
371
  }
372
+ /**
373
+ * Defined in:
374
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
375
+ */
131
376
  export interface Package {
377
+ /**
378
+ * Options:
379
+ * - proto3_optional = true
380
+ */
132
381
  package?: string;
382
+ /**
383
+ * Options:
384
+ * - proto3_optional = true
385
+ */
133
386
  channel?: string;
387
+ /**
388
+ * Options:
389
+ * - proto3_optional = true
390
+ */
134
391
  bin?: string;
392
+ /**
393
+ * Options:
394
+ * - proto3_optional = true
395
+ */
135
396
  config?: string;
136
397
  }
137
398
  }
399
+ /**
400
+ * Defined in:
401
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
402
+ */
138
403
  export interface Props {
404
+ /**
405
+ * Options:
406
+ * - proto3_optional = true
407
+ */
139
408
  title?: string;
140
409
  }
410
+ /**
411
+ * Defined in:
412
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
413
+ */
141
414
  export interface System {
415
+ /**
416
+ * Options:
417
+ * - proto3_optional = true
418
+ */
142
419
  debug?: string;
143
420
  }
421
+ /**
422
+ * Defined in:
423
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
424
+ */
144
425
  export interface Services {
426
+ /**
427
+ * Options:
428
+ * - proto3_optional = true
429
+ */
145
430
  kube?: Runtime.Services.Kube;
431
+ /**
432
+ * Options:
433
+ * - proto3_optional = true
434
+ */
146
435
  app?: Runtime.Services.AppServer;
436
+ /**
437
+ * Options:
438
+ * - proto3_optional = true
439
+ */
147
440
  dxns?: Runtime.Services.Dxns;
441
+ /**
442
+ * Options:
443
+ * - proto3_optional = true
444
+ */
148
445
  ipfs?: Runtime.Services.Ipfs;
446
+ /**
447
+ * Options:
448
+ * - proto3_optional = true
449
+ */
149
450
  signal?: Runtime.Services.Signal;
150
451
  ice?: Runtime.Services.Ice[];
452
+ /**
453
+ * Options:
454
+ * - proto3_optional = true
455
+ */
151
456
  machine?: Runtime.Services.Machine;
457
+ /**
458
+ * Options:
459
+ * - proto3_optional = true
460
+ */
152
461
  bot?: Runtime.Services.BotFactory;
153
462
  }
154
463
  export namespace Services {
464
+ /**
465
+ * Defined in:
466
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
467
+ */
155
468
  export interface Kube {
469
+ /**
470
+ * Options:
471
+ * - proto3_optional = true
472
+ */
156
473
  endpoints?: Runtime.Services.Kube.Endpoints;
474
+ /**
475
+ * Options:
476
+ * - proto3_optional = true
477
+ */
157
478
  publicUrl?: string;
158
479
  }
159
480
  export namespace Kube {
481
+ /**
482
+ * Defined in:
483
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
484
+ */
160
485
  export interface Endpoints {
486
+ /**
487
+ * Options:
488
+ * - proto3_optional = true
489
+ */
161
490
  logs?: string;
491
+ /**
492
+ * Options:
493
+ * - proto3_optional = true
494
+ */
162
495
  services?: string;
496
+ /**
497
+ * Options:
498
+ * - proto3_optional = true
499
+ */
163
500
  cert?: string;
164
501
  }
165
502
  }
503
+ /**
504
+ * Defined in:
505
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
506
+ */
166
507
  export interface AppServer {
508
+ /**
509
+ * Options:
510
+ * - proto3_optional = true
511
+ */
167
512
  prefix?: string;
513
+ /**
514
+ * Options:
515
+ * - proto3_optional = true
516
+ */
168
517
  server?: string;
169
518
  }
519
+ /**
520
+ * Defined in:
521
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
522
+ */
170
523
  export interface Dxns {
171
524
  /**
172
525
  * DXNS endpoint.
526
+ *
527
+ * Options:
528
+ * - proto3_optional = true
173
529
  */
174
530
  server?: string;
175
531
  /**
@@ -177,43 +533,144 @@ export namespace Runtime {
177
533
  * KUBEs do not serve this with the config but we store it in profile.yml.
178
534
  *
179
535
  * TODO(dmaretskyi): Deprecate this and move it to keyring.
536
+ *
537
+ * Options:
538
+ * - proto3_optional = true
180
539
  */
181
540
  accountUri?: string;
182
541
  /**
183
542
  * Public Polkadot Address.
543
+ *
544
+ * Options:
545
+ * - proto3_optional = true
184
546
  */
185
547
  address?: string;
186
548
  /**
187
549
  * Public address of a DXNS Account.
550
+ *
551
+ * Options:
552
+ * - proto3_optional = true
188
553
  */
189
554
  account?: string;
555
+ /**
556
+ * Options:
557
+ * - proto3_optional = true
558
+ */
190
559
  faucet?: string;
191
560
  }
561
+ /**
562
+ * Defined in:
563
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
564
+ */
192
565
  export interface Ipfs {
566
+ /**
567
+ * Options:
568
+ * - proto3_optional = true
569
+ */
193
570
  server?: string;
571
+ /**
572
+ * Options:
573
+ * - proto3_optional = true
574
+ */
194
575
  gateway?: string;
195
576
  }
577
+ /**
578
+ * Defined in:
579
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
580
+ */
196
581
  export interface Signal {
582
+ /**
583
+ * Options:
584
+ * - proto3_optional = true
585
+ */
197
586
  server?: string;
587
+ /**
588
+ * Options:
589
+ * - proto3_optional = true
590
+ */
198
591
  api?: string;
592
+ /**
593
+ * Options:
594
+ * - proto3_optional = true
595
+ */
199
596
  status?: string;
200
597
  }
598
+ /**
599
+ * Defined in:
600
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
601
+ */
201
602
  export interface Ice {
603
+ /**
604
+ * Options:
605
+ * - proto3_optional = true
606
+ */
202
607
  urls?: string;
608
+ /**
609
+ * Options:
610
+ * - proto3_optional = true
611
+ */
203
612
  username?: string;
613
+ /**
614
+ * Options:
615
+ * - proto3_optional = true
616
+ */
204
617
  credential?: string;
205
618
  }
619
+ /**
620
+ * Defined in:
621
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
622
+ */
206
623
  export interface Machine {
624
+ /**
625
+ * Options:
626
+ * - proto3_optional = true
627
+ */
207
628
  doAccessToken?: string;
629
+ /**
630
+ * Options:
631
+ * - proto3_optional = true
632
+ */
208
633
  githubAccessToken?: string;
634
+ /**
635
+ * Options:
636
+ * - proto3_optional = true
637
+ */
209
638
  githubUsername?: string;
639
+ /**
640
+ * Options:
641
+ * - proto3_optional = true
642
+ */
210
643
  dnsDomain?: string;
644
+ /**
645
+ * Options:
646
+ * - proto3_optional = true
647
+ */
211
648
  npmAccessToken?: string;
212
649
  }
650
+ /**
651
+ * Defined in:
652
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/config.proto}
653
+ */
213
654
  export interface BotFactory {
655
+ /**
656
+ * Options:
657
+ * - proto3_optional = true
658
+ */
214
659
  topic?: string;
660
+ /**
661
+ * Options:
662
+ * - proto3_optional = true
663
+ */
215
664
  persistent?: boolean;
665
+ /**
666
+ * Options:
667
+ * - proto3_optional = true
668
+ */
216
669
  retryAttempts?: number;
670
+ /**
671
+ * Options:
672
+ * - proto3_optional = true
673
+ */
217
674
  retryInterval?: number;
218
675
  }
219
676
  }