@dxos/protocols 0.1.2 → 0.1.4
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.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/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 +2 -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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
2
|
import substitutions from "../../substitutions";
|
|
3
3
|
import * as dxos_client from "./client";
|
|
4
|
+
import * as dxos_client_services from "./client/services";
|
|
4
5
|
import * as dxos_config from "./config";
|
|
5
|
-
import * as dxos_halo_invitations from "./halo/invitations";
|
|
6
6
|
/**
|
|
7
7
|
* Defined in:
|
|
8
8
|
* {@link file://./../../dxos/bot.proto}
|
|
@@ -52,7 +52,7 @@ export interface Bot {
|
|
|
52
52
|
* Options:
|
|
53
53
|
* - proto3_optional = true
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
56
56
|
/**
|
|
57
57
|
* Options:
|
|
58
58
|
* - proto3_optional = true
|
|
@@ -116,19 +116,19 @@ export interface SpawnBotRequest {
|
|
|
116
116
|
*/
|
|
117
117
|
package?: BotPackageSpecifier;
|
|
118
118
|
/**
|
|
119
|
-
* Invitation for the bot to join the target
|
|
119
|
+
* Invitation for the bot to join the target space.
|
|
120
120
|
*
|
|
121
121
|
* Options:
|
|
122
122
|
* - proto3_optional = true
|
|
123
123
|
*/
|
|
124
|
-
invitation?:
|
|
124
|
+
invitation?: dxos_client_services.Invitation;
|
|
125
125
|
/**
|
|
126
|
-
* Key of the
|
|
126
|
+
* Key of the space bot is invited to.
|
|
127
127
|
*
|
|
128
128
|
* Options:
|
|
129
129
|
* - proto3_optional = true
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* Defined in:
|
|
@@ -177,12 +177,12 @@ export interface GetLogsRequest {
|
|
|
177
177
|
*/
|
|
178
178
|
export interface BotReport {
|
|
179
179
|
/**
|
|
180
|
-
* Details of the
|
|
180
|
+
* Details of the space the bot was spawned for.
|
|
181
181
|
*
|
|
182
182
|
* Options:
|
|
183
183
|
* - proto3_optional = true
|
|
184
184
|
*/
|
|
185
|
-
|
|
185
|
+
spaceDetails?: dxos_client.SpaceDetails;
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
188
|
* Service that is used by clients to communicate with bot factory.
|
|
@@ -213,12 +213,12 @@ export interface InitializeRequest {
|
|
|
213
213
|
*/
|
|
214
214
|
config?: dxos_config.Config;
|
|
215
215
|
/**
|
|
216
|
-
* Invitation for the bot to join the target
|
|
216
|
+
* Invitation for the bot to join the target space.
|
|
217
217
|
*
|
|
218
218
|
* Options:
|
|
219
219
|
* - proto3_optional = true
|
|
220
220
|
*/
|
|
221
|
-
invitation?:
|
|
221
|
+
invitation?: dxos_client_services.Invitation;
|
|
222
222
|
/**
|
|
223
223
|
* ID of the bot.
|
|
224
224
|
*
|
|
@@ -245,7 +245,7 @@ export interface StartRequest {
|
|
|
245
245
|
*/
|
|
246
246
|
export interface BotService {
|
|
247
247
|
/**
|
|
248
|
-
* Initialize Client, create profile, and join a
|
|
248
|
+
* Initialize Client, create profile, and join a space.
|
|
249
249
|
*/
|
|
250
250
|
initialize: (request: InitializeRequest) => Promise<void>;
|
|
251
251
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bot.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/bot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"bot.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/bot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,oBAAoB,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,WAAW,MAAM,UAAU,CAAC;AAqCxC;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAA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AAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC3E,SAAS,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C;AACD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC;IAC7C;;;;;OAKG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AACD;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC;CAC9B;AACD;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D;;OAEG;IACH,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD;;OAEG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACvE;;OAEG;IACH,IAAI,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC;;OAEG;IACH,cAAc,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,MAAM,CAAC,SAAS,CAAC,CAAC;CACxD"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../../substitutions";
|
|
3
|
+
import * as dxos_config from "../config";
|
|
4
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
5
|
+
/**
|
|
6
|
+
* Defined in:
|
|
7
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
8
|
+
*/
|
|
9
|
+
export interface SystemService {
|
|
10
|
+
getConfig: (request: void) => Promise<dxos_config.Config>;
|
|
11
|
+
reset: (request: void) => Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Defined in:
|
|
15
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
16
|
+
*/
|
|
17
|
+
export interface KeyRecord {
|
|
18
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Defined in:
|
|
22
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
23
|
+
*/
|
|
24
|
+
export interface SignRequest {
|
|
25
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
26
|
+
payload: Uint8Array;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Defined in:
|
|
30
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
31
|
+
*/
|
|
32
|
+
export interface SignResponse {
|
|
33
|
+
signed: Uint8Array;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Defined in:
|
|
37
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
38
|
+
*/
|
|
39
|
+
export interface SigningService {
|
|
40
|
+
updateKeyRecord: (request: KeyRecord) => Promise<KeyRecord>;
|
|
41
|
+
sign: (request: SignRequest) => Promise<SignResponse>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Defined in:
|
|
45
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
46
|
+
*/
|
|
47
|
+
export interface Identity {
|
|
48
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
49
|
+
profile: dxos_halo_credentials.ProfileDocument;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Defined in:
|
|
53
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
54
|
+
*/
|
|
55
|
+
export interface RecoverProfileRequest {
|
|
56
|
+
recoveryKey: Uint8Array;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Defined in:
|
|
60
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
61
|
+
*/
|
|
62
|
+
export interface HaloService {
|
|
63
|
+
recoverProfile: (request: RecoverProfileRequest) => Promise<Identity>;
|
|
64
|
+
updateProfile: (request: Identity) => Promise<void>;
|
|
65
|
+
queryProfile: (request: void) => Stream<Identity>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Defined in:
|
|
69
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
70
|
+
*/
|
|
71
|
+
export interface Device {
|
|
72
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Defined in:
|
|
76
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
77
|
+
*/
|
|
78
|
+
export interface QueryDevicesResponse {
|
|
79
|
+
devices?: Device[];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Defined in:
|
|
83
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
84
|
+
*/
|
|
85
|
+
export interface DevicesService {
|
|
86
|
+
updateDevice: (request: void) => Promise<Device>;
|
|
87
|
+
queryDevices: (request: void) => Stream<QueryDevicesResponse>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Defined in:
|
|
91
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
92
|
+
*/
|
|
93
|
+
export interface Contact {
|
|
94
|
+
profile: dxos_halo_credentials.ProfileDocument;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Defined in:
|
|
98
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
99
|
+
*/
|
|
100
|
+
export interface ContactsService {
|
|
101
|
+
updateContact: (request: void) => Promise<Contact>;
|
|
102
|
+
queryContacts: (request: void) => Stream<Contact>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Defined in:
|
|
106
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
107
|
+
*/
|
|
108
|
+
export interface Space {
|
|
109
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Defined in:
|
|
113
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
114
|
+
*/
|
|
115
|
+
export interface QueryMembersRequest {
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Defined in:
|
|
119
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
120
|
+
*/
|
|
121
|
+
export interface QueryMembersResponse {
|
|
122
|
+
members: dxos_halo_credentials.IdentityProfile;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Defined in:
|
|
126
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
127
|
+
*/
|
|
128
|
+
export interface SpacesService {
|
|
129
|
+
createSpace: (request: void) => Promise<Space>;
|
|
130
|
+
querySpaces: (request: void) => Stream<Space>;
|
|
131
|
+
queryMembers: (request: QueryMembersRequest) => Stream<QueryMembersResponse>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Represents the invitation state passed between client and service.
|
|
135
|
+
*
|
|
136
|
+
* Defined in:
|
|
137
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
138
|
+
*/
|
|
139
|
+
export interface Invitation {
|
|
140
|
+
/**
|
|
141
|
+
* Local identifier.
|
|
142
|
+
*
|
|
143
|
+
* Options:
|
|
144
|
+
* - proto3_optional = true
|
|
145
|
+
*/
|
|
146
|
+
invitationId?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Determined when created.
|
|
149
|
+
*
|
|
150
|
+
* Options:
|
|
151
|
+
* - proto3_optional = true
|
|
152
|
+
*/
|
|
153
|
+
type?: Invitation.Type;
|
|
154
|
+
/**
|
|
155
|
+
* Local state.
|
|
156
|
+
*
|
|
157
|
+
* Options:
|
|
158
|
+
* - proto3_optional = true
|
|
159
|
+
*/
|
|
160
|
+
state?: Invitation.State;
|
|
161
|
+
/**
|
|
162
|
+
* Local error code.
|
|
163
|
+
*
|
|
164
|
+
* Options:
|
|
165
|
+
* - proto3_optional = true
|
|
166
|
+
*/
|
|
167
|
+
errorCode?: number;
|
|
168
|
+
/**
|
|
169
|
+
* Swarm rendezvous (random).
|
|
170
|
+
*
|
|
171
|
+
* Options:
|
|
172
|
+
* - proto3_optional = true
|
|
173
|
+
*/
|
|
174
|
+
swarmKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
175
|
+
/**
|
|
176
|
+
* Guest's identity (only present if OFFLINE).
|
|
177
|
+
*
|
|
178
|
+
* Options:
|
|
179
|
+
* - proto3_optional = true
|
|
180
|
+
*/
|
|
181
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
182
|
+
/**
|
|
183
|
+
* Authentication code created by host.
|
|
184
|
+
*
|
|
185
|
+
* Options:
|
|
186
|
+
* - proto3_optional = true
|
|
187
|
+
*/
|
|
188
|
+
authenticationCode?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Space key (if data invitation).
|
|
191
|
+
*
|
|
192
|
+
* Options:
|
|
193
|
+
* - proto3_optional = true
|
|
194
|
+
*/
|
|
195
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
196
|
+
}
|
|
197
|
+
export declare namespace Invitation {
|
|
198
|
+
/**
|
|
199
|
+
* Defined in:
|
|
200
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
201
|
+
*/
|
|
202
|
+
enum Type {
|
|
203
|
+
INTERACTIVE = 0,
|
|
204
|
+
INTERACTIVE_TESTING = 1,
|
|
205
|
+
OFFLINE = 2
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Defined in:
|
|
209
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
210
|
+
*/
|
|
211
|
+
enum State {
|
|
212
|
+
INIT = 0,
|
|
213
|
+
CONNECTING = 1,
|
|
214
|
+
CONNECTED = 2,
|
|
215
|
+
AUTHENTICATING = 3,
|
|
216
|
+
SUCCESS = 4,
|
|
217
|
+
CANCELLED = 5,
|
|
218
|
+
TIMEOUT = 6,
|
|
219
|
+
ERROR = 7
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Defined in:
|
|
224
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
225
|
+
*/
|
|
226
|
+
export interface AuthenticationRequest {
|
|
227
|
+
invitationId: string;
|
|
228
|
+
authenticationCode: string;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Defined in:
|
|
232
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
233
|
+
*/
|
|
234
|
+
export interface CancelInvitationRequest {
|
|
235
|
+
invitationId: string;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Defined in:
|
|
239
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
240
|
+
*/
|
|
241
|
+
export interface InvitationsService {
|
|
242
|
+
createInvitation: (request: Invitation) => Stream<Invitation>;
|
|
243
|
+
authenticate: (request: AuthenticationRequest) => Promise<void>;
|
|
244
|
+
acceptInvitation: (request: Invitation) => Stream<Invitation>;
|
|
245
|
+
cancelInvitation: (request: CancelInvitationRequest) => Promise<void>;
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/client/services.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAGnD,OAAO,KAAK,WAAW,MAAM,WAAW,CAAC;AAWzC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,IAAI;KACZ;CACJ;AACD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AACD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,YAAY,EAAE,MAAM,CAAC;CACxB;AACD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAC/B,gBAAgB,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC,UAAU,CAAC,CAAC;IAC9D,YAAY,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,gBAAgB,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC,UAAU,CAAC,CAAC;IAC9D,gBAAgB,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Invitation = void 0;
|
|
4
|
+
var Invitation;
|
|
5
|
+
(function (Invitation) {
|
|
6
|
+
/**
|
|
7
|
+
* Defined in:
|
|
8
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
9
|
+
*/
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
12
|
+
Type[Type["INTERACTIVE"] = 0] = "INTERACTIVE";
|
|
13
|
+
Type[Type["INTERACTIVE_TESTING"] = 1] = "INTERACTIVE_TESTING";
|
|
14
|
+
Type[Type["OFFLINE"] = 2] = "OFFLINE";
|
|
15
|
+
})(Type = Invitation.Type || (Invitation.Type = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Defined in:
|
|
18
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
19
|
+
*/
|
|
20
|
+
let State;
|
|
21
|
+
(function (State) {
|
|
22
|
+
State[State["INIT"] = 0] = "INIT";
|
|
23
|
+
State[State["CONNECTING"] = 1] = "CONNECTING";
|
|
24
|
+
State[State["CONNECTED"] = 2] = "CONNECTED";
|
|
25
|
+
State[State["AUTHENTICATING"] = 3] = "AUTHENTICATING";
|
|
26
|
+
State[State["SUCCESS"] = 4] = "SUCCESS";
|
|
27
|
+
State[State["CANCELLED"] = 5] = "CANCELLED";
|
|
28
|
+
State[State["TIMEOUT"] = 6] = "TIMEOUT";
|
|
29
|
+
State[State["ERROR"] = 7] = "ERROR";
|
|
30
|
+
})(State = Invitation.State || (Invitation.State = {}));
|
|
31
|
+
})(Invitation = exports.Invitation || (exports.Invitation = {}));
|
|
32
|
+
//# sourceMappingURL=services.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/client/services.ts"],"names":[],"mappings":";;;AAyOA,IAAiB,UAAU,CAwB1B;AAxBD,WAAiB,UAAU;IACvB;;;OAGG;IACH,IAAY,IAIX;IAJD,WAAY,IAAI;QACZ,6CAAe,CAAA;QACf,6DAAuB,CAAA;QACvB,qCAAW,CAAA;IACf,CAAC,EAJW,IAAI,GAAJ,eAAI,KAAJ,eAAI,QAIf;IACD;;;OAGG;IACH,IAAY,KASX;IATD,WAAY,KAAK;QACb,iCAAQ,CAAA;QACR,6CAAc,CAAA;QACd,2CAAa,CAAA;QACb,qDAAkB,CAAA;QAClB,uCAAW,CAAA;QACX,2CAAa,CAAA;QACb,uCAAW,CAAA;QACX,mCAAS,CAAA;IACb,CAAC,EATW,KAAK,GAAL,gBAAK,KAAL,gBAAK,QAShB;AACL,CAAC,EAxBgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAwB1B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
2
|
import substitutions from "../../substitutions";
|
|
3
|
+
import * as dxos_client_services from "./client/services";
|
|
3
4
|
import * as dxos_config from "./config";
|
|
4
5
|
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
5
|
-
import * as dxos_halo_invitations from "./halo/invitations";
|
|
6
6
|
import * as dxos_halo_keys from "./halo/keys";
|
|
7
7
|
/**
|
|
8
8
|
* Defined in:
|
|
@@ -33,7 +33,7 @@ export interface InvitationRequest {
|
|
|
33
33
|
* Options:
|
|
34
34
|
* - proto3_optional = true
|
|
35
35
|
*/
|
|
36
|
-
descriptor?:
|
|
36
|
+
descriptor?: dxos_client_services.Invitation;
|
|
37
37
|
state: InvitationState;
|
|
38
38
|
/**
|
|
39
39
|
* Only if state == ERROR.
|
|
@@ -60,12 +60,12 @@ export interface RedeemedInvitation {
|
|
|
60
60
|
*/
|
|
61
61
|
error?: string;
|
|
62
62
|
/**
|
|
63
|
-
* Only on
|
|
63
|
+
* Only on space invitations that are finished.
|
|
64
64
|
*
|
|
65
65
|
* Options:
|
|
66
66
|
* - proto3_optional = true
|
|
67
67
|
*/
|
|
68
|
-
|
|
68
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Defined in:
|
|
@@ -83,12 +83,12 @@ export interface AuthenticateInvitationRequest {
|
|
|
83
83
|
* {@link file://./../../dxos/client.proto}
|
|
84
84
|
*/
|
|
85
85
|
export interface Profile {
|
|
86
|
-
|
|
86
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
87
87
|
/**
|
|
88
88
|
* Options:
|
|
89
89
|
* - proto3_optional = true
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
displayName?: string;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Defined in:
|
|
@@ -110,17 +110,17 @@ export interface CreateProfileRequest {
|
|
|
110
110
|
* Options:
|
|
111
111
|
* - proto3_optional = true
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
publicKey?: Uint8Array;
|
|
114
114
|
/**
|
|
115
115
|
* Options:
|
|
116
116
|
* - proto3_optional = true
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
secretKey?: Uint8Array;
|
|
119
119
|
/**
|
|
120
120
|
* Options:
|
|
121
121
|
* - proto3_optional = true
|
|
122
122
|
*/
|
|
123
|
-
|
|
123
|
+
displayName?: string;
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Defined in:
|
|
@@ -157,7 +157,7 @@ export interface ProfileService {
|
|
|
157
157
|
recoverProfile: (request: RecoverProfileRequest) => Promise<Profile>;
|
|
158
158
|
subscribeProfile: (request: void) => Stream<SubscribeProfileResponse>;
|
|
159
159
|
createInvitation: (request: void) => Stream<InvitationRequest>;
|
|
160
|
-
acceptInvitation: (request:
|
|
160
|
+
acceptInvitation: (request: dxos_client_services.Invitation) => Stream<RedeemedInvitation>;
|
|
161
161
|
authenticateInvitation: (request: AuthenticateInvitationRequest) => Promise<void>;
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
@@ -224,45 +224,31 @@ export interface HaloService {
|
|
|
224
224
|
* Defined in:
|
|
225
225
|
* {@link file://./../../dxos/client.proto}
|
|
226
226
|
*/
|
|
227
|
-
export interface
|
|
227
|
+
export interface Space {
|
|
228
228
|
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
229
229
|
isOpen: boolean;
|
|
230
230
|
isActive: boolean;
|
|
231
|
-
members?:
|
|
232
|
-
}
|
|
233
|
-
export declare namespace Party {
|
|
234
|
-
/**
|
|
235
|
-
* Defined in:
|
|
236
|
-
* {@link file://./../../dxos/client.proto}
|
|
237
|
-
*/
|
|
238
|
-
interface Member {
|
|
239
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
240
|
-
/**
|
|
241
|
-
* Options:
|
|
242
|
-
* - proto3_optional = true
|
|
243
|
-
*/
|
|
244
|
-
displayName?: string;
|
|
245
|
-
}
|
|
231
|
+
members?: SpaceMember[];
|
|
246
232
|
}
|
|
247
233
|
/**
|
|
248
234
|
* Defined in:
|
|
249
235
|
* {@link file://./../../dxos/client.proto}
|
|
250
236
|
*/
|
|
251
|
-
export interface
|
|
252
|
-
|
|
237
|
+
export interface SubscribeSpaceRequest {
|
|
238
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
253
239
|
}
|
|
254
240
|
/**
|
|
255
241
|
* Defined in:
|
|
256
242
|
* {@link file://./../../dxos/client.proto}
|
|
257
243
|
*/
|
|
258
|
-
export interface
|
|
259
|
-
|
|
244
|
+
export interface GetSpaceDetailsRequest {
|
|
245
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
260
246
|
}
|
|
261
247
|
/**
|
|
262
248
|
* Defined in:
|
|
263
249
|
* {@link file://./../../dxos/client.proto}
|
|
264
250
|
*/
|
|
265
|
-
export interface
|
|
251
|
+
export interface SpaceDetails {
|
|
266
252
|
/**
|
|
267
253
|
* The timeframe of mutations processed by the client.
|
|
268
254
|
*/
|
|
@@ -272,26 +258,38 @@ export interface PartyDetails {
|
|
|
272
258
|
* Defined in:
|
|
273
259
|
* {@link file://./../../dxos/client.proto}
|
|
274
260
|
*/
|
|
275
|
-
export interface
|
|
261
|
+
export interface SpaceMember {
|
|
262
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
263
|
+
/**
|
|
264
|
+
* Options:
|
|
265
|
+
* - proto3_optional = true
|
|
266
|
+
*/
|
|
267
|
+
profile?: Profile;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Defined in:
|
|
271
|
+
* {@link file://./../../dxos/client.proto}
|
|
272
|
+
*/
|
|
273
|
+
export interface SubscribeSpaceResponse {
|
|
276
274
|
/**
|
|
277
275
|
* Options:
|
|
278
276
|
* - proto3_optional = true
|
|
279
277
|
*/
|
|
280
|
-
|
|
278
|
+
space?: Space;
|
|
281
279
|
}
|
|
282
280
|
/**
|
|
283
281
|
* Defined in:
|
|
284
282
|
* {@link file://./../../dxos/client.proto}
|
|
285
283
|
*/
|
|
286
|
-
export interface
|
|
287
|
-
|
|
284
|
+
export interface SubscribeSpacesResponse {
|
|
285
|
+
spaces?: Space[];
|
|
288
286
|
}
|
|
289
287
|
/**
|
|
290
288
|
* Defined in:
|
|
291
289
|
* {@link file://./../../dxos/client.proto}
|
|
292
290
|
*/
|
|
293
291
|
export interface CreateInvitationRequest {
|
|
294
|
-
|
|
292
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
295
293
|
/**
|
|
296
294
|
* When specified the invitation will be of OFFLINE type, not requiring secret exchange.
|
|
297
295
|
*
|
|
@@ -304,7 +302,7 @@ export interface CreateInvitationRequest {
|
|
|
304
302
|
* Defined in:
|
|
305
303
|
* {@link file://./../../dxos/client.proto}
|
|
306
304
|
*/
|
|
307
|
-
export interface
|
|
305
|
+
export interface SpaceActivationOptions {
|
|
308
306
|
global: boolean;
|
|
309
307
|
device: boolean;
|
|
310
308
|
}
|
|
@@ -312,8 +310,8 @@ export interface PartyActivationOptions {
|
|
|
312
310
|
* Defined in:
|
|
313
311
|
* {@link file://./../../dxos/client.proto}
|
|
314
312
|
*/
|
|
315
|
-
export interface
|
|
316
|
-
|
|
313
|
+
export interface SetSpaceStateRequest {
|
|
314
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
317
315
|
/**
|
|
318
316
|
* Options:
|
|
319
317
|
* - proto3_optional = true
|
|
@@ -335,54 +333,37 @@ export interface SetPartyStateRequest {
|
|
|
335
333
|
* {@link file://./../../dxos/client.proto}
|
|
336
334
|
*/
|
|
337
335
|
export interface SubscribeMembersRequest {
|
|
338
|
-
|
|
336
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
339
337
|
}
|
|
340
338
|
/**
|
|
341
339
|
* Defined in:
|
|
342
340
|
* {@link file://./../../dxos/client.proto}
|
|
343
341
|
*/
|
|
344
342
|
export interface SubscribeMembersResponse {
|
|
345
|
-
members?:
|
|
346
|
-
}
|
|
347
|
-
export declare namespace SubscribeMembersResponse {
|
|
348
|
-
/**
|
|
349
|
-
* Defined in:
|
|
350
|
-
* {@link file://./../../dxos/client.proto}
|
|
351
|
-
*/
|
|
352
|
-
interface PartyMember {
|
|
353
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
354
|
-
/**
|
|
355
|
-
* Options:
|
|
356
|
-
* - proto3_optional = true
|
|
357
|
-
*/
|
|
358
|
-
displayName?: string;
|
|
359
|
-
}
|
|
343
|
+
members?: SpaceMember[];
|
|
360
344
|
}
|
|
361
345
|
/**
|
|
362
346
|
* Defined in:
|
|
363
347
|
* {@link file://./../../dxos/client.proto}
|
|
364
348
|
*/
|
|
365
349
|
export interface CreateSnapshotRequest {
|
|
366
|
-
|
|
350
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
367
351
|
}
|
|
368
352
|
/**
|
|
369
353
|
* Defined in:
|
|
370
354
|
* {@link file://./../../dxos/client.proto}
|
|
371
355
|
*/
|
|
372
|
-
export interface
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
356
|
+
export interface SpaceService {
|
|
357
|
+
subscribeToSpace: (request: SubscribeSpaceRequest) => Stream<SubscribeSpaceResponse>;
|
|
358
|
+
subscribeSpaces: (request: void) => Stream<SubscribeSpacesResponse>;
|
|
359
|
+
getSpaceDetails: (request: GetSpaceDetailsRequest) => Promise<SpaceDetails>;
|
|
360
|
+
createSpace: (request: void) => Promise<Space>;
|
|
361
|
+
cloneSpace: (request: dxos_echo_snapshot.SpaceSnapshot) => Promise<Space>;
|
|
378
362
|
/**
|
|
379
|
-
* Open and close or activate and deactivate a
|
|
363
|
+
* Open and close or activate and deactivate a space.
|
|
380
364
|
*/
|
|
381
|
-
|
|
382
|
-
createInvitation: (request: CreateInvitationRequest) => Stream<InvitationRequest>;
|
|
383
|
-
acceptInvitation: (request: dxos_halo_invitations.InvitationDescriptor) => Stream<RedeemedInvitation>;
|
|
384
|
-
authenticateInvitation: (request: AuthenticateInvitationRequest) => Promise<void>;
|
|
365
|
+
setSpaceState: (request: SetSpaceStateRequest) => Promise<Space>;
|
|
385
366
|
subscribeMembers: (request: SubscribeMembersRequest) => Stream<SubscribeMembersResponse>;
|
|
386
|
-
createSnapshot: (request: CreateSnapshotRequest) => Promise<dxos_echo_snapshot.
|
|
367
|
+
createSnapshot: (request: CreateSnapshotRequest) => Promise<dxos_echo_snapshot.SpaceSnapshot>;
|
|
387
368
|
}
|
|
388
369
|
//# sourceMappingURL=client.d.ts.map
|