@dxos/protocols 2.33.8-dev.8609bc45 → 2.33.9-dev.e605934d
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/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools.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/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/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.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/google/protobuf.js.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/public-key.d.ts +19 -0
- package/dist/src/public-key.d.ts.map +1 -1
- package/dist/src/public-key.js +35 -1
- package/dist/src/public-key.js.map +1 -1
- package/dist/src/public-key.test.js +7 -0
- package/dist/src/public-key.test.js.map +1 -1
- package/dist/src/timeframe.d.ts +57 -0
- package/dist/src/timeframe.d.ts.map +1 -0
- package/dist/src/timeframe.js +127 -0
- package/dist/src/timeframe.js.map +1 -0
- package/dist/src/timeframe.test.d.ts +2 -0
- package/dist/src/timeframe.test.d.ts.map +1 -0
- package/dist/src/timeframe.test.js +113 -0
- package/dist/src/timeframe.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -3
- package/src/index.ts +1 -0
- package/src/proto/dxos/echo/metadata.proto +10 -7
- package/src/proto/dxos/halo/greet.proto +1 -2
- package/src/proto/dxos/test/echo.proto +20 -0
- package/src/proto/gen/dxos/bot.ts +1 -0
- package/src/proto/gen/dxos/client.ts +1 -0
- package/src/proto/gen/dxos/config.ts +1 -0
- package/src/proto/gen/dxos/credentials/auth.ts +1 -0
- package/src/proto/gen/dxos/credentials/greet.ts +2 -1
- package/src/proto/gen/dxos/credentials/identity.ts +1 -0
- package/src/proto/gen/dxos/credentials/party.ts +1 -0
- package/src/proto/gen/dxos/credentials.ts +1 -0
- package/src/proto/gen/dxos/devtools.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/timeframe.ts +1 -0
- package/src/proto/gen/dxos/halo/keys.ts +1 -0
- package/src/proto/gen/dxos/rpc.ts +1 -0
- package/src/proto/gen/dxos/test/echo.ts +29 -0
- package/src/proto/gen/google/protobuf.ts +1 -0
- package/src/proto/gen/index.ts +5 -1
- package/src/public-key.test.ts +10 -0
- package/src/public-key.ts +38 -0
- package/src/timeframe.test.ts +125 -0
- package/src/timeframe.ts +144 -0
package/src/index.ts
CHANGED
|
@@ -24,19 +24,22 @@ message EchoMetadata {
|
|
|
24
24
|
google.protobuf.Timestamp updated = 4;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
// TODO(dmaretskyi): Cleanup numbering.
|
|
27
28
|
message PartyMetadata {
|
|
28
29
|
/// Party key.
|
|
29
30
|
PubKey key = 1;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
repeated PubKey feedKeys = 2;
|
|
33
|
-
|
|
34
|
-
/// Key of the wriatable data feed.
|
|
35
|
-
PubKey dataFeedKey = 3;
|
|
32
|
+
PubKey genesis_feed_key = 6;
|
|
36
33
|
|
|
37
34
|
/// Key of the wriatable control feed.
|
|
38
|
-
PubKey
|
|
35
|
+
PubKey control_feed_key = 4;
|
|
36
|
+
|
|
37
|
+
/// Key of the wriatable data feed.
|
|
38
|
+
PubKey data_feed_key = 3;
|
|
39
39
|
|
|
40
40
|
// Latest timeframe reached while processing party messages.
|
|
41
|
-
TimeframeVector
|
|
41
|
+
TimeframeVector latest_timeframe = 5;
|
|
42
|
+
|
|
43
|
+
/// List of all feed associated with the party.
|
|
44
|
+
repeated PubKey feed_keys = 2;
|
|
42
45
|
}
|
|
@@ -95,8 +95,7 @@ message NotarizeResponse {
|
|
|
95
95
|
// and key hints necessary to bootstrap the invitee into the Party.
|
|
96
96
|
repeated google.protobuf.Any copies = 1;
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
repeated PubKey feedHints = 2;
|
|
98
|
+
PubKey genesisFeed = 3;
|
|
100
99
|
};
|
|
101
100
|
|
|
102
101
|
// TODO(dmaretskyi): Verify if this is valid. Wouldn't the knowledge of the party's public key be enough to verify the rest of credential messages?
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2020 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
syntax = "proto3";
|
|
6
|
+
|
|
7
|
+
package dxos.test.echo;
|
|
8
|
+
|
|
9
|
+
message TestItemMutation {
|
|
10
|
+
string key = 1;
|
|
11
|
+
string value = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message TestListMutation {
|
|
15
|
+
string data = 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message TestItemSnapshot {
|
|
19
|
+
repeated TestItemMutation keys = 1;
|
|
20
|
+
}
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "./halo/keys";
|
|
17
17
|
import * as dxos_rpc from "./rpc";
|
|
18
|
+
import * as dxos_test_echo from "./test/echo";
|
|
18
19
|
import * as google_protobuf from "../google/protobuf";
|
|
19
20
|
export interface BotPackageSpecifier {
|
|
20
21
|
/**
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "./halo/keys";
|
|
17
17
|
import * as dxos_rpc from "./rpc";
|
|
18
|
+
import * as dxos_test_echo from "./test/echo";
|
|
18
19
|
import * as google_protobuf from "../google/protobuf";
|
|
19
20
|
export interface SystemService {
|
|
20
21
|
getConfig: (request: void) => Promise<dxos_config.Config>;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "./halo/keys";
|
|
17
17
|
import * as dxos_rpc from "./rpc";
|
|
18
|
+
import * as dxos_test_echo from "./test/echo";
|
|
18
19
|
import * as google_protobuf from "../google/protobuf";
|
|
19
20
|
export interface Config {
|
|
20
21
|
version?: number;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
/**
|
|
20
21
|
* The payload for a SignedMessage sent during handshake for replication authentication.
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
/**
|
|
20
21
|
* A Greeter command.
|
|
@@ -42,7 +43,7 @@ export interface HandshakeResponse {
|
|
|
42
43
|
}
|
|
43
44
|
export interface NotarizeResponse {
|
|
44
45
|
copies?: google_protobuf.Any[];
|
|
45
|
-
|
|
46
|
+
genesisFeed?: dxos_halo_keys.PubKey;
|
|
46
47
|
}
|
|
47
48
|
export interface KeyHint {
|
|
48
49
|
publicKey?: dxos_halo_keys.PubKey;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
export interface IdentityInfo {
|
|
20
21
|
publicKey?: dxos_halo_keys.PubKey;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
export interface PartyCredential {
|
|
20
21
|
type?: PartyCredential.Type;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "./halo/keys";
|
|
17
17
|
import * as dxos_rpc from "./rpc";
|
|
18
|
+
import * as dxos_test_echo from "./test/echo";
|
|
18
19
|
import * as google_protobuf from "../google/protobuf";
|
|
19
20
|
export interface Message {
|
|
20
21
|
payload: google_protobuf.Any;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "./halo/keys";
|
|
17
17
|
import * as dxos_rpc from "./rpc";
|
|
18
|
+
import * as dxos_test_echo from "./test/echo";
|
|
18
19
|
import * as google_protobuf from "../google/protobuf";
|
|
19
20
|
export interface DevtoolsHost {
|
|
20
21
|
events: (request: void) => Stream<Event>;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
/**
|
|
20
21
|
* Outer message type decoded by Codec.
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
export interface InvitationDescriptor {
|
|
20
21
|
type?: InvitationDescriptor.Type;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
export interface EchoMetadata {
|
|
20
21
|
/**
|
|
@@ -33,17 +34,18 @@ export interface PartyMetadata {
|
|
|
33
34
|
* Party key.
|
|
34
35
|
*/
|
|
35
36
|
key?: dxos_halo_keys.PubKey;
|
|
37
|
+
genesisFeedKey?: dxos_halo_keys.PubKey;
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* Key of the wriatable control feed.
|
|
38
40
|
*/
|
|
39
|
-
|
|
41
|
+
controlFeedKey?: dxos_halo_keys.PubKey;
|
|
40
42
|
/**
|
|
41
43
|
* Key of the wriatable data feed.
|
|
42
44
|
*/
|
|
43
45
|
dataFeedKey?: dxos_halo_keys.PubKey;
|
|
46
|
+
latestTimeframe?: dxos_echo_timeframe.TimeframeVector;
|
|
44
47
|
/**
|
|
45
|
-
*
|
|
48
|
+
* List of all feed associated with the party.
|
|
46
49
|
*/
|
|
47
|
-
|
|
48
|
-
latestTimeframe?: dxos_echo_timeframe.TimeframeVector;
|
|
50
|
+
feedKeys?: dxos_halo_keys.PubKey[];
|
|
49
51
|
}
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_snapshot from "./snapshot";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
export interface SubscribeEntitySetRequest {
|
|
20
21
|
partyKey?: dxos_halo_keys.PubKey;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_service from "./service";
|
|
|
15
15
|
import * as dxos_echo_timeframe from "./timeframe";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
export interface PartySnapshot {
|
|
20
21
|
partyKey?: Uint8Array;
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_service from "./service";
|
|
|
15
15
|
import * as dxos_echo_snapshot from "./snapshot";
|
|
16
16
|
import * as dxos_halo_keys from "../halo/keys";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
/**
|
|
20
21
|
* Vector timestamp used to order messages.
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_service from "../echo/service";
|
|
|
15
15
|
import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
16
16
|
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
17
17
|
import * as dxos_rpc from "../rpc";
|
|
18
|
+
import * as dxos_test_echo from "../test/echo";
|
|
18
19
|
import * as google_protobuf from "../../google/protobuf";
|
|
19
20
|
export enum KeyType {
|
|
20
21
|
UNKNOWN = 0,
|
|
@@ -15,6 +15,7 @@ import * as dxos_echo_service from "./echo/service";
|
|
|
15
15
|
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
16
16
|
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
17
17
|
import * as dxos_halo_keys from "./halo/keys";
|
|
18
|
+
import * as dxos_test_echo from "./test/echo";
|
|
18
19
|
import * as google_protobuf from "../google/protobuf";
|
|
19
20
|
export interface RpcMessage {
|
|
20
21
|
request?: Request;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import * as dxos_bot from "../bot";
|
|
3
|
+
import * as dxos_client from "../client";
|
|
4
|
+
import * as dxos_config from "../config";
|
|
5
|
+
import * as dxos_credentials from "../credentials";
|
|
6
|
+
import * as dxos_credentials_auth from "../credentials/auth";
|
|
7
|
+
import * as dxos_credentials_greet from "../credentials/greet";
|
|
8
|
+
import * as dxos_credentials_identity from "../credentials/identity";
|
|
9
|
+
import * as dxos_credentials_party from "../credentials/party";
|
|
10
|
+
import * as dxos_devtools from "../devtools";
|
|
11
|
+
import * as dxos_echo_feed from "../echo/feed";
|
|
12
|
+
import * as dxos_echo_invitation from "../echo/invitation";
|
|
13
|
+
import * as dxos_echo_metadata from "../echo/metadata";
|
|
14
|
+
import * as dxos_echo_service from "../echo/service";
|
|
15
|
+
import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
16
|
+
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
17
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
18
|
+
import * as dxos_rpc from "../rpc";
|
|
19
|
+
import * as google_protobuf from "../../google/protobuf";
|
|
20
|
+
export interface TestItemMutation {
|
|
21
|
+
key?: string;
|
|
22
|
+
value?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface TestListMutation {
|
|
25
|
+
data?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface TestItemSnapshot {
|
|
28
|
+
keys?: TestItemMutation[];
|
|
29
|
+
}
|
|
@@ -16,6 +16,7 @@ import * as dxos_echo_snapshot from "../dxos/echo/snapshot";
|
|
|
16
16
|
import * as dxos_echo_timeframe from "../dxos/echo/timeframe";
|
|
17
17
|
import * as dxos_halo_keys from "../dxos/halo/keys";
|
|
18
18
|
import * as dxos_rpc from "../dxos/rpc";
|
|
19
|
+
import * as dxos_test_echo from "../dxos/test/echo";
|
|
19
20
|
export interface Empty {
|
|
20
21
|
}
|
|
21
22
|
export interface Any {
|