@leaflow/sdk 0.204.0 → 0.206.0
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.
|
@@ -68,8 +68,8 @@ export type FileTransferMessage = Message<"leaflow.fleet.filetransfer.v1.FileTra
|
|
|
68
68
|
*/
|
|
69
69
|
export declare const FileTransferMessageSchema: GenMessage<FileTransferMessage>;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
71
|
+
* 文件声明,不携带清单正文。清单通过 FileContentRequest.manifest 按需读取,
|
|
72
|
+
* 剪贴板、拖拽、文件管理和直接传输都引用同一份连接内声明。
|
|
73
73
|
*
|
|
74
74
|
* @generated from message leaflow.fleet.filetransfer.v1.FileTransferOffer
|
|
75
75
|
*/
|
|
@@ -80,12 +80,6 @@ export type FileTransferOffer = Message<"leaflow.fleet.filetransfer.v1.FileTrans
|
|
|
80
80
|
* @generated from field: string transfer_id = 1;
|
|
81
81
|
*/
|
|
82
82
|
transferId: string;
|
|
83
|
-
/**
|
|
84
|
-
* The files and directories. A directory comes before its contents.
|
|
85
|
-
*
|
|
86
|
-
* @generated from field: repeated leaflow.fleet.filetransfer.v1.FileEntry entries = 2;
|
|
87
|
-
*/
|
|
88
|
-
entries: FileEntry[];
|
|
89
83
|
/**
|
|
90
84
|
* The sum of the regular files' sizes.
|
|
91
85
|
*
|
|
@@ -100,6 +94,13 @@ export type FileTransferOffer = Message<"leaflow.fleet.filetransfer.v1.FileTrans
|
|
|
100
94
|
* @generated from field: string destination_directory = 4;
|
|
101
95
|
*/
|
|
102
96
|
destinationDirectory: string;
|
|
97
|
+
/**
|
|
98
|
+
* 清单的准确条目数,包含目录,必须大于 0。只受 FileTransferPolicy.max_entries
|
|
99
|
+
* 约束;不能按一条控制消息可以容纳多少条目再缩减。
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: uint64 entry_count = 5;
|
|
102
|
+
*/
|
|
103
|
+
entryCount: bigint;
|
|
103
104
|
};
|
|
104
105
|
/**
|
|
105
106
|
* Describes the message leaflow.fleet.filetransfer.v1.FileTransferOffer.
|
|
@@ -185,6 +186,18 @@ export type FileTransferRequest = Message<"leaflow.fleet.filetransfer.v1.FileTra
|
|
|
185
186
|
* @generated from field: bool clipboard = 4;
|
|
186
187
|
*/
|
|
187
188
|
clipboard: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* 本请求的分片序号,从 0 连续增加。
|
|
191
|
+
*
|
|
192
|
+
* @generated from field: uint64 part_index = 5;
|
|
193
|
+
*/
|
|
194
|
+
partIndex: bigint;
|
|
195
|
+
/**
|
|
196
|
+
* 本请求的最后一片。完整选择到齐后才能确认和读取正文。
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: bool last_part = 6;
|
|
199
|
+
*/
|
|
200
|
+
lastPart: boolean;
|
|
188
201
|
};
|
|
189
202
|
/**
|
|
190
203
|
* Describes the message leaflow.fleet.filetransfer.v1.FileTransferRequest.
|
|
@@ -216,11 +229,23 @@ export type FileTransferResponse = Message<"leaflow.fleet.filetransfer.v1.FileTr
|
|
|
216
229
|
*/
|
|
217
230
|
fileIds: string[];
|
|
218
231
|
/**
|
|
219
|
-
*
|
|
232
|
+
* 拒绝原因,仅最后一片可携带。成功时不设置;失败时此前分片不授权读取。
|
|
220
233
|
*
|
|
221
234
|
* @generated from field: google.rpc.Status error = 4;
|
|
222
235
|
*/
|
|
223
236
|
error?: Status | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* 本响应的分片序号,从 0 连续增加。
|
|
239
|
+
*
|
|
240
|
+
* @generated from field: uint64 part_index = 5;
|
|
241
|
+
*/
|
|
242
|
+
partIndex: bigint;
|
|
243
|
+
/**
|
|
244
|
+
* 本响应的最后一片,收到后才生效。
|
|
245
|
+
*
|
|
246
|
+
* @generated from field: bool last_part = 6;
|
|
247
|
+
*/
|
|
248
|
+
lastPart: boolean;
|
|
224
249
|
};
|
|
225
250
|
/**
|
|
226
251
|
* Describes the message leaflow.fleet.filetransfer.v1.FileTransferResponse.
|
|
@@ -247,8 +272,8 @@ export type FileTransferCancel = Message<"leaflow.fleet.filetransfer.v1.FileTran
|
|
|
247
272
|
*/
|
|
248
273
|
export declare const FileTransferCancelSchema: GenMessage<FileTransferCancel>;
|
|
249
274
|
/**
|
|
250
|
-
*
|
|
251
|
-
*
|
|
275
|
+
* 接收方交付的文件。选择的文件全部完成或发生失败时发送一个逻辑结果,可由多个
|
|
276
|
+
* 分片组成。只有最后一片到齐后才能发布终态并释放整项传输的来源。
|
|
252
277
|
*
|
|
253
278
|
* @generated from message leaflow.fleet.filetransfer.v1.FileTransferResult
|
|
254
279
|
*/
|
|
@@ -266,11 +291,23 @@ export type FileTransferResult = Message<"leaflow.fleet.filetransfer.v1.FileTran
|
|
|
266
291
|
*/
|
|
267
292
|
fileIds: string[];
|
|
268
293
|
/**
|
|
269
|
-
*
|
|
294
|
+
* 其余文件的失败原因,仅最后一片可携带。全部成功时不设置。
|
|
270
295
|
*
|
|
271
296
|
* @generated from field: google.rpc.Status error = 3;
|
|
272
297
|
*/
|
|
273
298
|
error?: Status | undefined;
|
|
299
|
+
/**
|
|
300
|
+
* 本结果的分片序号,从 0 连续增加。
|
|
301
|
+
*
|
|
302
|
+
* @generated from field: uint64 part_index = 4;
|
|
303
|
+
*/
|
|
304
|
+
partIndex: bigint;
|
|
305
|
+
/**
|
|
306
|
+
* 本结果的最后一片,收到后才生效。
|
|
307
|
+
*
|
|
308
|
+
* @generated from field: bool last_part = 5;
|
|
309
|
+
*/
|
|
310
|
+
lastPart: boolean;
|
|
274
311
|
};
|
|
275
312
|
/**
|
|
276
313
|
* Describes the message leaflow.fleet.filetransfer.v1.FileTransferResult.
|
|
@@ -278,8 +315,7 @@ export type FileTransferResult = Message<"leaflow.fleet.filetransfer.v1.FileTran
|
|
|
278
315
|
*/
|
|
279
316
|
export declare const FileTransferResultSchema: GenMessage<FileTransferResult>;
|
|
280
317
|
/**
|
|
281
|
-
*
|
|
282
|
-
* message the opener of a content channel sends.
|
|
318
|
+
* 请求声明的清单或已确认的一个普通文件。这是 content 通道发起方发送的唯一消息。
|
|
283
319
|
*
|
|
284
320
|
* @generated from message leaflow.fleet.filetransfer.v1.FileContentRequest
|
|
285
321
|
*/
|
|
@@ -291,11 +327,35 @@ export type FileContentRequest = Message<"leaflow.fleet.filetransfer.v1.FileCont
|
|
|
291
327
|
*/
|
|
292
328
|
transferId: string;
|
|
293
329
|
/**
|
|
294
|
-
*
|
|
330
|
+
* 必须选择一项,不能以空文件 id 代指清单。
|
|
295
331
|
*
|
|
296
|
-
* @generated from
|
|
332
|
+
* @generated from oneof leaflow.fleet.filetransfer.v1.FileContentRequest.content
|
|
297
333
|
*/
|
|
298
|
-
|
|
334
|
+
content: {
|
|
335
|
+
/**
|
|
336
|
+
* 已确认的普通文件的 id。
|
|
337
|
+
*
|
|
338
|
+
* @generated from field: string file_id = 2;
|
|
339
|
+
*/
|
|
340
|
+
value: string;
|
|
341
|
+
case: "fileId";
|
|
342
|
+
} | {
|
|
343
|
+
/**
|
|
344
|
+
* 必须为 true。清单是逐条 FileEntry 的 protobuf 长度前缀编码:每条先发送
|
|
345
|
+
* protobuf varint 长度,再发送该 FileEntry 的编码字节;目录先于其内容。
|
|
346
|
+
* FileContent.data 可在任意字节处拆分,包括长度前缀和单个条目内部。
|
|
347
|
+
* 接收方递增校验条目 id、父目录、名称和类型,最后核对 entry_count、
|
|
348
|
+
* total_size_bytes 和 FileContentEnd.sha256。摘要覆盖全部长度前缀和条目字节。
|
|
349
|
+
* 清单读取成功仅确认元数据,不选择文件、不发送 FileTransferResult。
|
|
350
|
+
*
|
|
351
|
+
* @generated from field: bool manifest = 3;
|
|
352
|
+
*/
|
|
353
|
+
value: boolean;
|
|
354
|
+
case: "manifest";
|
|
355
|
+
} | {
|
|
356
|
+
case: undefined;
|
|
357
|
+
value?: undefined;
|
|
358
|
+
};
|
|
299
359
|
};
|
|
300
360
|
/**
|
|
301
361
|
* Describes the message leaflow.fleet.filetransfer.v1.FileContentRequest.
|
|
@@ -303,7 +363,7 @@ export type FileContentRequest = Message<"leaflow.fleet.filetransfer.v1.FileCont
|
|
|
303
363
|
*/
|
|
304
364
|
export declare const FileContentRequestSchema: GenMessage<FileContentRequest>;
|
|
305
365
|
/**
|
|
306
|
-
*
|
|
366
|
+
* 来源发送的文件正文或清单字节。
|
|
307
367
|
*
|
|
308
368
|
* @generated from message leaflow.fleet.filetransfer.v1.FileContent
|
|
309
369
|
*/
|
|
@@ -340,8 +400,8 @@ export type FileContent = Message<"leaflow.fleet.filetransfer.v1.FileContent"> &
|
|
|
340
400
|
*/
|
|
341
401
|
export declare const FileContentSchema: GenMessage<FileContent>;
|
|
342
402
|
/**
|
|
343
|
-
*
|
|
344
|
-
*
|
|
403
|
+
* 文件正文或清单的结束。接收方校验摘要,并核对文件长度或清单条目及总大小,
|
|
404
|
+
* 校验通过后才交付。
|
|
345
405
|
*
|
|
346
406
|
* @generated from message leaflow.fleet.filetransfer.v1.FileContentEnd
|
|
347
407
|
*/
|
|
@@ -696,8 +756,8 @@ export type FileTransferPolicy = Message<"leaflow.fleet.filetransfer.v1.FileTran
|
|
|
696
756
|
*/
|
|
697
757
|
fileSystemAllowed: boolean;
|
|
698
758
|
/**
|
|
699
|
-
*
|
|
700
|
-
*
|
|
759
|
+
* 一份声明最多可含的条目数,包含目录。0 表示不限制;不能再按控制消息大小设置
|
|
760
|
+
* 额外的条目数上限。清单通过受通道额度约束的 content 流读取。
|
|
701
761
|
*
|
|
702
762
|
* @generated from field: uint32 max_entries = 4;
|
|
703
763
|
*/
|
|
@@ -7,7 +7,7 @@ import { file_google_rpc_status } from "../../../../google/rpc/status_pb.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file leaflow/fleet/filetransfer/v1/filetransfer.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_leaflow_fleet_filetransfer_v1_filetransfer = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_leaflow_fleet_filetransfer_v1_filetransfer = /*@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VxdWVzdBovLmxlYWZsb3cuZmxlZXQuZmlsZXRyYW5zZmVyLnYxLkNvcHlGaWxlUmVzcG9uc2USbgoJVHJhc2hGaWxlEi8ubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuVHJhc2hGaWxlUmVxdWVzdBowLmxlYWZsb3cuZmxlZXQuZmlsZXRyYW5zZmVyLnYxLlRyYXNoRmlsZVJlc3BvbnNlEoABCg9DcmVhdGVGaWxlT2ZmZXISNS5sZWFmbG93LmZsZWV0LmZpbGV0cmFuc2Zlci52MS5DcmVhdGVGaWxlT2ZmZXJSZXF1ZXN0GjYubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuQ3JlYXRlRmlsZU9mZmVyUmVzcG9uc2VCSFpGZ2l0aHViLmNvbS9sZWFmbG93YXBpcy9sZWFmbG93LWdvL2ZsZWV0L2ZpbGV0cmFuc2Zlci92MTtmaWxldHJhbnNmZXJ2MWIGcHJvdG8z", [file_google_protobuf_timestamp, file_google_rpc_status]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message leaflow.fleet.filetransfer.v1.FileTransferMessage.
|
|
13
13
|
* Use `create(FileTransferMessageSchema)` to create a new message.
|
|
@@ -539,8 +539,10 @@ export type DragStart = Message<"leaflow.fleet.virtualdesktop.datatransfer.v1.Dr
|
|
|
539
539
|
*/
|
|
540
540
|
sourceWindowId: bigint;
|
|
541
541
|
/**
|
|
542
|
-
* The formats the source provides, most faithful first
|
|
543
|
-
*
|
|
542
|
+
* The formats the source provides, most faithful first. Names are non-empty,
|
|
543
|
+
* distinct media types without control characters. Do not truncate the list
|
|
544
|
+
* or its names; the channel's message framing applies to the declaration,
|
|
545
|
+
* while format data is read on demand over the data channel.
|
|
544
546
|
*
|
|
545
547
|
* @generated from field: repeated string mime_types = 3;
|
|
546
548
|
*/
|