@dxos/protocols 0.1.1 → 0.1.3
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 +11 -11
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts +247 -0
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/client/services.js +32 -0
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -0
- package/dist/src/proto/gen/dxos/client.d.ts +49 -68
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +0 -16
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +0 -12
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +52 -21
- package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/{swarmLog.d.ts → swarm.d.ts} +4 -4
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/devtools/{swarmLog.js → swarm.js} +1 -1
- package/dist/src/proto/gen/dxos/devtools/swarm.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +5 -5
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +3 -3
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +2 -2
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +3 -3
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts +25 -27
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.js +5 -5
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts +10 -44
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.js +0 -13
- package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -2
- package/dist/src/proto/gen/dxos/halo/keys.js +1 -1
- package/dist/src/proto/gen/dxos/halo/signed.d.ts +1 -1
- package/dist/src/proto/gen/dxos/service/publisher.d.ts +1 -0
- package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/scheduler.d.ts +1 -1
- package/dist/src/proto/gen/dxos/service/scheduler.d.ts.map +1 -1
- package/dist/src/proto/gen/index.d.ts +56 -41
- 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/package.json +5 -5
- package/proto/dxos/client/services.d.ts +2 -0
- package/proto/dxos/{devtools/swarmLog.d.ts.map → client/services.d.ts.map} +2 -2
- package/proto/dxos/client/services.js +2 -0
- package/proto/dxos/devtools/diagnostics.d.ts +2 -0
- package/proto/dxos/devtools/diagnostics.d.ts.map +10 -0
- package/proto/dxos/devtools/diagnostics.js +2 -0
- package/proto/dxos/devtools/swarm.d.ts +2 -0
- package/proto/dxos/{halo/credentials/party.d.ts.map → devtools/swarm.d.ts.map} +2 -2
- package/proto/dxos/devtools/{swarmLog.js → swarm.js} +1 -1
- package/src/proto/dxos/bot.proto +11 -11
- package/src/proto/dxos/client/services.proto +197 -0
- package/src/proto/dxos/client.proto +49 -55
- package/src/proto/dxos/config.proto +2 -15
- package/src/proto/dxos/devtools/diagnostics.proto +28 -0
- package/src/proto/dxos/devtools/host.proto +21 -23
- package/src/proto/dxos/devtools/{swarmLog.proto → swarm.proto} +1 -1
- package/src/proto/dxos/echo/metadata.proto +6 -6
- package/src/proto/dxos/echo/service.proto +3 -3
- package/src/proto/dxos/echo/snapshot.proto +5 -5
- package/src/proto/dxos/echo/timeframe.proto +1 -1
- package/src/proto/dxos/halo/credentials/auth.proto +3 -3
- package/src/proto/dxos/halo/credentials/greet.proto +19 -19
- package/src/proto/dxos/halo/credentials.proto +21 -20
- package/src/proto/dxos/halo/invitations.proto +9 -27
- package/src/proto/dxos/halo/keys.proto +2 -2
- package/src/proto/dxos/halo/signed.proto +1 -1
- package/src/proto/dxos/service/publisher.proto +1 -0
- package/src/proto/dxos/service/scheduler.proto +1 -1
- package/src/proto/gen/dxos/bot.ts +12 -12
- package/src/proto/gen/dxos/client/services.ts +283 -0
- package/src/proto/gen/dxos/client.ts +50 -69
- package/src/proto/gen/dxos/config.ts +2 -18
- package/src/proto/gen/dxos/devtools/host.ts +53 -22
- package/src/proto/gen/dxos/devtools/{swarmLog.ts → swarm.ts} +4 -4
- package/src/proto/gen/dxos/echo/feed.ts +2 -2
- package/src/proto/gen/dxos/echo/metadata.ts +7 -7
- package/src/proto/gen/dxos/echo/model/messenger.ts +2 -2
- package/src/proto/gen/dxos/echo/model/object.ts +2 -2
- package/src/proto/gen/dxos/echo/model/text.ts +2 -2
- package/src/proto/gen/dxos/echo/service.ts +5 -5
- package/src/proto/gen/dxos/echo/snapshot.ts +4 -4
- package/src/proto/gen/dxos/echo/timeframe.ts +2 -2
- package/src/proto/gen/dxos/halo/credentials/auth.ts +5 -5
- package/src/proto/gen/dxos/halo/credentials/greet.ts +3 -3
- package/src/proto/gen/dxos/halo/credentials/identity.ts +2 -2
- package/src/proto/gen/dxos/halo/credentials.ts +27 -29
- package/src/proto/gen/dxos/halo/invitations.ts +12 -46
- package/src/proto/gen/dxos/halo/keyring.ts +2 -2
- package/src/proto/gen/dxos/halo/keys.ts +4 -4
- package/src/proto/gen/dxos/halo/signed.ts +3 -3
- package/src/proto/gen/dxos/iframe.ts +2 -2
- package/src/proto/gen/dxos/keys.ts +2 -2
- package/src/proto/gen/dxos/mesh/bridge.ts +2 -2
- package/src/proto/gen/dxos/mesh/broadcast.ts +2 -2
- package/src/proto/gen/dxos/mesh/messaging.ts +2 -2
- package/src/proto/gen/dxos/mesh/presence.ts +2 -2
- package/src/proto/gen/dxos/mesh/protocol.ts +2 -2
- package/src/proto/gen/dxos/mesh/replicator.ts +2 -2
- package/src/proto/gen/dxos/mesh/signal.ts +2 -2
- package/src/proto/gen/dxos/mesh/swarm.ts +2 -2
- package/src/proto/gen/dxos/registry.ts +2 -2
- package/src/proto/gen/dxos/rpc.ts +2 -2
- package/src/proto/gen/dxos/service/publisher.ts +3 -2
- package/src/proto/gen/dxos/service/scheduler.ts +3 -3
- package/src/proto/gen/dxos/type.ts +2 -2
- package/src/proto/gen/example/testing/data.ts +2 -2
- package/src/proto/gen/example/testing/rpc.ts +2 -2
- package/src/proto/gen/google/protobuf.ts +2 -2
- package/src/proto/gen/index.ts +57 -42
- package/dist/src/proto/gen/dxos/devtools/swarmLog.d.ts.map +0 -1
- package/dist/src/proto/gen/dxos/devtools/swarmLog.js.map +0 -1
- package/dist/src/proto/gen/dxos/halo/credentials/party.d.ts +0 -82
- package/dist/src/proto/gen/dxos/halo/credentials/party.d.ts.map +0 -1
- package/dist/src/proto/gen/dxos/halo/credentials/party.js +0 -19
- package/dist/src/proto/gen/dxos/halo/credentials/party.js.map +0 -1
- package/proto/dxos/devtools/swarmLog.d.ts +0 -2
- package/proto/dxos/halo/credentials/party.d.ts +0 -2
- package/proto/dxos/halo/credentials/party.js +0 -2
- package/src/proto/dxos/halo/credentials/party.proto +0 -127
- package/src/proto/gen/dxos/halo/credentials/party.ts +0 -119
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../../substitutions";
|
|
3
|
+
import * as dxos_bot from "../bot";
|
|
4
|
+
import * as dxos_client from "../client";
|
|
5
|
+
import * as dxos_config from "../config";
|
|
6
|
+
import * as dxos_devtools_host from "../devtools/host";
|
|
7
|
+
import * as dxos_devtools_swarm from "../devtools/swarm";
|
|
8
|
+
import * as dxos_echo_feed from "../echo/feed";
|
|
9
|
+
import * as dxos_echo_metadata from "../echo/metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "../echo/model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "../echo/model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "../echo/model/text";
|
|
13
|
+
import * as dxos_echo_service from "../echo/service";
|
|
14
|
+
import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
15
|
+
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
17
|
+
import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
|
|
18
|
+
import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
|
|
19
|
+
import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
|
|
20
|
+
import * as dxos_halo_invitations from "../halo/invitations";
|
|
21
|
+
import * as dxos_halo_keyring from "../halo/keyring";
|
|
22
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
23
|
+
import * as dxos_halo_signed from "../halo/signed";
|
|
24
|
+
import * as dxos_iframe from "../iframe";
|
|
25
|
+
import * as dxos_keys from "../keys";
|
|
26
|
+
import * as dxos_mesh_bridge from "../mesh/bridge";
|
|
27
|
+
import * as dxos_mesh_broadcast from "../mesh/broadcast";
|
|
28
|
+
import * as dxos_mesh_messaging from "../mesh/messaging";
|
|
29
|
+
import * as dxos_mesh_presence from "../mesh/presence";
|
|
30
|
+
import * as dxos_mesh_protocol from "../mesh/protocol";
|
|
31
|
+
import * as dxos_mesh_replicator from "../mesh/replicator";
|
|
32
|
+
import * as dxos_mesh_signal from "../mesh/signal";
|
|
33
|
+
import * as dxos_mesh_swarm from "../mesh/swarm";
|
|
34
|
+
import * as dxos_registry from "../registry";
|
|
35
|
+
import * as dxos_rpc from "../rpc";
|
|
36
|
+
import * as dxos_service_publisher from "../service/publisher";
|
|
37
|
+
import * as dxos_service_scheduler from "../service/scheduler";
|
|
38
|
+
import * as dxos_type from "../type";
|
|
39
|
+
import * as example_testing_data from "../../example/testing/data";
|
|
40
|
+
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
41
|
+
import * as google_protobuf from "../../google/protobuf";
|
|
42
|
+
/**
|
|
43
|
+
* Defined in:
|
|
44
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface SystemService {
|
|
47
|
+
getConfig: (request: void) => Promise<dxos_config.Config>;
|
|
48
|
+
reset: (request: void) => Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Defined in:
|
|
52
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
53
|
+
*/
|
|
54
|
+
export interface KeyRecord {
|
|
55
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Defined in:
|
|
59
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
60
|
+
*/
|
|
61
|
+
export interface SignRequest {
|
|
62
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
63
|
+
payload: Uint8Array;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Defined in:
|
|
67
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
68
|
+
*/
|
|
69
|
+
export interface SignResponse {
|
|
70
|
+
signed: Uint8Array;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Defined in:
|
|
74
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
75
|
+
*/
|
|
76
|
+
export interface SigningService {
|
|
77
|
+
updateKeyRecord: (request: KeyRecord) => Promise<KeyRecord>;
|
|
78
|
+
sign: (request: SignRequest) => Promise<SignResponse>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Defined in:
|
|
82
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
83
|
+
*/
|
|
84
|
+
export interface Identity {
|
|
85
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
86
|
+
profile: dxos_halo_credentials.ProfileDocument;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Defined in:
|
|
90
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
91
|
+
*/
|
|
92
|
+
export interface RecoverProfileRequest {
|
|
93
|
+
recoveryKey: Uint8Array;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Defined in:
|
|
97
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
98
|
+
*/
|
|
99
|
+
export interface HaloService {
|
|
100
|
+
recoverProfile: (request: RecoverProfileRequest) => Promise<Identity>;
|
|
101
|
+
updateProfile: (request: Identity) => Promise<void>;
|
|
102
|
+
queryProfile: (request: void) => Stream<Identity>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Defined in:
|
|
106
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
107
|
+
*/
|
|
108
|
+
export interface Device {
|
|
109
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Defined in:
|
|
113
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
114
|
+
*/
|
|
115
|
+
export interface QueryDevicesResponse {
|
|
116
|
+
devices?: Device[];
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Defined in:
|
|
120
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
121
|
+
*/
|
|
122
|
+
export interface DevicesService {
|
|
123
|
+
updateDevice: (request: void) => Promise<Device>;
|
|
124
|
+
queryDevices: (request: void) => Stream<QueryDevicesResponse>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Defined in:
|
|
128
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
129
|
+
*/
|
|
130
|
+
export interface Contact {
|
|
131
|
+
profile: dxos_halo_credentials.ProfileDocument;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Defined in:
|
|
135
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
136
|
+
*/
|
|
137
|
+
export interface ContactsService {
|
|
138
|
+
updateContact: (request: void) => Promise<Contact>;
|
|
139
|
+
queryContacts: (request: void) => Stream<Contact>;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Defined in:
|
|
143
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
144
|
+
*/
|
|
145
|
+
export interface Space {
|
|
146
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Defined in:
|
|
150
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
151
|
+
*/
|
|
152
|
+
export interface QueryMembersRequest {
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Defined in:
|
|
156
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
157
|
+
*/
|
|
158
|
+
export interface QueryMembersResponse {
|
|
159
|
+
members: dxos_halo_credentials.IdentityProfile;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Defined in:
|
|
163
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
164
|
+
*/
|
|
165
|
+
export interface SpacesService {
|
|
166
|
+
createSpace: (request: void) => Promise<Space>;
|
|
167
|
+
querySpaces: (request: void) => Stream<Space>;
|
|
168
|
+
queryMembers: (request: QueryMembersRequest) => Stream<QueryMembersResponse>;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Represents the invitation state passed between client and service.
|
|
172
|
+
*
|
|
173
|
+
* Defined in:
|
|
174
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
175
|
+
*/
|
|
176
|
+
export interface Invitation {
|
|
177
|
+
/**
|
|
178
|
+
* Local identifier.
|
|
179
|
+
*
|
|
180
|
+
* Options:
|
|
181
|
+
* - proto3_optional = true
|
|
182
|
+
*/
|
|
183
|
+
invitationId?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Determined when created.
|
|
186
|
+
*
|
|
187
|
+
* Options:
|
|
188
|
+
* - proto3_optional = true
|
|
189
|
+
*/
|
|
190
|
+
type?: Invitation.Type;
|
|
191
|
+
/**
|
|
192
|
+
* Local state.
|
|
193
|
+
*
|
|
194
|
+
* Options:
|
|
195
|
+
* - proto3_optional = true
|
|
196
|
+
*/
|
|
197
|
+
state?: Invitation.State;
|
|
198
|
+
/**
|
|
199
|
+
* Local error code.
|
|
200
|
+
*
|
|
201
|
+
* Options:
|
|
202
|
+
* - proto3_optional = true
|
|
203
|
+
*/
|
|
204
|
+
errorCode?: number;
|
|
205
|
+
/**
|
|
206
|
+
* Swarm rendezvous (random).
|
|
207
|
+
*
|
|
208
|
+
* Options:
|
|
209
|
+
* - proto3_optional = true
|
|
210
|
+
*/
|
|
211
|
+
swarmKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
212
|
+
/**
|
|
213
|
+
* Guest's identity (only present if OFFLINE).
|
|
214
|
+
*
|
|
215
|
+
* Options:
|
|
216
|
+
* - proto3_optional = true
|
|
217
|
+
*/
|
|
218
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
219
|
+
/**
|
|
220
|
+
* Authentication code created by host.
|
|
221
|
+
*
|
|
222
|
+
* Options:
|
|
223
|
+
* - proto3_optional = true
|
|
224
|
+
*/
|
|
225
|
+
authenticationCode?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Space key (if data invitation).
|
|
228
|
+
*
|
|
229
|
+
* Options:
|
|
230
|
+
* - proto3_optional = true
|
|
231
|
+
*/
|
|
232
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
233
|
+
}
|
|
234
|
+
export namespace Invitation {
|
|
235
|
+
/**
|
|
236
|
+
* Defined in:
|
|
237
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
238
|
+
*/
|
|
239
|
+
export enum Type {
|
|
240
|
+
INTERACTIVE = 0,
|
|
241
|
+
INTERACTIVE_TESTING = 1,
|
|
242
|
+
OFFLINE = 2
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Defined in:
|
|
246
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
247
|
+
*/
|
|
248
|
+
export enum State {
|
|
249
|
+
INIT = 0,
|
|
250
|
+
CONNECTING = 1,
|
|
251
|
+
CONNECTED = 2,
|
|
252
|
+
AUTHENTICATING = 3,
|
|
253
|
+
SUCCESS = 4,
|
|
254
|
+
CANCELLED = 5,
|
|
255
|
+
TIMEOUT = 6,
|
|
256
|
+
ERROR = 7
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Defined in:
|
|
261
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
262
|
+
*/
|
|
263
|
+
export interface AuthenticationRequest {
|
|
264
|
+
invitationId: string;
|
|
265
|
+
authenticationCode: string;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Defined in:
|
|
269
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
270
|
+
*/
|
|
271
|
+
export interface CancelInvitationRequest {
|
|
272
|
+
invitationId: string;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Defined in:
|
|
276
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
277
|
+
*/
|
|
278
|
+
export interface InvitationsService {
|
|
279
|
+
createInvitation: (request: Invitation) => Stream<Invitation>;
|
|
280
|
+
authenticate: (request: AuthenticationRequest) => Promise<void>;
|
|
281
|
+
acceptInvitation: (request: Invitation) => Stream<Invitation>;
|
|
282
|
+
cancelInvitation: (request: CancelInvitationRequest) => Promise<void>;
|
|
283
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
2
|
import substitutions from "../../substitutions";
|
|
3
3
|
import * as dxos_bot from "./bot";
|
|
4
|
+
import * as dxos_client_services from "./client/services";
|
|
4
5
|
import * as dxos_config from "./config";
|
|
5
6
|
import * as dxos_devtools_host from "./devtools/host";
|
|
6
|
-
import * as
|
|
7
|
+
import * as dxos_devtools_swarm from "./devtools/swarm";
|
|
7
8
|
import * as dxos_echo_feed from "./echo/feed";
|
|
8
9
|
import * as dxos_echo_metadata from "./echo/metadata";
|
|
9
10
|
import * as dxos_echo_model_messenger from "./echo/model/messenger";
|
|
@@ -16,7 +17,6 @@ import * as dxos_halo_credentials from "./halo/credentials";
|
|
|
16
17
|
import * as dxos_halo_credentials_auth from "./halo/credentials/auth";
|
|
17
18
|
import * as dxos_halo_credentials_greet from "./halo/credentials/greet";
|
|
18
19
|
import * as dxos_halo_credentials_identity from "./halo/credentials/identity";
|
|
19
|
-
import * as dxos_halo_credentials_party from "./halo/credentials/party";
|
|
20
20
|
import * as dxos_halo_invitations from "./halo/invitations";
|
|
21
21
|
import * as dxos_halo_keyring from "./halo/keyring";
|
|
22
22
|
import * as dxos_halo_keys from "./halo/keys";
|
|
@@ -68,7 +68,7 @@ export interface InvitationRequest {
|
|
|
68
68
|
* Options:
|
|
69
69
|
* - proto3_optional = true
|
|
70
70
|
*/
|
|
71
|
-
descriptor?:
|
|
71
|
+
descriptor?: dxos_client_services.Invitation;
|
|
72
72
|
state: InvitationState;
|
|
73
73
|
/**
|
|
74
74
|
* Only if state == ERROR.
|
|
@@ -95,12 +95,12 @@ export interface RedeemedInvitation {
|
|
|
95
95
|
*/
|
|
96
96
|
error?: string;
|
|
97
97
|
/**
|
|
98
|
-
* Only on
|
|
98
|
+
* Only on space invitations that are finished.
|
|
99
99
|
*
|
|
100
100
|
* Options:
|
|
101
101
|
* - proto3_optional = true
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* Defined in:
|
|
@@ -118,12 +118,12 @@ export interface AuthenticateInvitationRequest {
|
|
|
118
118
|
* {@link file://./../../dxos/client.proto}
|
|
119
119
|
*/
|
|
120
120
|
export interface Profile {
|
|
121
|
-
|
|
121
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
122
122
|
/**
|
|
123
123
|
* Options:
|
|
124
124
|
* - proto3_optional = true
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
displayName?: string;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* Defined in:
|
|
@@ -145,17 +145,17 @@ export interface CreateProfileRequest {
|
|
|
145
145
|
* Options:
|
|
146
146
|
* - proto3_optional = true
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
publicKey?: Uint8Array;
|
|
149
149
|
/**
|
|
150
150
|
* Options:
|
|
151
151
|
* - proto3_optional = true
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
secretKey?: Uint8Array;
|
|
154
154
|
/**
|
|
155
155
|
* Options:
|
|
156
156
|
* - proto3_optional = true
|
|
157
157
|
*/
|
|
158
|
-
|
|
158
|
+
displayName?: string;
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
161
|
* Defined in:
|
|
@@ -192,7 +192,7 @@ export interface ProfileService {
|
|
|
192
192
|
recoverProfile: (request: RecoverProfileRequest) => Promise<Profile>;
|
|
193
193
|
subscribeProfile: (request: void) => Stream<SubscribeProfileResponse>;
|
|
194
194
|
createInvitation: (request: void) => Stream<InvitationRequest>;
|
|
195
|
-
acceptInvitation: (request:
|
|
195
|
+
acceptInvitation: (request: dxos_client_services.Invitation) => Stream<RedeemedInvitation>;
|
|
196
196
|
authenticateInvitation: (request: AuthenticateInvitationRequest) => Promise<void>;
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
@@ -259,45 +259,31 @@ export interface HaloService {
|
|
|
259
259
|
* Defined in:
|
|
260
260
|
* {@link file://./../../dxos/client.proto}
|
|
261
261
|
*/
|
|
262
|
-
export interface
|
|
262
|
+
export interface Space {
|
|
263
263
|
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
264
264
|
isOpen: boolean;
|
|
265
265
|
isActive: boolean;
|
|
266
|
-
members?:
|
|
267
|
-
}
|
|
268
|
-
export namespace Party {
|
|
269
|
-
/**
|
|
270
|
-
* Defined in:
|
|
271
|
-
* {@link file://./../../dxos/client.proto}
|
|
272
|
-
*/
|
|
273
|
-
export interface Member {
|
|
274
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
275
|
-
/**
|
|
276
|
-
* Options:
|
|
277
|
-
* - proto3_optional = true
|
|
278
|
-
*/
|
|
279
|
-
displayName?: string;
|
|
280
|
-
}
|
|
266
|
+
members?: SpaceMember[];
|
|
281
267
|
}
|
|
282
268
|
/**
|
|
283
269
|
* Defined in:
|
|
284
270
|
* {@link file://./../../dxos/client.proto}
|
|
285
271
|
*/
|
|
286
|
-
export interface
|
|
287
|
-
|
|
272
|
+
export interface SubscribeSpaceRequest {
|
|
273
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
288
274
|
}
|
|
289
275
|
/**
|
|
290
276
|
* Defined in:
|
|
291
277
|
* {@link file://./../../dxos/client.proto}
|
|
292
278
|
*/
|
|
293
|
-
export interface
|
|
294
|
-
|
|
279
|
+
export interface GetSpaceDetailsRequest {
|
|
280
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
295
281
|
}
|
|
296
282
|
/**
|
|
297
283
|
* Defined in:
|
|
298
284
|
* {@link file://./../../dxos/client.proto}
|
|
299
285
|
*/
|
|
300
|
-
export interface
|
|
286
|
+
export interface SpaceDetails {
|
|
301
287
|
/**
|
|
302
288
|
* The timeframe of mutations processed by the client.
|
|
303
289
|
*/
|
|
@@ -307,26 +293,38 @@ export interface PartyDetails {
|
|
|
307
293
|
* Defined in:
|
|
308
294
|
* {@link file://./../../dxos/client.proto}
|
|
309
295
|
*/
|
|
310
|
-
export interface
|
|
296
|
+
export interface SpaceMember {
|
|
297
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
298
|
+
/**
|
|
299
|
+
* Options:
|
|
300
|
+
* - proto3_optional = true
|
|
301
|
+
*/
|
|
302
|
+
profile?: Profile;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Defined in:
|
|
306
|
+
* {@link file://./../../dxos/client.proto}
|
|
307
|
+
*/
|
|
308
|
+
export interface SubscribeSpaceResponse {
|
|
311
309
|
/**
|
|
312
310
|
* Options:
|
|
313
311
|
* - proto3_optional = true
|
|
314
312
|
*/
|
|
315
|
-
|
|
313
|
+
space?: Space;
|
|
316
314
|
}
|
|
317
315
|
/**
|
|
318
316
|
* Defined in:
|
|
319
317
|
* {@link file://./../../dxos/client.proto}
|
|
320
318
|
*/
|
|
321
|
-
export interface
|
|
322
|
-
|
|
319
|
+
export interface SubscribeSpacesResponse {
|
|
320
|
+
spaces?: Space[];
|
|
323
321
|
}
|
|
324
322
|
/**
|
|
325
323
|
* Defined in:
|
|
326
324
|
* {@link file://./../../dxos/client.proto}
|
|
327
325
|
*/
|
|
328
326
|
export interface CreateInvitationRequest {
|
|
329
|
-
|
|
327
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
330
328
|
/**
|
|
331
329
|
* When specified the invitation will be of OFFLINE type, not requiring secret exchange.
|
|
332
330
|
*
|
|
@@ -339,7 +337,7 @@ export interface CreateInvitationRequest {
|
|
|
339
337
|
* Defined in:
|
|
340
338
|
* {@link file://./../../dxos/client.proto}
|
|
341
339
|
*/
|
|
342
|
-
export interface
|
|
340
|
+
export interface SpaceActivationOptions {
|
|
343
341
|
global: boolean;
|
|
344
342
|
device: boolean;
|
|
345
343
|
}
|
|
@@ -347,8 +345,8 @@ export interface PartyActivationOptions {
|
|
|
347
345
|
* Defined in:
|
|
348
346
|
* {@link file://./../../dxos/client.proto}
|
|
349
347
|
*/
|
|
350
|
-
export interface
|
|
351
|
-
|
|
348
|
+
export interface SetSpaceStateRequest {
|
|
349
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
352
350
|
/**
|
|
353
351
|
* Options:
|
|
354
352
|
* - proto3_optional = true
|
|
@@ -370,53 +368,36 @@ export interface SetPartyStateRequest {
|
|
|
370
368
|
* {@link file://./../../dxos/client.proto}
|
|
371
369
|
*/
|
|
372
370
|
export interface SubscribeMembersRequest {
|
|
373
|
-
|
|
371
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
374
372
|
}
|
|
375
373
|
/**
|
|
376
374
|
* Defined in:
|
|
377
375
|
* {@link file://./../../dxos/client.proto}
|
|
378
376
|
*/
|
|
379
377
|
export interface SubscribeMembersResponse {
|
|
380
|
-
members?:
|
|
381
|
-
}
|
|
382
|
-
export namespace SubscribeMembersResponse {
|
|
383
|
-
/**
|
|
384
|
-
* Defined in:
|
|
385
|
-
* {@link file://./../../dxos/client.proto}
|
|
386
|
-
*/
|
|
387
|
-
export interface PartyMember {
|
|
388
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
389
|
-
/**
|
|
390
|
-
* Options:
|
|
391
|
-
* - proto3_optional = true
|
|
392
|
-
*/
|
|
393
|
-
displayName?: string;
|
|
394
|
-
}
|
|
378
|
+
members?: SpaceMember[];
|
|
395
379
|
}
|
|
396
380
|
/**
|
|
397
381
|
* Defined in:
|
|
398
382
|
* {@link file://./../../dxos/client.proto}
|
|
399
383
|
*/
|
|
400
384
|
export interface CreateSnapshotRequest {
|
|
401
|
-
|
|
385
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
402
386
|
}
|
|
403
387
|
/**
|
|
404
388
|
* Defined in:
|
|
405
389
|
* {@link file://./../../dxos/client.proto}
|
|
406
390
|
*/
|
|
407
|
-
export interface
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
391
|
+
export interface SpaceService {
|
|
392
|
+
subscribeToSpace: (request: SubscribeSpaceRequest) => Stream<SubscribeSpaceResponse>;
|
|
393
|
+
subscribeSpaces: (request: void) => Stream<SubscribeSpacesResponse>;
|
|
394
|
+
getSpaceDetails: (request: GetSpaceDetailsRequest) => Promise<SpaceDetails>;
|
|
395
|
+
createSpace: (request: void) => Promise<Space>;
|
|
396
|
+
cloneSpace: (request: dxos_echo_snapshot.SpaceSnapshot) => Promise<Space>;
|
|
413
397
|
/**
|
|
414
|
-
* Open and close or activate and deactivate a
|
|
398
|
+
* Open and close or activate and deactivate a space.
|
|
415
399
|
*/
|
|
416
|
-
|
|
417
|
-
createInvitation: (request: CreateInvitationRequest) => Stream<InvitationRequest>;
|
|
418
|
-
acceptInvitation: (request: dxos_halo_invitations.InvitationDescriptor) => Stream<RedeemedInvitation>;
|
|
419
|
-
authenticateInvitation: (request: AuthenticateInvitationRequest) => Promise<void>;
|
|
400
|
+
setSpaceState: (request: SetSpaceStateRequest) => Promise<Space>;
|
|
420
401
|
subscribeMembers: (request: SubscribeMembersRequest) => Stream<SubscribeMembersResponse>;
|
|
421
|
-
createSnapshot: (request: CreateSnapshotRequest) => Promise<dxos_echo_snapshot.
|
|
402
|
+
createSnapshot: (request: CreateSnapshotRequest) => Promise<dxos_echo_snapshot.SpaceSnapshot>;
|
|
422
403
|
}
|
|
@@ -2,8 +2,9 @@ import type { Stream } from "@dxos/codec-protobuf";
|
|
|
2
2
|
import substitutions from "../../substitutions";
|
|
3
3
|
import * as dxos_bot from "./bot";
|
|
4
4
|
import * as dxos_client from "./client";
|
|
5
|
+
import * as dxos_client_services from "./client/services";
|
|
5
6
|
import * as dxos_devtools_host from "./devtools/host";
|
|
6
|
-
import * as
|
|
7
|
+
import * as dxos_devtools_swarm from "./devtools/swarm";
|
|
7
8
|
import * as dxos_echo_feed from "./echo/feed";
|
|
8
9
|
import * as dxos_echo_metadata from "./echo/metadata";
|
|
9
10
|
import * as dxos_echo_model_messenger from "./echo/model/messenger";
|
|
@@ -16,7 +17,6 @@ import * as dxos_halo_credentials from "./halo/credentials";
|
|
|
16
17
|
import * as dxos_halo_credentials_auth from "./halo/credentials/auth";
|
|
17
18
|
import * as dxos_halo_credentials_greet from "./halo/credentials/greet";
|
|
18
19
|
import * as dxos_halo_credentials_identity from "./halo/credentials/identity";
|
|
19
|
-
import * as dxos_halo_credentials_party from "./halo/credentials/party";
|
|
20
20
|
import * as dxos_halo_invitations from "./halo/invitations";
|
|
21
21
|
import * as dxos_halo_keyring from "./halo/keyring";
|
|
22
22
|
import * as dxos_halo_keys from "./halo/keys";
|
|
@@ -244,11 +244,6 @@ export namespace Runtime {
|
|
|
244
244
|
* - proto3_optional = true
|
|
245
245
|
*/
|
|
246
246
|
invitationExpiration?: number;
|
|
247
|
-
/**
|
|
248
|
-
* Options:
|
|
249
|
-
* - proto3_optional = true
|
|
250
|
-
*/
|
|
251
|
-
mode?: Runtime.Client.Mode;
|
|
252
247
|
/**
|
|
253
248
|
* Options:
|
|
254
249
|
* - proto3_optional = true
|
|
@@ -256,17 +251,6 @@ export namespace Runtime {
|
|
|
256
251
|
remoteSource?: string;
|
|
257
252
|
}
|
|
258
253
|
export namespace Client {
|
|
259
|
-
/**
|
|
260
|
-
* Whether the client services are local with ClientServiceHost or remote and need to be accessed via ClientServiceProxy. Defaults to AUTOMATIC.
|
|
261
|
-
*
|
|
262
|
-
* Defined in:
|
|
263
|
-
* {@link file://./../../dxos/config.proto}
|
|
264
|
-
*/
|
|
265
|
-
export enum Mode {
|
|
266
|
-
AUTOMATIC = 0,
|
|
267
|
-
LOCAL = 1,
|
|
268
|
-
REMOTE = 2
|
|
269
|
-
}
|
|
270
254
|
/**
|
|
271
255
|
* Defined in:
|
|
272
256
|
* {@link file://./../../dxos/config.proto}
|