@dxos/client 2.33.5-dev.ea3876ba → 2.33.5-dev.fee8f5fe
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/api/client.test.js +3 -5
- package/dist/src/api/client.test.js.map +1 -1
- package/dist/src/api/index.js +5 -1
- package/dist/src/api/index.js.map +1 -1
- package/dist/src/api/invitations/index.js +5 -1
- package/dist/src/api/invitations/index.js.map +1 -1
- package/dist/src/api/proxies/index.js +5 -1
- package/dist/src/api/proxies/index.js.map +1 -1
- package/dist/src/devtools/config.d.ts.map +1 -1
- package/dist/src/devtools/config.js +3 -5
- package/dist/src/devtools/config.js.map +1 -1
- package/dist/src/devtools/devtools-host.d.ts.map +1 -1
- package/dist/src/devtools/devtools-host.js +38 -68
- package/dist/src/devtools/devtools-host.js.map +1 -1
- package/dist/src/devtools/feeds.d.ts.map +1 -1
- package/dist/src/devtools/feeds.js +49 -50
- package/dist/src/devtools/feeds.js.map +1 -1
- package/dist/src/devtools/index.js +5 -1
- package/dist/src/devtools/index.js.map +1 -1
- package/dist/src/devtools/items.d.ts.map +1 -1
- package/dist/src/devtools/items.js +23 -25
- package/dist/src/devtools/items.js.map +1 -1
- package/dist/src/devtools/keys.d.ts.map +1 -1
- package/dist/src/devtools/keys.js +19 -23
- package/dist/src/devtools/keys.js.map +1 -1
- package/dist/src/devtools/network.d.ts.map +1 -1
- package/dist/src/devtools/network.js +51 -59
- package/dist/src/devtools/network.js.map +1 -1
- package/dist/src/devtools/parties.d.ts.map +1 -1
- package/dist/src/devtools/parties.js +23 -25
- package/dist/src/devtools/parties.js.map +1 -1
- package/dist/src/index.js +5 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/proto/gen/dxos/client.d.ts +15 -15
- 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 +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.d.ts +3 -3
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools.d.ts +15 -15
- package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +2 -14
- 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/service.d.ts +7 -7
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +4 -4
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +13 -0
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/timeframe.js +3 -0
- package/dist/src/proto/gen/dxos/echo/timeframe.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +3 -3
- 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 +2 -2
- 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/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 +3 -2
- 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/substitutions.d.ts +1 -1
- package/dist/src/services/impl/halo.d.ts.map +1 -1
- package/dist/src/services/impl/halo.js +1 -3
- package/dist/src/services/impl/halo.js.map +1 -1
- package/dist/src/services/impl/index.js +5 -1
- package/dist/src/services/impl/index.js.map +1 -1
- package/dist/src/services/impl/party.d.ts.map +1 -1
- package/dist/src/services/impl/party.js +10 -16
- package/dist/src/services/impl/party.js.map +1 -1
- package/dist/src/services/impl/profile.d.ts.map +1 -1
- package/dist/src/services/impl/profile.js +1 -3
- package/dist/src/services/impl/profile.js.map +1 -1
- package/dist/src/services/impl/services.d.ts.map +1 -1
- package/dist/src/services/impl/services.js +14 -16
- package/dist/src/services/impl/services.js.map +1 -1
- package/dist/src/services/impl/system.d.ts.map +1 -1
- package/dist/src/services/impl/system.js +6 -10
- package/dist/src/services/impl/system.js.map +1 -1
- package/dist/src/services/index.js +5 -1
- package/dist/src/services/index.js.map +1 -1
- package/dist/src/services/service-host.js +5 -1
- package/dist/src/services/service-host.js.map +1 -1
- package/dist/src/util/index.js +5 -1
- package/dist/src/util/index.js.map +1 -1
- package/dist/src/util/messages.js +2 -2
- package/dist/src/util/messages.js.map +1 -1
- package/dist/src/util/subscription.d.ts +2 -2
- package/dist/src/util/subscription.d.ts.map +1 -1
- package/dist/src/util/subscription.js +6 -8
- package/dist/src/util/subscription.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/src/api/client.test.ts +3 -5
- package/src/devtools/config.ts +3 -5
- package/src/devtools/devtools-host.ts +38 -68
- package/src/devtools/feeds.ts +53 -57
- package/src/devtools/items.ts +25 -27
- package/src/devtools/keys.ts +19 -26
- package/src/devtools/network.ts +47 -54
- package/src/devtools/parties.ts +25 -27
- package/src/proto/gen/dxos/client.ts +16 -15
- package/src/proto/gen/dxos/config.ts +2 -1
- package/src/proto/gen/dxos/credentials.ts +4 -3
- package/src/proto/gen/dxos/devtools.ts +16 -15
- package/src/proto/gen/dxos/echo/feed.ts +3 -14
- package/src/proto/gen/dxos/echo/invitation.ts +1 -0
- package/src/proto/gen/dxos/echo/service.ts +8 -7
- package/src/proto/gen/dxos/echo/snapshot.ts +5 -4
- package/src/proto/gen/dxos/echo/timeframe.ts +25 -0
- package/src/proto/gen/dxos/halo/keys.ts +4 -3
- package/src/proto/gen/dxos/rpc.ts +3 -2
- package/src/proto/gen/google/protobuf.ts +1 -0
- package/src/proto/gen/index.ts +4 -3
- package/src/services/impl/halo.ts +1 -3
- package/src/services/impl/party.ts +10 -16
- package/src/services/impl/profile.ts +1 -3
- package/src/services/impl/services.ts +14 -16
- package/src/services/impl/system.ts +6 -10
- package/src/util/subscription.ts +6 -8
|
@@ -7,6 +7,7 @@ import * as dxos_echo_feed from "./echo/feed";
|
|
|
7
7
|
import * as dxos_echo_invitation from "./echo/invitation";
|
|
8
8
|
import * as dxos_echo_service from "./echo/service";
|
|
9
9
|
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
10
|
+
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
10
11
|
import * as dxos_halo_keys from "./halo/keys";
|
|
11
12
|
import * as dxos_rpc from "./rpc";
|
|
12
13
|
import * as google_protobuf from "../google/protobuf";
|
|
@@ -44,7 +45,7 @@ export interface RedeemedInvitation {
|
|
|
44
45
|
/**
|
|
45
46
|
* Only on party invitations that are finished.
|
|
46
47
|
*/
|
|
47
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
48
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
48
49
|
}
|
|
49
50
|
export interface AuthenticateInvitationRequest {
|
|
50
51
|
/**
|
|
@@ -54,7 +55,7 @@ export interface AuthenticateInvitationRequest {
|
|
|
54
55
|
secret?: Uint8Array;
|
|
55
56
|
}
|
|
56
57
|
export interface Profile {
|
|
57
|
-
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
58
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
58
59
|
username?: string;
|
|
59
60
|
}
|
|
60
61
|
export interface SubscribeProfileResponse {
|
|
@@ -69,7 +70,7 @@ export interface RecoverProfileRequest {
|
|
|
69
70
|
seedPhrase?: string;
|
|
70
71
|
}
|
|
71
72
|
export interface Contact {
|
|
72
|
-
publicKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
73
|
+
publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
73
74
|
displayName?: string;
|
|
74
75
|
}
|
|
75
76
|
export interface Contacts {
|
|
@@ -90,7 +91,7 @@ export interface SignRequest {
|
|
|
90
91
|
/**
|
|
91
92
|
* - The public key of the key that is supposed to be used for signing.
|
|
92
93
|
*/
|
|
93
|
-
publicKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
94
|
+
publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
94
95
|
payload?: Uint8Array;
|
|
95
96
|
}
|
|
96
97
|
export interface SignResponse {
|
|
@@ -116,28 +117,28 @@ export interface HaloService {
|
|
|
116
117
|
getDevicePreference: (request: GetPreferenceRequest) => Promise<GetPreferenceResponse>;
|
|
117
118
|
}
|
|
118
119
|
export interface Party {
|
|
119
|
-
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
120
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
120
121
|
isOpen: boolean;
|
|
121
122
|
isActive: boolean;
|
|
122
123
|
members?: Party.Member[];
|
|
123
124
|
}
|
|
124
125
|
export namespace Party {
|
|
125
126
|
export interface Member {
|
|
126
|
-
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
127
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
127
128
|
displayName?: string;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
export interface SubscribePartyRequest {
|
|
131
|
-
partyKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
132
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
132
133
|
}
|
|
133
134
|
export interface GetPartyDetailsRequest {
|
|
134
|
-
partyKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
135
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
135
136
|
}
|
|
136
137
|
export interface PartyDetails {
|
|
137
138
|
/**
|
|
138
139
|
* The timeframe of mutations processed by the client.
|
|
139
140
|
*/
|
|
140
|
-
processedTimeframe: ReturnType<typeof substitutions["dxos.echo.
|
|
141
|
+
processedTimeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
141
142
|
}
|
|
142
143
|
export interface SubscribePartyResponse {
|
|
143
144
|
party?: Party;
|
|
@@ -146,36 +147,36 @@ export interface SubscribePartiesResponse {
|
|
|
146
147
|
parties?: Party[];
|
|
147
148
|
}
|
|
148
149
|
export interface CreateInvitationRequest {
|
|
149
|
-
partyKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
150
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
150
151
|
/**
|
|
151
152
|
* When specified the invitation will be of OFFLINE type, not requiring secret exchange.
|
|
152
153
|
*/
|
|
153
|
-
inviteeKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
154
|
+
inviteeKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
154
155
|
}
|
|
155
156
|
export interface PartyActivationOptions {
|
|
156
157
|
global?: boolean;
|
|
157
158
|
device?: boolean;
|
|
158
159
|
}
|
|
159
160
|
export interface SetPartyStateRequest {
|
|
160
|
-
partyKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
161
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
161
162
|
open?: boolean;
|
|
162
163
|
activeGlobal?: boolean;
|
|
163
164
|
activeDevice?: boolean;
|
|
164
165
|
}
|
|
165
166
|
export interface SubscribeMembersRequest {
|
|
166
|
-
partyKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
167
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
167
168
|
}
|
|
168
169
|
export interface SubscribeMembersResponse {
|
|
169
170
|
members?: SubscribeMembersResponse.PartyMember[];
|
|
170
171
|
}
|
|
171
172
|
export namespace SubscribeMembersResponse {
|
|
172
173
|
export interface PartyMember {
|
|
173
|
-
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
174
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
174
175
|
displayName?: string;
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
178
|
export interface CreateSnaspotRequest {
|
|
178
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
179
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
179
180
|
}
|
|
180
181
|
export interface PartyService {
|
|
181
182
|
subscribeToParty: (request: SubscribePartyRequest) => Stream<SubscribePartyResponse>;
|
|
@@ -7,6 +7,7 @@ import * as dxos_echo_feed from "./echo/feed";
|
|
|
7
7
|
import * as dxos_echo_invitation from "./echo/invitation";
|
|
8
8
|
import * as dxos_echo_service from "./echo/service";
|
|
9
9
|
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
10
|
+
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
10
11
|
import * as dxos_halo_keys from "./halo/keys";
|
|
11
12
|
import * as dxos_rpc from "./rpc";
|
|
12
13
|
import * as google_protobuf from "../google/protobuf";
|
|
@@ -36,7 +37,7 @@ export interface Module {
|
|
|
36
37
|
/**
|
|
37
38
|
* The data will be validated based on the type when being published.
|
|
38
39
|
*/
|
|
39
|
-
record?: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
40
|
+
record?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
40
41
|
}
|
|
41
42
|
export namespace Module {
|
|
42
43
|
export interface Build {
|
|
@@ -7,11 +7,12 @@ import * as dxos_echo_feed from "./echo/feed";
|
|
|
7
7
|
import * as dxos_echo_invitation from "./echo/invitation";
|
|
8
8
|
import * as dxos_echo_service from "./echo/service";
|
|
9
9
|
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
10
|
+
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
10
11
|
import * as dxos_halo_keys from "./halo/keys";
|
|
11
12
|
import * as dxos_rpc from "./rpc";
|
|
12
13
|
import * as google_protobuf from "../google/protobuf";
|
|
13
14
|
export interface Message {
|
|
14
|
-
payload: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
15
|
+
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* A generic container message used whenever messages are signed (e.g. PartyCredential)
|
|
@@ -24,10 +25,10 @@ export namespace SignedMessage {
|
|
|
24
25
|
export interface Signed {
|
|
25
26
|
created: string;
|
|
26
27
|
nonce: Uint8Array;
|
|
27
|
-
payload: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
28
|
+
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
28
29
|
}
|
|
29
30
|
export interface Signature {
|
|
30
|
-
key: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
31
|
+
key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
31
32
|
signature: Uint8Array;
|
|
32
33
|
keyChain?: dxos_halo_keys.KeyChain;
|
|
33
34
|
}
|
|
@@ -7,6 +7,7 @@ import * as dxos_echo_feed from "./echo/feed";
|
|
|
7
7
|
import * as dxos_echo_invitation from "./echo/invitation";
|
|
8
8
|
import * as dxos_echo_service from "./echo/service";
|
|
9
9
|
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
10
|
+
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
10
11
|
import * as dxos_halo_keys from "./halo/keys";
|
|
11
12
|
import * as dxos_rpc from "./rpc";
|
|
12
13
|
import * as google_protobuf from "../google/protobuf";
|
|
@@ -57,7 +58,7 @@ export interface SubscribeToKeyringKeysResponse {
|
|
|
57
58
|
keys?: dxos_halo_keys.KeyRecord[];
|
|
58
59
|
}
|
|
59
60
|
export interface SubscribeToCredentialMessagesRequest {
|
|
60
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
61
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
61
62
|
}
|
|
62
63
|
export interface SubscribeToCredentialMessagesResponse {
|
|
63
64
|
messages?: dxos_credentials.SignedMessage[];
|
|
@@ -72,7 +73,7 @@ export interface GetNetworkPeersResponse {
|
|
|
72
73
|
}
|
|
73
74
|
export namespace GetNetworkPeersResponse {
|
|
74
75
|
export interface PeerInfo {
|
|
75
|
-
id?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
76
|
+
id?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
76
77
|
state?: string;
|
|
77
78
|
connections?: Uint8Array[];
|
|
78
79
|
}
|
|
@@ -89,7 +90,7 @@ export namespace SubscribeToPartiesResponse {
|
|
|
89
90
|
isActive?: boolean;
|
|
90
91
|
feedKeys?: number;
|
|
91
92
|
properties?: Partial<Record<string, string>>;
|
|
92
|
-
timeframe?: ReturnType<typeof substitutions["dxos.echo.
|
|
93
|
+
timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
export interface SubscribeToItemsRequest {
|
|
@@ -104,13 +105,13 @@ export interface SubscribeToFeedsResponse {
|
|
|
104
105
|
}
|
|
105
106
|
export namespace SubscribeToFeedsResponse {
|
|
106
107
|
export interface Party {
|
|
107
|
-
key?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
108
|
-
feeds?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>[];
|
|
108
|
+
key?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
109
|
+
feeds?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
export interface SubscribeToFeedRequest {
|
|
112
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
113
|
-
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
113
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
114
|
+
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
114
115
|
}
|
|
115
116
|
export interface SubscribeToFeedResponse {
|
|
116
117
|
blocks?: SubscribeToFeedResponse.EchoFeedBlock[];
|
|
@@ -125,13 +126,13 @@ export namespace SubscribeToFeedResponse {
|
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
export interface GetPartySnapshotRequest {
|
|
128
|
-
partyKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
129
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
129
130
|
}
|
|
130
131
|
export interface GetPartySnapshotResponse {
|
|
131
132
|
snapshot?: dxos_echo_snapshot.PartySnapshot;
|
|
132
133
|
}
|
|
133
134
|
export interface SavePartySnapshotRequest {
|
|
134
|
-
partyKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
135
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
135
136
|
}
|
|
136
137
|
export interface SavePartySnapshotResponse {
|
|
137
138
|
snapshot?: dxos_echo_snapshot.PartySnapshot;
|
|
@@ -143,7 +144,7 @@ export interface SubscribeToNetworkTopicsResponse {
|
|
|
143
144
|
}
|
|
144
145
|
export namespace SubscribeToNetworkTopicsResponse {
|
|
145
146
|
export interface Topic {
|
|
146
|
-
topic?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
147
|
+
topic?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
147
148
|
label?: string;
|
|
148
149
|
}
|
|
149
150
|
}
|
|
@@ -170,8 +171,8 @@ export interface SubscribeToSwarmInfoResponse {
|
|
|
170
171
|
}
|
|
171
172
|
export namespace SubscribeToSwarmInfoResponse {
|
|
172
173
|
export interface SwarmInfo {
|
|
173
|
-
id?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
174
|
-
topic?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
174
|
+
id?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
175
|
+
topic?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
175
176
|
label?: string;
|
|
176
177
|
isActive?: boolean;
|
|
177
178
|
connections?: SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo[];
|
|
@@ -179,11 +180,11 @@ export namespace SubscribeToSwarmInfoResponse {
|
|
|
179
180
|
export namespace SwarmInfo {
|
|
180
181
|
export interface ConnectionInfo {
|
|
181
182
|
state?: string;
|
|
182
|
-
sessionId?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
183
|
-
remotePeerId?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
183
|
+
sessionId?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
184
|
+
remotePeerId?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
184
185
|
transport?: string;
|
|
185
186
|
protocolExtensions?: string[];
|
|
186
|
-
events?: ReturnType<typeof substitutions["dxos.devtools.SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo.Json"]["decode"]>[];
|
|
187
|
+
events?: ReturnType<(typeof substitutions)["dxos.devtools.SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo.Json"]["decode"]>[];
|
|
187
188
|
}
|
|
188
189
|
export namespace ConnectionInfo {
|
|
189
190
|
export interface Json {
|
|
@@ -7,6 +7,7 @@ import * as dxos_devtools from "../devtools";
|
|
|
7
7
|
import * as dxos_echo_invitation from "./invitation";
|
|
8
8
|
import * as dxos_echo_service from "./service";
|
|
9
9
|
import * as dxos_echo_snapshot from "./snapshot";
|
|
10
|
+
import * as dxos_echo_timeframe from "./timeframe";
|
|
10
11
|
import * as dxos_halo_keys from "../halo/keys";
|
|
11
12
|
import * as dxos_rpc from "../rpc";
|
|
12
13
|
import * as google_protobuf from "../../google/protobuf";
|
|
@@ -15,7 +16,8 @@ import * as google_protobuf from "../../google/protobuf";
|
|
|
15
16
|
* This is what is written to the feeds.
|
|
16
17
|
*/
|
|
17
18
|
export interface FeedMessage {
|
|
18
|
-
|
|
19
|
+
timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
20
|
+
halo?: ReturnType<(typeof substitutions)["dxos.echo.feed.CredentialsMessage"]["decode"]>;
|
|
19
21
|
echo?: EchoEnvelope;
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
@@ -24,24 +26,11 @@ export interface FeedMessage {
|
|
|
24
26
|
export interface CredentialsMessage {
|
|
25
27
|
data?: Uint8Array;
|
|
26
28
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Vector timestamp used to order messages.
|
|
29
|
-
*/
|
|
30
|
-
export interface TimeframeVector {
|
|
31
|
-
frames?: TimeframeVector.Frame[];
|
|
32
|
-
}
|
|
33
|
-
export namespace TimeframeVector {
|
|
34
|
-
export interface Frame {
|
|
35
|
-
feedKey?: Uint8Array;
|
|
36
|
-
seq?: number;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
29
|
/**
|
|
40
30
|
* Wrapper for all ECHO messages.
|
|
41
31
|
*/
|
|
42
32
|
export interface EchoEnvelope {
|
|
43
33
|
itemId?: string;
|
|
44
|
-
timeframe?: ReturnType<typeof substitutions["dxos.echo.feed.TimeframeVector"]["decode"]>;
|
|
45
34
|
genesis?: ItemGenesis;
|
|
46
35
|
itemMutation?: ItemMutation;
|
|
47
36
|
mutation?: Uint8Array;
|
|
@@ -7,6 +7,7 @@ import * as dxos_devtools from "../devtools";
|
|
|
7
7
|
import * as dxos_echo_feed from "./feed";
|
|
8
8
|
import * as dxos_echo_service from "./service";
|
|
9
9
|
import * as dxos_echo_snapshot from "./snapshot";
|
|
10
|
+
import * as dxos_echo_timeframe from "./timeframe";
|
|
10
11
|
import * as dxos_halo_keys from "../halo/keys";
|
|
11
12
|
import * as dxos_rpc from "../rpc";
|
|
12
13
|
import * as google_protobuf from "../../google/protobuf";
|
|
@@ -7,18 +7,19 @@ import * as dxos_devtools from "../devtools";
|
|
|
7
7
|
import * as dxos_echo_feed from "./feed";
|
|
8
8
|
import * as dxos_echo_invitation from "./invitation";
|
|
9
9
|
import * as dxos_echo_snapshot from "./snapshot";
|
|
10
|
+
import * as dxos_echo_timeframe from "./timeframe";
|
|
10
11
|
import * as dxos_halo_keys from "../halo/keys";
|
|
11
12
|
import * as dxos_rpc from "../rpc";
|
|
12
13
|
import * as google_protobuf from "../../google/protobuf";
|
|
13
14
|
export interface SubscribeEntitySetRequest {
|
|
14
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
15
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
15
16
|
}
|
|
16
17
|
export interface SubscribeEntitySetResponse {
|
|
17
18
|
added?: dxos_echo_feed.EchoEnvelope[];
|
|
18
19
|
deleted?: dxos_echo_feed.EchoEnvelope[];
|
|
19
20
|
}
|
|
20
21
|
export interface SubscribeEntityStreamRequest {
|
|
21
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
22
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
22
23
|
itemId?: string;
|
|
23
24
|
}
|
|
24
25
|
export interface SubscribeEntityStreamResponse {
|
|
@@ -32,19 +33,19 @@ export namespace SubscribeEntityStreamResponse {
|
|
|
32
33
|
}
|
|
33
34
|
export namespace Mutation {
|
|
34
35
|
export interface Metadata {
|
|
35
|
-
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
36
|
-
memberKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
36
|
+
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
37
|
+
memberKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
37
38
|
seq?: number;
|
|
38
|
-
timeframe?: ReturnType<typeof substitutions["dxos.echo.
|
|
39
|
+
timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
export interface WriteRequest {
|
|
43
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
44
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
44
45
|
mutation?: dxos_echo_feed.EchoEnvelope;
|
|
45
46
|
}
|
|
46
47
|
export interface MutationReceipt {
|
|
47
|
-
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
48
|
+
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
48
49
|
seq?: number;
|
|
49
50
|
}
|
|
50
51
|
export interface DataService {
|
|
@@ -7,18 +7,19 @@ import * as dxos_devtools from "../devtools";
|
|
|
7
7
|
import * as dxos_echo_feed from "./feed";
|
|
8
8
|
import * as dxos_echo_invitation from "./invitation";
|
|
9
9
|
import * as dxos_echo_service from "./service";
|
|
10
|
+
import * as dxos_echo_timeframe from "./timeframe";
|
|
10
11
|
import * as dxos_halo_keys from "../halo/keys";
|
|
11
12
|
import * as dxos_rpc from "../rpc";
|
|
12
13
|
import * as google_protobuf from "../../google/protobuf";
|
|
13
14
|
export interface PartySnapshot {
|
|
14
15
|
partyKey?: Uint8Array;
|
|
15
|
-
timeframe?: ReturnType<typeof substitutions["dxos.echo.
|
|
16
|
+
timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
16
17
|
timestamp?: number;
|
|
17
18
|
halo?: HaloStateSnapshot;
|
|
18
19
|
database?: DatabaseSnapshot;
|
|
19
20
|
}
|
|
20
21
|
export interface HaloStateSnapshot {
|
|
21
|
-
messages?: ReturnType<typeof substitutions["dxos.echo.feed.CredentialsMessage"]["decode"]>[];
|
|
22
|
+
messages?: ReturnType<(typeof substitutions)["dxos.echo.feed.CredentialsMessage"]["decode"]>[];
|
|
22
23
|
}
|
|
23
24
|
export interface DatabaseSnapshot {
|
|
24
25
|
items?: ItemSnapshot[];
|
|
@@ -104,7 +105,7 @@ export interface ModelMutation {
|
|
|
104
105
|
meta: ModelMutationMeta;
|
|
105
106
|
}
|
|
106
107
|
export interface ModelMutationMeta {
|
|
107
|
-
feedKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
108
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
108
109
|
seq: number;
|
|
109
|
-
memberKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
110
|
+
memberKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
110
111
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../../substitutions";
|
|
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_devtools from "../devtools";
|
|
7
|
+
import * as dxos_echo_feed from "./feed";
|
|
8
|
+
import * as dxos_echo_invitation from "./invitation";
|
|
9
|
+
import * as dxos_echo_service from "./service";
|
|
10
|
+
import * as dxos_echo_snapshot from "./snapshot";
|
|
11
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
12
|
+
import * as dxos_rpc from "../rpc";
|
|
13
|
+
import * as google_protobuf from "../../google/protobuf";
|
|
14
|
+
/**
|
|
15
|
+
* Vector timestamp used to order messages.
|
|
16
|
+
*/
|
|
17
|
+
export interface TimeframeVector {
|
|
18
|
+
frames?: TimeframeVector.Frame[];
|
|
19
|
+
}
|
|
20
|
+
export namespace TimeframeVector {
|
|
21
|
+
export interface Frame {
|
|
22
|
+
feedKey?: Uint8Array;
|
|
23
|
+
seq?: number;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -8,6 +8,7 @@ import * as dxos_echo_feed from "../echo/feed";
|
|
|
8
8
|
import * as dxos_echo_invitation from "../echo/invitation";
|
|
9
9
|
import * as dxos_echo_service from "../echo/service";
|
|
10
10
|
import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
11
|
+
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
11
12
|
import * as dxos_rpc from "../rpc";
|
|
12
13
|
import * as google_protobuf from "../../google/protobuf";
|
|
13
14
|
export enum KeyType {
|
|
@@ -32,11 +33,11 @@ export interface KeyRecord {
|
|
|
32
33
|
/**
|
|
33
34
|
* - The public key as a Buffer (required).
|
|
34
35
|
*/
|
|
35
|
-
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
36
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
36
37
|
/**
|
|
37
38
|
* - The secret key as a Buffer (this will never be visible outside the Keyring).
|
|
38
39
|
*/
|
|
39
|
-
secretKey?: ReturnType<typeof substitutions["dxos.halo.keys.PrivKey"]["decode"]>;
|
|
40
|
+
secretKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PrivKey"]["decode"]>;
|
|
40
41
|
/**
|
|
41
42
|
* - Is this key from a Greeting "hint"?
|
|
42
43
|
*/
|
|
@@ -63,7 +64,7 @@ export interface KeyRecordList {
|
|
|
63
64
|
keys?: KeyRecord[];
|
|
64
65
|
}
|
|
65
66
|
export interface KeyChain {
|
|
66
|
-
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
67
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
67
68
|
message: dxos_credentials.SignedMessage;
|
|
68
69
|
parents?: KeyChain[];
|
|
69
70
|
}
|
|
@@ -8,6 +8,7 @@ import * as dxos_echo_feed from "./echo/feed";
|
|
|
8
8
|
import * as dxos_echo_invitation from "./echo/invitation";
|
|
9
9
|
import * as dxos_echo_service from "./echo/service";
|
|
10
10
|
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
11
|
+
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
11
12
|
import * as dxos_halo_keys from "./halo/keys";
|
|
12
13
|
import * as google_protobuf from "../google/protobuf";
|
|
13
14
|
export interface RpcMessage {
|
|
@@ -26,12 +27,12 @@ export interface RpcMessage {
|
|
|
26
27
|
export interface Request {
|
|
27
28
|
id?: number;
|
|
28
29
|
method?: string;
|
|
29
|
-
payload?: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
30
|
+
payload?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
30
31
|
stream?: boolean;
|
|
31
32
|
}
|
|
32
33
|
export interface Response {
|
|
33
34
|
id?: number;
|
|
34
|
-
payload?: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
35
|
+
payload?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
35
36
|
error?: Error;
|
|
36
37
|
close?: boolean;
|
|
37
38
|
}
|
|
@@ -8,6 +8,7 @@ import * as dxos_echo_feed from "../dxos/echo/feed";
|
|
|
8
8
|
import * as dxos_echo_invitation from "../dxos/echo/invitation";
|
|
9
9
|
import * as dxos_echo_service from "../dxos/echo/service";
|
|
10
10
|
import * as dxos_echo_snapshot from "../dxos/echo/snapshot";
|
|
11
|
+
import * as dxos_echo_timeframe from "../dxos/echo/timeframe";
|
|
11
12
|
import * as dxos_halo_keys from "../dxos/halo/keys";
|
|
12
13
|
import * as dxos_rpc from "../dxos/rpc";
|
|
13
14
|
export interface Empty {
|