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