@milaboratories/pl-drivers 1.12.7 → 1.12.9
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/_virtual/_rolldown/runtime.cjs +7 -13
- package/dist/clients/constructors.cjs +6 -7
- package/dist/clients/constructors.cjs.map +1 -1
- package/dist/clients/constructors.d.ts.map +1 -0
- package/dist/clients/constructors.js +1 -2
- package/dist/clients/constructors.js.map +1 -1
- package/dist/clients/crc32c.cjs +1 -2
- package/dist/clients/crc32c.cjs.map +1 -1
- package/dist/clients/crc32c.js +1 -1
- package/dist/clients/download.cjs +6 -6
- package/dist/clients/download.cjs.map +1 -1
- package/dist/clients/download.d.ts.map +1 -0
- package/dist/clients/download.js +2 -2
- package/dist/clients/download.js.map +1 -1
- package/dist/clients/logs.cjs +5 -4
- package/dist/clients/logs.cjs.map +1 -1
- package/dist/clients/logs.d.ts.map +1 -0
- package/dist/clients/logs.js +3 -2
- package/dist/clients/logs.js.map +1 -1
- package/dist/clients/ls_api.cjs +4 -4
- package/dist/clients/ls_api.cjs.map +1 -1
- package/dist/clients/ls_api.d.ts.map +1 -0
- package/dist/clients/ls_api.js +2 -2
- package/dist/clients/ls_api.js.map +1 -1
- package/dist/clients/progress.cjs +7 -5
- package/dist/clients/progress.cjs.map +1 -1
- package/dist/clients/progress.d.ts.map +1 -0
- package/dist/clients/progress.js +5 -3
- package/dist/clients/progress.js.map +1 -1
- package/dist/clients/upload.cjs +22 -9
- package/dist/clients/upload.cjs.map +1 -1
- package/dist/clients/upload.d.ts.map +1 -0
- package/dist/clients/upload.js +18 -5
- package/dist/clients/upload.js.map +1 -1
- package/dist/drivers/download_blob/blob_key.cjs +3 -4
- package/dist/drivers/download_blob/blob_key.cjs.map +1 -1
- package/dist/drivers/download_blob/blob_key.js +2 -3
- package/dist/drivers/download_blob/blob_key.js.map +1 -1
- package/dist/drivers/download_blob/download_blob.cjs +13 -14
- package/dist/drivers/download_blob/download_blob.cjs.map +1 -1
- package/dist/drivers/download_blob/download_blob.d.ts.map +1 -0
- package/dist/drivers/download_blob/download_blob.js +1 -2
- package/dist/drivers/download_blob/download_blob.js.map +1 -1
- package/dist/drivers/download_blob/download_blob_task.cjs +4 -5
- package/dist/drivers/download_blob/download_blob_task.cjs.map +1 -1
- package/dist/drivers/download_blob/download_blob_task.js +1 -2
- package/dist/drivers/download_blob/download_blob_task.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/cache.cjs +4 -5
- package/dist/drivers/download_blob/sparse_cache/cache.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/cache.js +1 -2
- package/dist/drivers/download_blob/sparse_cache/cache.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/file.cjs +2 -3
- package/dist/drivers/download_blob/sparse_cache/file.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/file.js +1 -2
- package/dist/drivers/download_blob/sparse_cache/file.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/ranges.cjs +3 -4
- package/dist/drivers/download_blob/sparse_cache/ranges.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/ranges.js +1 -2
- package/dist/drivers/download_blob/sparse_cache/ranges.js.map +1 -1
- package/dist/drivers/download_blob_url/driver.cjs +8 -9
- package/dist/drivers/download_blob_url/driver.cjs.map +1 -1
- package/dist/drivers/download_blob_url/driver.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/driver.js +1 -2
- package/dist/drivers/download_blob_url/driver.js.map +1 -1
- package/dist/drivers/download_blob_url/driver_id.cjs +1 -2
- package/dist/drivers/download_blob_url/driver_id.cjs.map +1 -1
- package/dist/drivers/download_blob_url/driver_id.js +1 -1
- package/dist/drivers/download_blob_url/snapshot.cjs +2 -3
- package/dist/drivers/download_blob_url/snapshot.cjs.map +1 -1
- package/dist/drivers/download_blob_url/snapshot.d.ts +2 -2
- package/dist/drivers/download_blob_url/snapshot.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/snapshot.js +1 -2
- package/dist/drivers/download_blob_url/snapshot.js.map +1 -1
- package/dist/drivers/download_blob_url/task.cjs +5 -6
- package/dist/drivers/download_blob_url/task.cjs.map +1 -1
- package/dist/drivers/download_blob_url/task.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/task.js +1 -2
- package/dist/drivers/download_blob_url/task.js.map +1 -1
- package/dist/drivers/download_url/driver.cjs +7 -8
- package/dist/drivers/download_url/driver.cjs.map +1 -1
- package/dist/drivers/download_url/driver.d.ts.map +1 -0
- package/dist/drivers/download_url/driver.js +1 -2
- package/dist/drivers/download_url/driver.js.map +1 -1
- package/dist/drivers/download_url/task.cjs +4 -5
- package/dist/drivers/download_url/task.cjs.map +1 -1
- package/dist/drivers/download_url/task.d.ts.map +1 -0
- package/dist/drivers/download_url/task.js +1 -2
- package/dist/drivers/download_url/task.js.map +1 -1
- package/dist/drivers/helpers/download_local_handle.cjs +1 -2
- package/dist/drivers/helpers/download_local_handle.cjs.map +1 -1
- package/dist/drivers/helpers/download_local_handle.js +1 -1
- package/dist/drivers/helpers/download_remote_handle.cjs +3 -4
- package/dist/drivers/helpers/download_remote_handle.cjs.map +1 -1
- package/dist/drivers/helpers/download_remote_handle.js +1 -2
- package/dist/drivers/helpers/download_remote_handle.js.map +1 -1
- package/dist/drivers/helpers/files_cache.cjs +2 -3
- package/dist/drivers/helpers/files_cache.cjs.map +1 -1
- package/dist/drivers/helpers/files_cache.js +1 -2
- package/dist/drivers/helpers/files_cache.js.map +1 -1
- package/dist/drivers/helpers/helpers.cjs +1 -2
- package/dist/drivers/helpers/helpers.cjs.map +1 -1
- package/dist/drivers/helpers/helpers.d.ts.map +1 -0
- package/dist/drivers/helpers/helpers.js +1 -1
- package/dist/drivers/helpers/helpers.js.map +1 -1
- package/dist/drivers/helpers/logs_handle.cjs +2 -3
- package/dist/drivers/helpers/logs_handle.cjs.map +1 -1
- package/dist/drivers/helpers/logs_handle.js +1 -2
- package/dist/drivers/helpers/logs_handle.js.map +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.cjs +4 -6
- package/dist/drivers/helpers/ls_remote_import_handle.cjs.map +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.js +3 -5
- package/dist/drivers/helpers/ls_remote_import_handle.js.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.cjs +2 -3
- package/dist/drivers/helpers/ls_storage_entry.cjs.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.js +1 -2
- package/dist/drivers/helpers/ls_storage_entry.js.map +1 -1
- package/dist/drivers/helpers/polling_ops.d.ts.map +1 -0
- package/dist/drivers/helpers/read_file.cjs +2 -3
- package/dist/drivers/helpers/read_file.cjs.map +1 -1
- package/dist/drivers/helpers/read_file.js +1 -2
- package/dist/drivers/helpers/read_file.js.map +1 -1
- package/dist/drivers/logs.cjs +3 -4
- package/dist/drivers/logs.cjs.map +1 -1
- package/dist/drivers/logs.d.ts.map +1 -0
- package/dist/drivers/logs.js +1 -2
- package/dist/drivers/logs.js.map +1 -1
- package/dist/drivers/logs_stream.cjs +4 -5
- package/dist/drivers/logs_stream.cjs.map +1 -1
- package/dist/drivers/logs_stream.d.ts.map +1 -0
- package/dist/drivers/logs_stream.js +1 -2
- package/dist/drivers/logs_stream.js.map +1 -1
- package/dist/drivers/ls.cjs +7 -8
- package/dist/drivers/ls.cjs.map +1 -1
- package/dist/drivers/ls.d.ts.map +1 -0
- package/dist/drivers/ls.js +1 -2
- package/dist/drivers/ls.js.map +1 -1
- package/dist/drivers/types.cjs +2 -3
- package/dist/drivers/types.cjs.map +1 -1
- package/dist/drivers/types.d.ts +4 -4
- package/dist/drivers/types.d.ts.map +1 -0
- package/dist/drivers/types.js +1 -2
- package/dist/drivers/types.js.map +1 -1
- package/dist/drivers/upload.cjs +5 -6
- package/dist/drivers/upload.cjs.map +1 -1
- package/dist/drivers/upload.d.ts.map +1 -0
- package/dist/drivers/upload.js +1 -2
- package/dist/drivers/upload.js.map +1 -1
- package/dist/drivers/upload_task.cjs +4 -5
- package/dist/drivers/upload_task.cjs.map +1 -1
- package/dist/drivers/upload_task.d.ts.map +1 -0
- package/dist/drivers/upload_task.js +1 -2
- package/dist/drivers/upload_task.js.map +1 -1
- package/dist/drivers/urls/url.cjs +2 -3
- package/dist/drivers/urls/url.cjs.map +1 -1
- package/dist/drivers/urls/url.js +1 -2
- package/dist/drivers/urls/url.js.map +1 -1
- package/dist/drivers/virtual_storages.cjs +2 -3
- package/dist/drivers/virtual_storages.cjs.map +1 -1
- package/dist/drivers/virtual_storages.d.ts.map +1 -0
- package/dist/drivers/virtual_storages.js +1 -2
- package/dist/drivers/virtual_storages.js.map +1 -1
- package/dist/helpers/download.cjs +3 -4
- package/dist/helpers/download.cjs.map +1 -1
- package/dist/helpers/download.d.ts.map +1 -0
- package/dist/helpers/download.js +1 -2
- package/dist/helpers/download.js.map +1 -1
- package/dist/helpers/download_errors.cjs +1 -2
- package/dist/helpers/download_errors.cjs.map +1 -1
- package/dist/helpers/download_errors.d.ts.map +1 -0
- package/dist/helpers/download_errors.js +1 -1
- package/dist/helpers/validate.cjs +2 -3
- package/dist/helpers/validate.cjs.map +1 -1
- package/dist/helpers/validate.d.ts.map +1 -0
- package/dist/helpers/validate.js +1 -2
- package/dist/helpers/validate.js.map +1 -1
- package/dist/index.cjs +22 -23
- package/dist/index.js +1 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +32 -27
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs +4 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +6 -6
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +2 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +11 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +32 -31
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs +31 -24
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs +7 -8
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js +5 -6
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +16 -16
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +30 -27
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs +42 -28
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs +4 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +6 -6
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +2 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +8 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +40 -26
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs +32 -196
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs +23 -45
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +40 -70
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +21 -43
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +52 -137
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +31 -195
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs +228 -46
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs +24 -11
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js +22 -9
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +227 -45
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.cjs +2 -3
- package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/duration.js +1 -2
- package/dist/proto-grpc/google/protobuf/duration.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.cjs +2 -3
- package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/timestamp.js +1 -2
- package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto-rest/downloadapi.d.ts +8 -3
- package/dist/proto-rest/downloadapi.d.ts.map +1 -0
- package/dist/proto-rest/index.d.ts.map +1 -0
- package/dist/proto-rest/progressapi.d.ts +4 -2
- package/dist/proto-rest/progressapi.d.ts.map +1 -0
- package/dist/proto-rest/streamingapi.d.ts +64 -203
- package/dist/proto-rest/streamingapi.d.ts.map +1 -0
- package/package.json +10 -10
- package/src/clients/download.ts +1 -0
- package/src/clients/logs.ts +2 -0
- package/src/clients/ls_api.ts +1 -0
- package/src/clients/progress.ts +1 -1
- package/src/clients/upload.ts +14 -1
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +2 -2
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +24 -11
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +8 -8
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +31 -18
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +2 -2
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +23 -1
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +39 -78
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +72 -263
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +41 -14
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +286 -44
- package/src/proto-grpc/google/protobuf/descriptor.ts +2 -5
- package/src/proto-rest/downloadapi.ts +8 -3
- package/src/proto-rest/lsapi.ts +23 -18
- package/src/proto-rest/progressapi.ts +4 -0
- package/src/proto-rest/streamingapi.ts +65 -211
- package/src/proto-rest/uploadapi.ts +141 -39
package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts
CHANGED
|
@@ -17,54 +17,23 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
17
17
|
export interface StreamingAPI {
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.
|
|
20
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface StreamingAPI_ReadBinary {
|
|
23
23
|
/**
|
|
24
|
-
* <resource_id> of Stream resource
|
|
24
|
+
* <resource_id> of Stream resource that keeps info on item to be streamed.
|
|
25
25
|
*
|
|
26
26
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
27
27
|
*/
|
|
28
28
|
resourceId: bigint;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @generated from protobuf field: int64 offset = 2
|
|
33
|
-
*/
|
|
34
|
-
offset: bigint;
|
|
35
|
-
/**
|
|
36
|
-
* <chunk_size> limits the maximum size of <data> for each response message in stream.
|
|
37
|
-
*
|
|
38
|
-
* Default value: 32 768 (32 KiB)
|
|
39
|
-
* Max value: 3900 * 1024 (3.9 MiB)
|
|
40
|
-
*
|
|
41
|
-
* @generated from protobuf field: optional uint32 chunk_size = 11
|
|
42
|
-
*/
|
|
43
|
-
chunkSize?: number;
|
|
44
|
-
/**
|
|
45
|
-
* <read_limit> allows client to limit total data sent from server.
|
|
46
|
-
* This limit is aggregation of all data, sent in all chunks.
|
|
47
|
-
* E.g. to read 2000 bytes of data in chunks of at most
|
|
48
|
-
* 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.
|
|
49
|
-
* For storage item of appropriate size this settings will result in
|
|
50
|
-
* 16 messages from server: 15 of 130 bytes and one of 50 bytes.
|
|
51
|
-
*
|
|
52
|
-
* @generated from protobuf field: optional int64 read_limit = 20
|
|
53
|
-
*/
|
|
54
|
-
readLimit?: bigint;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
|
|
58
|
-
*/
|
|
59
|
-
export interface StreamingAPI_ReadBinary {
|
|
60
|
-
/**
|
|
61
|
-
* <resource_id> of Stream resource, that keeps info on item to be streamed.
|
|
30
|
+
* Signature proving the caller is authorized to access this resource.
|
|
62
31
|
*
|
|
63
|
-
* @generated from protobuf field:
|
|
32
|
+
* @generated from protobuf field: optional bytes resource_signature = 3
|
|
64
33
|
*/
|
|
65
|
-
|
|
34
|
+
resourceSignature?: Uint8Array;
|
|
66
35
|
/**
|
|
67
|
-
* <offset> makes streamer
|
|
36
|
+
* <offset> makes the streamer perform a seek operation to the given offset before sending the data.
|
|
68
37
|
*
|
|
69
38
|
* @generated from protobuf field: int64 offset = 2
|
|
70
39
|
*/
|
|
@@ -80,94 +49,54 @@ export interface StreamingAPI_ReadBinary {
|
|
|
80
49
|
chunkSize?: number;
|
|
81
50
|
}
|
|
82
51
|
/**
|
|
83
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.
|
|
52
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
|
|
84
53
|
*/
|
|
85
|
-
export interface
|
|
54
|
+
export interface StreamingAPI_ReadText {
|
|
86
55
|
/**
|
|
87
|
-
* <resource_id> of Stream resource
|
|
56
|
+
* <resource_id> of Stream resource that keeps info on item to be streamed.
|
|
88
57
|
*
|
|
89
58
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
90
59
|
*/
|
|
91
60
|
resourceId: bigint;
|
|
92
61
|
/**
|
|
93
|
-
*
|
|
94
|
-
* This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
|
|
95
|
-
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
96
|
-
*
|
|
97
|
-
* @generated from protobuf field: int64 offset = 2
|
|
98
|
-
*/
|
|
99
|
-
offset: bigint;
|
|
100
|
-
/**
|
|
101
|
-
* <read_limit> allows client to limit total data sent from server.
|
|
102
|
-
* This limit is aggregation of all data, sent in all chunks, measured
|
|
103
|
-
* in lines of text.
|
|
104
|
-
* E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
|
|
105
|
-
* When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
|
|
106
|
-
* this is equivalent to 'head -n <read_limit> | grep <search>'.
|
|
107
|
-
*
|
|
108
|
-
* @generated from protobuf field: optional int64 read_limit = 20
|
|
109
|
-
*/
|
|
110
|
-
readLimit?: bigint;
|
|
111
|
-
/**
|
|
112
|
-
* <search> is substring for line search pattern.
|
|
113
|
-
* This option makes controller to send to the client only lines, that
|
|
114
|
-
* have given substring.
|
|
115
|
-
*
|
|
116
|
-
* @generated from protobuf field: optional string search = 21
|
|
117
|
-
*/
|
|
118
|
-
search?: string;
|
|
119
|
-
/**
|
|
120
|
-
* <search_re> is regular expression for line search pattern.
|
|
121
|
-
* This option makes controller to send to the client only lines, that
|
|
122
|
-
* match given regular expression.
|
|
123
|
-
*
|
|
124
|
-
* @generated from protobuf field: optional string search_re = 22
|
|
125
|
-
*/
|
|
126
|
-
searchRe?: string;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
|
|
130
|
-
*/
|
|
131
|
-
export interface StreamingAPI_ReadText {
|
|
132
|
-
/**
|
|
133
|
-
* <resource_id> of Stream resource, that keeps info on item to be streamed.
|
|
62
|
+
* Signature proving the caller is authorized to access this resource.
|
|
134
63
|
*
|
|
135
|
-
* @generated from protobuf field:
|
|
64
|
+
* @generated from protobuf field: optional bytes resource_signature = 3
|
|
136
65
|
*/
|
|
137
|
-
|
|
66
|
+
resourceSignature?: Uint8Array;
|
|
138
67
|
/**
|
|
139
|
-
* <offset> makes streamer
|
|
140
|
-
* This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
|
|
141
|
-
*
|
|
68
|
+
* <offset> makes the streamer perform a seek operation to the given offset before sending the contents.
|
|
69
|
+
* This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.
|
|
70
|
+
* The client can just use the <new_offset> value of the last response from the server to continue streaming after reconnection.
|
|
142
71
|
*
|
|
143
72
|
* @generated from protobuf field: int64 offset = 2
|
|
144
73
|
*/
|
|
145
74
|
offset: bigint;
|
|
146
75
|
/**
|
|
147
|
-
* <read_limit> allows client to limit total data sent from server.
|
|
76
|
+
* <read_limit> allows the client to limit total data sent from the server.
|
|
148
77
|
* Measured in lines of text.
|
|
149
78
|
* E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
|
|
150
79
|
* When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
|
|
151
|
-
*
|
|
152
|
-
* At most 3.9 MiB (3900
|
|
80
|
+
* This is equivalent to 'head -n <read_limit> | grep <search>'.
|
|
81
|
+
* At most 3.9 MiB (3900 KiB) of data is returned in a single read regardless of the <read_limit> option
|
|
153
82
|
* Only full lines of text are returned except for the last line from the completed source
|
|
154
|
-
* (the one that is not expected to have new data, like blob in storage)
|
|
83
|
+
* (the one that is not expected to have new data, like a blob in storage)
|
|
155
84
|
*
|
|
156
85
|
* @generated from protobuf field: optional int64 read_limit = 20
|
|
157
86
|
*/
|
|
158
87
|
readLimit?: bigint;
|
|
159
88
|
/**
|
|
160
|
-
* <search> is substring for line search pattern.
|
|
161
|
-
* This option makes controller
|
|
162
|
-
* have given substring.
|
|
89
|
+
* <search> is a substring for the line search pattern.
|
|
90
|
+
* This option makes the controller send to the client only lines that
|
|
91
|
+
* have the given substring.
|
|
163
92
|
*
|
|
164
93
|
* @generated from protobuf field: optional string search = 21
|
|
165
94
|
*/
|
|
166
95
|
search?: string;
|
|
167
96
|
/**
|
|
168
|
-
* <search_re> is regular expression for line search pattern.
|
|
169
|
-
* This option makes controller
|
|
170
|
-
* match given regular expression.
|
|
97
|
+
* <search_re> is a regular expression for the line search pattern.
|
|
98
|
+
* This option makes the controller send to the client only lines that
|
|
99
|
+
* match the given regular expression.
|
|
171
100
|
*
|
|
172
101
|
* @generated from protobuf field: optional string search_re = 22
|
|
173
102
|
*/
|
|
@@ -178,39 +107,45 @@ export interface StreamingAPI_ReadText {
|
|
|
178
107
|
*/
|
|
179
108
|
export interface StreamingAPI_LastLines {
|
|
180
109
|
/**
|
|
181
|
-
* <resource_id> of Stream resource
|
|
110
|
+
* <resource_id> of Stream resource that keeps info on item to be streamed.
|
|
182
111
|
*
|
|
183
112
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
184
113
|
*/
|
|
185
114
|
resourceId: bigint;
|
|
186
115
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
|
|
116
|
+
* Signature proving the caller is authorized to access this resource.
|
|
117
|
+
*
|
|
118
|
+
* @generated from protobuf field: optional bytes resource_signature = 4
|
|
119
|
+
*/
|
|
120
|
+
resourceSignature?: Uint8Array;
|
|
121
|
+
/**
|
|
122
|
+
* <offset> makes the streamer perform a seek operation to the given offset before sending the contents.
|
|
123
|
+
* This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.
|
|
124
|
+
* By default, LastLines starts reading the data source from the very last byte available in the data stream
|
|
125
|
+
* at the moment of the call, but the client can set the server to start from an earlier position.
|
|
191
126
|
*
|
|
192
127
|
* @generated from protobuf field: optional int64 offset = 2
|
|
193
128
|
*/
|
|
194
129
|
offset?: bigint;
|
|
195
130
|
/**
|
|
196
|
-
* <line_count> makes streamer
|
|
131
|
+
* <line_count> makes the streamer return up to <line_count> lines to the client.
|
|
197
132
|
* Default value: 1
|
|
198
133
|
*
|
|
199
134
|
* @generated from protobuf field: optional int32 line_count = 3
|
|
200
135
|
*/
|
|
201
136
|
lineCount?: number;
|
|
202
137
|
/**
|
|
203
|
-
* <search> is substring for line search pattern.
|
|
204
|
-
* This option makes controller
|
|
205
|
-
* have given substring.
|
|
138
|
+
* <search> is a substring for the line search pattern.
|
|
139
|
+
* This option makes the controller send to the client only lines that
|
|
140
|
+
* have the given substring.
|
|
206
141
|
*
|
|
207
142
|
* @generated from protobuf field: optional string search = 21
|
|
208
143
|
*/
|
|
209
144
|
search?: string;
|
|
210
145
|
/**
|
|
211
|
-
* <search_re> is regular expression for line search pattern.
|
|
212
|
-
* This option makes controller
|
|
213
|
-
* match given regular expression.
|
|
146
|
+
* <search_re> is a regular expression for the line search pattern.
|
|
147
|
+
* This option makes the controller send to the client only lines that
|
|
148
|
+
* match the given regular expression.
|
|
214
149
|
*
|
|
215
150
|
* @generated from protobuf field: optional string search_re = 22
|
|
216
151
|
*/
|
|
@@ -221,16 +156,16 @@ export interface StreamingAPI_LastLines {
|
|
|
221
156
|
*/
|
|
222
157
|
export interface StreamingAPI_Response {
|
|
223
158
|
/**
|
|
224
|
-
* data chunk from item, starting from the <new_offset> of the previous message in the same stream.
|
|
159
|
+
* data chunk from the item, starting from the <new_offset> of the previous message in the same stream.
|
|
225
160
|
*
|
|
226
161
|
* @generated from protobuf field: bytes data = 1
|
|
227
162
|
*/
|
|
228
163
|
data: Uint8Array;
|
|
229
164
|
/**
|
|
230
165
|
* <size> is the actual size of the streamed item at the moment of this message.
|
|
231
|
-
* This might be
|
|
232
|
-
* by
|
|
233
|
-
* This field in combination with <new_offset> shows
|
|
166
|
+
* This might not be the final amount of streamed data, as the stream source can be updated
|
|
167
|
+
* by another independent process (e.g., data is written to a log file).
|
|
168
|
+
* This field in combination with <new_offset> shows how far the client is from the end
|
|
234
169
|
* of the data right now.
|
|
235
170
|
*
|
|
236
171
|
* @generated from protobuf field: uint64 size = 2
|
|
@@ -238,9 +173,9 @@ export interface StreamingAPI_Response {
|
|
|
238
173
|
size: bigint;
|
|
239
174
|
/**
|
|
240
175
|
* <new_offset> is the new offset in bytes from the start of the streamed item,
|
|
241
|
-
* including size of <data> in current response.
|
|
242
|
-
*
|
|
243
|
-
* streaming from the place of last received message
|
|
176
|
+
* including the size of <data> in the current response.
|
|
177
|
+
* A call to the Stream RPC with <offset> = <new_offset> will continue
|
|
178
|
+
* streaming from the place of the last received message
|
|
244
179
|
* (e.g. <offset> = <new_offset> - 1 will repeat the last byte of
|
|
245
180
|
* previously received <data>)
|
|
246
181
|
*
|
|
@@ -287,79 +222,11 @@ class StreamingAPI$Type extends MessageType<StreamingAPI> {
|
|
|
287
222
|
*/
|
|
288
223
|
export const StreamingAPI = new StreamingAPI$Type();
|
|
289
224
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
290
|
-
class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {
|
|
291
|
-
constructor() {
|
|
292
|
-
super("MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary", [
|
|
293
|
-
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
294
|
-
{ no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
295
|
-
{ no: 11, name: "chunk_size", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
296
|
-
{ no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
297
|
-
]);
|
|
298
|
-
}
|
|
299
|
-
create(value?: PartialMessage<StreamingAPI_StreamBinary>): StreamingAPI_StreamBinary {
|
|
300
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
301
|
-
message.resourceId = 0n;
|
|
302
|
-
message.offset = 0n;
|
|
303
|
-
if (value !== undefined)
|
|
304
|
-
reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);
|
|
305
|
-
return message;
|
|
306
|
-
}
|
|
307
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamBinary): StreamingAPI_StreamBinary {
|
|
308
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
309
|
-
while (reader.pos < end) {
|
|
310
|
-
let [fieldNo, wireType] = reader.tag();
|
|
311
|
-
switch (fieldNo) {
|
|
312
|
-
case /* uint64 resource_id */ 1:
|
|
313
|
-
message.resourceId = reader.uint64().toBigInt();
|
|
314
|
-
break;
|
|
315
|
-
case /* int64 offset */ 2:
|
|
316
|
-
message.offset = reader.int64().toBigInt();
|
|
317
|
-
break;
|
|
318
|
-
case /* optional uint32 chunk_size */ 11:
|
|
319
|
-
message.chunkSize = reader.uint32();
|
|
320
|
-
break;
|
|
321
|
-
case /* optional int64 read_limit */ 20:
|
|
322
|
-
message.readLimit = reader.int64().toBigInt();
|
|
323
|
-
break;
|
|
324
|
-
default:
|
|
325
|
-
let u = options.readUnknownField;
|
|
326
|
-
if (u === "throw")
|
|
327
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
328
|
-
let d = reader.skip(wireType);
|
|
329
|
-
if (u !== false)
|
|
330
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
return message;
|
|
334
|
-
}
|
|
335
|
-
internalBinaryWrite(message: StreamingAPI_StreamBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
336
|
-
/* uint64 resource_id = 1; */
|
|
337
|
-
if (message.resourceId !== 0n)
|
|
338
|
-
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
339
|
-
/* int64 offset = 2; */
|
|
340
|
-
if (message.offset !== 0n)
|
|
341
|
-
writer.tag(2, WireType.Varint).int64(message.offset);
|
|
342
|
-
/* optional uint32 chunk_size = 11; */
|
|
343
|
-
if (message.chunkSize !== undefined)
|
|
344
|
-
writer.tag(11, WireType.Varint).uint32(message.chunkSize);
|
|
345
|
-
/* optional int64 read_limit = 20; */
|
|
346
|
-
if (message.readLimit !== undefined)
|
|
347
|
-
writer.tag(20, WireType.Varint).int64(message.readLimit);
|
|
348
|
-
let u = options.writeUnknownFields;
|
|
349
|
-
if (u !== false)
|
|
350
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
351
|
-
return writer;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
|
|
356
|
-
*/
|
|
357
|
-
export const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();
|
|
358
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
359
225
|
class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {
|
|
360
226
|
constructor() {
|
|
361
227
|
super("MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary", [
|
|
362
228
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
229
|
+
{ no: 3, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
363
230
|
{ no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
364
231
|
{ no: 11, name: "chunk_size", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
|
|
365
232
|
]);
|
|
@@ -380,6 +247,9 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
|
|
|
380
247
|
case /* uint64 resource_id */ 1:
|
|
381
248
|
message.resourceId = reader.uint64().toBigInt();
|
|
382
249
|
break;
|
|
250
|
+
case /* optional bytes resource_signature */ 3:
|
|
251
|
+
message.resourceSignature = reader.bytes();
|
|
252
|
+
break;
|
|
383
253
|
case /* int64 offset */ 2:
|
|
384
254
|
message.offset = reader.int64().toBigInt();
|
|
385
255
|
break;
|
|
@@ -404,6 +274,9 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
|
|
|
404
274
|
/* int64 offset = 2; */
|
|
405
275
|
if (message.offset !== 0n)
|
|
406
276
|
writer.tag(2, WireType.Varint).int64(message.offset);
|
|
277
|
+
/* optional bytes resource_signature = 3; */
|
|
278
|
+
if (message.resourceSignature !== undefined)
|
|
279
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
407
280
|
/* optional uint32 chunk_size = 11; */
|
|
408
281
|
if (message.chunkSize !== undefined)
|
|
409
282
|
writer.tag(11, WireType.Varint).uint32(message.chunkSize);
|
|
@@ -418,86 +291,11 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
|
|
|
418
291
|
*/
|
|
419
292
|
export const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();
|
|
420
293
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
421
|
-
class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {
|
|
422
|
-
constructor() {
|
|
423
|
-
super("MiLaboratories.Controller.Shared.StreamingAPI.StreamText", [
|
|
424
|
-
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
425
|
-
{ no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
426
|
-
{ no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
427
|
-
{ no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
428
|
-
{ no: 22, name: "search_re", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
429
|
-
]);
|
|
430
|
-
}
|
|
431
|
-
create(value?: PartialMessage<StreamingAPI_StreamText>): StreamingAPI_StreamText {
|
|
432
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
433
|
-
message.resourceId = 0n;
|
|
434
|
-
message.offset = 0n;
|
|
435
|
-
if (value !== undefined)
|
|
436
|
-
reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);
|
|
437
|
-
return message;
|
|
438
|
-
}
|
|
439
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamText): StreamingAPI_StreamText {
|
|
440
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
441
|
-
while (reader.pos < end) {
|
|
442
|
-
let [fieldNo, wireType] = reader.tag();
|
|
443
|
-
switch (fieldNo) {
|
|
444
|
-
case /* uint64 resource_id */ 1:
|
|
445
|
-
message.resourceId = reader.uint64().toBigInt();
|
|
446
|
-
break;
|
|
447
|
-
case /* int64 offset */ 2:
|
|
448
|
-
message.offset = reader.int64().toBigInt();
|
|
449
|
-
break;
|
|
450
|
-
case /* optional int64 read_limit */ 20:
|
|
451
|
-
message.readLimit = reader.int64().toBigInt();
|
|
452
|
-
break;
|
|
453
|
-
case /* optional string search */ 21:
|
|
454
|
-
message.search = reader.string();
|
|
455
|
-
break;
|
|
456
|
-
case /* optional string search_re */ 22:
|
|
457
|
-
message.searchRe = reader.string();
|
|
458
|
-
break;
|
|
459
|
-
default:
|
|
460
|
-
let u = options.readUnknownField;
|
|
461
|
-
if (u === "throw")
|
|
462
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
463
|
-
let d = reader.skip(wireType);
|
|
464
|
-
if (u !== false)
|
|
465
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
return message;
|
|
469
|
-
}
|
|
470
|
-
internalBinaryWrite(message: StreamingAPI_StreamText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
471
|
-
/* uint64 resource_id = 1; */
|
|
472
|
-
if (message.resourceId !== 0n)
|
|
473
|
-
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
474
|
-
/* int64 offset = 2; */
|
|
475
|
-
if (message.offset !== 0n)
|
|
476
|
-
writer.tag(2, WireType.Varint).int64(message.offset);
|
|
477
|
-
/* optional int64 read_limit = 20; */
|
|
478
|
-
if (message.readLimit !== undefined)
|
|
479
|
-
writer.tag(20, WireType.Varint).int64(message.readLimit);
|
|
480
|
-
/* optional string search = 21; */
|
|
481
|
-
if (message.search !== undefined)
|
|
482
|
-
writer.tag(21, WireType.LengthDelimited).string(message.search);
|
|
483
|
-
/* optional string search_re = 22; */
|
|
484
|
-
if (message.searchRe !== undefined)
|
|
485
|
-
writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
|
|
486
|
-
let u = options.writeUnknownFields;
|
|
487
|
-
if (u !== false)
|
|
488
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
489
|
-
return writer;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
|
|
494
|
-
*/
|
|
495
|
-
export const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();
|
|
496
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
497
294
|
class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
|
|
498
295
|
constructor() {
|
|
499
296
|
super("MiLaboratories.Controller.Shared.StreamingAPI.ReadText", [
|
|
500
297
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
298
|
+
{ no: 3, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
501
299
|
{ no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
502
300
|
{ no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
503
301
|
{ no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -520,6 +318,9 @@ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
|
|
|
520
318
|
case /* uint64 resource_id */ 1:
|
|
521
319
|
message.resourceId = reader.uint64().toBigInt();
|
|
522
320
|
break;
|
|
321
|
+
case /* optional bytes resource_signature */ 3:
|
|
322
|
+
message.resourceSignature = reader.bytes();
|
|
323
|
+
break;
|
|
523
324
|
case /* int64 offset */ 2:
|
|
524
325
|
message.offset = reader.int64().toBigInt();
|
|
525
326
|
break;
|
|
@@ -550,6 +351,9 @@ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
|
|
|
550
351
|
/* int64 offset = 2; */
|
|
551
352
|
if (message.offset !== 0n)
|
|
552
353
|
writer.tag(2, WireType.Varint).int64(message.offset);
|
|
354
|
+
/* optional bytes resource_signature = 3; */
|
|
355
|
+
if (message.resourceSignature !== undefined)
|
|
356
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
553
357
|
/* optional int64 read_limit = 20; */
|
|
554
358
|
if (message.readLimit !== undefined)
|
|
555
359
|
writer.tag(20, WireType.Varint).int64(message.readLimit);
|
|
@@ -574,6 +378,7 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
|
|
|
574
378
|
constructor() {
|
|
575
379
|
super("MiLaboratories.Controller.Shared.StreamingAPI.LastLines", [
|
|
576
380
|
{ no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
381
|
+
{ no: 4, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
577
382
|
{ no: 2, name: "offset", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
578
383
|
{ no: 3, name: "line_count", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
579
384
|
{ no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -595,6 +400,9 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
|
|
|
595
400
|
case /* uint64 resource_id */ 1:
|
|
596
401
|
message.resourceId = reader.uint64().toBigInt();
|
|
597
402
|
break;
|
|
403
|
+
case /* optional bytes resource_signature */ 4:
|
|
404
|
+
message.resourceSignature = reader.bytes();
|
|
405
|
+
break;
|
|
598
406
|
case /* optional int64 offset */ 2:
|
|
599
407
|
message.offset = reader.int64().toBigInt();
|
|
600
408
|
break;
|
|
@@ -628,6 +436,9 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
|
|
|
628
436
|
/* optional int32 line_count = 3; */
|
|
629
437
|
if (message.lineCount !== undefined)
|
|
630
438
|
writer.tag(3, WireType.Varint).int32(message.lineCount);
|
|
439
|
+
/* optional bytes resource_signature = 4; */
|
|
440
|
+
if (message.resourceSignature !== undefined)
|
|
441
|
+
writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
631
442
|
/* optional string search = 21; */
|
|
632
443
|
if (message.search !== undefined)
|
|
633
444
|
writer.tag(21, WireType.LengthDelimited).string(message.search);
|
|
@@ -711,9 +522,7 @@ export const StreamingAPI_Response = new StreamingAPI_Response$Type();
|
|
|
711
522
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
712
523
|
*/
|
|
713
524
|
export const Streaming = new ServiceType("MiLaboratories.Controller.Shared.Streaming", [
|
|
714
|
-
{ name: "StreamBinary", serverStreaming: true, options: { "google.api.http": { post: "/v1/stream/binary", body: "*" } }, I: StreamingAPI_StreamBinary, O: StreamingAPI_Response },
|
|
715
525
|
{ name: "ReadBinary", options: { "google.api.http": { post: "/v1/read/binary", body: "*" } }, I: StreamingAPI_ReadBinary, O: StreamingAPI_Response },
|
|
716
|
-
{ name: "StreamText", serverStreaming: true, options: { "google.api.http": { post: "/v1/stream/text", body: "*" } }, I: StreamingAPI_StreamText, O: StreamingAPI_Response },
|
|
717
526
|
{ name: "ReadText", options: { "google.api.http": { post: "/v1/read/text", body: "*" } }, I: StreamingAPI_ReadText, O: StreamingAPI_Response },
|
|
718
527
|
{ name: "LastLines", options: { "google.api.http": { post: "/v1/last-lines", body: "*" } }, I: StreamingAPI_LastLines, O: StreamingAPI_Response }
|
|
719
528
|
]);
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
6
|
import { Upload } from "./protocol";
|
|
7
|
+
import type { UploadAPI_Reset_Response } from "./protocol";
|
|
8
|
+
import type { UploadAPI_Reset_Request } from "./protocol";
|
|
7
9
|
import type { UploadAPI_Finalize_Response } from "./protocol";
|
|
8
10
|
import type { UploadAPI_Finalize_Request } from "./protocol";
|
|
9
11
|
import type { UploadAPI_UpdateProgress_Response } from "./protocol";
|
|
@@ -17,7 +19,7 @@ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
|
17
19
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
18
20
|
/**
|
|
19
21
|
*
|
|
20
|
-
* Upload provides access to data upload feature, allowing clients to
|
|
22
|
+
* Upload provides access to the data upload feature, allowing clients to upload data to Platforma.
|
|
21
23
|
*
|
|
22
24
|
*
|
|
23
25
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Upload
|
|
@@ -25,7 +27,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
25
27
|
export interface IUploadClient {
|
|
26
28
|
/**
|
|
27
29
|
*
|
|
28
|
-
*
|
|
30
|
+
* Initialize the upload, making the controller do all required preparation steps.
|
|
29
31
|
*
|
|
30
32
|
*
|
|
31
33
|
* @generated from protobuf rpc: Init
|
|
@@ -33,7 +35,7 @@ export interface IUploadClient {
|
|
|
33
35
|
init(input: UploadAPI_Init_Request, options?: RpcOptions): UnaryCall<UploadAPI_Init_Request, UploadAPI_Init_Response>;
|
|
34
36
|
/**
|
|
35
37
|
*
|
|
36
|
-
* GetPartURL provides URL for uploading chunk of the data.
|
|
38
|
+
* GetPartURL provides a URL for uploading a chunk of the data.
|
|
37
39
|
* Clients are expected to put their data directly to the given location.
|
|
38
40
|
*
|
|
39
41
|
*
|
|
@@ -42,7 +44,7 @@ export interface IUploadClient {
|
|
|
42
44
|
getPartURL(input: UploadAPI_GetPartURL_Request, options?: RpcOptions): UnaryCall<UploadAPI_GetPartURL_Request, UploadAPI_GetPartURL_Response>;
|
|
43
45
|
/**
|
|
44
46
|
*
|
|
45
|
-
*
|
|
47
|
+
* Update the progress of the upload, so other clients can see how it is going.
|
|
46
48
|
*
|
|
47
49
|
*
|
|
48
50
|
* @generated from protobuf rpc: UpdateProgress
|
|
@@ -50,18 +52,29 @@ export interface IUploadClient {
|
|
|
50
52
|
updateProgress(input: UploadAPI_UpdateProgress_Request, options?: RpcOptions): UnaryCall<UploadAPI_UpdateProgress_Request, UploadAPI_UpdateProgress_Response>;
|
|
51
53
|
/**
|
|
52
54
|
*
|
|
53
|
-
* Finalize informs Controller that the upload process is done.
|
|
54
|
-
* Returns an error
|
|
55
|
-
* size of the upload given in Init.
|
|
55
|
+
* Finalize informs the Controller that the upload process is done.
|
|
56
|
+
* Returns an error if the total size of all uploaded chunks is not equal to
|
|
57
|
+
* the size of the upload given in Init.
|
|
56
58
|
*
|
|
57
59
|
*
|
|
58
60
|
* @generated from protobuf rpc: Finalize
|
|
59
61
|
*/
|
|
60
62
|
finalize(input: UploadAPI_Finalize_Request, options?: RpcOptions): UnaryCall<UploadAPI_Finalize_Request, UploadAPI_Finalize_Response>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* Reset the current upload progress (remove uploaded parts and so on) to start over.
|
|
66
|
+
* This is useful when a checksum mismatch is detected by the client during upload
|
|
67
|
+
* and the data requires a full re-upload.
|
|
68
|
+
* The server never resets the upload on its own; it is always the client's initiative.
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
* @generated from protobuf rpc: Reset
|
|
72
|
+
*/
|
|
73
|
+
reset(input: UploadAPI_Reset_Request, options?: RpcOptions): UnaryCall<UploadAPI_Reset_Request, UploadAPI_Reset_Response>;
|
|
61
74
|
}
|
|
62
75
|
/**
|
|
63
76
|
*
|
|
64
|
-
* Upload provides access to data upload feature, allowing clients to
|
|
77
|
+
* Upload provides access to the data upload feature, allowing clients to upload data to Platforma.
|
|
65
78
|
*
|
|
66
79
|
*
|
|
67
80
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Upload
|
|
@@ -74,7 +87,7 @@ export class UploadClient implements IUploadClient, ServiceInfo {
|
|
|
74
87
|
}
|
|
75
88
|
/**
|
|
76
89
|
*
|
|
77
|
-
*
|
|
90
|
+
* Initialize the upload, making the controller do all required preparation steps.
|
|
78
91
|
*
|
|
79
92
|
*
|
|
80
93
|
* @generated from protobuf rpc: Init
|
|
@@ -85,7 +98,7 @@ export class UploadClient implements IUploadClient, ServiceInfo {
|
|
|
85
98
|
}
|
|
86
99
|
/**
|
|
87
100
|
*
|
|
88
|
-
* GetPartURL provides URL for uploading chunk of the data.
|
|
101
|
+
* GetPartURL provides a URL for uploading a chunk of the data.
|
|
89
102
|
* Clients are expected to put their data directly to the given location.
|
|
90
103
|
*
|
|
91
104
|
*
|
|
@@ -97,7 +110,7 @@ export class UploadClient implements IUploadClient, ServiceInfo {
|
|
|
97
110
|
}
|
|
98
111
|
/**
|
|
99
112
|
*
|
|
100
|
-
*
|
|
113
|
+
* Update the progress of the upload, so other clients can see how it is going.
|
|
101
114
|
*
|
|
102
115
|
*
|
|
103
116
|
* @generated from protobuf rpc: UpdateProgress
|
|
@@ -108,9 +121,9 @@ export class UploadClient implements IUploadClient, ServiceInfo {
|
|
|
108
121
|
}
|
|
109
122
|
/**
|
|
110
123
|
*
|
|
111
|
-
* Finalize informs Controller that the upload process is done.
|
|
112
|
-
* Returns an error
|
|
113
|
-
* size of the upload given in Init.
|
|
124
|
+
* Finalize informs the Controller that the upload process is done.
|
|
125
|
+
* Returns an error if the total size of all uploaded chunks is not equal to
|
|
126
|
+
* the size of the upload given in Init.
|
|
114
127
|
*
|
|
115
128
|
*
|
|
116
129
|
* @generated from protobuf rpc: Finalize
|
|
@@ -119,4 +132,18 @@ export class UploadClient implements IUploadClient, ServiceInfo {
|
|
|
119
132
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
120
133
|
return stackIntercept<UploadAPI_Finalize_Request, UploadAPI_Finalize_Response>("unary", this._transport, method, opt, input);
|
|
121
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* Reset the current upload progress (remove uploaded parts and so on) to start over.
|
|
138
|
+
* This is useful when a checksum mismatch is detected by the client during upload
|
|
139
|
+
* and the data requires a full re-upload.
|
|
140
|
+
* The server never resets the upload on its own; it is always the client's initiative.
|
|
141
|
+
*
|
|
142
|
+
*
|
|
143
|
+
* @generated from protobuf rpc: Reset
|
|
144
|
+
*/
|
|
145
|
+
reset(input: UploadAPI_Reset_Request, options?: RpcOptions): UnaryCall<UploadAPI_Reset_Request, UploadAPI_Reset_Response> {
|
|
146
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
147
|
+
return stackIntercept<UploadAPI_Reset_Request, UploadAPI_Reset_Response>("unary", this._transport, method, opt, input);
|
|
148
|
+
}
|
|
122
149
|
}
|