core-3nweb-client-lib 0.24.0 → 0.24.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/build/api-defs/web3n.d.ts +6 -6
- package/build/ipc-via-protobuf/asmail-cap.js +17 -18
- package/build/ipc-via-protobuf/bytes.js +10 -11
- package/build/ipc-via-protobuf/connector.d.ts +2 -1
- package/build/ipc-via-protobuf/connector.js +4 -2
- package/build/ipc-via-protobuf/file.d.ts +1 -1
- package/build/ipc-via-protobuf/file.js +30 -31
- package/build/ipc-via-protobuf/fs.d.ts +1 -1
- package/build/ipc-via-protobuf/fs.js +37 -38
- package/build/ipc-via-protobuf/log-cap.js +4 -5
- package/build/ipc-via-protobuf/mailerid.js +5 -7
- package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -2
- package/build/ipc-via-protobuf/protobuf-msg.js +9 -24
- package/build/ipc-via-protobuf/startup-cap.js +10 -11
- package/build/ipc-via-protobuf/storage-cap.js +7 -8
- package/build/lib-client/cryptor/cryptor-in-worker.js +7 -20
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/cryptor/in-proc-wasm.js +7 -20
- package/build/lib-client/{protobuf-loader.d.ts → protobuf-type.d.ts} +2 -4
- package/build/lib-client/{protobuf-loader.js → protobuf-type.js} +3 -43
- package/build/protos/asmail.proto.js +22296 -0
- package/build/protos/bytes.proto.js +3614 -0
- package/build/protos/common.proto.js +1863 -0
- package/build/protos/cryptor.proto.js +1667 -0
- package/build/protos/file.proto.js +7264 -0
- package/build/protos/fs.proto.js +17142 -0
- package/build/protos/ipc.proto.js +2349 -0
- package/build/protos/logger.proto.js +2112 -0
- package/build/protos/mailerid.proto.js +2249 -0
- package/build/protos/startup.proto.js +3291 -0
- package/build/protos/storage.proto.js +2689 -0
- package/package.json +2 -2
- package/{build/ipc-via-protobuf/protos → protos}/asmail.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/bytes.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/common.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/file.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/fs.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/ipc.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/logger.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/mailerid.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/startup.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/storage.proto +0 -0
- package/build/ipc-via-protobuf/proto-defs.js +0 -1092
- package/build/lib-client/cryptor/proto-defs.js +0 -50
- package/build/lib-client/cryptor/protos/cryptor.proto +0 -45
|
@@ -1,1092 +0,0 @@
|
|
|
1
|
-
exports.protos = {};
|
|
2
|
-
exports.protos['asmail.proto'] = `
|
|
3
|
-
syntax = "proto3";
|
|
4
|
-
|
|
5
|
-
import "common.proto";
|
|
6
|
-
import "file.proto";
|
|
7
|
-
import "fs.proto";
|
|
8
|
-
|
|
9
|
-
package asmail;
|
|
10
|
-
|
|
11
|
-
// --- getUserId ---
|
|
12
|
-
// Request body is empty
|
|
13
|
-
// Reply body contains utf8 bytes of user id
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// ==== inbox capability ====
|
|
17
|
-
|
|
18
|
-
// --- inbox.listMsgs ---
|
|
19
|
-
message ListMsgsRequestBody {
|
|
20
|
-
common.UInt64Value from_t_s = 1;
|
|
21
|
-
}
|
|
22
|
-
message ListMsgsInboxReplyBody {
|
|
23
|
-
message MsgInfo {
|
|
24
|
-
string msg_id = 1;
|
|
25
|
-
uint64 delivery_t_s = 2;
|
|
26
|
-
string msg_type = 10;
|
|
27
|
-
}
|
|
28
|
-
repeated MsgInfo infos = 1;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// --- inbox.removeMsg ---
|
|
32
|
-
// Reply has only status and body is empty
|
|
33
|
-
message RemoveMsgRequestBody {
|
|
34
|
-
string msg_id = 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// --- inbox.getMsg ---
|
|
38
|
-
// Reply body is IncomingMessageMsg
|
|
39
|
-
message GetMsgRequestBody {
|
|
40
|
-
string msg_id = 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
message IncomingMessageMsg {
|
|
44
|
-
string msg_id = 1;
|
|
45
|
-
uint64 delivery_t_s = 2;
|
|
46
|
-
string sender = 3;
|
|
47
|
-
bool established_sender_key_chain = 4;
|
|
48
|
-
|
|
49
|
-
string msg_type = 10;
|
|
50
|
-
repeated string recipients = 11;
|
|
51
|
-
common.StringValue subject = 12;
|
|
52
|
-
common.StringValue plain_txt_body = 13;
|
|
53
|
-
common.StringValue html_txt_body = 14;
|
|
54
|
-
common.StringValue json_body = 15;
|
|
55
|
-
repeated string carbon_copy = 16;
|
|
56
|
-
fs.FS attachments = 17;
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// --- inbox.subscribe ---
|
|
61
|
-
// Its an observable call.
|
|
62
|
-
// Intermediate values are IncomingMessageMsg's.
|
|
63
|
-
message SubscribeStartCallBody {
|
|
64
|
-
string event = 1;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
// ==== delivery capability ====
|
|
69
|
-
|
|
70
|
-
// --- delivery.preFlight ---
|
|
71
|
-
// Reply body is common.UInt64Value
|
|
72
|
-
message PreFlightRequestBody {
|
|
73
|
-
string to_address = 1;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// --- delivery.addMsg ---
|
|
77
|
-
// Reply has only status and body is empty
|
|
78
|
-
message AddMsgRequestBody {
|
|
79
|
-
repeated string recipients = 1;
|
|
80
|
-
OutgoingMessageMsg msg = 2;
|
|
81
|
-
string id = 3;
|
|
82
|
-
common.BooleanValue send_immediately = 4;
|
|
83
|
-
common.AnyValue local_meta = 5;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
message OutgoingMessageMsg {
|
|
87
|
-
message AttachmentsContainer {
|
|
88
|
-
repeated NamedFSItem files = 1;
|
|
89
|
-
repeated NamedFSItem folders = 2;
|
|
90
|
-
}
|
|
91
|
-
message NamedFSItem {
|
|
92
|
-
string name = 1;
|
|
93
|
-
common.ObjectReference item = 2;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
common.StringValue msg_id = 1;
|
|
97
|
-
|
|
98
|
-
string msg_type = 10;
|
|
99
|
-
repeated string recipients = 11;
|
|
100
|
-
common.StringValue subject = 12;
|
|
101
|
-
common.StringValue plain_txt_body = 13;
|
|
102
|
-
common.StringValue html_txt_body = 14;
|
|
103
|
-
common.StringValue json_body = 15;
|
|
104
|
-
repeated string carbon_copy = 16;
|
|
105
|
-
AttachmentsContainer attachments = 17;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// --- delivery.listMsgs ---
|
|
109
|
-
// Request body is empty
|
|
110
|
-
message ListMsgsDeliveryReplyBody {
|
|
111
|
-
message MsgInfo {
|
|
112
|
-
string id = 1;
|
|
113
|
-
DeliveryProgressMsg info = 2;
|
|
114
|
-
}
|
|
115
|
-
repeated MsgInfo msgs = 1;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
message DeliveryProgressMsg {
|
|
119
|
-
message DeliveryInfo {
|
|
120
|
-
bool done = 1;
|
|
121
|
-
common.StringValue id_on_delivery = 2;
|
|
122
|
-
uint64 bytes_sent = 3;
|
|
123
|
-
common.ErrorValue err = 4;
|
|
124
|
-
}
|
|
125
|
-
message AddrAndDeliveryInfo {
|
|
126
|
-
string address = 1;
|
|
127
|
-
DeliveryInfo info = 2;
|
|
128
|
-
}
|
|
129
|
-
common.BooleanValue not_connected = 1;
|
|
130
|
-
bool all_done = 2;
|
|
131
|
-
uint64 msg_size = 3;
|
|
132
|
-
common.AnyValue local_meta = 4;
|
|
133
|
-
repeated AddrAndDeliveryInfo recipients = 5;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// --- delivery.currentState ---
|
|
137
|
-
// Reply is either DeliveryProgressMsg or an empty body
|
|
138
|
-
message CurrentStateRequestBody {
|
|
139
|
-
string id = 1;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// --- delivery.observeDelivery ---
|
|
143
|
-
// Its an observable call.
|
|
144
|
-
// Observer expects DeliveryProgressMsg in next.
|
|
145
|
-
message ObserveDeliveryRequestBody {
|
|
146
|
-
string id = 1;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// --- delivery.rmMsg ---
|
|
150
|
-
// Reply has only status and body is empty
|
|
151
|
-
message RmMsgRequestBody {
|
|
152
|
-
string id = 1;
|
|
153
|
-
common.BooleanValue cancel_sending = 2;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// --- delivery.observeAllDeliveries ---
|
|
157
|
-
// Its an observable call, and initial request is empty.
|
|
158
|
-
message DeliveryNotificationWithId {
|
|
159
|
-
string id = 1;
|
|
160
|
-
DeliveryProgressMsg progress = 2;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
`;
|
|
165
|
-
exports.protos['bytes.proto'] = `
|
|
166
|
-
syntax = "proto3";
|
|
167
|
-
|
|
168
|
-
import "common.proto";
|
|
169
|
-
|
|
170
|
-
package bytes;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
// ==== FileByteSink referable object ====
|
|
174
|
-
|
|
175
|
-
// --- FileByteSink.getSize ---
|
|
176
|
-
// Request body is empty
|
|
177
|
-
// Reply body is common.UInt64Value
|
|
178
|
-
|
|
179
|
-
// --- FileByteSink.splice ---
|
|
180
|
-
// Reply has only status and body is empty
|
|
181
|
-
message SpliceRequestBody {
|
|
182
|
-
uint64 pos = 1;
|
|
183
|
-
uint64 del = 2;
|
|
184
|
-
common.BytesValue bytes = 3;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// --- FileByteSink.truncate ---
|
|
188
|
-
// Reply has only status and body is empty
|
|
189
|
-
message TruncateRequestBody {
|
|
190
|
-
uint64 size = 1;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// --- FileByteSink.showLayout ---
|
|
194
|
-
// Request body is empty
|
|
195
|
-
// Reply body is FileLayoutMsg
|
|
196
|
-
message FileLayoutMsg {
|
|
197
|
-
message LayoutSection {
|
|
198
|
-
string src = 1;
|
|
199
|
-
uint64 ofs = 2;
|
|
200
|
-
uint64 len = 3;
|
|
201
|
-
}
|
|
202
|
-
common.UInt64Value base = 1;
|
|
203
|
-
repeated LayoutSection sections = 2;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// --- FileByteSink.done ---
|
|
207
|
-
// Reply has only status and body is empty
|
|
208
|
-
message DoneRequestBody {
|
|
209
|
-
common.ErrorValue err = 1;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
// ==== FileByteSource referable object ====
|
|
214
|
-
|
|
215
|
-
// --- FileByteSource.read ---
|
|
216
|
-
message ReadRequestBody {
|
|
217
|
-
common.UInt64Value len = 1;
|
|
218
|
-
}
|
|
219
|
-
message ReadReplyBody {
|
|
220
|
-
common.BytesValue bytes = 1;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// --- FileByteSource.getSize ---
|
|
224
|
-
// Request body is empty
|
|
225
|
-
// Reply body is common.UInt64Value
|
|
226
|
-
|
|
227
|
-
// --- FileByteSource.seek ---
|
|
228
|
-
// Reply has only status and body is empty
|
|
229
|
-
message SeekRequestBody {
|
|
230
|
-
uint64 offset = 1;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
// --- FileByteSource.getPosition ---
|
|
234
|
-
// Request body is empty
|
|
235
|
-
// Reply body is common.UInt64Value
|
|
236
|
-
`;
|
|
237
|
-
exports.protos['common.proto'] = `
|
|
238
|
-
syntax = "proto3";
|
|
239
|
-
|
|
240
|
-
package common;
|
|
241
|
-
|
|
242
|
-
message ObjectReference {
|
|
243
|
-
string obj_type = 1;
|
|
244
|
-
repeated string path = 2;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
message BooleanValue {
|
|
248
|
-
bool value = 1;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
message StringArrayValue {
|
|
252
|
-
repeated string values = 1;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
message UInt64Value {
|
|
256
|
-
uint64 value = 1;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
message UInt32Value {
|
|
260
|
-
uint32 value = 1;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
message StringValue {
|
|
264
|
-
string value = 1;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
message BytesValue {
|
|
268
|
-
bytes value = 1;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
message ErrorValue {
|
|
272
|
-
string runtime_exc_json = 1;
|
|
273
|
-
string err = 2;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
message AnyValue {
|
|
277
|
-
string type = 1;
|
|
278
|
-
StringValue json = 2;
|
|
279
|
-
BytesValue bytes = 3;
|
|
280
|
-
}`;
|
|
281
|
-
exports.protos['file.proto'] = `
|
|
282
|
-
syntax = "proto3";
|
|
283
|
-
|
|
284
|
-
import "common.proto";
|
|
285
|
-
|
|
286
|
-
package file;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
message File {
|
|
290
|
-
bool writable = 1;
|
|
291
|
-
bool is_versioned = 2;
|
|
292
|
-
string name = 3;
|
|
293
|
-
bool is_new = 4;
|
|
294
|
-
// impl is a reference to object with methods of either
|
|
295
|
-
// ReadonlyFile or WritableFile
|
|
296
|
-
common.ObjectReference impl = 5;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
// ==== ReadonlyFile referable as impl object ====
|
|
301
|
-
|
|
302
|
-
// --- ReadonlyFile.stat ---
|
|
303
|
-
// Request body is empty
|
|
304
|
-
// Reply body is StatsMsg
|
|
305
|
-
message StatsMsg {
|
|
306
|
-
common.BooleanValue is_file = 1;
|
|
307
|
-
common.BooleanValue is_folder = 2;
|
|
308
|
-
common.BooleanValue is_link = 3;
|
|
309
|
-
bool writable = 4;
|
|
310
|
-
common.UInt64Value size = 5;
|
|
311
|
-
common.UInt64Value mtime = 6;
|
|
312
|
-
common.UInt64Value ctime = 7;
|
|
313
|
-
common.UInt64Value version = 8;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
// --- ReadonlyFile.getXAttr ---
|
|
317
|
-
// Reply body is XAttrValue
|
|
318
|
-
message GetXAttrRequestBody {
|
|
319
|
-
string xa_name = 1;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
message XAttrValue {
|
|
323
|
-
common.StringValue str = 1;
|
|
324
|
-
common.StringValue json = 2;
|
|
325
|
-
common.BytesValue bytes = 3;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// --- ReadonlyFile.listXAttrs ---
|
|
329
|
-
// Request body is empty
|
|
330
|
-
// Reply body is common.StringArrayValue
|
|
331
|
-
|
|
332
|
-
// --- ReadonlyFile.readBytes ---
|
|
333
|
-
message ReadBytesRequestBody {
|
|
334
|
-
common.UInt64Value start = 1;
|
|
335
|
-
common.UInt64Value end = 2;
|
|
336
|
-
}
|
|
337
|
-
message ReadBytesReplyBody {
|
|
338
|
-
common.BytesValue bytes = 1;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// --- ReadonlyFile.readTxt ---
|
|
342
|
-
// Request body is empty
|
|
343
|
-
// Reply body contains utf8 bytes of a string
|
|
344
|
-
|
|
345
|
-
// --- ReadonlyFile.readJSON ---
|
|
346
|
-
// Request body is empty
|
|
347
|
-
// Reply body contains utf8 bytes of a json string
|
|
348
|
-
|
|
349
|
-
// --- ReadonlyFile.getByteSource ---
|
|
350
|
-
// Request body is empty
|
|
351
|
-
// Reply body is common.ObjectReference to FileByteSource.
|
|
352
|
-
|
|
353
|
-
// --- ReadonlyFile.watch ---
|
|
354
|
-
// Its an observable call, and initial request is empty.
|
|
355
|
-
// Observer expects FileEvent in next.
|
|
356
|
-
|
|
357
|
-
message FileEventMsg {
|
|
358
|
-
string type = 1;
|
|
359
|
-
string path = 2;
|
|
360
|
-
common.BooleanValue is_remote = 3;
|
|
361
|
-
common.UInt64Value new_version = 4;
|
|
362
|
-
common.UInt64Value current = 14;
|
|
363
|
-
common.UInt64Value last_synced = 15;
|
|
364
|
-
common.UInt64Value remote_version = 16;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
// ==== ReadonlyFileVersionedAPI referable object ====
|
|
369
|
-
|
|
370
|
-
// --- ReadonlyFileVersionedAPI.getXAttr ---
|
|
371
|
-
// Request body is GetXAttrRequestBody
|
|
372
|
-
message VersionedGetXAttrReplyBody {
|
|
373
|
-
uint64 version = 1;
|
|
374
|
-
common.StringValue str = 2;
|
|
375
|
-
common.StringValue json = 3;
|
|
376
|
-
common.BytesValue bytes = 4;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
// --- ReadonlyFileVersionedAPI.listXAttrs ---
|
|
380
|
-
// Request body is empty
|
|
381
|
-
message VersionedListXAttrsReplyBody {
|
|
382
|
-
uint64 version = 1;
|
|
383
|
-
repeated string xa_names = 2;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// --- ReadonlyFileVersionedAPI.readBytes ---
|
|
387
|
-
// Request body is ReadBytesRequestBody
|
|
388
|
-
message VersionedReadBytesReplyBody {
|
|
389
|
-
uint64 version = 1;
|
|
390
|
-
common.BytesValue bytes = 2;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
// --- ReadonlyFileVersionedAPI.readTxt ---
|
|
394
|
-
// Request body is empty
|
|
395
|
-
message VersionedReadTxtReplyBody {
|
|
396
|
-
uint64 version = 1;
|
|
397
|
-
string txt = 2;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
// --- ReadonlyFileVersionedAPI.readJSON ---
|
|
401
|
-
// Request body is empty
|
|
402
|
-
message VersionedReadJsonReplyBody {
|
|
403
|
-
uint64 version = 1;
|
|
404
|
-
string json = 2;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
// --- ReadonlyFileVersionedAPI.getByteSource ---
|
|
408
|
-
// Request body is empty
|
|
409
|
-
message VersionedGetByteSourceReplyBody {
|
|
410
|
-
uint64 version = 1;
|
|
411
|
-
// src is a reference to FileByteSource
|
|
412
|
-
common.ObjectReference src = 2;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
// ==== WritableFile referable as impl object (extends ReadonlyFile) ====
|
|
417
|
-
|
|
418
|
-
// --- WritableFile.updateXAttrs ---
|
|
419
|
-
// Reply has only status and body is empty
|
|
420
|
-
message UpdateXAttrsRequestBody {
|
|
421
|
-
XAttrsChanges changes = 1;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
message XAttrsChanges {
|
|
425
|
-
message NameAndAttrValue {
|
|
426
|
-
string xa_name = 1;
|
|
427
|
-
common.StringValue str = 2;
|
|
428
|
-
common.StringValue json = 3;
|
|
429
|
-
common.BytesValue bytes = 4;
|
|
430
|
-
}
|
|
431
|
-
repeated NameAndAttrValue set = 1;
|
|
432
|
-
repeated string remove = 2;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
// --- WritableFile.writeBytes ---
|
|
436
|
-
// Reply has only status and body is empty
|
|
437
|
-
message WriteBytesRequestBody {
|
|
438
|
-
bytes bytes = 1;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
// --- WritableFile.writeTxt ---
|
|
442
|
-
// Reply has only status and body is empty
|
|
443
|
-
message WriteTxtRequestBody {
|
|
444
|
-
string txt = 1;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
// --- WritableFile.writeJSON ---
|
|
448
|
-
// Reply has only status and body is empty
|
|
449
|
-
message WriteJsonRequestBody {
|
|
450
|
-
string json = 1;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
// --- WritableFile.getByteSink ---
|
|
454
|
-
// Reply body is common.ObjectReference to FileByteSink.
|
|
455
|
-
message GetByteSinkRequestBody {
|
|
456
|
-
common.BooleanValue truncate_file = 1;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
// --- WritableFile.copy ---
|
|
460
|
-
// Reply has only status and body is empty
|
|
461
|
-
message CopyRequestBody {
|
|
462
|
-
// file is a reference to writable file
|
|
463
|
-
common.ObjectReference file = 1;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
// ==== WritableFileVersionedAPI referable object ====
|
|
468
|
-
|
|
469
|
-
// --- WritableFileVersionedAPI.updateXAttrs ---
|
|
470
|
-
// Request body is UpdateXAttrsRequestBody
|
|
471
|
-
// Reply body is common.UInt64Value
|
|
472
|
-
|
|
473
|
-
// --- WritableFileVersionedAPI.writeBytes ---
|
|
474
|
-
// Request body is WriteBytesRequestBody
|
|
475
|
-
// Reply body is common.UInt64Value
|
|
476
|
-
|
|
477
|
-
// --- WritableFileVersionedAPI.writeTxt ---
|
|
478
|
-
// Request body is WriteTxtRequestBody
|
|
479
|
-
// Reply body is common.UInt64Value
|
|
480
|
-
|
|
481
|
-
// --- WritableFileVersionedAPI.writeJSON ---
|
|
482
|
-
// Request body is WriteJsonRequestBody
|
|
483
|
-
// Reply body is common.UInt64Value
|
|
484
|
-
|
|
485
|
-
// --- WritableFileVersionedAPI.getByteSink ---
|
|
486
|
-
message VersionedGetByteSinkRequestBody {
|
|
487
|
-
common.BooleanValue truncate_file = 1;
|
|
488
|
-
common.UInt64Value current_version = 2;
|
|
489
|
-
}
|
|
490
|
-
message VersionedGetByteSinkReplyBody {
|
|
491
|
-
uint64 version = 1;
|
|
492
|
-
// sink is a reference to FileByteSink
|
|
493
|
-
common.ObjectReference sink = 2;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
// --- WritableFileVersionedAPI.copy ---
|
|
497
|
-
// Request body is CopyRequestBody
|
|
498
|
-
// Reply body is common.UInt64Value
|
|
499
|
-
`;
|
|
500
|
-
exports.protos['fs.proto'] = `
|
|
501
|
-
syntax = "proto3";
|
|
502
|
-
|
|
503
|
-
import "common.proto";
|
|
504
|
-
import "file.proto";
|
|
505
|
-
|
|
506
|
-
package fs;
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
message FS {
|
|
510
|
-
string type = 1;
|
|
511
|
-
bool is_versioned = 2;
|
|
512
|
-
bool writable = 3;
|
|
513
|
-
string name = 4;
|
|
514
|
-
// impl is a reference to object with methods of either
|
|
515
|
-
// ReadonlyFS or WritableFS
|
|
516
|
-
common.ObjectReference impl = 5;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
// ==== ReadonlyFS referable as impl object ====
|
|
521
|
-
|
|
522
|
-
// --- ReadonlyFS.checkFolderPresence ---
|
|
523
|
-
// Request body is CheckPresenceRequestBody
|
|
524
|
-
// Reply body is common.BooleanValue
|
|
525
|
-
|
|
526
|
-
message CheckPresenceRequestBody {
|
|
527
|
-
string path = 1;
|
|
528
|
-
common.BooleanValue throw_if_missing = 2;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
// --- ReadonlyFS.checkFilePresence ---
|
|
532
|
-
// Request body is CheckPresenceRequestBody
|
|
533
|
-
// Reply body is common.BooleanValue
|
|
534
|
-
|
|
535
|
-
// --- ReadonlyFS.checkLinkPresence ---
|
|
536
|
-
// Request body is CheckPresenceRequestBody
|
|
537
|
-
// Reply body is common.BooleanValue
|
|
538
|
-
|
|
539
|
-
// --- ReadonlyFS.stat ---
|
|
540
|
-
// Request body is PathOnlyRequestBody
|
|
541
|
-
// Reply body is File.Stats
|
|
542
|
-
|
|
543
|
-
message PathOnlyRequestBody {
|
|
544
|
-
string path = 1;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
// --- ReadonlyFS.getXAttr ---
|
|
548
|
-
// Reply body is file.XAttrValue
|
|
549
|
-
message GetXAttrRequestBody {
|
|
550
|
-
string path = 1;
|
|
551
|
-
string xa_name = 2;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
// --- ReadonlyFS.listXAttrs ---
|
|
555
|
-
// Request body is PathOnlyRequestBody
|
|
556
|
-
// Reply body is common.StringArrayValue
|
|
557
|
-
|
|
558
|
-
// --- ReadonlyFS.readLink ---
|
|
559
|
-
// Request body is PathOnlyRequestBody
|
|
560
|
-
// Reply body is SymLink
|
|
561
|
-
|
|
562
|
-
message SymLink {
|
|
563
|
-
bool readonly = 1;
|
|
564
|
-
common.BooleanValue is_file = 2;
|
|
565
|
-
common.BooleanValue is_folder = 3;
|
|
566
|
-
common.ObjectReference impl = 4;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
message SymLinkTargetReplyBody {
|
|
570
|
-
FS fs = 1;
|
|
571
|
-
file.File file = 2;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
// --- ReadonlyFS.watchFolder ---
|
|
575
|
-
// Its an observable call, and initial request is PathOnlyRequestBody
|
|
576
|
-
// Observer expects FSEventMsg in next.
|
|
577
|
-
|
|
578
|
-
message FSEventMsg {
|
|
579
|
-
string type = 1;
|
|
580
|
-
string path = 2;
|
|
581
|
-
common.BooleanValue is_remote = 3;
|
|
582
|
-
common.UInt64Value new_version = 4;
|
|
583
|
-
common.StringValue name = 10;
|
|
584
|
-
common.StringValue old_name = 11;
|
|
585
|
-
common.StringValue new_name = 12;
|
|
586
|
-
ListingEntryMsg entry = 13;
|
|
587
|
-
common.UInt64Value current = 14;
|
|
588
|
-
common.UInt64Value last_synced = 15;
|
|
589
|
-
common.UInt64Value remote_version = 16;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
// --- ReadonlyFS.watchFile ---
|
|
593
|
-
// Its an observable call, and initial request is PathOnlyRequestBody
|
|
594
|
-
// Observer expects FSEventMsg in next.
|
|
595
|
-
|
|
596
|
-
// --- ReadonlyFS.watchTree ---
|
|
597
|
-
// Its an observable call, and initial request is PathOnlyRequestBody
|
|
598
|
-
// Observer expects FSEventMsg in next.
|
|
599
|
-
|
|
600
|
-
// --- ReadonlyFS.close ---
|
|
601
|
-
// Request body is empty
|
|
602
|
-
// Reply body is empty
|
|
603
|
-
|
|
604
|
-
// --- ReadonlyFS.readonlySubRoot ---
|
|
605
|
-
// Request body is PathOnlyRequestBody
|
|
606
|
-
// Reply body is FS
|
|
607
|
-
|
|
608
|
-
// --- ReadonlyFS.listFolder ---
|
|
609
|
-
// Request body is PathOnlyRequestBody
|
|
610
|
-
message ListFolderReplyBody {
|
|
611
|
-
repeated ListingEntryMsg entries = 1;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
message ListingEntryMsg {
|
|
615
|
-
string name = 1;
|
|
616
|
-
common.BooleanValue is_file = 2;
|
|
617
|
-
common.BooleanValue is_folder = 3;
|
|
618
|
-
common.BooleanValue is_link = 4;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
// --- ReadonlyFS.readJSONFile ---
|
|
622
|
-
// Request body is PathOnlyRequestBody
|
|
623
|
-
// Reply body contains utf8 bytes of a json string
|
|
624
|
-
|
|
625
|
-
// --- ReadonlyFS.readTxtFile ---
|
|
626
|
-
// Request body is PathOnlyRequestBody
|
|
627
|
-
// Reply body contains utf8 bytes of a string
|
|
628
|
-
|
|
629
|
-
// --- ReadonlyFS.readBytes ---
|
|
630
|
-
// Reply body is file.ReadBytesReplyBody
|
|
631
|
-
message ReadBytesRequestBody {
|
|
632
|
-
string path = 1;
|
|
633
|
-
common.UInt64Value start = 2;
|
|
634
|
-
common.UInt64Value end = 3;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
// --- ReadonlyFS.getByteSource ---
|
|
638
|
-
// Request body is PathOnlyRequestBody
|
|
639
|
-
// Reply body is common.ObjectReference to bytes.FileByteSource.
|
|
640
|
-
|
|
641
|
-
// --- ReadonlyFS.readonlyFile ---
|
|
642
|
-
// Request body is PathOnlyRequestBody
|
|
643
|
-
// Reply body is file.File
|
|
644
|
-
|
|
645
|
-
// --- ReadonlyFS.select ---
|
|
646
|
-
// Its an observable call.
|
|
647
|
-
// First and only interim reply body is a common.ObjectReference to
|
|
648
|
-
// FSCollection. Call completion indicates the end of a search process
|
|
649
|
-
message SelectRequestBody {
|
|
650
|
-
message SelectCriteria {
|
|
651
|
-
common.StringValue exact_name = 1;
|
|
652
|
-
common.StringValue pattern = 2;
|
|
653
|
-
common.StringValue regexp = 3;
|
|
654
|
-
common.UInt32Value depth = 4;
|
|
655
|
-
repeated string type = 5;
|
|
656
|
-
string action = 6;
|
|
657
|
-
}
|
|
658
|
-
string path = 1;
|
|
659
|
-
SelectCriteria criteria = 2;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
// ==== FSCollection referable object ====
|
|
664
|
-
|
|
665
|
-
// --- FSCollection.get ---
|
|
666
|
-
message FSCGetRequestBody {
|
|
667
|
-
string name = 1;
|
|
668
|
-
}
|
|
669
|
-
message FSCGetReplyBody {
|
|
670
|
-
FSItem item = 1;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
message FSItem {
|
|
674
|
-
message Location {
|
|
675
|
-
FS fs = 1;
|
|
676
|
-
string path = 2;
|
|
677
|
-
string storage_use = 3;
|
|
678
|
-
string storage_type = 4;
|
|
679
|
-
}
|
|
680
|
-
message Item {
|
|
681
|
-
FS fs = 1;
|
|
682
|
-
file.File file = 2;
|
|
683
|
-
// collection is a reference to FSCollection
|
|
684
|
-
common.ObjectReference collection = 3;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
common.BooleanValue is_file = 1;
|
|
688
|
-
common.BooleanValue is_folder = 2;
|
|
689
|
-
common.BooleanValue is_link = 3;
|
|
690
|
-
common.BooleanValue is_collection = 4;
|
|
691
|
-
Item item = 5;
|
|
692
|
-
Location location = 6;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
// --- FSCollection.getAll ---
|
|
696
|
-
// Request body is empty
|
|
697
|
-
message FSCGetAllReplyBody {
|
|
698
|
-
repeated NameAndItem items = 1;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
message NameAndItem {
|
|
702
|
-
string name = 1;
|
|
703
|
-
FSItem item = 2;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
// --- FSCollection.entries ---
|
|
707
|
-
// Request body is empty
|
|
708
|
-
// Reply body is common.ObjectReference to iterator of IterResMsg
|
|
709
|
-
|
|
710
|
-
message IterResMsg {
|
|
711
|
-
common.BooleanValue done = 1;
|
|
712
|
-
NameAndItem value = 2;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
// --- FSCollection.watch ---
|
|
716
|
-
// Its an observable call.
|
|
717
|
-
// Observer expects CollectionEvent in next.
|
|
718
|
-
|
|
719
|
-
message CollectionEvent {
|
|
720
|
-
string type = 1;
|
|
721
|
-
common.StringValue path = 2;
|
|
722
|
-
FSItem item = 3;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
// ==== ReadonlyFSVersionedAPI referable object ====
|
|
727
|
-
|
|
728
|
-
// --- ReadonlyFSVersionedAPI.getXAttr ---
|
|
729
|
-
// Request body is GetXAttrRequestBody
|
|
730
|
-
// Reply body is file.VersionedGetXAttrReplyBody
|
|
731
|
-
|
|
732
|
-
// --- ReadonlyFSVersionedAPI.listXAttrs ---
|
|
733
|
-
// Request body is PathOnlyRequestBody
|
|
734
|
-
// Reply body is file.VersionedListXAttrsReplyBody
|
|
735
|
-
|
|
736
|
-
// --- ReadonlyFSVersionedAPI.listFolder ---
|
|
737
|
-
// Request body is PathOnlyRequestBody
|
|
738
|
-
message VersionedListFolderReplyBody {
|
|
739
|
-
uint64 version = 1;
|
|
740
|
-
repeated ListingEntryMsg entries = 2;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
// --- ReadonlyFSVersionedAPI.readJSONFile ---
|
|
744
|
-
// Request body is PathOnlyRequestBody
|
|
745
|
-
// Reply body is file.VersionedReadJsonReplyBody
|
|
746
|
-
|
|
747
|
-
// --- ReadonlyFSVersionedAPI.readTxtFile ---
|
|
748
|
-
// Request body is PathOnlyRequestBody
|
|
749
|
-
// Reply body is file.VersionedReadTxtReplyBody
|
|
750
|
-
|
|
751
|
-
// --- ReadonlyFSVersionedAPI.readBytes ---
|
|
752
|
-
// Request body is ReadBytesRequestBody
|
|
753
|
-
// Reply body is file.VersionedReadBytesReplyBody
|
|
754
|
-
|
|
755
|
-
// --- ReadonlyFSVersionedAPI.getByteSource ---
|
|
756
|
-
// Request body is PathOnlyRequestBody
|
|
757
|
-
// Reply body is file.VersionedGetByteSourceReplyBody
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
// ==== WritableFS referable as impl object (extends ReadonlyFS) ====
|
|
761
|
-
|
|
762
|
-
// --- WritableFS.updateXAttrs ---
|
|
763
|
-
// Reply has only status and body is empty
|
|
764
|
-
message UpdateXAttrsRequestBody {
|
|
765
|
-
string path = 1;
|
|
766
|
-
file.XAttrsChanges changes = 2;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
// --- WritableFS.makeFolder ---
|
|
770
|
-
// Reply has only status and body is empty
|
|
771
|
-
message MakeFolderRequestBody {
|
|
772
|
-
string path = 1;
|
|
773
|
-
common.BooleanValue exclusive = 2;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
// --- WritableFS.deleteFolder ---
|
|
777
|
-
// Reply has only status and body is empty
|
|
778
|
-
message DeleteFolderRequestBody {
|
|
779
|
-
string path = 1;
|
|
780
|
-
common.BooleanValue remove_content = 2;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
// --- WritableFS.deleteFile ---
|
|
784
|
-
// Request body is PathOnlyRequestBody
|
|
785
|
-
// Reply has only status and body is empty
|
|
786
|
-
|
|
787
|
-
// --- WritableFS.move ---
|
|
788
|
-
// Reply has only status and body is empty
|
|
789
|
-
message MoveRequestBody {
|
|
790
|
-
string src = 1;
|
|
791
|
-
string dst = 2;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
// --- WritableFS.copyFile ---
|
|
795
|
-
// Reply has only status and body is empty
|
|
796
|
-
message CopyFileRequestBody {
|
|
797
|
-
string src = 1;
|
|
798
|
-
string dst = 2;
|
|
799
|
-
common.BooleanValue overwrite = 3;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
// --- WritableFS.copyFolder ---
|
|
803
|
-
// Reply has only status and body is empty
|
|
804
|
-
message CopyFolderRequestBody {
|
|
805
|
-
string src = 1;
|
|
806
|
-
string dst = 2;
|
|
807
|
-
common.BooleanValue merge_and_overwrite = 3;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
// --- WritableFS.saveFile ---
|
|
811
|
-
// Reply has only status and body is empty
|
|
812
|
-
message SaveFileRequestBody {
|
|
813
|
-
// file is a reference to File impl object
|
|
814
|
-
common.ObjectReference file = 1;
|
|
815
|
-
string dst = 2;
|
|
816
|
-
common.BooleanValue overwrite = 3;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
// --- WritableFS.saveFolder ---
|
|
820
|
-
// Reply has only status and body is empty
|
|
821
|
-
message SaveFolderRequestBody {
|
|
822
|
-
// file is a reference to FS impl object
|
|
823
|
-
common.ObjectReference folder = 1;
|
|
824
|
-
string dst = 2;
|
|
825
|
-
common.BooleanValue merge_and_overwrite = 3;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
// --- WritableFS.deleteLink ---
|
|
829
|
-
// Request body is PathOnlyRequestBody
|
|
830
|
-
// Reply has only status and body is empty
|
|
831
|
-
|
|
832
|
-
// --- WritableFS.link ---
|
|
833
|
-
// Reply has only status and body is empty
|
|
834
|
-
message LinkRequestBody {
|
|
835
|
-
string path = 1;
|
|
836
|
-
// target is a reference to either FS or File impl object
|
|
837
|
-
common.ObjectReference target = 2;
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
// --- WritableFS.writableSubRoot ---
|
|
841
|
-
// Request body is PathAndOptFileFlags
|
|
842
|
-
// Reply body is FS
|
|
843
|
-
|
|
844
|
-
message PathAndOptFileFlags {
|
|
845
|
-
string path = 1;
|
|
846
|
-
FileFlags flags = 2;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
message FileFlags {
|
|
850
|
-
common.BooleanValue truncate = 1;
|
|
851
|
-
common.BooleanValue create = 2;
|
|
852
|
-
common.BooleanValue exclusive = 3;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
// --- WritableFS.writeJSONFile ---
|
|
856
|
-
// Reply has only status and body is empty
|
|
857
|
-
message WriteJsonFileRequestBody {
|
|
858
|
-
string path = 1;
|
|
859
|
-
string json = 2;
|
|
860
|
-
FileFlags flags = 3;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
// --- WritableFS.writeTxtFile ---
|
|
864
|
-
// Reply has only status and body is empty
|
|
865
|
-
message WriteTxtFileRequestBody {
|
|
866
|
-
string path = 1;
|
|
867
|
-
string txt = 2;
|
|
868
|
-
FileFlags flags = 3;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
// --- WritableFS.writeBytes ---
|
|
872
|
-
// Reply has only status and body is empty
|
|
873
|
-
message WriteBytesRequestBody {
|
|
874
|
-
string path = 1;
|
|
875
|
-
bytes bytes = 2;
|
|
876
|
-
FileFlags flags = 3;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
// --- WritableFS.getByteSink ---
|
|
880
|
-
// Request body is PathAndOptFileFlags
|
|
881
|
-
// Reply body is common.ObjectReference to bytes.FileByteSink
|
|
882
|
-
|
|
883
|
-
// --- WritableFS.writableFile ---
|
|
884
|
-
// Request body is PathAndOptFileFlags
|
|
885
|
-
// Reply body is file.File
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
// ==== WritableFSVersionedAPI referable object
|
|
889
|
-
// (extends ReadonlyFSVersionedAPI) ====
|
|
890
|
-
|
|
891
|
-
// --- WritableFSVersionedAPI.updateXAttrs ---
|
|
892
|
-
// Request body is UpdateXAttrsRequestBody
|
|
893
|
-
// Reply body is common.UInt64Value
|
|
894
|
-
|
|
895
|
-
// --- WritableFSVersionedAPI.writeJSONFile ---
|
|
896
|
-
// Reply body is common.UInt64Value
|
|
897
|
-
message VersionedWriteJsonFileRequestBody {
|
|
898
|
-
string path = 1;
|
|
899
|
-
string json = 2;
|
|
900
|
-
VersionedFileFlags flags = 3;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
message VersionedFileFlags {
|
|
904
|
-
common.BooleanValue truncate = 1;
|
|
905
|
-
common.BooleanValue create = 2;
|
|
906
|
-
common.BooleanValue exclusive = 3;
|
|
907
|
-
common.UInt64Value current_version = 10;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
// --- WritableFSVersionedAPI.writeTxtFile ---
|
|
911
|
-
// Reply body is common.UInt64Value
|
|
912
|
-
message VersionedWriteTxtFileRequestBody {
|
|
913
|
-
string path = 1;
|
|
914
|
-
string txt = 2;
|
|
915
|
-
VersionedFileFlags flags = 3;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
// --- WritableFSVersionedAPI.writeBytes ---
|
|
919
|
-
// Reply body is common.UInt64Value
|
|
920
|
-
message VersionedWriteBytesRequestBody {
|
|
921
|
-
string path = 1;
|
|
922
|
-
bytes bytes = 2;
|
|
923
|
-
VersionedFileFlags flags = 3;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
// --- WritableFSVersionedAPI.getByteSink ---
|
|
927
|
-
// Reply body is file.VersionedGetByteSinkReplyBody
|
|
928
|
-
message VersionedGetByteSinkRequestBody {
|
|
929
|
-
string path = 1;
|
|
930
|
-
VersionedFileFlags flags = 2;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
`;
|
|
934
|
-
exports.protos['ipc.proto'] = `
|
|
935
|
-
syntax = "proto3";
|
|
936
|
-
|
|
937
|
-
import "common.proto";
|
|
938
|
-
|
|
939
|
-
package ipc;
|
|
940
|
-
|
|
941
|
-
message EnvelopeHeaders {
|
|
942
|
-
string msg_type = 1;
|
|
943
|
-
common.UInt64Value fn_call_num = 2;
|
|
944
|
-
repeated string path = 3;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
message Envelope {
|
|
948
|
-
EnvelopeHeaders headers = 1;
|
|
949
|
-
common.BytesValue body = 2;
|
|
950
|
-
}
|
|
951
|
-
`;
|
|
952
|
-
exports.protos['logger.proto'] = `
|
|
953
|
-
syntax = "proto3";
|
|
954
|
-
|
|
955
|
-
import "common.proto";
|
|
956
|
-
|
|
957
|
-
package logger;
|
|
958
|
-
|
|
959
|
-
// --- log ---
|
|
960
|
-
// Reply is status only and body is empty
|
|
961
|
-
message LogRequestBody {
|
|
962
|
-
string log_type = 1;
|
|
963
|
-
string msg = 2;
|
|
964
|
-
common.ErrorValue err = 3;
|
|
965
|
-
}
|
|
966
|
-
`;
|
|
967
|
-
exports.protos['mailerid.proto'] = `
|
|
968
|
-
syntax = "proto3";
|
|
969
|
-
|
|
970
|
-
import "common.proto";
|
|
971
|
-
|
|
972
|
-
package mailerid;
|
|
973
|
-
|
|
974
|
-
// --- getUserId ---
|
|
975
|
-
// Request body is empty
|
|
976
|
-
// Reply body contains utf8 bytes of user id
|
|
977
|
-
|
|
978
|
-
// --- login ---
|
|
979
|
-
// Reply is status only and body is empty
|
|
980
|
-
message LoginRequestBody {
|
|
981
|
-
string service_url = 1;
|
|
982
|
-
}
|
|
983
|
-
message LoginReplyBody {
|
|
984
|
-
string session_id = 1;
|
|
985
|
-
}
|
|
986
|
-
`;
|
|
987
|
-
exports.protos['startup.proto'] = `
|
|
988
|
-
syntax = "proto3";
|
|
989
|
-
|
|
990
|
-
import "common.proto";
|
|
991
|
-
|
|
992
|
-
package startup;
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
// ==== signUp capability ====
|
|
996
|
-
|
|
997
|
-
// --- signUp.getAvailableAddresses ---
|
|
998
|
-
// Reply body is common.StringArrayValue
|
|
999
|
-
message GetAvailableAddressesRequestBody {
|
|
1000
|
-
string name = 1;
|
|
1001
|
-
common.StringValue token = 2;
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
// --- signUp.addUser ---
|
|
1005
|
-
// Reply body is common.BooleanValue
|
|
1006
|
-
message AddUserRequestBody {
|
|
1007
|
-
string user_id = 1;
|
|
1008
|
-
common.StringValue token = 2;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
// --- signUp.isActivated ---
|
|
1012
|
-
// Reply body is common.BooleanValue
|
|
1013
|
-
message IsActivatedRequestBody {
|
|
1014
|
-
string user_id = 1;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
// --- signUp.createUserParams ---
|
|
1018
|
-
// Its an observable call, and initial request is PassOnlyRequestBody.
|
|
1019
|
-
// Intermediate values are ProgressValue.
|
|
1020
|
-
|
|
1021
|
-
message PassOnlyRequestBody {
|
|
1022
|
-
string pass = 1;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
// ==== signIn capability ====
|
|
1027
|
-
|
|
1028
|
-
// --- signIn.getUsersOnDisk ---
|
|
1029
|
-
// Request body is empty
|
|
1030
|
-
// Reply body is common.StringArrayValue
|
|
1031
|
-
|
|
1032
|
-
// --- signIn.startLoginToRemoteStorage ---
|
|
1033
|
-
// Reply body is common.BooleanValue
|
|
1034
|
-
message StartLoginToRemoteStorageRequestBody {
|
|
1035
|
-
string address = 1;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
// --- signIn.completeLoginAndLocalSetup ---
|
|
1039
|
-
// Its an observable call, and initial request is PassOnlyRequestBody.
|
|
1040
|
-
// Intermediate values are ProgressValue.
|
|
1041
|
-
|
|
1042
|
-
message ProgressValue {
|
|
1043
|
-
float p = 1;
|
|
1044
|
-
common.BooleanValue decr_result = 2;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
// --- signIn.useExistingStorage ---
|
|
1048
|
-
// Its an observable call, and initial request is UseExistingStorageRequestBody.
|
|
1049
|
-
// Intermediate values are ProgressValue.
|
|
1050
|
-
message UseExistingStorageRequestBody {
|
|
1051
|
-
string address = 1;
|
|
1052
|
-
string pass = 2;
|
|
1053
|
-
}
|
|
1054
|
-
`;
|
|
1055
|
-
exports.protos['storage.proto'] = `
|
|
1056
|
-
syntax = "proto3";
|
|
1057
|
-
|
|
1058
|
-
import "common.proto";
|
|
1059
|
-
|
|
1060
|
-
package storage;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
// ==== storage capability ====
|
|
1064
|
-
|
|
1065
|
-
// --- storage.getAppLocalFS ---
|
|
1066
|
-
// Reply body is common.ObjectReference to fs.WritableFS
|
|
1067
|
-
message GetAppLocalFSRequestBody {
|
|
1068
|
-
common.StringValue app_name = 1;
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
// --- storage.getAppSyncedFS ---
|
|
1072
|
-
// Reply body is common.ObjectReference to fs.WritableFS
|
|
1073
|
-
message GetAppSyncedFSRequestBody {
|
|
1074
|
-
common.StringValue app_name = 1;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
// --- storage.getUserFS ---
|
|
1078
|
-
// Reply body is common.ObjectReference to fs.FSItem
|
|
1079
|
-
message GetUserFSRequestBody {
|
|
1080
|
-
string type = 1;
|
|
1081
|
-
common.StringValue path = 2;
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
// --- storage.getSysFS ---
|
|
1085
|
-
// Reply body is common.ObjectReference to fs.FSItem
|
|
1086
|
-
message GetSysFSRequestBody {
|
|
1087
|
-
string type = 1;
|
|
1088
|
-
common.StringValue path = 2;
|
|
1089
|
-
}
|
|
1090
|
-
`;
|
|
1091
|
-
Object.freeze(exports.protos);
|
|
1092
|
-
Object.freeze(exports);
|