@dxos/echo-protocol 2.33.8 → 2.33.9-dev.d70ac9ee
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.
- package/dist/src/feeds/feed-store-iterator.d.ts +1 -1
- package/dist/src/feeds/feed-store-iterator.d.ts.map +1 -1
- package/dist/src/feeds/feed-store-iterator.js.map +1 -1
- package/dist/src/feeds/feed-store-iterator.test.js +6 -7
- package/dist/src/feeds/feed-store-iterator.test.js.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +6 -5
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/testing.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
- package/dist/src/proto/gen/dxos/test/echo.d.ts +11 -0
- package/dist/src/proto/gen/dxos/test/echo.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/test/echo.js +3 -0
- package/dist/src/proto/gen/dxos/test/echo.js.map +1 -0
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/index.d.ts +4 -0
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/src/proto/index.d.ts +3 -3
- package/dist/src/proto/index.d.ts.map +1 -1
- package/dist/src/proto/index.js +3 -3
- package/dist/src/proto/index.js.map +1 -1
- package/dist/src/proto/messages.d.ts +1 -1
- package/dist/src/proto/messages.d.ts.map +1 -1
- package/dist/src/proto/messages.js +1 -1
- package/dist/src/proto/messages.js.map +1 -1
- package/dist/src/proto/substitutions.d.ts +2 -2
- package/dist/src/proto/substitutions.d.ts.map +1 -1
- package/dist/src/proto/substitutions.js +1 -2
- package/dist/src/proto/substitutions.js.map +1 -1
- package/dist/src/types.d.ts +1 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/feeds/feed-store-iterator.test.ts +2 -3
- package/src/feeds/feed-store-iterator.ts +1 -2
- package/src/index.ts +0 -1
- package/src/proto/defs/import.proto +5 -3
- package/src/proto/gen/dxos/credentials.ts +1 -0
- package/src/proto/gen/dxos/echo/feed.ts +1 -0
- package/src/proto/gen/dxos/echo/invitation.ts +1 -0
- package/src/proto/gen/dxos/echo/metadata.ts +7 -5
- package/src/proto/gen/dxos/echo/service.ts +1 -0
- package/src/proto/gen/dxos/echo/snapshot.ts +1 -0
- package/src/proto/gen/dxos/echo/testing.ts +1 -0
- package/src/proto/gen/dxos/echo/timeframe.ts +1 -0
- package/src/proto/gen/dxos/halo/keys.ts +1 -0
- package/src/proto/gen/dxos/test/echo.ts +22 -0
- package/src/proto/gen/google/protobuf.ts +1 -0
- package/src/proto/gen/index.ts +5 -1
- package/src/proto/index.ts +4 -3
- package/src/proto/messages.ts +3 -2
- package/src/proto/substitutions.ts +1 -3
- package/src/types.ts +1 -2
- package/dist/src/spacetime/index.d.ts +0 -3
- package/dist/src/spacetime/index.d.ts.map +0 -1
- package/dist/src/spacetime/index.js +0 -22
- package/dist/src/spacetime/index.js.map +0 -1
- package/dist/src/spacetime/substitutions.d.ts +0 -13
- package/dist/src/spacetime/substitutions.d.ts.map +0 -1
- package/dist/src/spacetime/substitutions.js +0 -22
- package/dist/src/spacetime/substitutions.js.map +0 -1
- package/dist/src/spacetime/timeframe.d.ts +0 -45
- package/dist/src/spacetime/timeframe.d.ts.map +0 -1
- package/dist/src/spacetime/timeframe.js +0 -101
- package/dist/src/spacetime/timeframe.js.map +0 -1
- package/dist/src/spacetime/timeframe.test.d.ts +0 -2
- package/dist/src/spacetime/timeframe.test.d.ts.map +0 -1
- package/dist/src/spacetime/timeframe.test.js +0 -118
- package/dist/src/spacetime/timeframe.test.js.map +0 -1
- package/src/spacetime/index.ts +0 -6
- package/src/spacetime/substitutions.ts +0 -20
- package/src/spacetime/timeframe.test.ts +0 -132
- package/src/spacetime/timeframe.ts +0 -119
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event } from '@dxos/async';
|
|
2
2
|
import { FeedDescriptor } from '@dxos/feed-store';
|
|
3
|
-
import { Timeframe } from '
|
|
3
|
+
import { Timeframe } from '@dxos/protocols';
|
|
4
4
|
import { FeedBlock } from '../types';
|
|
5
5
|
export declare type MessageSelector = (candidates: FeedBlock[]) => number | undefined;
|
|
6
6
|
export declare type FeedSelector = (descriptor: FeedDescriptor) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed-store-iterator.d.ts","sourceRoot":"","sources":["../../../src/feeds/feed-store-iterator.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAW,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAqB,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"feed-store-iterator.d.ts","sourceRoot":"","sources":["../../../src/feeds/feed-store-iterator.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAW,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAqB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACrE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EK,UAAU;CAyBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed-store-iterator.js","sourceRoot":"","sources":["../../../src/feeds/feed-store-iterator.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAC5B,kDAA0B;AAC1B,qDAA2C;AAE3C,uCAA6C;AAC7C,iDAAqE;AACrE,+
|
|
1
|
+
{"version":3,"file":"feed-store-iterator.js","sourceRoot":"","sources":["../../../src/feeds/feed-store-iterator.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAC5B,kDAA0B;AAC1B,qDAA2C;AAE3C,uCAA6C;AAC7C,iDAAqE;AACrE,+CAAuD;AAIvD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,mCAAmC,CAAC,CAAC;AACvD,MAAM,aAAa,GAAG,IAAI,CAAC;AAW3B;;;;GAIG;AACH,kCAAkC;AAClC,MAAa,iBAAiB;IA2B5B;;;;OAIG;IACH,YACmB,aAA2B,EAC3B,gBAAiC,EACjC,cAAyB;QAFzB,kBAAa,GAAb,aAAa,CAAc;QAC3B,qBAAgB,GAAhB,gBAAgB,CAAiB;QACjC,mBAAc,GAAd,cAAc,CAAW;QAlC5C,kCAAkC;QACjB,oBAAe,GAAG,IAAI,GAAG,EAAkB,CAAC;QAE7D,oCAAoC;QACnB,eAAU,GAAG,IAAI,GAAG,EAKjC,CAAC;QAEY,aAAQ,GAAG,IAAI,eAAO,EAAE,CAAC;QACzB,uBAAkB,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAExD;;WAEG;QACc,kBAAa,GAAG,IAAI,eAAO,EAAE,CAAC;QAE/C,mCAAmC;QAC3B,kBAAa,GAAG,CAAC,CAAC;QAElB,YAAO,GAAG,KAAK,CAAC;QAER,YAAO,GAAG,IAAI,aAAK,EAAe,CAAC;QAYjD,IAAA,gBAAM,EAAC,aAAa,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AAjOD,8CAiOC"}
|
|
@@ -17,7 +17,6 @@ const protocols_1 = require("@dxos/protocols");
|
|
|
17
17
|
const random_access_multi_storage_1 = require("@dxos/random-access-multi-storage");
|
|
18
18
|
const util_1 = require("@dxos/util");
|
|
19
19
|
const proto_1 = require("../proto");
|
|
20
|
-
const spacetime_1 = require("../spacetime");
|
|
21
20
|
const feed_store_iterator_1 = require("./feed-store-iterator");
|
|
22
21
|
const log = (0, debug_1.default)('dxos:echo:feed-store-iterator:test');
|
|
23
22
|
faker_1.default.seed(1);
|
|
@@ -32,7 +31,7 @@ describe('feed store iterator', () => {
|
|
|
32
31
|
// Create the ordered feed stream.
|
|
33
32
|
//
|
|
34
33
|
// Update when processed downstream.
|
|
35
|
-
const currentTimeframe = new
|
|
34
|
+
const currentTimeframe = new protocols_1.Timeframe();
|
|
36
35
|
// TODO(burdon): Factor out/generalize.
|
|
37
36
|
// Select message based on timeframe.
|
|
38
37
|
const messageSelector = (candidates) => {
|
|
@@ -43,7 +42,7 @@ describe('feed store iterator', () => {
|
|
|
43
42
|
var _a;
|
|
44
43
|
(0, assert_1.default)((_a = candidate.data) === null || _a === void 0 ? void 0 : _a.timeframe);
|
|
45
44
|
const { data: { timeframe } } = candidate;
|
|
46
|
-
const dependencies =
|
|
45
|
+
const dependencies = protocols_1.Timeframe.dependencies(timeframe, currentTimeframe);
|
|
47
46
|
if (!dependencies.isEmpty()) {
|
|
48
47
|
return undefined;
|
|
49
48
|
}
|
|
@@ -63,7 +62,7 @@ describe('feed store iterator', () => {
|
|
|
63
62
|
return (_a = next[0]) === null || _a === void 0 ? void 0 : _a.i;
|
|
64
63
|
};
|
|
65
64
|
const feedSelector = descriptor => feeds.has(protocols_1.PublicKey.from(descriptor.key));
|
|
66
|
-
const iterator = new feed_store_iterator_1.FeedStoreIterator(feedSelector, messageSelector, new
|
|
65
|
+
const iterator = new feed_store_iterator_1.FeedStoreIterator(feedSelector, messageSelector, new protocols_1.Timeframe());
|
|
67
66
|
//
|
|
68
67
|
// Create feeds.
|
|
69
68
|
//
|
|
@@ -86,7 +85,7 @@ describe('feed store iterator', () => {
|
|
|
86
85
|
for (let i = 0; i < config.numMessages; i++) {
|
|
87
86
|
const feed = faker_1.default.random.arrayElement(Array.from(feeds.values()));
|
|
88
87
|
// Create timeframe dependency.
|
|
89
|
-
const timeframe = new
|
|
88
|
+
const timeframe = new protocols_1.Timeframe(Array.from(feeds.values())
|
|
90
89
|
.filter(f => f.key !== feed.key && f.length > 0)
|
|
91
90
|
.map(f => [protocols_1.PublicKey.from(f.key), f.length - 1]));
|
|
92
91
|
// Create data.
|
|
@@ -100,7 +99,7 @@ describe('feed store iterator', () => {
|
|
|
100
99
|
});
|
|
101
100
|
test('skipping initial messages', async () => {
|
|
102
101
|
const feedStore = new feed_store_1.FeedStore((0, random_access_multi_storage_1.createStorage)('', random_access_multi_storage_1.StorageType.RAM).directory('feed'), {
|
|
103
|
-
valueEncoding: proto_1.schema.getCodecForType('dxos.echo.
|
|
102
|
+
valueEncoding: proto_1.schema.getCodecForType('dxos.test.echo.TestItemMutation')
|
|
104
103
|
});
|
|
105
104
|
const [keyPair1, keyPair2] = [(0, crypto_1.createKeyPair)(), (0, crypto_1.createKeyPair)()];
|
|
106
105
|
const descriptor1 = await feedStore.openReadWriteFeed(protocols_1.PublicKey.from(keyPair1.publicKey), keyPair1.secretKey);
|
|
@@ -111,7 +110,7 @@ describe('feed store iterator', () => {
|
|
|
111
110
|
await (0, pify_1.default)(feed1.append.bind(feed1))({ key: 'feed1', value: '1' });
|
|
112
111
|
await (0, pify_1.default)(feed2.append.bind(feed2))({ key: 'feed2', value: '0' });
|
|
113
112
|
await (0, pify_1.default)(feed2.append.bind(feed2))({ key: 'feed2', value: '1' });
|
|
114
|
-
const timeframe = new
|
|
113
|
+
const timeframe = new protocols_1.Timeframe([[protocols_1.PublicKey.from(feed1.key), 0]]);
|
|
115
114
|
const iterator = new feed_store_iterator_1.FeedStoreIterator(() => true, () => 0, timeframe);
|
|
116
115
|
iterator.addFeedDescriptor(descriptor1);
|
|
117
116
|
iterator.addFeedDescriptor(descriptor2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed-store-iterator.test.js","sourceRoot":"","sources":["../../../src/feeds/feed-store-iterator.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,oDAA4B;AAC5B,kDAA0B;AAC1B,kDAA0B;AAC1B,gDAAwB;AAExB,uCAAoC;AACpC,yCAAuD;AACvD,iDAA4D;AAC5D,+
|
|
1
|
+
{"version":3,"file":"feed-store-iterator.test.js","sourceRoot":"","sources":["../../../src/feeds/feed-store-iterator.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,oDAA4B;AAC5B,kDAA0B;AAC1B,kDAA0B;AAC1B,gDAAwB;AAExB,uCAAoC;AACpC,yCAAuD;AACvD,iDAA4D;AAC5D,+CAAuD;AACvD,mFAA+E;AAC/E,qCAAwC;AAExC,oCAAiE;AAEjE,+DAAwE;AAExE,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,oCAAoC,CAAC,CAAC;AAExD,eAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEd,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;QAC/B,MAAM,MAAM,GAAG;YACb,QAAQ,EAAE,CAAC;YACX,WAAW,EAAE,EAAE;SAChB,CAAC;QAEF,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,IAAA,2CAAa,EAAC,EAAE,EAAE,yCAAW,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE,aAAK,EAAE,CAAC,CAAC;QAEhH,EAAE;QACF,kCAAkC;QAClC,EAAE;QAEF,oCAAoC;QACpC,MAAM,gBAAgB,GAAG,IAAI,qBAAS,EAAE,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,EAAE,GAAG,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -19,6 +19,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
__exportStar(require("./feeds"), exports);
|
|
21
21
|
__exportStar(require("./proto"), exports);
|
|
22
|
-
__exportStar(require("./spacetime"), exports);
|
|
23
22
|
__exportStar(require("./types"), exports);
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,0CAAwB;AACxB,0CAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAQhD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAQhD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,eAAe,CAAC,GAAG,CAAC;CAChC;AACD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,aAAa,CAAC,SAAS,EAAE,CAAC;CAC1C;AACD,yBAAiB,aAAa,CAAC;IAC3B,UAAiB,MAAM;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,UAAU,CAAC;QAClB,OAAO,EAAE,eAAe,CAAC,GAAG,CAAC;KAChC;IACD,UAAiB,SAAS;QACtB,GAAG,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3E,SAAS,EAAE,UAAU,CAAC;QACtB,QAAQ,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC;KACtC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/feed.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAKnD,OAAO,KAAK,kBAAkB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/feed.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAKnD,OAAO,KAAK,kBA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":"","sources":["../../../../../../src/proto/gen/dxos/echo/feed.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"feed.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/feed.ts"],"names":[],"mappings":";;;AAyDA,IAAiB,YAAY,CAM5B;AAND,WAAiB,YAAY;IACzB,IAAY,MAIX;IAJD,WAAY,MAAM;QACd,mCAAQ,CAAA;QACR,uCAAU,CAAA;QACV,yCAAW,CAAA;IACf,CAAC,EAJW,MAAM,GAAN,mBAAM,KAAN,mBAAM,QAIjB;AACL,CAAC,EANgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAM5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitation.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/invitation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"invitation.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/invitation.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,oBAAoB;IACjC,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACvB;AACD,yBAAiB,oBAAoB,CAAC;IAClC,KAAY,IAAI;QACZ,WAAW,IAAI;QACf,OAAO,IAAI;KACd;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitation.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/invitation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"invitation.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/invitation.ts"],"names":[],"mappings":";;;AAyBA,IAAiB,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACjC,IAAY,IAGX;IAHD,WAAY,IAAI;QACZ,6CAAe,CAAA;QACf,qCAAW,CAAA;IACf,CAAC,EAHW,IAAI,GAAJ,yBAAI,KAAJ,yBAAI,QAGf;AACL,CAAC,EALgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAKpC"}
|
|
@@ -16,18 +16,19 @@ export interface PartyMetadata {
|
|
|
16
16
|
* Party key.
|
|
17
17
|
*/
|
|
18
18
|
key?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
19
|
+
genesisFeedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Key of the wriatable control feed.
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
+
controlFeedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
23
24
|
/**
|
|
24
25
|
* Key of the wriatable data feed.
|
|
25
26
|
*/
|
|
26
27
|
dataFeedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
28
|
+
latestTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* List of all feed associated with the party.
|
|
29
31
|
*/
|
|
30
|
-
|
|
31
|
-
latestTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
32
|
+
feedKeys?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
|
|
32
33
|
}
|
|
33
34
|
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/metadata.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;
|
|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C;CACtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,cAAc,MAAM,QAAQ,CAAC;AAGzC,OAAO,KAAK,kBAAkB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,cAAc,MAAM,QAAQ,CAAC;AAGzC,OAAO,KAAK,kBAAkB,MAAM,YAAY,CAAC;AAMjD,MAAM,WAAW,yBAAyB;IACtC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACpF;AACD,MAAM,WAAW,0BAA0B;IACvC,KAAK,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,CAAC;CAC3C;AACD,MAAM,WAAW,4BAA4B;IACzC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,6BAA6B;IAC1C,QAAQ,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC;IAC3C,QAAQ,CAAC,EAAE,6BAA6B,CAAC,QAAQ,CAAC;CACrD;AACD,yBAAiB,6BAA6B,CAAC;IAC3C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-1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/snapshot.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/snapshot.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAWnD,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qCAAqC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AACD,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,mCAAmC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;CAClG;AACD,MAAM,WAAW,gBAAgB;IAC7B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;CAC1B;AACD,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB;AACD,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB;AACD,MAAM,WAAW,aAAa;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AACD,MAAM,WAAW,aAAa;IAC1B,QAAQ,EAAE,UAAU,CAAC;IACrB,IAAI,EAAE,iBAAiB,CAAC;CAC3B;AACD,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/testing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/testing.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,gBAAgB;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeframe.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/timeframe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeframe.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/timeframe.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,EAAE,eAAe,CAAC,KAAK,EAAE,CAAC;CACpC;AACD,yBAAiB,eAAe,CAAC;IAC7B,UAAiB,KAAK;QAClB,OAAO,CAAC,EAAE,UAAU,CAAC;QACrB,GAAG,CAAC,EAAE,MAAM,CAAC;KAChB;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,gBAAgB,CAAC;AAUnD,oBAAY,OAAO;IACf,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,KAAK,IAAI;IACT,IAAI,IAAI;IACR,YAAY,IAAI;CACnB;AACD,MAAM,WAAW,MAAM;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB;AACD,MAAM,WAAW,OAAO;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB;AACD,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,wBAAwB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnF;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;CACtB;AACD,MAAM,WAAW,QAAQ;IACrB,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,OAAO,EAAE,gBAAgB,CAAC,aAAa,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":";;;AAYA,IAAY,OAOX;AAPD,WAAY,OAAO;IACf,2CAAW,CAAA;IACX,6CAAY,CAAA;IACZ,yCAAU,CAAA;IACV,uCAAS,CAAA;IACT,qCAAQ,CAAA;IACR,qDAAgB,CAAA;AACpB,CAAC,EAPW,OAAO,GAAP,eAAO,KAAP,eAAO,QAOlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"echo.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/test/echo.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,gBAAgB;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"echo.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/test/echo.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/google/protobuf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,GAAG;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;CACtB;AACD,MAAM,WAAW,SAAS;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -8,6 +8,7 @@ import * as dxos_echo_snapshot from "./dxos/echo/snapshot";
|
|
|
8
8
|
import * as dxos_echo_testing from "./dxos/echo/testing";
|
|
9
9
|
import * as dxos_echo_timeframe from "./dxos/echo/timeframe";
|
|
10
10
|
import * as dxos_halo_keys from "./dxos/halo/keys";
|
|
11
|
+
import * as dxos_test_echo from "./dxos/test/echo";
|
|
11
12
|
import * as google_protobuf from "./google/protobuf";
|
|
12
13
|
export interface TYPES {
|
|
13
14
|
"dxos.credentials.Message": dxos_credentials.Message;
|
|
@@ -52,6 +53,9 @@ export interface TYPES {
|
|
|
52
53
|
"dxos.halo.keys.KeyType": dxos_halo_keys.KeyType;
|
|
53
54
|
"dxos.halo.keys.PrivKey": dxos_halo_keys.PrivKey;
|
|
54
55
|
"dxos.halo.keys.PubKey": dxos_halo_keys.PubKey;
|
|
56
|
+
"dxos.test.echo.TestItemMutation": dxos_test_echo.TestItemMutation;
|
|
57
|
+
"dxos.test.echo.TestItemSnapshot": dxos_test_echo.TestItemSnapshot;
|
|
58
|
+
"dxos.test.echo.TestListMutation": dxos_test_echo.TestListMutation;
|
|
55
59
|
"google.protobuf.Any": google_protobuf.Any;
|
|
56
60
|
"google.protobuf.Timestamp": google_protobuf.Timestamp;
|
|
57
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,KAAK;IAClB,0BAA0B,EAAE,gBAAgB,CAAC,OAAO,CAAC;IACrD,gCAAgC,EAAE,gBAAgB,CAAC,aAAa,CAAC;IACjE,0CAA0C,EAAE,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC;IACrF,uCAAuC,EAAE,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E,iCAAiC,EAAE,cAAc,CAAC,gBAAgB,CAAC;IACnE,iCAAiC,EAAE,cAAc,CAAC,gBAAgB,CAAC;IACnE,qBAAqB,EAAE,eAAe,CAAC,GAAG,CAAC;IAC3C,2BAA2B,EAAE,eAAe,CAAC,SAAS,CAAC;CAC1D;AACD,MAAM,WAAW,QAAQ;IACrB,+BAA+B,EAAE,iBAAiB,CAAC,WAAW,CAAC;CAClE;AACD,eAAO,MAAM,UAAU,KAA6lc,CAAC;AACrnc,eAAO,MAAM,MAAM,yBAA8D,CAAC"}
|
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.schema = exports.schemaJson = void 0;
|
|
7
7
|
const codec_protobuf_1 = require("@dxos/codec-protobuf");
|
|
8
8
|
const substitutions_1 = __importDefault(require("../substitutions"));
|
|
9
|
-
exports.schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"credentials\":{\"nested\":{\"Message\":{\"fields\":{\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null}},\"comment\":null},\"SignedMessage\":{\"fields\":{\"signed\":{\"rule\":\"required\",\"type\":\"Signed\",\"id\":1,\"comment\":null},\"signatures\":{\"rule\":\"repeated\",\"type\":\"Signature\",\"id\":2,\"comment\":null}},\"nested\":{\"Signature\":{\"fields\":{\"key\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"signature\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"keyChain\":{\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"Signed\":{\"fields\":{\"created\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1,\"comment\":null},\"nonce\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":10,\"comment\":null}},\"comment\":null}},\"comment\":\"A generic container message used whenever messages are signed (e.g. PartyCredential)\"}}},\"echo\":{\"nested\":{\"feed\":{\"nested\":{\"CredentialsMessage\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":\"A container for dxos.credentials.Message\"},\"EchoEnvelope\":{\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"genesis\":{\"type\":\"ItemGenesis\",\"id\":10,\"comment\":null},\"itemMutation\":{\"type\":\"ItemMutation\",\"id\":11,\"comment\":null},\"mutation\":{\"type\":\"bytes\",\"id\":12,\"comment\":null},\"snapshot\":{\"type\":\"ModelSnapshot\",\"id\":13,\"comment\":\"Set the model to the provided snapshot.\"}},\"comment\":\"Wrapper for all ECHO messages.\"},\"FeedMessage\":{\"oneofs\":{\"payload\":{\"oneof\":[\"halo\",\"echo\"],\"comment\":null}},\"fields\":{\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":1,\"comment\":null},\"halo\":{\"type\":\"CredentialsMessage\",\"id\":10,\"comment\":null},\"echo\":{\"type\":\"EchoEnvelope\",\"id\":11,\"comment\":null}},\"comment\":\"Outer message type decoded by Codec.\\nThis is what is written to the feeds.\"},\"ItemGenesis\":{\"fields\":{\"itemType\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"link\":{\"type\":\"LinkData\",\"id\":4,\"comment\":null}},\"comment\":null},\"ItemMutation\":{\"fields\":{\"parentId\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"action\":{\"type\":\"Action\",\"id\":2,\"comment\":null}},\"nested\":{\"Action\":{\"values\":{\"NOOP\":0,\"DELETE\":1,\"RESTORE\":2},\"comment\":null,\"comments\":{\"NOOP\":null,\"DELETE\":null,\"RESTORE\":null}}},\"comment\":\"Item mutation.\"},\"LinkData\":{\"fields\":{\"source\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"target\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"invitation\":{\"nested\":{\"InvitationDescriptor\":{\"fields\":{\"type\":{\"type\":\"Type\",\"id\":1,\"comment\":null},\"swarmKey\":{\"type\":\"bytes\",\"id\":2,\"comment\":null},\"invitation\":{\"type\":\"bytes\",\"id\":3,\"comment\":null},\"identityKey\":{\"type\":\"bytes\",\"id\":4,\"comment\":\"Only present if type == OFFLINE.\"},\"secret\":{\"type\":\"bytes\",\"id\":5,\"comment\":\"Must be stripped out when passing to another peer.\"}},\"nested\":{\"Type\":{\"values\":{\"INTERACTIVE\":1,\"OFFLINE\":2},\"comment\":\"Defines an invitation type.\",\"comments\":{\"INTERACTIVE\":\"Interactive invitation is when both peers are online at the same time.\",\"OFFLINE\":\"Offline is when only a single peer needs to be online at the time.\"}}},\"comment\":null}}},\"metadata\":{\"nested\":{\"EchoMetadata\":{\"fields\":{\"version\":{\"type\":\"int32\",\"id\":1,\"comment\":\"Version number that is inceremnted every time there's a breaking change to the storage schema.\\n\\nThis is used to detect if the storage schema has changed since the last time the client was run.\\nLoading data from a different version will might result in an error.\"},\"parties\":{\"rule\":\"repeated\",\"type\":\"PartyMetadata\",\"id\":2,\"comment\":null},\"created\":{\"type\":\"google.protobuf.Timestamp\",\"id\":3,\"comment\":null},\"updated\":{\"type\":\"google.protobuf.Timestamp\",\"id\":4,\"comment\":null}},\"comment\":null},\"PartyMetadata\":{\"fields\":{\"key\":{\"type\":\"PubKey\",\"id\":1,\"comment\":\"Party key.\"},\"feedKeys\":{\"rule\":\"repeated\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"List of all feed associated with the party.\"},\"dataFeedKey\":{\"type\":\"PubKey\",\"id\":3,\"comment\":\"Key of the wriatable data feed.\"},\"controlFeedKey\":{\"type\":\"PubKey\",\"id\":4,\"comment\":\"Key of the wriatable control feed.\"},\"latestTimeframe\":{\"type\":\"TimeframeVector\",\"id\":5,\"comment\":null}},\"comment\":null}}},\"service\":{\"nested\":{\"DataService\":{\"methods\":{\"SubscribeEntitySet\":{\"requestType\":\"SubscribeEntitySetRequest\",\"responseType\":\"SubscribeEntitySetResponse\",\"responseStream\":true,\"comment\":null},\"SubscribeEntityStream\":{\"requestType\":\"SubscribeEntityStreamRequest\",\"responseType\":\"SubscribeEntityStreamResponse\",\"responseStream\":true,\"comment\":null},\"Write\":{\"requestType\":\"WriteRequest\",\"responseType\":\"MutationReceipt\",\"comment\":null}},\"comment\":null},\"MutationReceipt\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntitySetRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null}},\"comment\":null},\"SubscribeEntitySetResponse\":{\"fields\":{\"added\":{\"rule\":\"repeated\",\"type\":\"EchoEnvelope\",\"id\":1,\"comment\":null},\"deleted\":{\"rule\":\"repeated\",\"type\":\"EchoEnvelope\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntityStreamRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"itemId\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntityStreamResponse\":{\"oneofs\":{\"kind\":{\"oneof\":[\"snapshot\",\"mutation\"],\"comment\":null}},\"fields\":{\"snapshot\":{\"type\":\"ItemSnapshot\",\"id\":1,\"comment\":null},\"mutation\":{\"type\":\"Mutation\",\"id\":2,\"comment\":null}},\"nested\":{\"Mutation\":{\"fields\":{\"data\":{\"type\":\"EchoEnvelope\",\"id\":1,\"comment\":null},\"meta\":{\"type\":\"Metadata\",\"id\":2,\"comment\":null}},\"nested\":{\"Metadata\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"memberKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":4,\"comment\":null}},\"comment\":null}},\"comment\":null}},\"comment\":null},\"WriteRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"mutation\":{\"type\":\"EchoEnvelope\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"snapshot\":{\"nested\":{\"DatabaseSnapshot\":{\"fields\":{\"items\":{\"rule\":\"repeated\",\"type\":\"ItemSnapshot\",\"id\":1,\"comment\":null},\"links\":{\"rule\":\"repeated\",\"type\":\"LinkSnapshot\",\"id\":2,\"comment\":null}},\"comment\":null},\"HaloStateSnapshot\":{\"fields\":{\"messages\":{\"rule\":\"repeated\",\"type\":\"dxos.CredentialsMessage\",\"id\":1,\"comment\":null}},\"comment\":null},\"ItemSnapshot\":{\"oneofs\":{\"_itemId\":{\"oneof\":[\"itemId\"]},\"_itemType\":{\"oneof\":[\"itemType\"]},\"_modelType\":{\"oneof\":[\"modelType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_parentId\":{\"oneof\":[\"parentId\"]},\"_model\":{\"oneof\":[\"model\"]}},\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"itemType\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"parentId\":{\"type\":\"string\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"LinkSnapshot\":{\"oneofs\":{\"_linkId\":{\"oneof\":[\"linkId\"]},\"_linkType\":{\"oneof\":[\"linkType\"]},\"_modelType\":{\"oneof\":[\"modelType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_model\":{\"oneof\":[\"model\"]}},\"fields\":{\"linkId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"linkType\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"source\":{\"rule\":\"required\",\"type\":\"string\",\"id\":5,\"comment\":null},\"target\":{\"rule\":\"required\",\"type\":\"string\",\"id\":6,\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"ModelMutation\":{\"fields\":{\"mutation\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":1,\"comment\":null},\"meta\":{\"rule\":\"required\",\"type\":\"ModelMutationMeta\",\"id\":2,\"comment\":null}},\"comment\":null},\"ModelMutationMeta\":{\"fields\":{\"feedKey\":{\"rule\":\"required\",\"type\":\"dxos.halo.keys.PubKey\",\"id\":1,\"comment\":null},\"seq\":{\"rule\":\"required\",\"type\":\"int32\",\"id\":2,\"comment\":null},\"memberKey\":{\"rule\":\"required\",\"type\":\"dxos.halo.keys.PubKey\",\"id\":3,\"comment\":null}},\"comment\":null},\"ModelSnapshot\":{\"oneofs\":{\"_snapshot\":{\"oneof\":[\"snapshot\"]}},\"fields\":{\"snapshot\":{\"type\":\"bytes\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":\"Encoded model snapshot (defined by the model's codec).\\nIf undefined the state machine will be initialized with it's default state.\"},\"mutations\":{\"rule\":\"repeated\",\"type\":\"ModelMutation\",\"id\":2,\"comment\":\"Mutations to be applied on top of the snapshot, or on top of initial state if the snapshot is undefined.\"}},\"comment\":null},\"PartySnapshot\":{\"fields\":{\"partyKey\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":2,\"comment\":null},\"timestamp\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"halo\":{\"type\":\"HaloStateSnapshot\",\"id\":11,\"comment\":null},\"database\":{\"type\":\"DatabaseSnapshot\",\"id\":12,\"comment\":null}},\"comment\":null}}},\"testing\":{\"nested\":{\"TestItemMutation\":{\"fields\":{\"key\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"value\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"TestItemSnapshot\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"TestItemMutation\",\"id\":1,\"comment\":null}},\"comment\":null},\"TestListMutation\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"timeframe\":{\"nested\":{\"TimeframeVector\":{\"fields\":{\"frames\":{\"rule\":\"repeated\",\"type\":\"Frame\",\"id\":1,\"comment\":null}},\"nested\":{\"Frame\":{\"fields\":{\"feedKey\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":\"Vector timestamp used to order messages.\"}}}}},\"halo\":{\"nested\":{\"keys\":{\"nested\":{\"KeyChain\":{\"fields\":{\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"message\":{\"rule\":\"required\",\"type\":\"SignedMessage\",\"id\":2,\"comment\":null},\"parents\":{\"rule\":\"repeated\",\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"KeyRecord\":{\"fields\":{\"type\":{\"rule\":\"required\",\"type\":\"KeyType\",\"id\":1,\"comment\":\"The `KeyType` type of the key. This is often unknown for keys from other sources.\"},\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"The public key as a Buffer (required).\"},\"secretKey\":{\"type\":\"PrivKey\",\"id\":3,\"comment\":\"The secret key as a Buffer (this will never be visible outside the Keyring).\"},\"hint\":{\"type\":\"bool\",\"id\":4,\"comment\":\"Is this key from a Greeting \\\"hint\\\"?\"},\"own\":{\"type\":\"bool\",\"id\":5,\"comment\":\"Determines if this is our key?\\nUsually true if `secretKey` is present; may be false for \\\"inception keys\\\" such as the Party key.\"},\"trusted\":{\"type\":\"bool\",\"id\":6,\"comment\":\"Is this key to be trusted?\"},\"added\":{\"type\":\"string\",\"id\":7,\"comment\":\"An RFC-3339 date/time string for when the key was added to the Keyring.\"},\"created\":{\"type\":\"string\",\"id\":8,\"comment\":\"An RFC-3339 date/time string for when the key was created.\"}},\"comment\":null},\"KeyRecordList\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"KeyRecord\",\"id\":1,\"comment\":null}},\"comment\":null},\"KeyType\":{\"values\":{\"UNKNOWN\":0,\"IDENTITY\":1,\"DEVICE\":2,\"PARTY\":3,\"FEED\":4,\"DXNS_ADDRESS\":5},\"comment\":null,\"comments\":{\"UNKNOWN\":null,\"IDENTITY\":null,\"DEVICE\":null,\"PARTY\":null,\"FEED\":null,\"DXNS_ADDRESS\":null}},\"PrivKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null},\"PubKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}}}}}}}");
|
|
9
|
+
exports.schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"credentials\":{\"nested\":{\"Message\":{\"fields\":{\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null}},\"comment\":null},\"SignedMessage\":{\"fields\":{\"signed\":{\"rule\":\"required\",\"type\":\"Signed\",\"id\":1,\"comment\":null},\"signatures\":{\"rule\":\"repeated\",\"type\":\"Signature\",\"id\":2,\"comment\":null}},\"nested\":{\"Signature\":{\"fields\":{\"key\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"signature\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"keyChain\":{\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"Signed\":{\"fields\":{\"created\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1,\"comment\":null},\"nonce\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":10,\"comment\":null}},\"comment\":null}},\"comment\":\"A generic container message used whenever messages are signed (e.g. PartyCredential)\"}}},\"echo\":{\"nested\":{\"feed\":{\"nested\":{\"CredentialsMessage\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":\"A container for dxos.credentials.Message\"},\"EchoEnvelope\":{\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"genesis\":{\"type\":\"ItemGenesis\",\"id\":10,\"comment\":null},\"itemMutation\":{\"type\":\"ItemMutation\",\"id\":11,\"comment\":null},\"mutation\":{\"type\":\"bytes\",\"id\":12,\"comment\":null},\"snapshot\":{\"type\":\"ModelSnapshot\",\"id\":13,\"comment\":\"Set the model to the provided snapshot.\"}},\"comment\":\"Wrapper for all ECHO messages.\"},\"FeedMessage\":{\"oneofs\":{\"payload\":{\"oneof\":[\"halo\",\"echo\"],\"comment\":null}},\"fields\":{\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":1,\"comment\":null},\"halo\":{\"type\":\"CredentialsMessage\",\"id\":10,\"comment\":null},\"echo\":{\"type\":\"EchoEnvelope\",\"id\":11,\"comment\":null}},\"comment\":\"Outer message type decoded by Codec.\\nThis is what is written to the feeds.\"},\"ItemGenesis\":{\"fields\":{\"itemType\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"link\":{\"type\":\"LinkData\",\"id\":4,\"comment\":null}},\"comment\":null},\"ItemMutation\":{\"fields\":{\"parentId\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"action\":{\"type\":\"Action\",\"id\":2,\"comment\":null}},\"nested\":{\"Action\":{\"values\":{\"NOOP\":0,\"DELETE\":1,\"RESTORE\":2},\"comment\":null,\"comments\":{\"NOOP\":null,\"DELETE\":null,\"RESTORE\":null}}},\"comment\":\"Item mutation.\"},\"LinkData\":{\"fields\":{\"source\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"target\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"invitation\":{\"nested\":{\"InvitationDescriptor\":{\"fields\":{\"type\":{\"type\":\"Type\",\"id\":1,\"comment\":null},\"swarmKey\":{\"type\":\"bytes\",\"id\":2,\"comment\":null},\"invitation\":{\"type\":\"bytes\",\"id\":3,\"comment\":null},\"identityKey\":{\"type\":\"bytes\",\"id\":4,\"comment\":\"Only present if type == OFFLINE.\"},\"secret\":{\"type\":\"bytes\",\"id\":5,\"comment\":\"Must be stripped out when passing to another peer.\"}},\"nested\":{\"Type\":{\"values\":{\"INTERACTIVE\":1,\"OFFLINE\":2},\"comment\":\"Defines an invitation type.\",\"comments\":{\"INTERACTIVE\":\"Interactive invitation is when both peers are online at the same time.\",\"OFFLINE\":\"Offline is when only a single peer needs to be online at the time.\"}}},\"comment\":null}}},\"metadata\":{\"nested\":{\"EchoMetadata\":{\"fields\":{\"version\":{\"type\":\"int32\",\"id\":1,\"comment\":\"Version number that is inceremnted every time there's a breaking change to the storage schema.\\n\\nThis is used to detect if the storage schema has changed since the last time the client was run.\\nLoading data from a different version will might result in an error.\"},\"parties\":{\"rule\":\"repeated\",\"type\":\"PartyMetadata\",\"id\":2,\"comment\":null},\"created\":{\"type\":\"google.protobuf.Timestamp\",\"id\":3,\"comment\":null},\"updated\":{\"type\":\"google.protobuf.Timestamp\",\"id\":4,\"comment\":null}},\"comment\":null},\"PartyMetadata\":{\"fields\":{\"key\":{\"type\":\"PubKey\",\"id\":1,\"comment\":\"Party key.\"},\"genesisFeedKey\":{\"type\":\"PubKey\",\"id\":6,\"comment\":null},\"controlFeedKey\":{\"type\":\"PubKey\",\"id\":4,\"comment\":\"Key of the wriatable control feed.\"},\"dataFeedKey\":{\"type\":\"PubKey\",\"id\":3,\"comment\":\"Key of the wriatable data feed.\"},\"latestTimeframe\":{\"type\":\"TimeframeVector\",\"id\":5,\"comment\":null},\"feedKeys\":{\"rule\":\"repeated\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"List of all feed associated with the party.\"}},\"comment\":null}}},\"service\":{\"nested\":{\"DataService\":{\"methods\":{\"SubscribeEntitySet\":{\"requestType\":\"SubscribeEntitySetRequest\",\"responseType\":\"SubscribeEntitySetResponse\",\"responseStream\":true,\"comment\":null},\"SubscribeEntityStream\":{\"requestType\":\"SubscribeEntityStreamRequest\",\"responseType\":\"SubscribeEntityStreamResponse\",\"responseStream\":true,\"comment\":null},\"Write\":{\"requestType\":\"WriteRequest\",\"responseType\":\"MutationReceipt\",\"comment\":null}},\"comment\":null},\"MutationReceipt\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntitySetRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null}},\"comment\":null},\"SubscribeEntitySetResponse\":{\"fields\":{\"added\":{\"rule\":\"repeated\",\"type\":\"EchoEnvelope\",\"id\":1,\"comment\":null},\"deleted\":{\"rule\":\"repeated\",\"type\":\"EchoEnvelope\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntityStreamRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"itemId\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntityStreamResponse\":{\"oneofs\":{\"kind\":{\"oneof\":[\"snapshot\",\"mutation\"],\"comment\":null}},\"fields\":{\"snapshot\":{\"type\":\"ItemSnapshot\",\"id\":1,\"comment\":null},\"mutation\":{\"type\":\"Mutation\",\"id\":2,\"comment\":null}},\"nested\":{\"Mutation\":{\"fields\":{\"data\":{\"type\":\"EchoEnvelope\",\"id\":1,\"comment\":null},\"meta\":{\"type\":\"Metadata\",\"id\":2,\"comment\":null}},\"nested\":{\"Metadata\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"memberKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":4,\"comment\":null}},\"comment\":null}},\"comment\":null}},\"comment\":null},\"WriteRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"mutation\":{\"type\":\"EchoEnvelope\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"snapshot\":{\"nested\":{\"DatabaseSnapshot\":{\"fields\":{\"items\":{\"rule\":\"repeated\",\"type\":\"ItemSnapshot\",\"id\":1,\"comment\":null},\"links\":{\"rule\":\"repeated\",\"type\":\"LinkSnapshot\",\"id\":2,\"comment\":null}},\"comment\":null},\"HaloStateSnapshot\":{\"fields\":{\"messages\":{\"rule\":\"repeated\",\"type\":\"dxos.CredentialsMessage\",\"id\":1,\"comment\":null}},\"comment\":null},\"ItemSnapshot\":{\"oneofs\":{\"_itemId\":{\"oneof\":[\"itemId\"]},\"_itemType\":{\"oneof\":[\"itemType\"]},\"_modelType\":{\"oneof\":[\"modelType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_parentId\":{\"oneof\":[\"parentId\"]},\"_model\":{\"oneof\":[\"model\"]}},\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"itemType\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"parentId\":{\"type\":\"string\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"LinkSnapshot\":{\"oneofs\":{\"_linkId\":{\"oneof\":[\"linkId\"]},\"_linkType\":{\"oneof\":[\"linkType\"]},\"_modelType\":{\"oneof\":[\"modelType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_model\":{\"oneof\":[\"model\"]}},\"fields\":{\"linkId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"linkType\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"source\":{\"rule\":\"required\",\"type\":\"string\",\"id\":5,\"comment\":null},\"target\":{\"rule\":\"required\",\"type\":\"string\",\"id\":6,\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"ModelMutation\":{\"fields\":{\"mutation\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":1,\"comment\":null},\"meta\":{\"rule\":\"required\",\"type\":\"ModelMutationMeta\",\"id\":2,\"comment\":null}},\"comment\":null},\"ModelMutationMeta\":{\"fields\":{\"feedKey\":{\"rule\":\"required\",\"type\":\"dxos.halo.keys.PubKey\",\"id\":1,\"comment\":null},\"seq\":{\"rule\":\"required\",\"type\":\"int32\",\"id\":2,\"comment\":null},\"memberKey\":{\"rule\":\"required\",\"type\":\"dxos.halo.keys.PubKey\",\"id\":3,\"comment\":null}},\"comment\":null},\"ModelSnapshot\":{\"oneofs\":{\"_snapshot\":{\"oneof\":[\"snapshot\"]}},\"fields\":{\"snapshot\":{\"type\":\"bytes\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":\"Encoded model snapshot (defined by the model's codec).\\nIf undefined the state machine will be initialized with it's default state.\"},\"mutations\":{\"rule\":\"repeated\",\"type\":\"ModelMutation\",\"id\":2,\"comment\":\"Mutations to be applied on top of the snapshot, or on top of initial state if the snapshot is undefined.\"}},\"comment\":null},\"PartySnapshot\":{\"fields\":{\"partyKey\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":2,\"comment\":null},\"timestamp\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"halo\":{\"type\":\"HaloStateSnapshot\",\"id\":11,\"comment\":null},\"database\":{\"type\":\"DatabaseSnapshot\",\"id\":12,\"comment\":null}},\"comment\":null}}},\"testing\":{\"nested\":{\"TestItemMutation\":{\"fields\":{\"key\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"value\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"TestItemSnapshot\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"TestItemMutation\",\"id\":1,\"comment\":null}},\"comment\":null},\"TestListMutation\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"timeframe\":{\"nested\":{\"TimeframeVector\":{\"fields\":{\"frames\":{\"rule\":\"repeated\",\"type\":\"Frame\",\"id\":1,\"comment\":null}},\"nested\":{\"Frame\":{\"fields\":{\"feedKey\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":\"Vector timestamp used to order messages.\"}}}}},\"halo\":{\"nested\":{\"keys\":{\"nested\":{\"KeyChain\":{\"fields\":{\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"message\":{\"rule\":\"required\",\"type\":\"SignedMessage\",\"id\":2,\"comment\":null},\"parents\":{\"rule\":\"repeated\",\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"KeyRecord\":{\"fields\":{\"type\":{\"rule\":\"required\",\"type\":\"KeyType\",\"id\":1,\"comment\":\"The `KeyType` type of the key. This is often unknown for keys from other sources.\"},\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"The public key as a Buffer (required).\"},\"secretKey\":{\"type\":\"PrivKey\",\"id\":3,\"comment\":\"The secret key as a Buffer (this will never be visible outside the Keyring).\"},\"hint\":{\"type\":\"bool\",\"id\":4,\"comment\":\"Is this key from a Greeting \\\"hint\\\"?\"},\"own\":{\"type\":\"bool\",\"id\":5,\"comment\":\"Determines if this is our key?\\nUsually true if `secretKey` is present; may be false for \\\"inception keys\\\" such as the Party key.\"},\"trusted\":{\"type\":\"bool\",\"id\":6,\"comment\":\"Is this key to be trusted?\"},\"added\":{\"type\":\"string\",\"id\":7,\"comment\":\"An RFC-3339 date/time string for when the key was added to the Keyring.\"},\"created\":{\"type\":\"string\",\"id\":8,\"comment\":\"An RFC-3339 date/time string for when the key was created.\"}},\"comment\":null},\"KeyRecordList\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"KeyRecord\",\"id\":1,\"comment\":null}},\"comment\":null},\"KeyType\":{\"values\":{\"UNKNOWN\":0,\"IDENTITY\":1,\"DEVICE\":2,\"PARTY\":3,\"FEED\":4,\"DXNS_ADDRESS\":5},\"comment\":null,\"comments\":{\"UNKNOWN\":null,\"IDENTITY\":null,\"DEVICE\":null,\"PARTY\":null,\"FEED\":null,\"DXNS_ADDRESS\":null}},\"PrivKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null},\"PubKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null}}}}},\"test\":{\"nested\":{\"echo\":{\"nested\":{\"TestItemMutation\":{\"fields\":{\"key\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"value\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"TestItemSnapshot\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"TestItemMutation\",\"id\":1,\"comment\":null}},\"comment\":null},\"TestListMutation\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}}}}}}}");
|
|
10
10
|
exports.schema = codec_protobuf_1.Schema.fromJson(exports.schemaJson, substitutions_1.default);
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAY9C,qEAA6C;AAqDhC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,8kcAA8kc,CAAC,CAAC;AACxmc,QAAA,MAAM,GAAG,uBAAM,CAAC,QAAQ,CAAkB,kBAAU,EAAE,uBAAa,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from './gen';
|
|
2
2
|
export * from './gen/dxos/echo/feed';
|
|
3
|
+
export * from './gen/dxos/echo/invitation';
|
|
3
4
|
export * from './gen/dxos/echo/metadata';
|
|
4
|
-
export * from './gen/dxos/echo/snapshot';
|
|
5
|
-
export * from './gen/dxos/echo/testing';
|
|
6
5
|
export * from './gen/dxos/echo/service';
|
|
7
|
-
export * from './gen/dxos/echo/
|
|
6
|
+
export * from './gen/dxos/echo/snapshot';
|
|
7
|
+
export * from './gen/dxos/test/echo';
|
|
8
8
|
export * from './messages';
|
|
9
9
|
export declare const codec: import("@dxos/codec-protobuf").ProtoCodec<import("./gen/dxos/echo/feed").FeedMessage>;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/proto/index.ts"],"names":[],"mappings":"AAMA,cAAc,OAAO,CAAC;AACtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/proto/index.ts"],"names":[],"mappings":"AAMA,cAAc,OAAO,CAAC;AACtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,sBAAsB,CAAC;AAErC,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,KAAK,uFAAuD,CAAC"}
|
package/dist/src/proto/index.js
CHANGED
|
@@ -21,11 +21,11 @@ exports.codec = void 0;
|
|
|
21
21
|
const gen_1 = require("./gen");
|
|
22
22
|
__exportStar(require("./gen"), exports);
|
|
23
23
|
__exportStar(require("./gen/dxos/echo/feed"), exports);
|
|
24
|
+
__exportStar(require("./gen/dxos/echo/invitation"), exports);
|
|
24
25
|
__exportStar(require("./gen/dxos/echo/metadata"), exports);
|
|
25
|
-
__exportStar(require("./gen/dxos/echo/snapshot"), exports);
|
|
26
|
-
__exportStar(require("./gen/dxos/echo/testing"), exports);
|
|
27
26
|
__exportStar(require("./gen/dxos/echo/service"), exports);
|
|
28
|
-
__exportStar(require("./gen/dxos/echo/
|
|
27
|
+
__exportStar(require("./gen/dxos/echo/snapshot"), exports);
|
|
28
|
+
__exportStar(require("./gen/dxos/test/echo"), exports);
|
|
29
29
|
__exportStar(require("./messages"), exports);
|
|
30
30
|
exports.codec = gen_1.schema.getCodecForType('dxos.echo.feed.FeedMessage');
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/proto/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;AAEF,+BAA+B;AAE/B,wCAAsB;AACtB,uDAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/proto/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;AAEF,+BAA+B;AAE/B,wCAAsB;AACtB,uDAAqC;AACrC,6DAA2C;AAC3C,2DAAyC;AACzC,0DAAwC;AACxC,2DAAyC;AAEzC,uDAAqC;AAErC,6CAA2B;AAEd,QAAA,KAAK,GAAG,YAAM,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Timeframe } from '
|
|
1
|
+
import { Timeframe } from '@dxos/protocols';
|
|
2
2
|
import { ItemID, ItemType } from '../types';
|
|
3
3
|
import { FeedMessage } from './gen/dxos/echo/feed';
|
|
4
4
|
export declare const createItemGenesis: (itemId: ItemID, itemType: ItemType) => FeedMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/proto/messages.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/proto/messages.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAMnD,eAAO,MAAM,iBAAiB,WAAY,MAAM,YAAY,QAAQ,KAAG,WAMrE,CAAC;AAMH,eAAO,MAAM,sBAAsB,WACzB,MAAM,OAAO,MAAM,SAAS,MAAM,cAAc,SAAS,KAChE,WASD,CAAC"}
|
|
@@ -23,7 +23,7 @@ const createTestItemMutation = (itemId, key, value, timeframe) => ({
|
|
|
23
23
|
timeframe,
|
|
24
24
|
echo: {
|
|
25
25
|
itemId,
|
|
26
|
-
mutation: gen_1.schema.getCodecForType('dxos.echo.
|
|
26
|
+
mutation: gen_1.schema.getCodecForType('dxos.test.echo.TestItemMutation').encode({
|
|
27
27
|
key,
|
|
28
28
|
value
|
|
29
29
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/proto/messages.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/proto/messages.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAKF,+BAA+B;AAG/B,EAAE;AACF,mBAAmB;AACnB,EAAE;AAEK,MAAM,iBAAiB,GAAG,CAAC,MAAc,EAAE,QAAkB,EAAe,EAAE,CAAC,CAAC;IACrF,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,QAAQ;SACT;KACF;CACF,CAAC,CAAC;AANU,QAAA,iBAAiB,qBAM3B;AAEH,EAAE;AACF,WAAW;AACX,EAAE;AAEK,MAAM,sBAAsB,GAAG,CACpC,MAAc,EAAE,GAAW,EAAE,KAAa,EAAE,SAAqB,EACpD,EAAE,CAAC,CAAC;IACjB,SAAS;IACT,IAAI,EAAE;QACJ,MAAM;QACN,QAAQ,EAAE,YAAM,CAAC,eAAe,CAAC,iCAAiC,CAAC,CAAC,MAAM,CAAC;YACzE,GAAG;YACH,KAAK;SACN,CAAC;KACH;CACF,CAAC,CAAC;AAXU,QAAA,sBAAsB,0BAWhC"}
|
|
@@ -8,13 +8,13 @@ declare const _default: {
|
|
|
8
8
|
decode: (msg: any) => Message;
|
|
9
9
|
};
|
|
10
10
|
'dxos.echo.timeframe.TimeframeVector': {
|
|
11
|
-
encode: (timeframe: import("
|
|
11
|
+
encode: (timeframe: import("@dxos/protocols").Timeframe) => {
|
|
12
12
|
frames: {
|
|
13
13
|
feedKey: Uint8Array;
|
|
14
14
|
seq: number;
|
|
15
15
|
}[];
|
|
16
16
|
};
|
|
17
|
-
decode: (vector: any) => import("
|
|
17
|
+
decode: (vector: any) => import("@dxos/protocols").Timeframe;
|
|
18
18
|
};
|
|
19
19
|
'dxos.halo.keys.PubKey': {
|
|
20
20
|
encode: (value: import("@dxos/protocols").PublicKey) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"substitutions.d.ts","sourceRoot":"","sources":["../../../src/proto/substitutions.ts"],"names":[],"mappings":";AAKA,OAAO,EAAS,OAAO,EAAE,MAAM,mBAAmB,CAAC;;;
|
|
1
|
+
{"version":3,"file":"substitutions.d.ts","sourceRoot":"","sources":["../../../src/proto/substitutions.ts"],"names":[],"mappings":";AAKA,OAAO,EAAS,OAAO,EAAE,MAAM,mBAAmB,CAAC;;;sBASjC,OAAO;;;sBACP,GAAG,KAAG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAP/B,wBASE"}
|
|
@@ -6,11 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const codec_protobuf_1 = require("@dxos/codec-protobuf");
|
|
7
7
|
const credentials_1 = require("@dxos/credentials");
|
|
8
8
|
const protocols_1 = require("@dxos/protocols");
|
|
9
|
-
const spacetime_1 = require("../spacetime");
|
|
10
9
|
exports.default = {
|
|
11
10
|
...codec_protobuf_1.timestampSubstitutions,
|
|
12
11
|
...protocols_1.publicKeySubstitutions,
|
|
13
|
-
...
|
|
12
|
+
...protocols_1.timeframeSubstitutions,
|
|
14
13
|
// TODO(marik-d): Temporary codec bridging logic until we can require proto declarations across package boundaries.
|
|
15
14
|
'dxos.echo.feed.CredentialsMessage': {
|
|
16
15
|
encode: (msg) => ({ data: credentials_1.codec.encode(msg) }),
|