@dxos/echo-protocol 2.18.0 → 2.19.0
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-writer.d.ts +2 -0
- package/dist/src/feeds/feed-writer.d.ts.map +1 -1
- package/dist/src/feeds/feed-writer.js +5 -1
- package/dist/src/feeds/feed-writer.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts +26 -0
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -0
- package/dist/src/proto/gen/{dxos.js → dxos/credentials.js} +1 -1
- package/dist/src/proto/gen/dxos/credentials.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +57 -0
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/{echo.js → echo/feed.js} +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +2 -2
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +46 -0
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/{keys.js → service.js} +1 -1
- package/dist/src/proto/gen/dxos/echo/service.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +2 -2
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +59 -0
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/keys.js +12 -0
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -0
- package/dist/src/proto/gen/index.d.ts +31 -15
- 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/substitutions.d.ts +3 -3
- package/dist/src/proto/substitutions.js +3 -3
- package/dist/src/proto/substitutions.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -9
- package/src/feeds/feed-writer.ts +8 -1
- package/src/proto/defs/metadata.proto +3 -3
- package/src/proto/defs/proto.proto +7 -0
- package/src/proto/gen/dxos/credentials.ts +31 -0
- package/src/proto/gen/dxos/echo/feed.ts +64 -0
- package/src/proto/gen/dxos/echo/metadata.ts +6 -6
- package/src/proto/gen/dxos/echo/service.ts +50 -0
- package/src/proto/gen/dxos/echo/snapshot.ts +6 -6
- package/src/proto/gen/dxos/echo/testing.ts +4 -4
- package/src/proto/gen/dxos/halo/keys.ts +65 -0
- package/src/proto/gen/google/protobuf.ts +4 -4
- package/src/proto/gen/index.ts +32 -16
- package/src/proto/index.ts +3 -3
- package/src/proto/messages.ts +1 -1
- package/src/proto/substitutions.ts +3 -3
- package/dist/src/proto/gen/dxos/echo/keys.d.ts +0 -4
- package/dist/src/proto/gen/dxos/echo/keys.d.ts.map +0 -1
- package/dist/src/proto/gen/dxos/echo/keys.js.map +0 -1
- package/dist/src/proto/gen/dxos/echo/remote.d.ts +0 -10
- package/dist/src/proto/gen/dxos/echo/remote.d.ts.map +0 -1
- package/dist/src/proto/gen/dxos/echo/remote.js +0 -3
- package/dist/src/proto/gen/dxos/echo/remote.js.map +0 -1
- package/dist/src/proto/gen/dxos/echo.d.ts +0 -31
- package/dist/src/proto/gen/dxos/echo.d.ts.map +0 -1
- package/dist/src/proto/gen/dxos/echo.js.map +0 -1
- package/dist/src/proto/gen/dxos.d.ts +0 -10
- package/dist/src/proto/gen/dxos.d.ts.map +0 -1
- package/dist/src/proto/gen/dxos.js.map +0 -1
- package/src/proto/defs/dxos.proto +0 -33
- package/src/proto/defs/echo.proto +0 -62
- package/src/proto/defs/key.proto +0 -11
- package/src/proto/defs/remote.proto +0 -25
- package/src/proto/defs/snapshot.proto +0 -82
- package/src/proto/gen/dxos/echo/keys.ts +0 -12
- package/src/proto/gen/dxos/echo/remote.ts +0 -16
- package/src/proto/gen/dxos/echo.ts +0 -38
- package/src/proto/gen/dxos.ts +0 -16
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import { Event } from '@dxos/async';
|
|
2
3
|
import { PublicKey } from '@dxos/crypto';
|
|
3
4
|
import type { HypercoreFeed } from '@dxos/feed-store';
|
|
4
5
|
import { MaybePromise } from '@dxos/util';
|
|
@@ -16,6 +17,7 @@ export declare function createMockFeedWriterFromStream(strem: NodeJS.WritableStr
|
|
|
16
17
|
export declare class MockFeedWriter<T> implements FeedWriter<T> {
|
|
17
18
|
readonly feedKey: PublicKey;
|
|
18
19
|
readonly messages: T[];
|
|
20
|
+
readonly written: Event<[T, WriteReceipt]>;
|
|
19
21
|
constructor(feedKey?: PublicKey);
|
|
20
22
|
write(message: T): Promise<WriteReceipt>;
|
|
21
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed-writer.d.ts","sourceRoot":"","sources":["../../../src/feeds/feed-writer.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC,CAAA;CAC7C;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,YAAY,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAI3G;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAG,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,CAUvE;AAED,wBAAgB,8BAA8B,CAAE,KAAK,EAAE,MAAM,CAAC,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC,CAU7F;AAED,qBAAa,cAAc,CAAC,CAAC,CAAE,YAAW,UAAU,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"feed-writer.d.ts","sourceRoot":"","sources":["../../../src/feeds/feed-writer.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC,CAAA;CAC7C;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,YAAY,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAI3G;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAG,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,CAUvE;AAED,wBAAgB,8BAA8B,CAAE,KAAK,EAAE,MAAM,CAAC,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC,CAU7F;AAED,qBAAa,cAAc,CAAC,CAAC,CAAE,YAAW,UAAU,CAAC,CAAC,CAAC;IAMnD,QAAQ,CAAC,OAAO;IALlB,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAK;IAE3B,QAAQ,CAAC,OAAO,2BAAiC;gBAGtC,OAAO,YAAqB;IAGjC,KAAK,CAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAYhD"}
|
|
@@ -8,6 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.MockFeedWriter = exports.createMockFeedWriterFromStream = exports.createFeedWriter = exports.mapFeedWriter = void 0;
|
|
10
10
|
const pify_1 = __importDefault(require("pify"));
|
|
11
|
+
const async_1 = require("@dxos/async");
|
|
11
12
|
const crypto_1 = require("@dxos/crypto");
|
|
12
13
|
function mapFeedWriter(map, writer) {
|
|
13
14
|
return {
|
|
@@ -43,13 +44,16 @@ class MockFeedWriter {
|
|
|
43
44
|
constructor(feedKey = crypto_1.PublicKey.random()) {
|
|
44
45
|
this.feedKey = feedKey;
|
|
45
46
|
this.messages = [];
|
|
47
|
+
this.written = new async_1.Event();
|
|
46
48
|
}
|
|
47
49
|
async write(message) {
|
|
48
50
|
this.messages.push(message);
|
|
49
|
-
|
|
51
|
+
const receipt = {
|
|
50
52
|
feedKey: this.feedKey,
|
|
51
53
|
seq: this.messages.length - 1
|
|
52
54
|
};
|
|
55
|
+
this.written.emit([message, receipt]);
|
|
56
|
+
return receipt;
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
exports.MockFeedWriter = MockFeedWriter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed-writer.js","sourceRoot":"","sources":["../../../src/feeds/feed-writer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,gDAAwB;AAExB,yCAAyC;AAezC,SAAgB,aAAa,CAAQ,GAAgC,EAAE,MAAqB;IAC1F,OAAO;QACL,KAAK,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC;KACzD,CAAC;AACJ,CAAC;AAJD,sCAIC;AAED,SAAgB,gBAAgB,CAAK,IAAmB;IACtD,OAAO;QACL,KAAK,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;YACrB,MAAM,GAAG,GAAG,MAAM,IAAA,cAAI,EAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACxD,OAAO;gBACL,OAAO,EAAE,kBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;gBACjC,GAAG;aACJ,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAVD,4CAUC;AAED,SAAgB,8BAA8B,CAAE,KAA4B;IAC1E,OAAO;QACL,KAAK,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;YACrB,MAAM,IAAA,cAAI,EAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAC7C,OAAO;gBACL,OAAO,EAAE,kBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAS,CAAC,MAAM,CAAC,CAAC;gBACvD,GAAG,EAAE,CAAC;aACP,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAVD,wEAUC;AAED,MAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"feed-writer.js","sourceRoot":"","sources":["../../../src/feeds/feed-writer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,gDAAwB;AAExB,uCAAoC;AACpC,yCAAyC;AAezC,SAAgB,aAAa,CAAQ,GAAgC,EAAE,MAAqB;IAC1F,OAAO;QACL,KAAK,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC;KACzD,CAAC;AACJ,CAAC;AAJD,sCAIC;AAED,SAAgB,gBAAgB,CAAK,IAAmB;IACtD,OAAO;QACL,KAAK,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;YACrB,MAAM,GAAG,GAAG,MAAM,IAAA,cAAI,EAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YACxD,OAAO;gBACL,OAAO,EAAE,kBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;gBACjC,GAAG;aACJ,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAVD,4CAUC;AAED,SAAgB,8BAA8B,CAAE,KAA4B;IAC1E,OAAO;QACL,KAAK,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;YACrB,MAAM,IAAA,cAAI,EAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAC7C,OAAO;gBACL,OAAO,EAAE,kBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAS,CAAC,MAAM,CAAC,CAAC;gBACvD,GAAG,EAAE,CAAC;aACP,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAVD,wEAUC;AAED,MAAa,cAAc;IAKzB,YACW,UAAU,kBAAS,CAAC,MAAM,EAAE;QAA5B,YAAO,GAAP,OAAO,CAAqB;QAL9B,aAAQ,GAAQ,EAAE,CAAA;QAElB,YAAO,GAAG,IAAI,aAAK,EAAqB,CAAA;IAI9C,CAAC;IAEJ,KAAK,CAAC,KAAK,CAAE,OAAU;QACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE5B,MAAM,OAAO,GAAiB;YAC5B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;SAC9B,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;QAEtC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AArBD,wCAqBC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import substitutions from "../../substitutions";
|
|
2
|
+
import * as dxos_halo_keys from "./halo/keys";
|
|
3
|
+
import * as google_protobuf from "../google/protobuf";
|
|
4
|
+
export interface Message {
|
|
5
|
+
payload: google_protobuf.Any;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A generic container message used whenever messages are signed (e.g. PartyCredential)
|
|
9
|
+
*/
|
|
10
|
+
export interface SignedMessage {
|
|
11
|
+
signed: SignedMessage.Signed;
|
|
12
|
+
signatures?: SignedMessage.Signature[];
|
|
13
|
+
}
|
|
14
|
+
export declare namespace SignedMessage {
|
|
15
|
+
interface Signed {
|
|
16
|
+
created: string;
|
|
17
|
+
nonce: Uint8Array;
|
|
18
|
+
payload: google_protobuf.Any;
|
|
19
|
+
}
|
|
20
|
+
interface Signature {
|
|
21
|
+
key: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
22
|
+
signature: Uint8Array;
|
|
23
|
+
keyChain?: dxos_halo_keys.KeyChain;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAMhD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAC9C,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,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QACzE,SAAS,EAAE,UAAU,CAAC;QACtB,QAAQ,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC;KACtC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import substitutions from "../../../substitutions";
|
|
2
|
+
/**
|
|
3
|
+
* Outer message type decoded by Codec.
|
|
4
|
+
* This is what is written to the feeds.
|
|
5
|
+
*/
|
|
6
|
+
export interface FeedMessage {
|
|
7
|
+
halo?: ReturnType<typeof substitutions["dxos.echo.feed.CredentialsMessage"]["decode"]>;
|
|
8
|
+
echo?: EchoEnvelope;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A container for dxos.credentials.Message
|
|
12
|
+
*/
|
|
13
|
+
export interface CredentialsMessage {
|
|
14
|
+
data?: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Vector timestamp used to order messages.
|
|
18
|
+
*/
|
|
19
|
+
export interface TimeframeVector {
|
|
20
|
+
frames?: TimeframeVector.Frame[];
|
|
21
|
+
}
|
|
22
|
+
export declare namespace TimeframeVector {
|
|
23
|
+
interface Frame {
|
|
24
|
+
feedKey?: Uint8Array;
|
|
25
|
+
seq?: number;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Wrapper for all ECHO messages.
|
|
30
|
+
*/
|
|
31
|
+
export interface EchoEnvelope {
|
|
32
|
+
itemId?: string;
|
|
33
|
+
timeframe?: ReturnType<typeof substitutions["dxos.echo.feed.TimeframeVector"]["decode"]>;
|
|
34
|
+
genesis?: ItemGenesis;
|
|
35
|
+
itemMutation?: ItemMutation;
|
|
36
|
+
mutation?: Uint8Array;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Item creation.
|
|
40
|
+
*/
|
|
41
|
+
export interface ItemGenesis {
|
|
42
|
+
itemType?: string;
|
|
43
|
+
modelType?: string;
|
|
44
|
+
modelVersion?: string;
|
|
45
|
+
link?: LinkData;
|
|
46
|
+
}
|
|
47
|
+
export interface LinkData {
|
|
48
|
+
source?: string;
|
|
49
|
+
target?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Item mutation.
|
|
53
|
+
*/
|
|
54
|
+
export interface ItemMutation {
|
|
55
|
+
parentId?: string;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=feed.d.ts.map
|
|
@@ -0,0 +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;AAQnD;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,mCAAmC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvF,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AACD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB;AACD;;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;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,gCAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzF,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,UAAU,CAAC;CACzB;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB;AACD,MAAM,WAAW,QAAQ;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feed.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/feed.ts"],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ export interface EchoMetadata {
|
|
|
3
3
|
parties?: PartyMetadata[];
|
|
4
4
|
}
|
|
5
5
|
export interface PartyMetadata {
|
|
6
|
-
key?: ReturnType<typeof substitutions["dxos.
|
|
7
|
-
feedKeys?: ReturnType<typeof substitutions["dxos.
|
|
6
|
+
key?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
7
|
+
feedKeys?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>[];
|
|
8
8
|
}
|
|
9
9
|
//# 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;AAQnD,MAAM,WAAW,YAAY;IACzB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;CAC7B;AACD,MAAM,WAAW,aAAa;IAC1B,GAAG,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/metadata.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAQnD,MAAM,WAAW,YAAY;IACzB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;CAC7B;AACD,MAAM,WAAW,aAAa;IAC1B,GAAG,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1E,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;CACpF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../../substitutions";
|
|
3
|
+
import * as dxos_echo_feed from "./feed";
|
|
4
|
+
import * as dxos_echo_snapshot from "./snapshot";
|
|
5
|
+
export interface SubscribeEntitySetRequest {
|
|
6
|
+
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
7
|
+
}
|
|
8
|
+
export interface SubscribeEntitySetResponse {
|
|
9
|
+
added?: dxos_echo_feed.EchoEnvelope[];
|
|
10
|
+
deleted?: dxos_echo_feed.EchoEnvelope[];
|
|
11
|
+
}
|
|
12
|
+
export interface SubscribeEntityStreamRequest {
|
|
13
|
+
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
14
|
+
itemId?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SubscribeEntityStreamResponse {
|
|
17
|
+
snapshot?: dxos_echo_snapshot.ItemSnapshot;
|
|
18
|
+
mutation?: SubscribeEntityStreamResponse.Mutation;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace SubscribeEntityStreamResponse {
|
|
21
|
+
interface Mutation {
|
|
22
|
+
data?: dxos_echo_feed.EchoEnvelope;
|
|
23
|
+
meta?: SubscribeEntityStreamResponse.Mutation.Metadata;
|
|
24
|
+
}
|
|
25
|
+
namespace Mutation {
|
|
26
|
+
interface Metadata {
|
|
27
|
+
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
28
|
+
memberKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
29
|
+
seq?: number;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export interface WriteRequest {
|
|
34
|
+
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
35
|
+
mutation?: dxos_echo_feed.EchoEnvelope;
|
|
36
|
+
}
|
|
37
|
+
export interface MutationReceipt {
|
|
38
|
+
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
39
|
+
seq?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface DataService {
|
|
42
|
+
SubscribeEntitySet: (request: SubscribeEntitySetRequest) => Stream<SubscribeEntitySetResponse>;
|
|
43
|
+
SubscribeEntityStream: (request: SubscribeEntityStreamRequest) => Stream<SubscribeEntityStreamResponse>;
|
|
44
|
+
Write: (request: WriteRequest) => Promise<MutationReceipt>;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +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;AAEzC,OAAO,KAAK,kBAAkB,MAAM,YAAY,CAAC;AAIjD,MAAM,WAAW,yBAAyB;IACtC,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CAClF;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,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,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,UAAiB,QAAQ;QACrB,IAAI,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC;QACnC,IAAI,CAAC,EAAE,6BAA6B,CAAC,QAAQ,CAAC,QAAQ,CAAC;KAC1D;IACD,UAAiB,QAAQ,CAAC;QACtB,UAAiB,QAAQ;YACrB,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC9E,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAChF,GAAG,CAAC,EAAE,MAAM,CAAC;SAChB;KACJ;CACJ;AACD,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,QAAQ,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC;CAC1C;AACD,MAAM,WAAW,eAAe;IAC5B,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,WAAW;IACxB,kBAAkB,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC/F,qBAAqB,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,MAAM,CAAC,6BAA6B,CAAC,CAAC;IACxG,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CAC9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/service.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import substitutions from "../../../substitutions";
|
|
2
2
|
export interface PartySnapshot {
|
|
3
3
|
partyKey?: Uint8Array;
|
|
4
|
-
timeframe?: ReturnType<typeof substitutions["dxos.echo.TimeframeVector"]["decode"]>;
|
|
4
|
+
timeframe?: ReturnType<typeof substitutions["dxos.echo.feed.TimeframeVector"]["decode"]>;
|
|
5
5
|
timestamp?: number;
|
|
6
6
|
halo?: HaloStateSnapshot;
|
|
7
7
|
database?: DatabaseSnapshot;
|
|
@@ -10,7 +10,7 @@ export interface DatabaseSnapshot {
|
|
|
10
10
|
items?: ItemSnapshot[];
|
|
11
11
|
}
|
|
12
12
|
export interface HaloStateSnapshot {
|
|
13
|
-
messages?: ReturnType<typeof substitutions["dxos.CredentialsMessage"]["decode"]>[];
|
|
13
|
+
messages?: ReturnType<typeof substitutions["dxos.echo.feed.CredentialsMessage"]["decode"]>[];
|
|
14
14
|
}
|
|
15
15
|
export interface ItemSnapshot {
|
|
16
16
|
itemId?: string;
|
|
@@ -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;AAQnD,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,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;AAQnD,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,gCAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AACD,MAAM,WAAW,gBAAgB;IAC7B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;CAC1B;AACD,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,mCAAmC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;CAChG;AACD,MAAM,WAAW,YAAY;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB;AACD,MAAM,WAAW,aAAa;IAC1B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AACD,MAAM,WAAW,kBAAkB;IAC/B,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;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,UAAU,CAAC;CACzB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import substitutions from "../../../substitutions";
|
|
2
|
+
import * as dxos_credentials from "../credentials";
|
|
3
|
+
export declare enum KeyType {
|
|
4
|
+
UNKNOWN = 0,
|
|
5
|
+
IDENTITY = 1,
|
|
6
|
+
DEVICE = 2,
|
|
7
|
+
PARTY = 3,
|
|
8
|
+
FEED = 4
|
|
9
|
+
}
|
|
10
|
+
export interface PubKey {
|
|
11
|
+
data?: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
export interface PrivKey {
|
|
14
|
+
data?: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export interface KeyRecord {
|
|
17
|
+
/**
|
|
18
|
+
* - The `KeyType` type of the key. This is often unknown for keys from other sources.
|
|
19
|
+
*/
|
|
20
|
+
type: KeyType;
|
|
21
|
+
/**
|
|
22
|
+
* - The public key as a Buffer (required).
|
|
23
|
+
*/
|
|
24
|
+
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
25
|
+
/**
|
|
26
|
+
* - The secret key as a Buffer (this will never be visible outside the Keyring).
|
|
27
|
+
*/
|
|
28
|
+
secretKey?: PrivKey;
|
|
29
|
+
/**
|
|
30
|
+
* - Is this key from a Greeting "hint"?
|
|
31
|
+
*/
|
|
32
|
+
hint?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* - Is this our key? Usually true if `secretKey` is present,
|
|
35
|
+
* may be false for "inception keys" such as the Party key.
|
|
36
|
+
*/
|
|
37
|
+
own?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* - Is this key to be trusted?
|
|
40
|
+
*/
|
|
41
|
+
trusted?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* - An RFC-3339 date/time string for when the key was added to the Keyring.
|
|
44
|
+
*/
|
|
45
|
+
added?: string;
|
|
46
|
+
/**
|
|
47
|
+
* - An RFC-3339 date/time string for when the key was created.
|
|
48
|
+
*/
|
|
49
|
+
created?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface KeyRecordList {
|
|
52
|
+
keys?: KeyRecord[];
|
|
53
|
+
}
|
|
54
|
+
export interface KeyChain {
|
|
55
|
+
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
56
|
+
message: dxos_credentials.SignedMessage;
|
|
57
|
+
parents?: KeyChain[];
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -0,0 +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;AAOnD,oBAAY,OAAO;IACf,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,KAAK,IAAI;IACT,IAAI,IAAI;CACX;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,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;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,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,OAAO,EAAE,gBAAgB,CAAC,aAAa,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeyType = void 0;
|
|
4
|
+
var KeyType;
|
|
5
|
+
(function (KeyType) {
|
|
6
|
+
KeyType[KeyType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
7
|
+
KeyType[KeyType["IDENTITY"] = 1] = "IDENTITY";
|
|
8
|
+
KeyType[KeyType["DEVICE"] = 2] = "DEVICE";
|
|
9
|
+
KeyType[KeyType["PARTY"] = 3] = "PARTY";
|
|
10
|
+
KeyType[KeyType["FEED"] = 4] = "FEED";
|
|
11
|
+
})(KeyType = exports.KeyType || (exports.KeyType = {}));
|
|
12
|
+
//# sourceMappingURL=keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":";;;AASA,IAAY,OAMX;AAND,WAAY,OAAO;IACf,2CAAW,CAAA;IACX,6CAAY,CAAA;IACZ,yCAAU,CAAA;IACV,uCAAS,CAAA;IACT,qCAAQ,CAAA;AACZ,CAAC,EANW,OAAO,GAAP,eAAO,KAAP,eAAO,QAMlB"}
|
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
import { Schema } from "@dxos/codec-protobuf";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as dxos_echo_keys from "./dxos/echo/keys";
|
|
2
|
+
import * as dxos_credentials from "./dxos/credentials";
|
|
3
|
+
import * as dxos_echo_feed from "./dxos/echo/feed";
|
|
5
4
|
import * as dxos_echo_metadata from "./dxos/echo/metadata";
|
|
6
|
-
import * as
|
|
5
|
+
import * as dxos_echo_service from "./dxos/echo/service";
|
|
7
6
|
import * as dxos_echo_snapshot from "./dxos/echo/snapshot";
|
|
8
7
|
import * as dxos_echo_testing from "./dxos/echo/testing";
|
|
8
|
+
import * as dxos_halo_keys from "./dxos/halo/keys";
|
|
9
9
|
import * as google_protobuf from "./google/protobuf";
|
|
10
10
|
export interface TYPES {
|
|
11
|
-
"dxos.
|
|
12
|
-
"dxos.
|
|
13
|
-
"dxos.
|
|
14
|
-
"dxos.
|
|
15
|
-
"dxos.echo.
|
|
16
|
-
"dxos.echo.
|
|
11
|
+
"dxos.credentials.Message": dxos_credentials.Message;
|
|
12
|
+
"dxos.credentials.SignedMessage": dxos_credentials.SignedMessage;
|
|
13
|
+
"dxos.credentials.SignedMessage.Signature": dxos_credentials.SignedMessage.Signature;
|
|
14
|
+
"dxos.credentials.SignedMessage.Signed": dxos_credentials.SignedMessage.Signed;
|
|
15
|
+
"dxos.echo.feed.CredentialsMessage": dxos_echo_feed.CredentialsMessage;
|
|
16
|
+
"dxos.echo.feed.EchoEnvelope": dxos_echo_feed.EchoEnvelope;
|
|
17
|
+
"dxos.echo.feed.FeedMessage": dxos_echo_feed.FeedMessage;
|
|
18
|
+
"dxos.echo.feed.ItemGenesis": dxos_echo_feed.ItemGenesis;
|
|
19
|
+
"dxos.echo.feed.ItemMutation": dxos_echo_feed.ItemMutation;
|
|
20
|
+
"dxos.echo.feed.LinkData": dxos_echo_feed.LinkData;
|
|
21
|
+
"dxos.echo.feed.TimeframeVector": dxos_echo_feed.TimeframeVector;
|
|
22
|
+
"dxos.echo.feed.TimeframeVector.Frame": dxos_echo_feed.TimeframeVector.Frame;
|
|
17
23
|
"dxos.echo.metadata.EchoMetadata": dxos_echo_metadata.EchoMetadata;
|
|
18
24
|
"dxos.echo.metadata.PartyMetadata": dxos_echo_metadata.PartyMetadata;
|
|
19
|
-
"dxos.echo.
|
|
20
|
-
"dxos.echo.
|
|
25
|
+
"dxos.echo.service.MutationReceipt": dxos_echo_service.MutationReceipt;
|
|
26
|
+
"dxos.echo.service.SubscribeEntitySetRequest": dxos_echo_service.SubscribeEntitySetRequest;
|
|
27
|
+
"dxos.echo.service.SubscribeEntitySetResponse": dxos_echo_service.SubscribeEntitySetResponse;
|
|
28
|
+
"dxos.echo.service.SubscribeEntityStreamRequest": dxos_echo_service.SubscribeEntityStreamRequest;
|
|
29
|
+
"dxos.echo.service.SubscribeEntityStreamResponse": dxos_echo_service.SubscribeEntityStreamResponse;
|
|
30
|
+
"dxos.echo.service.SubscribeEntityStreamResponse.Mutation": dxos_echo_service.SubscribeEntityStreamResponse.Mutation;
|
|
31
|
+
"dxos.echo.service.SubscribeEntityStreamResponse.Mutation.Metadata": dxos_echo_service.SubscribeEntityStreamResponse.Mutation.Metadata;
|
|
32
|
+
"dxos.echo.service.WriteRequest": dxos_echo_service.WriteRequest;
|
|
21
33
|
"dxos.echo.snapshot.DatabaseSnapshot": dxos_echo_snapshot.DatabaseSnapshot;
|
|
22
34
|
"dxos.echo.snapshot.HaloStateSnapshot": dxos_echo_snapshot.HaloStateSnapshot;
|
|
23
35
|
"dxos.echo.snapshot.ItemSnapshot": dxos_echo_snapshot.ItemSnapshot;
|
|
@@ -27,12 +39,16 @@ export interface TYPES {
|
|
|
27
39
|
"dxos.echo.snapshot.ModelSnapshot": dxos_echo_snapshot.ModelSnapshot;
|
|
28
40
|
"dxos.echo.snapshot.PartySnapshot": dxos_echo_snapshot.PartySnapshot;
|
|
29
41
|
"dxos.echo.testing.TestItemMutation": dxos_echo_testing.TestItemMutation;
|
|
30
|
-
"dxos.
|
|
31
|
-
"dxos.
|
|
32
|
-
"dxos.
|
|
42
|
+
"dxos.halo.keys.KeyChain": dxos_halo_keys.KeyChain;
|
|
43
|
+
"dxos.halo.keys.KeyRecord": dxos_halo_keys.KeyRecord;
|
|
44
|
+
"dxos.halo.keys.KeyRecordList": dxos_halo_keys.KeyRecordList;
|
|
45
|
+
"dxos.halo.keys.KeyType": dxos_halo_keys.KeyType;
|
|
46
|
+
"dxos.halo.keys.PrivKey": dxos_halo_keys.PrivKey;
|
|
47
|
+
"dxos.halo.keys.PubKey": dxos_halo_keys.PubKey;
|
|
33
48
|
"google.protobuf.Any": google_protobuf.Any;
|
|
34
49
|
}
|
|
35
50
|
export interface SERVICES {
|
|
51
|
+
"dxos.echo.service.DataService": dxos_echo_service.DataService;
|
|
36
52
|
}
|
|
37
53
|
export declare const schemaJson: any;
|
|
38
54
|
export declare const schema: Schema<TYPES, SERVICES>;
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -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\":{\"
|
|
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},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":2,\"comment\":null},\"genesis\":{\"type\":\"ItemGenesis\",\"id\":10,\"comment\":null},\"itemMutation\":{\"type\":\"ItemMutation\",\"id\":11,\"comment\":null},\"mutation\":{\"type\":\"bytes\",\"id\":12,\"comment\":null}},\"comment\":\"Wrapper for all ECHO messages.\"},\"FeedMessage\":{\"fields\":{\"halo\":{\"type\":\"CredentialsMessage\",\"id\":1,\"comment\":null},\"echo\":{\"type\":\"EchoEnvelope\",\"id\":2,\"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\":\"Item creation.\"},\"ItemMutation\":{\"fields\":{\"parentId\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":\"Item mutation.\"},\"LinkData\":{\"fields\":{\"source\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"target\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"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.\"}}},\"metadata\":{\"nested\":{\"EchoMetadata\":{\"fields\":{\"parties\":{\"rule\":\"repeated\",\"type\":\"PartyMetadata\",\"id\":1,\"comment\":null}},\"comment\":null},\"PartyMetadata\":{\"fields\":{\"key\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"feedKeys\":{\"rule\":\"repeated\",\"type\":\"PubKey\",\"id\":2,\"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}},\"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}},\"comment\":null},\"HaloStateSnapshot\":{\"fields\":{\"messages\":{\"rule\":\"repeated\",\"type\":\"dxos.CredentialsMessage\",\"id\":1,\"comment\":null}},\"comment\":null},\"ItemSnapshot\":{\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"itemType\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"comment\":null},\"parentId\":{\"type\":\"string\",\"id\":5,\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":6,\"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},\"ModelMutationArray\":{\"fields\":{\"mutations\":{\"rule\":\"repeated\",\"type\":\"ModelMutation\",\"id\":1,\"comment\":null}},\"comment\":null},\"ModelMutationMeta\":{\"fields\":{\"feedKey\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":1,\"comment\":null},\"seq\":{\"rule\":\"required\",\"type\":\"int32\",\"id\":2,\"comment\":null},\"memberKey\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":3,\"comment\":null}},\"comment\":null},\"ModelSnapshot\":{\"oneofs\":{\"snapshot\":{\"oneof\":[\"custom\",\"array\"],\"comment\":null}},\"fields\":{\"custom\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"array\":{\"type\":\"ModelMutationArray\",\"id\":2,\"comment\":null}},\"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}}}}},\"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\":\"- Is this our key? Usually true if `secretKey` is present,\\nmay 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},\"comment\":null,\"comments\":{\"UNKNOWN\":null,\"IDENTITY\":null,\"DEVICE\":null,\"PARTY\":null,\"FEED\":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}}}}}}}");
|
|
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;AAS9C,qEAA6C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAS9C,qEAA6C;AA4ChC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,0/SAA0/S,CAAC,CAAC;AACphT,QAAA,MAAM,GAAG,uBAAM,CAAC,QAAQ,CAAkB,kBAAU,EAAE,uBAAa,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './gen';
|
|
2
|
-
export * from './gen/dxos';
|
|
3
|
-
export * from './gen/dxos/echo';
|
|
2
|
+
export * from './gen/dxos/echo/feed';
|
|
4
3
|
export * from './gen/dxos/echo/metadata';
|
|
5
4
|
export * from './gen/dxos/echo/snapshot';
|
|
6
5
|
export * from './gen/dxos/echo/testing';
|
|
6
|
+
export * from './gen/dxos/echo/service';
|
|
7
7
|
export * from './messages';
|
|
8
|
-
export declare const codec: import("@dxos/codec-protobuf").ProtoCodec<import("./gen/dxos").FeedMessage>;
|
|
8
|
+
export declare const codec: import("@dxos/codec-protobuf").ProtoCodec<import("./gen/dxos/echo/feed").FeedMessage>;
|
|
9
9
|
//# 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,
|
|
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,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AAExC,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,KAAK,uFAAuD,CAAC"}
|
package/dist/src/proto/index.js
CHANGED
|
@@ -16,11 +16,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.codec = void 0;
|
|
17
17
|
const gen_1 = require("./gen");
|
|
18
18
|
__exportStar(require("./gen"), exports);
|
|
19
|
-
__exportStar(require("./gen/dxos"), exports);
|
|
20
|
-
__exportStar(require("./gen/dxos/echo"), exports);
|
|
19
|
+
__exportStar(require("./gen/dxos/echo/feed"), exports);
|
|
21
20
|
__exportStar(require("./gen/dxos/echo/metadata"), exports);
|
|
22
21
|
__exportStar(require("./gen/dxos/echo/snapshot"), exports);
|
|
23
22
|
__exportStar(require("./gen/dxos/echo/testing"), exports);
|
|
23
|
+
__exportStar(require("./gen/dxos/echo/service"), exports);
|
|
24
24
|
__exportStar(require("./messages"), exports);
|
|
25
|
-
exports.codec = gen_1.schema.getCodecForType('dxos.FeedMessage');
|
|
25
|
+
exports.codec = gen_1.schema.getCodecForType('dxos.echo.feed.FeedMessage');
|
|
26
26
|
//# 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,
|
|
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,2DAAyC;AACzC,2DAAyC;AACzC,0DAAwC;AACxC,0DAAwC;AAExC,6CAA2B;AAEd,QAAA,KAAK,GAAG,YAAM,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Timeframe } from '../spacetime';
|
|
2
2
|
import { ItemID, ItemType } from '../types';
|
|
3
|
-
import { FeedMessage } from './gen/dxos';
|
|
3
|
+
import { FeedMessage } from './gen/dxos/echo/feed';
|
|
4
4
|
export declare const createItemGenesis: (itemId: ItemID, itemType: ItemType) => FeedMessage;
|
|
5
5
|
export declare const createTestItemMutation: (itemId: ItemID, key: string, value: string, timeframe?: Timeframe | undefined) => FeedMessage;
|
|
6
6
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/proto/messages.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/proto/messages.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,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,wCACzC,WASD,CAAC"}
|
|
@@ -2,13 +2,13 @@ import { Message } from '@dxos/credentials';
|
|
|
2
2
|
import { PublicKey } from '@dxos/crypto';
|
|
3
3
|
import { Timeframe } from '../spacetime';
|
|
4
4
|
declare const _default: {
|
|
5
|
-
'dxos.CredentialsMessage': {
|
|
5
|
+
'dxos.echo.feed.CredentialsMessage': {
|
|
6
6
|
encode: (msg: Message) => {
|
|
7
7
|
data: Uint8Array;
|
|
8
8
|
};
|
|
9
9
|
decode: (msg: any) => Message;
|
|
10
10
|
};
|
|
11
|
-
'dxos.echo.TimeframeVector': {
|
|
11
|
+
'dxos.echo.feed.TimeframeVector': {
|
|
12
12
|
encode: (timeframe: Timeframe) => {
|
|
13
13
|
frames: {
|
|
14
14
|
feedKey: Uint8Array;
|
|
@@ -17,7 +17,7 @@ declare const _default: {
|
|
|
17
17
|
};
|
|
18
18
|
decode: (vector: any) => Timeframe;
|
|
19
19
|
};
|
|
20
|
-
'dxos.
|
|
20
|
+
'dxos.halo.keys.PubKey': {
|
|
21
21
|
encode: (value: PublicKey) => {
|
|
22
22
|
data: Uint8Array;
|
|
23
23
|
};
|