@dxos/client 2.33.9-dev.6efa8ddf → 2.33.9-dev.8e92e630
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/browser.js +18 -11
- package/dist/src/proto/gen/dxos/client.d.ts +18 -216
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client.js +0 -4
- package/dist/src/proto/gen/dxos/client.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +0 -457
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +0 -10
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts +0 -39
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools.d.ts +30 -266
- package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +6 -65
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.js +0 -4
- package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/invitation.d.ts +3 -19
- package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/invitation.js +0 -6
- package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +13 -49
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +13 -45
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +2 -9
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -44
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.js +0 -4
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts +8 -48
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js +0 -4
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +80 -80
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- 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/services/services.test.js +1 -3
- package/dist/src/services/services.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -17
- package/src/proto/gen/dxos/client.ts +18 -216
- package/src/proto/gen/dxos/config.ts +0 -457
- package/src/proto/gen/dxos/credentials.ts +0 -39
- package/src/proto/gen/dxos/devtools.ts +30 -266
- package/src/proto/gen/dxos/echo/feed.ts +6 -65
- package/src/proto/gen/dxos/echo/invitation.ts +3 -19
- package/src/proto/gen/dxos/echo/service.ts +13 -49
- package/src/proto/gen/dxos/echo/snapshot.ts +13 -45
- package/src/proto/gen/dxos/echo/timeframe.ts +2 -9
- package/src/proto/gen/dxos/halo/keys.ts +2 -44
- package/src/proto/gen/dxos/rpc.ts +8 -48
- package/src/proto/gen/google/protobuf.ts +80 -80
- package/src/proto/gen/index.ts +1 -1
|
@@ -11,64 +11,25 @@ import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
|
11
11
|
import * as dxos_halo_keys from "./halo/keys";
|
|
12
12
|
import * as dxos_rpc from "./rpc";
|
|
13
13
|
import * as google_protobuf from "../google/protobuf";
|
|
14
|
-
/**
|
|
15
|
-
* Defined in:
|
|
16
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
17
|
-
*/
|
|
18
14
|
export interface Message {
|
|
19
15
|
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
20
16
|
}
|
|
21
17
|
/**
|
|
22
18
|
* A generic container message used whenever messages are signed (e.g. PartyCredential)
|
|
23
|
-
*
|
|
24
|
-
* Defined in:
|
|
25
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
26
19
|
*/
|
|
27
20
|
export interface SignedMessage {
|
|
28
|
-
/**
|
|
29
|
-
* The signed message contents.
|
|
30
|
-
*/
|
|
31
21
|
signed: SignedMessage.Signed;
|
|
32
|
-
/**
|
|
33
|
-
* An array of Signatures, one for each key that signed the message.
|
|
34
|
-
*/
|
|
35
22
|
signatures?: SignedMessage.Signature[];
|
|
36
23
|
}
|
|
37
24
|
export namespace SignedMessage {
|
|
38
|
-
/**
|
|
39
|
-
* Defined in:
|
|
40
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
41
|
-
*/
|
|
42
25
|
export interface Signed {
|
|
43
|
-
/**
|
|
44
|
-
* RFC-3339 datetime string.
|
|
45
|
-
*/
|
|
46
26
|
created: string;
|
|
47
27
|
nonce: Uint8Array;
|
|
48
|
-
/**
|
|
49
|
-
* The payload to be signed.
|
|
50
|
-
*/
|
|
51
28
|
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
52
29
|
}
|
|
53
|
-
/**
|
|
54
|
-
* Defined in:
|
|
55
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
56
|
-
*/
|
|
57
30
|
export interface Signature {
|
|
58
|
-
/**
|
|
59
|
-
* The publicKey of the keypair that made this signature.
|
|
60
|
-
*/
|
|
61
31
|
key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
62
|
-
/**
|
|
63
|
-
* The bytes of the signature.
|
|
64
|
-
*/
|
|
65
32
|
signature: Uint8Array;
|
|
66
|
-
/**
|
|
67
|
-
* The certification chain of SignedMessages for this key.
|
|
68
|
-
*
|
|
69
|
-
* Options:
|
|
70
|
-
* - proto3_optional = true
|
|
71
|
-
*/
|
|
72
33
|
keyChain?: dxos_halo_keys.KeyChain;
|
|
73
34
|
}
|
|
74
35
|
}
|
|
@@ -11,10 +11,6 @@ import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
|
11
11
|
import * as dxos_halo_keys from "./halo/keys";
|
|
12
12
|
import * as dxos_rpc from "./rpc";
|
|
13
13
|
import * as google_protobuf from "../google/protobuf";
|
|
14
|
-
/**
|
|
15
|
-
* Defined in:
|
|
16
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
17
|
-
*/
|
|
18
14
|
export interface DevtoolsHost {
|
|
19
15
|
events: (request: void) => Stream<Event>;
|
|
20
16
|
getConfig: (request: void) => Promise<GetConfigResponse>;
|
|
@@ -36,407 +32,175 @@ export interface DevtoolsHost {
|
|
|
36
32
|
subscribeToSignalTrace: (request: void) => Stream<SubscribeToSignalTraceResponse>;
|
|
37
33
|
subscribeToSwarmInfo: (request: SubscribeToSwarmInfoRequest) => Stream<SubscribeToSwarmInfoResponse>;
|
|
38
34
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Defined in:
|
|
41
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
42
|
-
*/
|
|
43
35
|
export interface Event {
|
|
44
36
|
ready?: ReadyEvent;
|
|
45
37
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Defined in:
|
|
48
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
49
|
-
*/
|
|
50
38
|
export interface ReadyEvent {
|
|
51
39
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Defined in:
|
|
54
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
55
|
-
*/
|
|
56
40
|
export interface GetConfigResponse {
|
|
57
|
-
config
|
|
41
|
+
config?: string;
|
|
58
42
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Defined in:
|
|
61
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
62
|
-
*/
|
|
63
43
|
export interface EnableDebugLoggingRequest {
|
|
64
|
-
/**
|
|
65
|
-
* Options:
|
|
66
|
-
* - proto3_optional = true
|
|
67
|
-
*/
|
|
68
44
|
namespaces?: string;
|
|
69
45
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Defined in:
|
|
72
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
73
|
-
*/
|
|
74
46
|
export interface EnableDebugLoggingResponse {
|
|
75
|
-
/**
|
|
76
|
-
* Options:
|
|
77
|
-
* - proto3_optional = true
|
|
78
|
-
*/
|
|
79
47
|
enabledNamespaces?: string;
|
|
80
48
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Defined in:
|
|
83
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
84
|
-
*/
|
|
85
49
|
export interface DisableDebugLoggingRequest {
|
|
86
|
-
/**
|
|
87
|
-
* Options:
|
|
88
|
-
* - proto3_optional = true
|
|
89
|
-
*/
|
|
90
50
|
namespaces?: string;
|
|
91
51
|
}
|
|
92
|
-
/**
|
|
93
|
-
* Defined in:
|
|
94
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
95
|
-
*/
|
|
96
52
|
export interface DisableDebugLoggingResponse {
|
|
97
|
-
/**
|
|
98
|
-
* Options:
|
|
99
|
-
* - proto3_optional = true
|
|
100
|
-
*/
|
|
101
53
|
enabledNamespaces?: string;
|
|
102
54
|
}
|
|
103
|
-
/**
|
|
104
|
-
* Defined in:
|
|
105
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
106
|
-
*/
|
|
107
55
|
export interface SubscribeToKeyringKeysRequest {
|
|
108
56
|
}
|
|
109
|
-
/**
|
|
110
|
-
* Defined in:
|
|
111
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
112
|
-
*/
|
|
113
57
|
export interface SubscribeToKeyringKeysResponse {
|
|
114
58
|
keys?: dxos_halo_keys.KeyRecord[];
|
|
115
59
|
}
|
|
116
|
-
/**
|
|
117
|
-
* Defined in:
|
|
118
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
119
|
-
*/
|
|
120
60
|
export interface SubscribeToCredentialMessagesRequest {
|
|
121
|
-
/**
|
|
122
|
-
* Options:
|
|
123
|
-
* - proto3_optional = true
|
|
124
|
-
*/
|
|
125
61
|
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
126
62
|
}
|
|
127
|
-
/**
|
|
128
|
-
* Defined in:
|
|
129
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
130
|
-
*/
|
|
131
63
|
export interface SubscribeToCredentialMessagesResponse {
|
|
132
64
|
messages?: dxos_credentials.SignedMessage[];
|
|
133
65
|
}
|
|
134
|
-
/**
|
|
135
|
-
* Defined in:
|
|
136
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
137
|
-
*/
|
|
138
66
|
export interface ResetStorageRequest {
|
|
139
67
|
}
|
|
140
|
-
/**
|
|
141
|
-
* Defined in:
|
|
142
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
143
|
-
*/
|
|
144
68
|
export interface GetNetworkPeersRequest {
|
|
145
|
-
topic
|
|
69
|
+
topic?: Uint8Array;
|
|
146
70
|
}
|
|
147
|
-
/**
|
|
148
|
-
* Defined in:
|
|
149
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
150
|
-
*/
|
|
151
71
|
export interface GetNetworkPeersResponse {
|
|
152
72
|
peers?: GetNetworkPeersResponse.PeerInfo[];
|
|
153
73
|
}
|
|
154
74
|
export namespace GetNetworkPeersResponse {
|
|
155
|
-
/**
|
|
156
|
-
* Defined in:
|
|
157
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
158
|
-
*/
|
|
159
75
|
export interface PeerInfo {
|
|
160
|
-
id
|
|
161
|
-
state
|
|
76
|
+
id?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
77
|
+
state?: string;
|
|
162
78
|
connections?: Uint8Array[];
|
|
163
79
|
}
|
|
164
80
|
}
|
|
165
|
-
/**
|
|
166
|
-
* Defined in:
|
|
167
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
168
|
-
*/
|
|
169
81
|
export interface SubscribeToPartiesRequest {
|
|
170
82
|
partyKeys?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
|
|
171
83
|
}
|
|
172
|
-
/**
|
|
173
|
-
* Defined in:
|
|
174
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
175
|
-
*/
|
|
176
84
|
export interface SubscribeToPartiesResponse {
|
|
177
85
|
parties?: SubscribeToPartiesResponse.PartyInfo[];
|
|
178
86
|
}
|
|
179
87
|
export namespace SubscribeToPartiesResponse {
|
|
180
|
-
/**
|
|
181
|
-
* Defined in:
|
|
182
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
183
|
-
*/
|
|
184
88
|
export interface PartyInfo {
|
|
185
|
-
key
|
|
186
|
-
isOpen
|
|
187
|
-
isActive
|
|
188
|
-
timeframe
|
|
89
|
+
key?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
90
|
+
isOpen?: boolean;
|
|
91
|
+
isActive?: boolean;
|
|
92
|
+
timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
189
93
|
feeds?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
|
|
190
94
|
properties?: Partial<Record<string, string>>;
|
|
191
95
|
}
|
|
192
96
|
}
|
|
193
|
-
/**
|
|
194
|
-
* Defined in:
|
|
195
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
196
|
-
*/
|
|
197
97
|
export interface SubscribeToItemsRequest {
|
|
198
98
|
}
|
|
199
|
-
/**
|
|
200
|
-
* Defined in:
|
|
201
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
202
|
-
*/
|
|
203
99
|
export interface SubscribeToItemsResponse {
|
|
204
|
-
data
|
|
100
|
+
data?: string;
|
|
205
101
|
}
|
|
206
|
-
/**
|
|
207
|
-
* Defined in:
|
|
208
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
209
|
-
*/
|
|
210
102
|
export interface SubscribeToFeedsRequest {
|
|
211
|
-
partyKey
|
|
103
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
212
104
|
feedKeys?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
|
|
213
105
|
}
|
|
214
|
-
/**
|
|
215
|
-
* Defined in:
|
|
216
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
217
|
-
*/
|
|
218
106
|
export interface SubscribeToFeedsResponse {
|
|
219
107
|
feeds?: SubscribeToFeedsResponse.Feed[];
|
|
220
108
|
}
|
|
221
109
|
export namespace SubscribeToFeedsResponse {
|
|
222
|
-
/**
|
|
223
|
-
* Defined in:
|
|
224
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
225
|
-
*/
|
|
226
110
|
export interface Feed {
|
|
227
|
-
feedKey
|
|
228
|
-
length
|
|
111
|
+
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
112
|
+
length?: number;
|
|
229
113
|
}
|
|
230
114
|
}
|
|
231
|
-
/**
|
|
232
|
-
* Defined in:
|
|
233
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
234
|
-
*/
|
|
235
115
|
export interface SubscribeToFeedBlocksRequest {
|
|
236
|
-
/**
|
|
237
|
-
* Options:
|
|
238
|
-
* - proto3_optional = true
|
|
239
|
-
*/
|
|
240
116
|
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
241
|
-
/**
|
|
242
|
-
* Options:
|
|
243
|
-
* - proto3_optional = true
|
|
244
|
-
*/
|
|
245
117
|
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
246
|
-
/**
|
|
247
|
-
* Options:
|
|
248
|
-
* - proto3_optional = true
|
|
249
|
-
*/
|
|
250
118
|
maxBlocks?: number;
|
|
251
119
|
}
|
|
252
|
-
/**
|
|
253
|
-
* Defined in:
|
|
254
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
255
|
-
*/
|
|
256
120
|
export interface SubscribeToFeedBlocksResponse {
|
|
257
121
|
blocks?: SubscribeToFeedBlocksResponse.Block[];
|
|
258
122
|
}
|
|
259
123
|
export namespace SubscribeToFeedBlocksResponse {
|
|
260
|
-
/**
|
|
261
|
-
* Defined in:
|
|
262
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
263
|
-
*/
|
|
264
124
|
export interface Block {
|
|
265
|
-
key
|
|
266
|
-
seq
|
|
267
|
-
sync
|
|
268
|
-
path
|
|
269
|
-
data
|
|
125
|
+
key?: Uint8Array;
|
|
126
|
+
seq?: number;
|
|
127
|
+
sync?: boolean;
|
|
128
|
+
path?: string;
|
|
129
|
+
data?: dxos_echo_feed.FeedMessage;
|
|
270
130
|
}
|
|
271
131
|
}
|
|
272
|
-
/**
|
|
273
|
-
* Defined in:
|
|
274
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
275
|
-
*/
|
|
276
132
|
export interface GetPartySnapshotRequest {
|
|
277
133
|
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
278
134
|
}
|
|
279
|
-
/**
|
|
280
|
-
* Defined in:
|
|
281
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
282
|
-
*/
|
|
283
135
|
export interface GetPartySnapshotResponse {
|
|
284
|
-
/**
|
|
285
|
-
* Options:
|
|
286
|
-
* - proto3_optional = true
|
|
287
|
-
*/
|
|
288
136
|
snapshot?: dxos_echo_snapshot.PartySnapshot;
|
|
289
137
|
}
|
|
290
|
-
/**
|
|
291
|
-
* Defined in:
|
|
292
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
293
|
-
*/
|
|
294
138
|
export interface SavePartySnapshotRequest {
|
|
295
139
|
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
296
140
|
}
|
|
297
|
-
/**
|
|
298
|
-
* Defined in:
|
|
299
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
300
|
-
*/
|
|
301
141
|
export interface SavePartySnapshotResponse {
|
|
302
|
-
/**
|
|
303
|
-
* Options:
|
|
304
|
-
* - proto3_optional = true
|
|
305
|
-
*/
|
|
306
142
|
snapshot?: dxos_echo_snapshot.PartySnapshot;
|
|
307
143
|
}
|
|
308
|
-
/**
|
|
309
|
-
* Defined in:
|
|
310
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
311
|
-
*/
|
|
312
144
|
export interface ClearSnapshotsRequest {
|
|
313
145
|
}
|
|
314
|
-
/**
|
|
315
|
-
* Defined in:
|
|
316
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
317
|
-
*/
|
|
318
146
|
export interface SubscribeToNetworkTopicsResponse {
|
|
319
147
|
topics?: SubscribeToNetworkTopicsResponse.Topic[];
|
|
320
148
|
}
|
|
321
149
|
export namespace SubscribeToNetworkTopicsResponse {
|
|
322
|
-
/**
|
|
323
|
-
* Defined in:
|
|
324
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
325
|
-
*/
|
|
326
150
|
export interface Topic {
|
|
327
|
-
topic
|
|
328
|
-
/**
|
|
329
|
-
* Options:
|
|
330
|
-
* - proto3_optional = true
|
|
331
|
-
*/
|
|
151
|
+
topic?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
332
152
|
label?: string;
|
|
333
153
|
}
|
|
334
154
|
}
|
|
335
|
-
/**
|
|
336
|
-
* Defined in:
|
|
337
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
338
|
-
*/
|
|
339
155
|
export interface SubscribeToSignalStatusResponse {
|
|
340
156
|
servers?: SubscribeToSignalStatusResponse.SignalServer[];
|
|
341
157
|
}
|
|
342
158
|
export namespace SubscribeToSignalStatusResponse {
|
|
343
|
-
/**
|
|
344
|
-
* Defined in:
|
|
345
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
346
|
-
*/
|
|
347
159
|
export interface SignalServer {
|
|
348
|
-
host
|
|
349
|
-
state
|
|
350
|
-
/**
|
|
351
|
-
* Options:
|
|
352
|
-
* - proto3_optional = true
|
|
353
|
-
*/
|
|
160
|
+
host?: string;
|
|
161
|
+
state?: string;
|
|
354
162
|
error?: string;
|
|
355
|
-
reconnectIn
|
|
356
|
-
connectionStarted
|
|
357
|
-
lastStateChange
|
|
163
|
+
reconnectIn?: number;
|
|
164
|
+
connectionStarted?: number;
|
|
165
|
+
lastStateChange?: number;
|
|
358
166
|
}
|
|
359
167
|
}
|
|
360
|
-
/**
|
|
361
|
-
* Defined in:
|
|
362
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
363
|
-
*/
|
|
364
168
|
export interface SubscribeToSignalTraceResponse {
|
|
365
169
|
events?: string[];
|
|
366
170
|
}
|
|
367
|
-
/**
|
|
368
|
-
* Defined in:
|
|
369
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
370
|
-
*/
|
|
371
171
|
export interface SubscribeToSwarmInfoRequest {
|
|
372
172
|
}
|
|
373
|
-
/**
|
|
374
|
-
* Defined in:
|
|
375
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
376
|
-
*/
|
|
377
173
|
export interface SubscribeToSwarmInfoResponse {
|
|
378
174
|
data?: SubscribeToSwarmInfoResponse.SwarmInfo[];
|
|
379
175
|
}
|
|
380
176
|
export namespace SubscribeToSwarmInfoResponse {
|
|
381
|
-
/**
|
|
382
|
-
* Defined in:
|
|
383
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
384
|
-
*/
|
|
385
177
|
export interface SwarmInfo {
|
|
386
|
-
id
|
|
387
|
-
topic
|
|
388
|
-
/**
|
|
389
|
-
* Options:
|
|
390
|
-
* - proto3_optional = true
|
|
391
|
-
*/
|
|
178
|
+
id?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
179
|
+
topic?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
392
180
|
label?: string;
|
|
393
|
-
isActive
|
|
181
|
+
isActive?: boolean;
|
|
394
182
|
connections?: SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo[];
|
|
395
183
|
}
|
|
396
184
|
export namespace SwarmInfo {
|
|
397
|
-
/**
|
|
398
|
-
* Defined in:
|
|
399
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
400
|
-
*/
|
|
401
185
|
export interface ConnectionInfo {
|
|
402
|
-
state
|
|
403
|
-
sessionId
|
|
404
|
-
remotePeerId
|
|
405
|
-
/**
|
|
406
|
-
* Options:
|
|
407
|
-
* - proto3_optional = true
|
|
408
|
-
*/
|
|
186
|
+
state?: string;
|
|
187
|
+
sessionId?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
188
|
+
remotePeerId?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
409
189
|
transport?: string;
|
|
410
190
|
protocolExtensions?: string[];
|
|
411
191
|
events?: ReturnType<(typeof substitutions)["dxos.devtools.SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo.Json"]["decode"]>[];
|
|
412
192
|
}
|
|
413
193
|
export namespace ConnectionInfo {
|
|
414
|
-
/**
|
|
415
|
-
* Defined in:
|
|
416
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
417
|
-
*/
|
|
418
194
|
export interface Json {
|
|
419
|
-
/**
|
|
420
|
-
* Options:
|
|
421
|
-
* - proto3_optional = true
|
|
422
|
-
*/
|
|
423
195
|
data?: string;
|
|
424
196
|
}
|
|
425
197
|
}
|
|
426
198
|
}
|
|
427
199
|
}
|
|
428
|
-
/**
|
|
429
|
-
* Defined in:
|
|
430
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
431
|
-
*/
|
|
432
200
|
export interface TracingService {
|
|
433
201
|
setTracingOptions: (request: SetTracingOptionsRequest) => Promise<void>;
|
|
434
202
|
subscribeToRpcTrace: (request: void) => Stream<dxos_rpc.RpcMessage>;
|
|
435
203
|
}
|
|
436
|
-
/**
|
|
437
|
-
* Defined in:
|
|
438
|
-
* {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
|
|
439
|
-
*/
|
|
440
204
|
export interface SetTracingOptionsRequest {
|
|
441
|
-
enable
|
|
205
|
+
enable?: boolean;
|
|
442
206
|
}
|
|
@@ -14,108 +14,49 @@ import * as google_protobuf from "../../google/protobuf";
|
|
|
14
14
|
/**
|
|
15
15
|
* Outer message type decoded by Codec.
|
|
16
16
|
* This is what is written to the feeds.
|
|
17
|
-
*
|
|
18
|
-
* Defined in:
|
|
19
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
|
|
20
17
|
*/
|
|
21
18
|
export interface FeedMessage {
|
|
22
|
-
timeframe
|
|
19
|
+
timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
23
20
|
halo?: ReturnType<(typeof substitutions)["dxos.echo.feed.CredentialsMessage"]["decode"]>;
|
|
24
21
|
echo?: EchoEnvelope;
|
|
25
22
|
}
|
|
26
23
|
/**
|
|
27
24
|
* A container for dxos.credentials.Message
|
|
28
|
-
*
|
|
29
|
-
* Defined in:
|
|
30
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
|
|
31
25
|
*/
|
|
32
26
|
export interface CredentialsMessage {
|
|
33
|
-
data
|
|
27
|
+
data?: Uint8Array;
|
|
34
28
|
}
|
|
35
29
|
/**
|
|
36
30
|
* Wrapper for all ECHO messages.
|
|
37
|
-
*
|
|
38
|
-
* Defined in:
|
|
39
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
|
|
40
31
|
*/
|
|
41
32
|
export interface EchoEnvelope {
|
|
42
|
-
itemId
|
|
43
|
-
/**
|
|
44
|
-
* Options:
|
|
45
|
-
* - proto3_optional = true
|
|
46
|
-
*/
|
|
33
|
+
itemId?: string;
|
|
47
34
|
genesis?: ItemGenesis;
|
|
48
|
-
/**
|
|
49
|
-
* Options:
|
|
50
|
-
* - proto3_optional = true
|
|
51
|
-
*/
|
|
52
35
|
itemMutation?: ItemMutation;
|
|
53
|
-
/**
|
|
54
|
-
* Options:
|
|
55
|
-
* - proto3_optional = true
|
|
56
|
-
*/
|
|
57
36
|
mutation?: Uint8Array;
|
|
58
37
|
/**
|
|
59
38
|
* Set the model to the provided snapshot.
|
|
60
|
-
*
|
|
61
|
-
* Options:
|
|
62
|
-
* - proto3_optional = true
|
|
63
39
|
*/
|
|
64
40
|
snapshot?: dxos_echo_snapshot.ModelSnapshot;
|
|
65
41
|
}
|
|
66
|
-
/**
|
|
67
|
-
* Defined in:
|
|
68
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
|
|
69
|
-
*/
|
|
70
42
|
export interface LinkData {
|
|
71
|
-
source
|
|
72
|
-
target
|
|
43
|
+
source?: string;
|
|
44
|
+
target?: string;
|
|
73
45
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Defined in:
|
|
76
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
|
|
77
|
-
*/
|
|
78
46
|
export interface ItemGenesis {
|
|
79
|
-
/**
|
|
80
|
-
* Options:
|
|
81
|
-
* - proto3_optional = true
|
|
82
|
-
*/
|
|
83
47
|
itemType?: string;
|
|
84
|
-
modelType
|
|
85
|
-
/**
|
|
86
|
-
* Options:
|
|
87
|
-
* - proto3_optional = true
|
|
88
|
-
*/
|
|
48
|
+
modelType?: string;
|
|
89
49
|
modelVersion?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Options:
|
|
92
|
-
* - proto3_optional = true
|
|
93
|
-
*/
|
|
94
50
|
link?: LinkData;
|
|
95
51
|
}
|
|
96
52
|
/**
|
|
97
53
|
* Item mutation.
|
|
98
|
-
*
|
|
99
|
-
* Defined in:
|
|
100
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
|
|
101
54
|
*/
|
|
102
55
|
export interface ItemMutation {
|
|
103
|
-
/**
|
|
104
|
-
* Options:
|
|
105
|
-
* - proto3_optional = true
|
|
106
|
-
*/
|
|
107
56
|
parentId?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Options:
|
|
110
|
-
* - proto3_optional = true
|
|
111
|
-
*/
|
|
112
57
|
action?: ItemMutation.Action;
|
|
113
58
|
}
|
|
114
59
|
export namespace ItemMutation {
|
|
115
|
-
/**
|
|
116
|
-
* Defined in:
|
|
117
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
|
|
118
|
-
*/
|
|
119
60
|
export enum Action {
|
|
120
61
|
NOOP = 0,
|
|
121
62
|
DELETE = 1,
|
|
@@ -11,36 +11,20 @@ import * as dxos_echo_timeframe from "./timeframe";
|
|
|
11
11
|
import * as dxos_halo_keys from "../halo/keys";
|
|
12
12
|
import * as dxos_rpc from "../rpc";
|
|
13
13
|
import * as google_protobuf from "../../google/protobuf";
|
|
14
|
-
/**
|
|
15
|
-
* Defined in:
|
|
16
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/invitation.proto}
|
|
17
|
-
*/
|
|
18
14
|
export interface InvitationDescriptor {
|
|
19
|
-
type
|
|
20
|
-
swarmKey
|
|
21
|
-
invitation
|
|
15
|
+
type?: InvitationDescriptor.Type;
|
|
16
|
+
swarmKey?: Uint8Array;
|
|
17
|
+
invitation?: Uint8Array;
|
|
22
18
|
/**
|
|
23
19
|
* Only present if type == OFFLINE.
|
|
24
|
-
*
|
|
25
|
-
* Options:
|
|
26
|
-
* - proto3_optional = true
|
|
27
20
|
*/
|
|
28
21
|
identityKey?: Uint8Array;
|
|
29
22
|
/**
|
|
30
23
|
* Must be stripped out when passing to another peer.
|
|
31
|
-
*
|
|
32
|
-
* Options:
|
|
33
|
-
* - proto3_optional = true
|
|
34
24
|
*/
|
|
35
25
|
secret?: Uint8Array;
|
|
36
26
|
}
|
|
37
27
|
export namespace InvitationDescriptor {
|
|
38
|
-
/**
|
|
39
|
-
* Defines an invitation type.
|
|
40
|
-
*
|
|
41
|
-
* Defined in:
|
|
42
|
-
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/invitation.proto}
|
|
43
|
-
*/
|
|
44
28
|
export enum Type {
|
|
45
29
|
INTERACTIVE = 1,
|
|
46
30
|
OFFLINE = 2
|