@dxos/protocols 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/src/proto/gen/dxos/bot.d.ts +4 -139
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js +0 -4
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- 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/auth.d.ts +3 -12
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts +8 -39
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.js +0 -4
- package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts +4 -12
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.d.ts +18 -50
- package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.js +0 -4
- package/dist/src/proto/gen/dxos/credentials/party.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/metadata.d.ts +4 -26
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.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/dxos/test/echo.d.ts +3 -15
- package/dist/src/proto/gen/dxos/test/echo.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +89 -89
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/proto/gen/dxos/bot.ts +4 -139
- package/src/proto/gen/dxos/client.ts +18 -216
- package/src/proto/gen/dxos/config.ts +0 -457
- package/src/proto/gen/dxos/credentials/auth.ts +3 -12
- package/src/proto/gen/dxos/credentials/greet.ts +8 -39
- package/src/proto/gen/dxos/credentials/identity.ts +4 -12
- package/src/proto/gen/dxos/credentials/party.ts +18 -50
- 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/metadata.ts +4 -26
- 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/dxos/test/echo.ts +3 -15
- package/src/proto/gen/google/protobuf.ts +89 -89
- package/src/proto/gen/index.ts +1 -1
|
@@ -17,18 +17,10 @@ import * as dxos_halo_keys from "./halo/keys";
|
|
|
17
17
|
import * as dxos_rpc from "./rpc";
|
|
18
18
|
import * as dxos_test_echo from "./test/echo";
|
|
19
19
|
import * as google_protobuf from "../google/protobuf";
|
|
20
|
-
/**
|
|
21
|
-
* Defined in:
|
|
22
|
-
* {@link file://./../../dxos/client.proto}
|
|
23
|
-
*/
|
|
24
20
|
export interface SystemService {
|
|
25
21
|
getConfig: (request: void) => Promise<dxos_config.Config>;
|
|
26
22
|
reset: (request: void) => Promise<void>;
|
|
27
23
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Defined in:
|
|
30
|
-
* {@link file://./../../dxos/client.proto}
|
|
31
|
-
*/
|
|
32
24
|
export enum InvitationState {
|
|
33
25
|
WAITING_FOR_CONNECTION = 1,
|
|
34
26
|
CONNECTED = 2,
|
|
@@ -37,134 +29,59 @@ export enum InvitationState {
|
|
|
37
29
|
}
|
|
38
30
|
/**
|
|
39
31
|
* Invitation process created by sender.
|
|
40
|
-
*
|
|
41
|
-
* Defined in:
|
|
42
|
-
* {@link file://./../../dxos/client.proto}
|
|
43
32
|
*/
|
|
44
33
|
export interface InvitationRequest {
|
|
45
|
-
/**
|
|
46
|
-
* Options:
|
|
47
|
-
* - proto3_optional = true
|
|
48
|
-
*/
|
|
49
34
|
descriptor?: dxos_echo_invitation.InvitationDescriptor;
|
|
50
|
-
state
|
|
35
|
+
state?: InvitationState;
|
|
51
36
|
/**
|
|
52
37
|
* Only if state == ERROR.
|
|
53
|
-
*
|
|
54
|
-
* Options:
|
|
55
|
-
* - proto3_optional = true
|
|
56
38
|
*/
|
|
57
39
|
error?: string;
|
|
58
40
|
}
|
|
59
41
|
/**
|
|
60
42
|
* Invitation that is being redeemed.
|
|
61
|
-
*
|
|
62
|
-
* Defined in:
|
|
63
|
-
* {@link file://./../../dxos/client.proto}
|
|
64
43
|
*/
|
|
65
44
|
export interface RedeemedInvitation {
|
|
66
|
-
id
|
|
67
|
-
state
|
|
45
|
+
id?: string;
|
|
46
|
+
state?: InvitationState;
|
|
68
47
|
/**
|
|
69
48
|
* Only if state == ERROR.
|
|
70
|
-
*
|
|
71
|
-
* Options:
|
|
72
|
-
* - proto3_optional = true
|
|
73
49
|
*/
|
|
74
50
|
error?: string;
|
|
75
51
|
/**
|
|
76
52
|
* Only on party invitations that are finished.
|
|
77
|
-
*
|
|
78
|
-
* Options:
|
|
79
|
-
* - proto3_optional = true
|
|
80
53
|
*/
|
|
81
54
|
partyKey?: dxos_halo_keys.PubKey;
|
|
82
55
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Defined in:
|
|
85
|
-
* {@link file://./../../dxos/client.proto}
|
|
86
|
-
*/
|
|
87
56
|
export interface AuthenticateInvitationRequest {
|
|
88
57
|
/**
|
|
89
58
|
* Id from corresponding RedeemedInvitation.
|
|
90
59
|
*/
|
|
91
|
-
processId
|
|
92
|
-
secret
|
|
60
|
+
processId?: string;
|
|
61
|
+
secret?: Uint8Array;
|
|
93
62
|
}
|
|
94
|
-
/**
|
|
95
|
-
* Defined in:
|
|
96
|
-
* {@link file://./../../dxos/client.proto}
|
|
97
|
-
*/
|
|
98
63
|
export interface Profile {
|
|
99
64
|
publicKey: dxos_halo_keys.PubKey;
|
|
100
|
-
/**
|
|
101
|
-
* Options:
|
|
102
|
-
* - proto3_optional = true
|
|
103
|
-
*/
|
|
104
65
|
username?: string;
|
|
105
66
|
}
|
|
106
|
-
/**
|
|
107
|
-
* Defined in:
|
|
108
|
-
* {@link file://./../../dxos/client.proto}
|
|
109
|
-
*/
|
|
110
67
|
export interface SubscribeProfileResponse {
|
|
111
|
-
/**
|
|
112
|
-
* Options:
|
|
113
|
-
* - proto3_optional = true
|
|
114
|
-
*/
|
|
115
68
|
profile?: Profile;
|
|
116
69
|
}
|
|
117
|
-
/**
|
|
118
|
-
* Defined in:
|
|
119
|
-
* {@link file://./../../dxos/client.proto}
|
|
120
|
-
*/
|
|
121
70
|
export interface CreateProfileRequest {
|
|
122
|
-
/**
|
|
123
|
-
* Options:
|
|
124
|
-
* - proto3_optional = true
|
|
125
|
-
*/
|
|
126
71
|
username?: string;
|
|
127
|
-
/**
|
|
128
|
-
* Options:
|
|
129
|
-
* - proto3_optional = true
|
|
130
|
-
*/
|
|
131
72
|
publicKey?: Uint8Array;
|
|
132
|
-
/**
|
|
133
|
-
* Options:
|
|
134
|
-
* - proto3_optional = true
|
|
135
|
-
*/
|
|
136
73
|
secretKey?: Uint8Array;
|
|
137
74
|
}
|
|
138
|
-
/**
|
|
139
|
-
* Defined in:
|
|
140
|
-
* {@link file://./../../dxos/client.proto}
|
|
141
|
-
*/
|
|
142
75
|
export interface RecoverProfileRequest {
|
|
143
|
-
seedPhrase
|
|
76
|
+
seedPhrase?: string;
|
|
144
77
|
}
|
|
145
|
-
/**
|
|
146
|
-
* Defined in:
|
|
147
|
-
* {@link file://./../../dxos/client.proto}
|
|
148
|
-
*/
|
|
149
78
|
export interface Contact {
|
|
150
|
-
publicKey
|
|
151
|
-
/**
|
|
152
|
-
* Options:
|
|
153
|
-
* - proto3_optional = true
|
|
154
|
-
*/
|
|
79
|
+
publicKey?: dxos_halo_keys.PubKey;
|
|
155
80
|
displayName?: string;
|
|
156
81
|
}
|
|
157
|
-
/**
|
|
158
|
-
* Defined in:
|
|
159
|
-
* {@link file://./../../dxos/client.proto}
|
|
160
|
-
*/
|
|
161
82
|
export interface Contacts {
|
|
162
83
|
contacts?: Contact[];
|
|
163
84
|
}
|
|
164
|
-
/**
|
|
165
|
-
* Defined in:
|
|
166
|
-
* {@link file://./../../dxos/client.proto}
|
|
167
|
-
*/
|
|
168
85
|
export interface ProfileService {
|
|
169
86
|
subscribeProfile: (request: void) => Stream<SubscribeProfileResponse>;
|
|
170
87
|
createProfile: (request: CreateProfileRequest) => Promise<Profile>;
|
|
@@ -173,57 +90,29 @@ export interface ProfileService {
|
|
|
173
90
|
acceptInvitation: (request: dxos_echo_invitation.InvitationDescriptor) => Stream<RedeemedInvitation>;
|
|
174
91
|
authenticateInvitation: (request: AuthenticateInvitationRequest) => Promise<void>;
|
|
175
92
|
}
|
|
176
|
-
/**
|
|
177
|
-
* Defined in:
|
|
178
|
-
* {@link file://./../../dxos/client.proto}
|
|
179
|
-
*/
|
|
180
93
|
export interface AddKeyRecordRequest {
|
|
181
|
-
keyRecord
|
|
94
|
+
keyRecord?: dxos_halo_keys.KeyRecord;
|
|
182
95
|
}
|
|
183
|
-
/**
|
|
184
|
-
* Defined in:
|
|
185
|
-
* {@link file://./../../dxos/client.proto}
|
|
186
|
-
*/
|
|
187
96
|
export interface SignRequest {
|
|
188
97
|
/**
|
|
189
98
|
* - The public key of the key that is supposed to be used for signing.
|
|
190
99
|
*/
|
|
191
|
-
publicKey
|
|
192
|
-
payload
|
|
100
|
+
publicKey?: dxos_halo_keys.PubKey;
|
|
101
|
+
payload?: Uint8Array;
|
|
193
102
|
}
|
|
194
|
-
/**
|
|
195
|
-
* Defined in:
|
|
196
|
-
* {@link file://./../../dxos/client.proto}
|
|
197
|
-
*/
|
|
198
103
|
export interface SignResponse {
|
|
199
|
-
signed
|
|
104
|
+
signed?: Uint8Array;
|
|
200
105
|
}
|
|
201
|
-
/**
|
|
202
|
-
* Defined in:
|
|
203
|
-
* {@link file://./../../dxos/client.proto}
|
|
204
|
-
*/
|
|
205
106
|
export interface SetPreferenceRequest {
|
|
206
|
-
key
|
|
207
|
-
value
|
|
107
|
+
key?: string;
|
|
108
|
+
value?: string;
|
|
208
109
|
}
|
|
209
|
-
/**
|
|
210
|
-
* Defined in:
|
|
211
|
-
* {@link file://./../../dxos/client.proto}
|
|
212
|
-
*/
|
|
213
110
|
export interface GetPreferenceRequest {
|
|
214
|
-
key
|
|
111
|
+
key?: string;
|
|
215
112
|
}
|
|
216
|
-
/**
|
|
217
|
-
* Defined in:
|
|
218
|
-
* {@link file://./../../dxos/client.proto}
|
|
219
|
-
*/
|
|
220
113
|
export interface GetPreferenceResponse {
|
|
221
|
-
value
|
|
114
|
+
value?: string;
|
|
222
115
|
}
|
|
223
|
-
/**
|
|
224
|
-
* Defined in:
|
|
225
|
-
* {@link file://./../../dxos/client.proto}
|
|
226
|
-
*/
|
|
227
116
|
export interface HaloService {
|
|
228
117
|
sign: (request: SignRequest) => Promise<SignResponse>;
|
|
229
118
|
addKeyRecord: (request: AddKeyRecordRequest) => Promise<void>;
|
|
@@ -233,10 +122,6 @@ export interface HaloService {
|
|
|
233
122
|
setDevicePreference: (request: SetPreferenceRequest) => Promise<void>;
|
|
234
123
|
getDevicePreference: (request: GetPreferenceRequest) => Promise<GetPreferenceResponse>;
|
|
235
124
|
}
|
|
236
|
-
/**
|
|
237
|
-
* Defined in:
|
|
238
|
-
* {@link file://./../../dxos/client.proto}
|
|
239
|
-
*/
|
|
240
125
|
export interface Party {
|
|
241
126
|
publicKey: dxos_halo_keys.PubKey;
|
|
242
127
|
isOpen: boolean;
|
|
@@ -244,144 +129,61 @@ export interface Party {
|
|
|
244
129
|
members?: Party.Member[];
|
|
245
130
|
}
|
|
246
131
|
export namespace Party {
|
|
247
|
-
/**
|
|
248
|
-
* Defined in:
|
|
249
|
-
* {@link file://./../../dxos/client.proto}
|
|
250
|
-
*/
|
|
251
132
|
export interface Member {
|
|
252
133
|
publicKey: dxos_halo_keys.PubKey;
|
|
253
|
-
/**
|
|
254
|
-
* Options:
|
|
255
|
-
* - proto3_optional = true
|
|
256
|
-
*/
|
|
257
134
|
displayName?: string;
|
|
258
135
|
}
|
|
259
136
|
}
|
|
260
|
-
/**
|
|
261
|
-
* Defined in:
|
|
262
|
-
* {@link file://./../../dxos/client.proto}
|
|
263
|
-
*/
|
|
264
137
|
export interface SubscribePartyRequest {
|
|
265
138
|
partyKey: dxos_halo_keys.PubKey;
|
|
266
139
|
}
|
|
267
|
-
/**
|
|
268
|
-
* Defined in:
|
|
269
|
-
* {@link file://./../../dxos/client.proto}
|
|
270
|
-
*/
|
|
271
140
|
export interface GetPartyDetailsRequest {
|
|
272
141
|
partyKey: dxos_halo_keys.PubKey;
|
|
273
142
|
}
|
|
274
|
-
/**
|
|
275
|
-
* Defined in:
|
|
276
|
-
* {@link file://./../../dxos/client.proto}
|
|
277
|
-
*/
|
|
278
143
|
export interface PartyDetails {
|
|
279
144
|
/**
|
|
280
145
|
* The timeframe of mutations processed by the client.
|
|
281
146
|
*/
|
|
282
147
|
processedTimeframe: dxos_echo_timeframe.TimeframeVector;
|
|
283
148
|
}
|
|
284
|
-
/**
|
|
285
|
-
* Defined in:
|
|
286
|
-
* {@link file://./../../dxos/client.proto}
|
|
287
|
-
*/
|
|
288
149
|
export interface SubscribePartyResponse {
|
|
289
|
-
/**
|
|
290
|
-
* Options:
|
|
291
|
-
* - proto3_optional = true
|
|
292
|
-
*/
|
|
293
150
|
party?: Party;
|
|
294
151
|
}
|
|
295
|
-
/**
|
|
296
|
-
* Defined in:
|
|
297
|
-
* {@link file://./../../dxos/client.proto}
|
|
298
|
-
*/
|
|
299
152
|
export interface SubscribePartiesResponse {
|
|
300
153
|
parties?: Party[];
|
|
301
154
|
}
|
|
302
|
-
/**
|
|
303
|
-
* Defined in:
|
|
304
|
-
* {@link file://./../../dxos/client.proto}
|
|
305
|
-
*/
|
|
306
155
|
export interface CreateInvitationRequest {
|
|
307
156
|
partyKey: dxos_halo_keys.PubKey;
|
|
308
157
|
/**
|
|
309
158
|
* When specified the invitation will be of OFFLINE type, not requiring secret exchange.
|
|
310
|
-
*
|
|
311
|
-
* Options:
|
|
312
|
-
* - proto3_optional = true
|
|
313
159
|
*/
|
|
314
160
|
inviteeKey?: dxos_halo_keys.PubKey;
|
|
315
161
|
}
|
|
316
|
-
/**
|
|
317
|
-
* Defined in:
|
|
318
|
-
* {@link file://./../../dxos/client.proto}
|
|
319
|
-
*/
|
|
320
162
|
export interface PartyActivationOptions {
|
|
321
|
-
global
|
|
322
|
-
device
|
|
163
|
+
global?: boolean;
|
|
164
|
+
device?: boolean;
|
|
323
165
|
}
|
|
324
|
-
/**
|
|
325
|
-
* Defined in:
|
|
326
|
-
* {@link file://./../../dxos/client.proto}
|
|
327
|
-
*/
|
|
328
166
|
export interface SetPartyStateRequest {
|
|
329
167
|
partyKey: dxos_halo_keys.PubKey;
|
|
330
|
-
/**
|
|
331
|
-
* Options:
|
|
332
|
-
* - proto3_optional = true
|
|
333
|
-
*/
|
|
334
168
|
open?: boolean;
|
|
335
|
-
/**
|
|
336
|
-
* Options:
|
|
337
|
-
* - proto3_optional = true
|
|
338
|
-
*/
|
|
339
169
|
activeGlobal?: boolean;
|
|
340
|
-
/**
|
|
341
|
-
* Options:
|
|
342
|
-
* - proto3_optional = true
|
|
343
|
-
*/
|
|
344
170
|
activeDevice?: boolean;
|
|
345
171
|
}
|
|
346
|
-
/**
|
|
347
|
-
* Defined in:
|
|
348
|
-
* {@link file://./../../dxos/client.proto}
|
|
349
|
-
*/
|
|
350
172
|
export interface SubscribeMembersRequest {
|
|
351
173
|
partyKey: dxos_halo_keys.PubKey;
|
|
352
174
|
}
|
|
353
|
-
/**
|
|
354
|
-
* Defined in:
|
|
355
|
-
* {@link file://./../../dxos/client.proto}
|
|
356
|
-
*/
|
|
357
175
|
export interface SubscribeMembersResponse {
|
|
358
176
|
members?: SubscribeMembersResponse.PartyMember[];
|
|
359
177
|
}
|
|
360
178
|
export namespace SubscribeMembersResponse {
|
|
361
|
-
/**
|
|
362
|
-
* Defined in:
|
|
363
|
-
* {@link file://./../../dxos/client.proto}
|
|
364
|
-
*/
|
|
365
179
|
export interface PartyMember {
|
|
366
180
|
publicKey: dxos_halo_keys.PubKey;
|
|
367
|
-
/**
|
|
368
|
-
* Options:
|
|
369
|
-
* - proto3_optional = true
|
|
370
|
-
*/
|
|
371
181
|
displayName?: string;
|
|
372
182
|
}
|
|
373
183
|
}
|
|
374
|
-
/**
|
|
375
|
-
* Defined in:
|
|
376
|
-
* {@link file://./../../dxos/client.proto}
|
|
377
|
-
*/
|
|
378
184
|
export interface CreateSnaspotRequest {
|
|
379
|
-
partyKey
|
|
185
|
+
partyKey?: dxos_halo_keys.PubKey;
|
|
380
186
|
}
|
|
381
|
-
/**
|
|
382
|
-
* Defined in:
|
|
383
|
-
* {@link file://./../../dxos/client.proto}
|
|
384
|
-
*/
|
|
385
187
|
export interface PartyService {
|
|
386
188
|
subscribeToParty: (request: SubscribePartyRequest) => Stream<SubscribePartyResponse>;
|
|
387
189
|
subscribeParties: (request: void) => Stream<SubscribePartiesResponse>;
|