@dxos/client 2.25.1-dev.be228d10 → 2.26.1-dev.4b9fb0c5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/echo-proxy.d.ts.map +1 -1
- package/dist/src/api/echo-proxy.js +9 -7
- package/dist/src/api/echo-proxy.js.map +1 -1
- package/dist/src/api/halo-proxy.d.ts.map +1 -1
- package/dist/src/api/halo-proxy.js +14 -11
- package/dist/src/api/halo-proxy.js.map +1 -1
- package/dist/src/api/party-proxy.d.ts +5 -1
- package/dist/src/api/party-proxy.d.ts.map +1 -1
- package/dist/src/api/party-proxy.js +12 -6
- package/dist/src/api/party-proxy.js.map +1 -1
- package/dist/src/client/client-services.test.js +5 -5
- package/dist/src/client/client.js +3 -3
- package/dist/src/client/client.js.map +1 -1
- package/dist/src/client/client.test.js +2 -2
- package/dist/src/client/client.test.js.map +1 -1
- package/dist/src/client/service-host/services/halo.d.ts +3 -3
- package/dist/src/client/service-host/services/halo.d.ts.map +1 -1
- package/dist/src/client/service-host/services/halo.js +7 -3
- package/dist/src/client/service-host/services/halo.js.map +1 -1
- package/dist/src/client/service-host/services/party.d.ts +10 -10
- package/dist/src/client/service-host/services/party.js +10 -10
- package/dist/src/client/service-host/services/profile.d.ts +6 -6
- package/dist/src/client/service-host/services/profile.js +6 -6
- package/dist/src/client/service-host/services/services.js +2 -2
- package/dist/src/client/service-host/services/system.js +2 -2
- package/dist/src/devtools/devtools-host.js +19 -19
- package/dist/src/devtools/items.js +2 -2
- package/dist/src/devtools/items.js.map +1 -1
- package/dist/src/proto/gen/dxos/client.d.ts +21 -21
- package/dist/src/proto/gen/dxos/devtools.d.ts +21 -21
- package/dist/src/proto/gen/dxos/echo/service.d.ts +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/src/api/echo-proxy.ts +11 -7
- package/src/api/halo-proxy.ts +16 -11
- package/src/api/party-proxy.ts +14 -7
- package/src/client/client-services.test.ts +5 -5
- package/src/client/client.test.ts +2 -2
- package/src/client/client.ts +3 -3
- package/src/client/service-host/services/halo.ts +8 -3
- package/src/client/service-host/services/party.ts +10 -10
- package/src/client/service-host/services/profile.ts +6 -6
- package/src/client/service-host/services/services.ts +2 -2
- package/src/client/service-host/services/system.ts +2 -2
- package/src/devtools/devtools-host.ts +19 -19
- package/src/devtools/items.ts +2 -2
- package/src/proto/gen/dxos/client.ts +21 -21
- package/src/proto/gen/dxos/devtools.ts +21 -21
- package/src/proto/gen/dxos/echo/service.ts +3 -3
|
@@ -21,7 +21,7 @@ class PartyService {
|
|
|
21
21
|
this.echo = echo;
|
|
22
22
|
this.inviteeInvitations = new Map();
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
subscribeToParty(request) {
|
|
25
25
|
const update = (next) => {
|
|
26
26
|
try {
|
|
27
27
|
const party = this.echo.getParty(request.partyKey);
|
|
@@ -66,7 +66,7 @@ class PartyService {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
subscribeParties() {
|
|
70
70
|
return (0, util_1.resultSetToStream)(this.echo.queryParties(), (parties) => {
|
|
71
71
|
return ({
|
|
72
72
|
parties: parties.map(party => ({
|
|
@@ -78,7 +78,7 @@ class PartyService {
|
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
async
|
|
81
|
+
async createParty() {
|
|
82
82
|
const party = await this.echo.createParty();
|
|
83
83
|
return {
|
|
84
84
|
publicKey: party.key,
|
|
@@ -86,7 +86,7 @@ class PartyService {
|
|
|
86
86
|
isActive: party.isActive
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
async
|
|
89
|
+
async cloneParty(snapshot) {
|
|
90
90
|
const party = await this.echo.cloneParty(snapshot);
|
|
91
91
|
return {
|
|
92
92
|
publicKey: party.key,
|
|
@@ -94,7 +94,7 @@ class PartyService {
|
|
|
94
94
|
isActive: party.isActive
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
async
|
|
97
|
+
async setPartyState(request) {
|
|
98
98
|
const party = this.echo.getParty(request.partyKey);
|
|
99
99
|
if (!party) {
|
|
100
100
|
throw new Error('Party not found');
|
|
@@ -123,7 +123,7 @@ class PartyService {
|
|
|
123
123
|
isActive: party.isActive
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
createInvitation(request) {
|
|
127
127
|
return new codec_protobuf_1.Stream(({ next, close }) => {
|
|
128
128
|
var _a;
|
|
129
129
|
const party = (_a = this.echo.getParty(request.partyKey)) !== null && _a !== void 0 ? _a : (0, debug_1.raise)(new echo_db_1.PartyNotFoundError(request.partyKey));
|
|
@@ -163,7 +163,7 @@ class PartyService {
|
|
|
163
163
|
});
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
acceptInvitation(request) {
|
|
167
167
|
return new codec_protobuf_1.Stream(({ next, close }) => {
|
|
168
168
|
const id = (0, uuid_1.v4)();
|
|
169
169
|
const [secretLatch, secretTrigger] = (0, async_1.latch)();
|
|
@@ -192,7 +192,7 @@ class PartyService {
|
|
|
192
192
|
});
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
async
|
|
195
|
+
async authenticateInvitation(request) {
|
|
196
196
|
var _a;
|
|
197
197
|
(0, assert_1.default)(request.processId, 'Process ID is missing.');
|
|
198
198
|
const invitation = this.inviteeInvitations.get(request.processId);
|
|
@@ -202,7 +202,7 @@ class PartyService {
|
|
|
202
202
|
invitation.secret = request.secret;
|
|
203
203
|
(_a = invitation.secretTrigger) === null || _a === void 0 ? void 0 : _a.call(invitation);
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
subscribeMembers(request) {
|
|
206
206
|
const party = this.echo.getParty(request.partyKey);
|
|
207
207
|
if (party) {
|
|
208
208
|
return (0, util_1.resultSetToStream)(party.queryMembers(), (members) => ({ members }));
|
|
@@ -225,7 +225,7 @@ class PartyService {
|
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
async
|
|
228
|
+
async createSnapshot(request) {
|
|
229
229
|
var _a;
|
|
230
230
|
(0, assert_1.default)(request.partyKey);
|
|
231
231
|
const party = (_a = this.echo.getParty(request.partyKey)) !== null && _a !== void 0 ? _a : (0, debug_1.raise)(new echo_db_1.PartyNotFoundError(request.partyKey));
|
|
@@ -7,12 +7,12 @@ export declare class ProfileService implements IProfileService {
|
|
|
7
7
|
private echo;
|
|
8
8
|
private inviteeInvitations;
|
|
9
9
|
constructor(echo: ECHO);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
subscribeProfile(): Stream<SubscribeProfileResponse>;
|
|
11
|
+
createProfile(request: CreateProfileRequest): Promise<import("@dxos/echo-db").ProfileInfo>;
|
|
12
|
+
recoverProfile(request: RecoverProfileRequest): Promise<Profile>;
|
|
13
|
+
createInvitation(): Stream<InvitationRequest>;
|
|
14
|
+
acceptInvitation(request: InvitationDescriptorProto): Stream<RedeemedInvitation>;
|
|
15
|
+
authenticateInvitation(request: AuthenticateInvitationRequest): Promise<void>;
|
|
16
16
|
}
|
|
17
17
|
export declare const createProfileService: ({ echo }: CreateServicesOpts) => ProfileService;
|
|
18
18
|
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -19,7 +19,7 @@ class ProfileService {
|
|
|
19
19
|
this.echo = echo;
|
|
20
20
|
this.inviteeInvitations = new Map();
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
subscribeProfile() {
|
|
23
23
|
return new codec_protobuf_1.Stream(({ next }) => {
|
|
24
24
|
const emitNext = () => next({
|
|
25
25
|
profile: this.echo.halo.isInitialized ? this.echo.halo.getProfile() : undefined
|
|
@@ -28,10 +28,10 @@ class ProfileService {
|
|
|
28
28
|
return this.echo.halo.subscribeToProfile(emitNext);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
async
|
|
31
|
+
async createProfile(request) {
|
|
32
32
|
return this.echo.halo.createProfile(request);
|
|
33
33
|
}
|
|
34
|
-
async
|
|
34
|
+
async recoverProfile(request) {
|
|
35
35
|
if (!request.seedPhrase) {
|
|
36
36
|
throw new Error('Recovery SeedPhrase not provided.');
|
|
37
37
|
}
|
|
@@ -41,7 +41,7 @@ class ProfileService {
|
|
|
41
41
|
(0, assert_1.default)(profile, 'Recovering profile failed.');
|
|
42
42
|
return profile;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
createInvitation() {
|
|
45
45
|
return new codec_protobuf_1.Stream(({ next, close }) => {
|
|
46
46
|
setImmediate(async () => {
|
|
47
47
|
const secret = Buffer.from((0, credentials_1.generatePasscode)());
|
|
@@ -64,7 +64,7 @@ class ProfileService {
|
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
acceptInvitation(request) {
|
|
68
68
|
return new codec_protobuf_1.Stream(({ next, close }) => {
|
|
69
69
|
const id = (0, uuid_1.v4)();
|
|
70
70
|
const [secretLatch, secretTrigger] = (0, async_1.latch)();
|
|
@@ -90,7 +90,7 @@ class ProfileService {
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
async
|
|
93
|
+
async authenticateInvitation(request) {
|
|
94
94
|
var _a;
|
|
95
95
|
(0, assert_1.default)(request.processId, 'Process ID is missing.');
|
|
96
96
|
const invitation = this.inviteeInvitations.get(request.processId);
|
|
@@ -16,10 +16,10 @@ const createServices = (opts) => {
|
|
|
16
16
|
PartyService: (0, party_1.createPartyService)(opts),
|
|
17
17
|
DataService: opts.echo.dataService,
|
|
18
18
|
TracingService: {
|
|
19
|
-
|
|
19
|
+
setTracingOptions: () => {
|
|
20
20
|
throw new Error('Tracing not available');
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
subscribeToRpcTrace: () => {
|
|
23
23
|
throw new Error('Tracing not available');
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.createSystemService = void 0;
|
|
7
7
|
const createSystemService = ({ config, echo }) => {
|
|
8
8
|
return {
|
|
9
|
-
|
|
9
|
+
getConfig: async () => {
|
|
10
10
|
return {
|
|
11
11
|
...config.values,
|
|
12
12
|
build: {
|
|
@@ -15,7 +15,7 @@ const createSystemService = ({ config, echo }) => {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
reset: async () => {
|
|
19
19
|
await echo.reset();
|
|
20
20
|
}
|
|
21
21
|
};
|
|
@@ -15,68 +15,68 @@ const parties_1 = require("./parties");
|
|
|
15
15
|
const storage_1 = require("./storage");
|
|
16
16
|
const createDevtoolsHost = (context, events) => {
|
|
17
17
|
return {
|
|
18
|
-
|
|
18
|
+
events: () => {
|
|
19
19
|
return new codec_protobuf_1.Stream(({ next }) => {
|
|
20
20
|
events.ready.on(() => {
|
|
21
21
|
next({ ready: {} });
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
},
|
|
25
|
-
|
|
25
|
+
getConfig: async () => {
|
|
26
26
|
const config = (0, config_1.getConfig)(context);
|
|
27
27
|
return config;
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
resetStorage: async () => {
|
|
30
30
|
await (0, storage_1.resetStorage)(context);
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
enableDebugLogging: async (request) => {
|
|
33
33
|
(0, debug_logging_1.enableDebugLogging)(context, request);
|
|
34
34
|
return {};
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
disableDebugLogging: async () => {
|
|
37
37
|
(0, debug_logging_1.disableDebugLogging)(context);
|
|
38
38
|
return {};
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
subscribeToKeyringKeys: () => {
|
|
41
41
|
return (0, keys_1.subscribeToKeyringKeys)(context);
|
|
42
42
|
},
|
|
43
|
-
|
|
43
|
+
subscribeToCredentialMessages: (request) => {
|
|
44
44
|
return (0, keys_1.subscribeToCredentialMessages)(context, request);
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
subscribeToParties: () => {
|
|
47
47
|
return (0, parties_1.subscribeToParties)(context);
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
subscribeToItems: () => {
|
|
50
50
|
return (0, items_1.subscribeToItems)(context);
|
|
51
51
|
},
|
|
52
|
-
|
|
52
|
+
subscribeToFeeds: () => {
|
|
53
53
|
return (0, feeds_1.subscribeToFeeds)(context);
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
subscribeToFeed: (request) => {
|
|
56
56
|
return (0, feeds_1.subscribeToFeed)(context, request);
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
getPartySnapshot: async (request) => {
|
|
59
59
|
return (0, parties_1.getPartySnapshot)(context, request);
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
savePartySnapshot: async (request) => {
|
|
62
62
|
return (0, parties_1.savePartySnapshot)(context, request);
|
|
63
63
|
},
|
|
64
|
-
|
|
64
|
+
clearSnapshots: async () => {
|
|
65
65
|
await context.echo.snapshotStore.clear();
|
|
66
66
|
},
|
|
67
|
-
|
|
67
|
+
getNetworkPeers: async (request) => {
|
|
68
68
|
return (0, network_1.getNetworkPeers)(context, request);
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
subscribeToNetworkTopics: () => {
|
|
71
71
|
return (0, network_1.subscribeToNetworkTopics)(context);
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
subscribeToSignalStatus: () => {
|
|
74
74
|
return (0, network_1.subscribeToNetworkStatus)(context);
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
subscribeToSignalTrace: () => {
|
|
77
77
|
return (0, network_1.subscribeToSignalTrace)(context);
|
|
78
78
|
},
|
|
79
|
-
|
|
79
|
+
subscribeToSwarmInfo: () => {
|
|
80
80
|
return (0, network_1.subscribeToSwarmInfo)(context);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
@@ -15,7 +15,7 @@ const getData = (echo) => {
|
|
|
15
15
|
key: party.key.toHex(),
|
|
16
16
|
items: []
|
|
17
17
|
};
|
|
18
|
-
const items = party.database.select(
|
|
18
|
+
const { result: items } = party.database.select().query();
|
|
19
19
|
for (const item of items) {
|
|
20
20
|
partyInfo.items.push({
|
|
21
21
|
id: item.id,
|
|
@@ -40,7 +40,7 @@ const subscribeToItems = ({ echo }) => {
|
|
|
40
40
|
const unsubscribe = echo.queryParties().subscribe((parties) => {
|
|
41
41
|
parties.forEach(party => {
|
|
42
42
|
if (!partySubscriptions[party.key.toHex()]) {
|
|
43
|
-
const sub = party.database.select(
|
|
43
|
+
const sub = party.database.select().query().update.on(() => {
|
|
44
44
|
// Send updates on items changes.
|
|
45
45
|
update();
|
|
46
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/devtools/items.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,yDAA8C;AAK9C,MAAM,OAAO,GAAG,CAAC,IAAyC,EAA4B,EAAE;IACtF,MAAM,MAAM,GAAQ;QAClB,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAC/C,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;QAC3B,MAAM,SAAS,GAAQ;YACrB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE;YACtB,KAAK,EAAE,EAAE;SACV,CAAC;QAEF,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/devtools/items.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,yDAA8C;AAK9C,MAAM,OAAO,GAAG,CAAC,IAAyC,EAA4B,EAAE;IACtF,MAAM,MAAM,GAAQ;QAClB,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAC/C,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;QAC3B,MAAM,SAAS,GAAQ;YACrB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE;YACtB,KAAK,EAAE,EAAE;SACV,CAAC;QAEF,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC;QAC1D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACxB,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;gBACnB,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI;gBAChC,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,IAAI;aAC9D,CAAC,CAAC;SACJ;QAED,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAChC;IAED,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;KAC7B,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,EAAE,IAAI,EAA+B,EAAE,EAAE;IACxE,OAAO,IAAI,uBAAM,CAA2B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACvD,MAAM,MAAM,GAAG,GAAG,EAAE;YAClB,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YAC1B,IAAI,CAAC,GAAG,CAAC,CAAC;QACZ,CAAC,CAAC;QAEF,MAAM,kBAAkB,GAA+B,EAAE,CAAC;QAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE;YAC5D,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACtB,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE;oBAC1C,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE;wBACzD,iCAAiC;wBACjC,MAAM,EAAE,CAAC;oBACX,CAAC,CAAC,CAAC;oBACH,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC;iBAC7C;YACH,CAAC,CAAC,CAAC;YAEH,8BAA8B;YAC9B,MAAM,EAAE,CAAC;QACX,CAAC,CAAC,CAAC;QAEH,sBAAsB;QACtB,MAAM,EAAE,CAAC;QAET,OAAO,GAAG,EAAE;YACV,WAAW,EAAE,CAAC;YACd,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;QAC1E,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA/BW,QAAA,gBAAgB,oBA+B3B"}
|
|
@@ -5,8 +5,8 @@ import * as dxos_echo_invitation from "./echo/invitation";
|
|
|
5
5
|
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
6
6
|
import * as dxos_halo_keys from "./halo/keys";
|
|
7
7
|
export interface SystemService {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
getConfig: (request: void) => Promise<dxos_config.Config>;
|
|
9
|
+
reset: (request: void) => Promise<void>;
|
|
10
10
|
}
|
|
11
11
|
export declare enum InvitationState {
|
|
12
12
|
WAITING_FOR_CONNECTION = 1,
|
|
@@ -70,12 +70,12 @@ export interface Contacts {
|
|
|
70
70
|
contacts?: Contact[];
|
|
71
71
|
}
|
|
72
72
|
export interface ProfileService {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
subscribeProfile: (request: void) => Stream<SubscribeProfileResponse>;
|
|
74
|
+
createProfile: (request: CreateProfileRequest) => Promise<Profile>;
|
|
75
|
+
recoverProfile: (request: RecoverProfileRequest) => Promise<Profile>;
|
|
76
|
+
createInvitation: (request: void) => Stream<InvitationRequest>;
|
|
77
|
+
acceptInvitation: (request: dxos_echo_invitation.InvitationDescriptor) => Stream<RedeemedInvitation>;
|
|
78
|
+
authenticateInvitation: (request: AuthenticateInvitationRequest) => Promise<void>;
|
|
79
79
|
}
|
|
80
80
|
export interface AddKeyRecordRequest {
|
|
81
81
|
keyRecord?: dxos_halo_keys.KeyRecord;
|
|
@@ -91,9 +91,9 @@ export interface SignResponse {
|
|
|
91
91
|
signed?: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
92
92
|
}
|
|
93
93
|
export interface HaloService {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
subscribeContacts: (request: void) => Stream<Contacts>;
|
|
95
|
+
addKeyRecord: (request: AddKeyRecordRequest) => Promise<void>;
|
|
96
|
+
sign: (request: SignRequest) => Promise<SignResponse>;
|
|
97
97
|
}
|
|
98
98
|
export interface Party {
|
|
99
99
|
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
@@ -149,18 +149,18 @@ export interface CreateSnaspotRequest {
|
|
|
149
149
|
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
150
150
|
}
|
|
151
151
|
export interface PartyService {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
subscribeToParty: (request: SubscribePartyRequest) => Stream<SubscribePartyResponse>;
|
|
153
|
+
subscribeParties: (request: void) => Stream<SubscribePartiesResponse>;
|
|
154
|
+
createParty: (request: void) => Promise<Party>;
|
|
155
|
+
cloneParty: (request: dxos_echo_snapshot.PartySnapshot) => Promise<Party>;
|
|
156
156
|
/**
|
|
157
157
|
* Open and close or activate and deactivate a party.
|
|
158
158
|
*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
setPartyState: (request: SetPartyStateRequest) => Promise<Party>;
|
|
160
|
+
createInvitation: (request: CreateInvitationRequest) => Stream<InvitationRequest>;
|
|
161
|
+
acceptInvitation: (request: dxos_echo_invitation.InvitationDescriptor) => Stream<RedeemedInvitation>;
|
|
162
|
+
authenticateInvitation: (request: AuthenticateInvitationRequest) => Promise<void>;
|
|
163
|
+
subscribeMembers: (request: SubscribeMembersRequest) => Stream<SubscribeMembersResponse>;
|
|
164
|
+
createSnapshot: (request: CreateSnaspotRequest) => Promise<dxos_echo_snapshot.PartySnapshot>;
|
|
165
165
|
}
|
|
166
166
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -6,25 +6,25 @@ import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
|
6
6
|
import * as dxos_halo_keys from "./halo/keys";
|
|
7
7
|
import * as dxos_rpc from "./rpc";
|
|
8
8
|
export interface DevtoolsHost {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
9
|
+
events: (request: void) => Stream<Event>;
|
|
10
|
+
getConfig: (request: void) => Promise<GetConfigResponse>;
|
|
11
|
+
resetStorage: (request: ResetStorageRequest) => Promise<void>;
|
|
12
|
+
enableDebugLogging: (request: EnableDebugLoggingRequest) => Promise<EnableDebugLoggingResponse>;
|
|
13
|
+
disableDebugLogging: (request: EnableDebugLoggingRequest) => Promise<EnableDebugLoggingResponse>;
|
|
14
|
+
subscribeToKeyringKeys: (request: SubscribeToKeyringKeysRequest) => Stream<SubscribeToKeyringKeysResponse>;
|
|
15
|
+
subscribeToCredentialMessages: (request: SubscribeToCredentialMessagesRequest) => Stream<SubscribeToCredentialMessagesResponse>;
|
|
16
|
+
subscribeToParties: (request: SubscribeToPartiesRequest) => Stream<SubscribeToPartiesResponse>;
|
|
17
|
+
subscribeToItems: (request: SubscribeToItemsRequest) => Stream<SubscribeToItemsResponse>;
|
|
18
|
+
subscribeToFeeds: (request: SubscribeToFeedsRequest) => Stream<SubscribeToFeedsResponse>;
|
|
19
|
+
subscribeToFeed: (request: SubscribeToFeedRequest) => Stream<SubscribeToFeedResponse>;
|
|
20
|
+
getPartySnapshot: (request: GetPartySnapshotRequest) => Promise<GetPartySnapshotResponse>;
|
|
21
|
+
savePartySnapshot: (request: SavePartySnapshotRequest) => Promise<SavePartySnapshotResponse>;
|
|
22
|
+
clearSnapshots: (request: ClearSnapshotsRequest) => Promise<void>;
|
|
23
|
+
getNetworkPeers: (request: GetNetworkPeersRequest) => Promise<GetNetworkPeersResponse>;
|
|
24
|
+
subscribeToNetworkTopics: (request: void) => Stream<SubscribeToNetworkTopicsResponse>;
|
|
25
|
+
subscribeToSignalStatus: (request: void) => Stream<SubscribeToSignalStatusResponse>;
|
|
26
|
+
subscribeToSignalTrace: (request: void) => Stream<SubscribeToSignalTraceResponse>;
|
|
27
|
+
subscribeToSwarmInfo: (request: SubscribeToSwarmInfoRequest) => Stream<SubscribeToSwarmInfoResponse>;
|
|
28
28
|
}
|
|
29
29
|
export interface Event {
|
|
30
30
|
ready?: ReadyEvent;
|
|
@@ -191,7 +191,7 @@ export interface SetTracingOptionsRequest {
|
|
|
191
191
|
enable?: boolean;
|
|
192
192
|
}
|
|
193
193
|
export interface TracingService {
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
setTracingOptions: (request: SetTracingOptionsRequest) => Promise<void>;
|
|
195
|
+
subscribeToRpcTrace: (request: void) => Stream<dxos_rpc.RpcMessage>;
|
|
196
196
|
}
|
|
197
197
|
//# sourceMappingURL=devtools.d.ts.map
|
|
@@ -39,8 +39,8 @@ export interface MutationReceipt {
|
|
|
39
39
|
seq?: number;
|
|
40
40
|
}
|
|
41
41
|
export interface DataService {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
subscribeEntitySet: (request: SubscribeEntitySetRequest) => Stream<SubscribeEntitySetResponse>;
|
|
43
|
+
subscribeEntityStream: (request: SubscribeEntityStreamRequest) => Stream<SubscribeEntityStreamResponse>;
|
|
44
|
+
write: (request: WriteRequest) => Promise<MutationReceipt>;
|
|
45
45
|
}
|
|
46
46
|
//# sourceMappingURL=service.d.ts.map
|