@dxos/protocols 0.4.8-main.a4c603b → 0.4.8-main.aafbaef

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,mtqGAAmtqG,CAAC,CAAC,CAAC;AAC5wqG,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,y1qGAAy1qG,CAAC,CAAC,CAAC;AACl5qG,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.8-main.a4c603b",
3
+ "version": "0.4.8-main.aafbaef",
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.4.8-main.a4c603b",
37
- "@dxos/timeframe": "0.4.8-main.a4c603b",
38
- "@dxos/invariant": "0.4.8-main.a4c603b",
39
- "@dxos/codec-protobuf": "0.4.8-main.a4c603b"
36
+ "@dxos/codec-protobuf": "0.4.8-main.aafbaef",
37
+ "@dxos/invariant": "0.4.8-main.aafbaef",
38
+ "@dxos/keys": "0.4.8-main.aafbaef",
39
+ "@dxos/timeframe": "0.4.8-main.aafbaef"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
package/src/indexing.ts CHANGED
@@ -3,15 +3,14 @@
3
3
  //
4
4
 
5
5
  export type IdDecoded = {
6
- spaceKey: string;
7
6
  documentId: string;
8
7
  objectId: string;
9
8
  };
10
9
 
11
10
  export const idCodec = {
12
- encode: ({ spaceKey, documentId, objectId }: IdDecoded) => `${spaceKey}|${documentId}|${objectId}`,
11
+ encode: ({ documentId, objectId }: IdDecoded) => `${documentId}|${objectId}`,
13
12
  decode: (id: string): IdDecoded => {
14
- const [spaceKey, documentId, objectId] = id.split('|');
15
- return { spaceKey, documentId, objectId };
13
+ const [documentId, objectId] = id.split('|');
14
+ return { documentId, objectId };
16
15
  },
17
16
  };
@@ -105,31 +105,34 @@ message Runtime {
105
105
  optional string data_root = 4;
106
106
  optional bool space_fragmentation = 5;
107
107
  }
108
-
108
+
109
109
  message Log {
110
110
  optional string filter = 1 [(env_var) = "LOG_FILTER"];
111
111
  optional string prefix = 2 [(env_var) = "LOG_PREFIX"];
112
112
  }
113
-
113
+
114
114
  optional Log log = 1;
115
115
  optional Storage storage = 2;
116
-
116
+
117
117
  // TODO(burdon): Structure snapshot/epoch related props.
118
-
118
+
119
119
  optional bool enable_snapshots = 3;
120
-
120
+
121
121
  /// Milliseconds
122
122
  optional int32 snapshot_interval = 4;
123
-
123
+
124
124
  /// Milliseconds
125
125
  optional int32 invitation_expiration = 5;
126
-
126
+
127
127
  /// Location of the remote client host.
128
128
  // TODO(burdon): Rename vault_endpoint (generalize http/ws; drop vault.html).
129
129
  optional string remote_source = 6;
130
-
130
+
131
131
  /// Connect to and serve client services to a remote proxy.
132
132
  optional string devtools_proxy = 7;
133
+
134
+ /// Enable E.object api
135
+ optional bool use_reactive_object_api = 8;
133
136
  }
134
137
 
135
138
  message App {
@@ -298,6 +298,13 @@ export namespace Runtime {
298
298
  * - proto3_optional = true
299
299
  */
300
300
  devtoolsProxy?: string;
301
+ /**
302
+ * Enable E.object api
303
+ *
304
+ * Options:
305
+ * - proto3_optional = true
306
+ */
307
+ useReactiveObjectApi?: boolean;
301
308
  }
302
309
  export namespace Client {
303
310
  /**