@dxos/protocols 0.4.10-main.96d4976 → 0.4.10-main.970b591

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA4hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,27rGAA27rG,CAAC,CAAC,CAAC;AACp/rG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA4hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,wksGAAwksG,CAAC,CAAC,CAAC;AACjosG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.4.10-main.96d4976",
3
+ "version": "0.4.10-main.970b591",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,10 +33,10 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/invariant": "0.4.10-main.96d4976",
37
- "@dxos/codec-protobuf": "0.4.10-main.96d4976",
38
- "@dxos/timeframe": "0.4.10-main.96d4976",
39
- "@dxos/keys": "0.4.10-main.96d4976"
36
+ "@dxos/invariant": "0.4.10-main.970b591",
37
+ "@dxos/timeframe": "0.4.10-main.970b591",
38
+ "@dxos/keys": "0.4.10-main.970b591",
39
+ "@dxos/codec-protobuf": "0.4.10-main.970b591"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
package/src/indexing.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
+ // TODO(dmaretskyi): Rename ObjectPointer{Decoded/Encoded}.
5
6
  export type IdDecoded = {
6
7
  documentId: string;
7
8
  objectId: string;
@@ -47,7 +47,11 @@ message MutationReceipt {
47
47
  }
48
48
 
49
49
  message FlushRequest {
50
- dxos.keys.PublicKey space_key = 1;
50
+ optional dxos.keys.PublicKey space_key = 1;
51
+ /**
52
+ * Automerge specific document ids to wait to flush.
53
+ */
54
+ repeated string document_ids = 2;
51
55
  }
52
56
 
53
57
  // Automerge specific.
@@ -60,37 +60,6 @@ import * as dxos_value from "../value";
60
60
  import * as example_testing_data from "../../example/testing/data";
61
61
  import * as example_testing_rpc from "../../example/testing/rpc";
62
62
  import * as google_protobuf from "../../google/protobuf";
63
- /**
64
- * Defined in:
65
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
66
- */
67
- export interface Services {
68
- spaces?: SpaceStats[];
69
- }
70
- /**
71
- * Defined in:
72
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
73
- */
74
- export interface SpaceStats {
75
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
76
- peers?: PeerStats[];
77
- }
78
- /**
79
- * Defined in:
80
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
81
- */
82
- export interface PeerStats {
83
- controlFeed: FeedStats;
84
- dataFeed: FeedStats;
85
- }
86
- /**
87
- * Defined in:
88
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
89
- */
90
- export interface FeedStats {
91
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
92
- length: number;
93
- }
94
63
  /**
95
64
  * Defined in:
96
65
  * {@link file://./../../../dxos/devtools/host.proto}
@@ -513,3 +482,34 @@ export interface SubscribeToSwarmInfoRequest {
513
482
  export interface SubscribeToSwarmInfoResponse {
514
483
  data?: dxos_devtools_swarm.SwarmInfo[];
515
484
  }
485
+ /**
486
+ * Defined in:
487
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
488
+ */
489
+ export interface Services {
490
+ spaces?: SpaceStats[];
491
+ }
492
+ /**
493
+ * Defined in:
494
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
495
+ */
496
+ export interface SpaceStats {
497
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
498
+ peers?: PeerStats[];
499
+ }
500
+ /**
501
+ * Defined in:
502
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
503
+ */
504
+ export interface PeerStats {
505
+ controlFeed: FeedStats;
506
+ dataFeed: FeedStats;
507
+ }
508
+ /**
509
+ * Defined in:
510
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
511
+ */
512
+ export interface FeedStats {
513
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
514
+ length: number;
515
+ }
@@ -135,7 +135,15 @@ export interface MutationReceipt {
135
135
  * {@link file://./../../../dxos/echo/service.proto}
136
136
  */
137
137
  export interface FlushRequest {
138
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
138
+ /**
139
+ * Options:
140
+ * - proto3_optional = true
141
+ */
142
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
143
+ /**
144
+ * Automerge specific document ids to wait to flush.
145
+ */
146
+ documentIds?: string[];
139
147
  }
140
148
  /**
141
149
  * Defined in: