@dxos/protocols 0.5.0 → 0.5.1-main.2ed734f

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;AA+hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4uvGAA4uvG,CAAC,CAAC,CAAC;AACryvG,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;AAgiB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,o1vGAAo1vG,CAAC,CAAC,CAAC;AAC74vG,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.5.0",
3
+ "version": "0.5.1-main.2ed734f",
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/keys": "0.5.0",
37
- "@dxos/timeframe": "0.5.0",
38
- "@dxos/codec-protobuf": "0.5.0",
39
- "@dxos/invariant": "0.5.0"
36
+ "@dxos/codec-protobuf": "0.5.1-main.2ed734f",
37
+ "@dxos/keys": "0.5.1-main.2ed734f",
38
+ "@dxos/timeframe": "0.5.1-main.2ed734f",
39
+ "@dxos/invariant": "0.5.1-main.2ed734f"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -47,11 +47,16 @@ message MutationReceipt {
47
47
  }
48
48
 
49
49
  message FlushRequest {
50
+ message DocState {
51
+ string document_id = 1;
52
+ repeated string heads = 2;
53
+ }
54
+
50
55
  optional dxos.keys.PublicKey space_key = 1;
51
56
  /**
52
57
  * Automerge specific document ids to wait to flush.
53
58
  */
54
- repeated string document_ids = 2;
59
+ repeated DocState states = 2;
55
60
  }
56
61
 
57
62
  // Automerge specific.
@@ -143,7 +143,17 @@ export interface FlushRequest {
143
143
  /**
144
144
  * Automerge specific document ids to wait to flush.
145
145
  */
146
- documentIds?: string[];
146
+ states?: FlushRequest.DocState[];
147
+ }
148
+ export namespace FlushRequest {
149
+ /**
150
+ * Defined in:
151
+ * {@link file://./../../../dxos/echo/service.proto}
152
+ */
153
+ export interface DocState {
154
+ documentId: string;
155
+ heads?: string[];
156
+ }
147
157
  }
148
158
  /**
149
159
  * Defined in:
@@ -79,14 +79,14 @@ export enum NullValue {
79
79
  export interface ListValue {
80
80
  values?: Value[];
81
81
  }
82
- export interface Timestamp {
83
- seconds: string;
84
- nanos: number;
85
- }
86
82
  export interface Any {
87
83
  type_url: string;
88
84
  value: Uint8Array;
89
85
  }
86
+ export interface Timestamp {
87
+ seconds: string;
88
+ nanos: number;
89
+ }
90
90
  export interface FileDescriptorSet {
91
91
  file?: FileDescriptorProto[];
92
92
  }