@milaboratories/pl-drivers 1.16.1 → 1.16.2
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/clients/constructors.cjs.map +1 -1
- package/dist/clients/constructors.js.map +1 -1
- package/dist/clients/crc32c.cjs.map +1 -1
- package/dist/clients/crc32c.js.map +1 -1
- package/dist/clients/download.cjs +5 -3
- package/dist/clients/download.cjs.map +1 -1
- package/dist/clients/download.d.ts.map +1 -1
- package/dist/clients/download.js +2 -0
- package/dist/clients/download.js.map +1 -1
- package/dist/clients/download_url_cache.cjs +3 -1
- package/dist/clients/download_url_cache.cjs.map +1 -1
- package/dist/clients/download_url_cache.js +2 -1
- package/dist/clients/download_url_cache.js.map +1 -1
- package/dist/clients/logs.cjs +2 -1
- package/dist/clients/logs.cjs.map +1 -1
- package/dist/clients/logs.d.ts.map +1 -1
- package/dist/clients/logs.js +2 -0
- package/dist/clients/logs.js.map +1 -1
- package/dist/clients/ls_api.cjs +1 -1
- package/dist/clients/ls_api.cjs.map +1 -1
- package/dist/clients/ls_api.d.ts.map +1 -1
- package/dist/clients/ls_api.js +1 -0
- package/dist/clients/ls_api.js.map +1 -1
- package/dist/clients/progress.cjs +2 -1
- package/dist/clients/progress.cjs.map +1 -1
- package/dist/clients/progress.d.ts.map +1 -1
- package/dist/clients/progress.js +2 -0
- package/dist/clients/progress.js.map +1 -1
- package/dist/clients/upload.cjs +7 -5
- package/dist/clients/upload.cjs.map +1 -1
- package/dist/clients/upload.d.ts.map +1 -1
- package/dist/clients/upload.js +6 -4
- package/dist/clients/upload.js.map +1 -1
- package/dist/drivers/download_blob/blob_key.cjs +1 -1
- package/dist/drivers/download_blob/blob_key.cjs.map +1 -1
- package/dist/drivers/download_blob/blob_key.js.map +1 -1
- package/dist/drivers/download_blob/download_blob.cjs +17 -6
- package/dist/drivers/download_blob/download_blob.cjs.map +1 -1
- package/dist/drivers/download_blob/download_blob.d.ts.map +1 -1
- package/dist/drivers/download_blob/download_blob.js +11 -0
- package/dist/drivers/download_blob/download_blob.js.map +1 -1
- package/dist/drivers/download_blob/download_blob_task.cjs +9 -3
- package/dist/drivers/download_blob/download_blob_task.cjs.map +1 -1
- package/dist/drivers/download_blob/download_blob_task.js +6 -1
- package/dist/drivers/download_blob/download_blob_task.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/cache.cjs +9 -1
- package/dist/drivers/download_blob/sparse_cache/cache.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/cache.js +8 -0
- package/dist/drivers/download_blob/sparse_cache/cache.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/file.cjs +2 -1
- package/dist/drivers/download_blob/sparse_cache/file.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/file.js +1 -1
- package/dist/drivers/download_blob/sparse_cache/file.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/ranges.cjs +3 -1
- package/dist/drivers/download_blob/sparse_cache/ranges.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/ranges.js +1 -1
- package/dist/drivers/download_blob/sparse_cache/ranges.js.map +1 -1
- package/dist/drivers/download_blob_url/driver.cjs +6 -1
- package/dist/drivers/download_blob_url/driver.cjs.map +1 -1
- package/dist/drivers/download_blob_url/driver.d.ts.map +1 -1
- package/dist/drivers/download_blob_url/driver.js +5 -0
- package/dist/drivers/download_blob_url/driver.js.map +1 -1
- package/dist/drivers/download_blob_url/driver_id.cjs +0 -1
- package/dist/drivers/download_blob_url/driver_id.cjs.map +1 -1
- package/dist/drivers/download_blob_url/driver_id.js.map +1 -1
- package/dist/drivers/download_blob_url/snapshot.cjs +0 -1
- package/dist/drivers/download_blob_url/snapshot.cjs.map +1 -1
- package/dist/drivers/download_blob_url/snapshot.d.ts +1 -2
- package/dist/drivers/download_blob_url/snapshot.d.ts.map +1 -1
- package/dist/drivers/download_blob_url/snapshot.js.map +1 -1
- package/dist/drivers/download_blob_url/task.cjs +14 -6
- package/dist/drivers/download_blob_url/task.cjs.map +1 -1
- package/dist/drivers/download_blob_url/task.d.ts +1 -1
- package/dist/drivers/download_blob_url/task.d.ts.map +1 -1
- package/dist/drivers/download_blob_url/task.js +8 -1
- package/dist/drivers/download_blob_url/task.js.map +1 -1
- package/dist/drivers/download_url/driver.cjs +41 -19
- package/dist/drivers/download_url/driver.cjs.map +1 -1
- package/dist/drivers/download_url/driver.d.ts +10 -5
- package/dist/drivers/download_url/driver.d.ts.map +1 -1
- package/dist/drivers/download_url/driver.js +40 -18
- package/dist/drivers/download_url/driver.js.map +1 -1
- package/dist/drivers/download_url/task.cjs +39 -23
- package/dist/drivers/download_url/task.cjs.map +1 -1
- package/dist/drivers/download_url/task.d.ts +20 -6
- package/dist/drivers/download_url/task.d.ts.map +1 -1
- package/dist/drivers/download_url/task.js +36 -20
- package/dist/drivers/download_url/task.js.map +1 -1
- package/dist/drivers/helpers/download_local_handle.cjs.map +1 -1
- package/dist/drivers/helpers/download_local_handle.js.map +1 -1
- package/dist/drivers/helpers/download_remote_handle.cjs +0 -1
- package/dist/drivers/helpers/download_remote_handle.cjs.map +1 -1
- package/dist/drivers/helpers/download_remote_handle.js.map +1 -1
- package/dist/drivers/helpers/files_cache.cjs +1 -1
- package/dist/drivers/helpers/files_cache.cjs.map +1 -1
- package/dist/drivers/helpers/files_cache.js +1 -0
- package/dist/drivers/helpers/files_cache.js.map +1 -1
- package/dist/drivers/helpers/helpers.cjs +1 -0
- package/dist/drivers/helpers/helpers.cjs.map +1 -1
- package/dist/drivers/helpers/helpers.d.ts.map +1 -1
- package/dist/drivers/helpers/helpers.js +1 -0
- package/dist/drivers/helpers/helpers.js.map +1 -1
- package/dist/drivers/helpers/logs_handle.cjs +3 -1
- package/dist/drivers/helpers/logs_handle.cjs.map +1 -1
- package/dist/drivers/helpers/logs_handle.js +1 -1
- package/dist/drivers/helpers/logs_handle.js.map +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.cjs.map +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.js.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.cjs +2 -1
- package/dist/drivers/helpers/ls_storage_entry.cjs.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.js +1 -1
- package/dist/drivers/helpers/ls_storage_entry.js.map +1 -1
- package/dist/drivers/helpers/polling_ops.d.ts.map +1 -1
- package/dist/drivers/helpers/read_file.cjs +2 -2
- package/dist/drivers/helpers/read_file.cjs.map +1 -1
- package/dist/drivers/helpers/read_file.js.map +1 -1
- package/dist/drivers/logs.cjs +3 -1
- package/dist/drivers/logs.cjs.map +1 -1
- package/dist/drivers/logs.js +3 -0
- package/dist/drivers/logs.js.map +1 -1
- package/dist/drivers/logs_stream.cjs +8 -1
- package/dist/drivers/logs_stream.cjs.map +1 -1
- package/dist/drivers/logs_stream.d.ts.map +1 -1
- package/dist/drivers/logs_stream.js +8 -0
- package/dist/drivers/logs_stream.js.map +1 -1
- package/dist/drivers/ls.cjs +10 -3
- package/dist/drivers/ls.cjs.map +1 -1
- package/dist/drivers/ls.d.ts.map +1 -1
- package/dist/drivers/ls.js +8 -1
- package/dist/drivers/ls.js.map +1 -1
- package/dist/drivers/types.cjs +10 -1
- package/dist/drivers/types.cjs.map +1 -1
- package/dist/drivers/types.d.ts +3 -4
- package/dist/drivers/types.d.ts.map +1 -1
- package/dist/drivers/types.js +10 -0
- package/dist/drivers/types.js.map +1 -1
- package/dist/drivers/upload.cjs +5 -1
- package/dist/drivers/upload.cjs.map +1 -1
- package/dist/drivers/upload.d.ts.map +1 -1
- package/dist/drivers/upload.js +5 -0
- package/dist/drivers/upload.js.map +1 -1
- package/dist/drivers/upload_task.cjs +6 -1
- package/dist/drivers/upload_task.cjs.map +1 -1
- package/dist/drivers/upload_task.d.ts.map +1 -1
- package/dist/drivers/upload_task.js +5 -0
- package/dist/drivers/upload_task.js.map +1 -1
- package/dist/drivers/urls/url.cjs +1 -1
- package/dist/drivers/urls/url.cjs.map +1 -1
- package/dist/drivers/urls/url.js.map +1 -1
- package/dist/drivers/virtual_storages.cjs +3 -3
- package/dist/drivers/virtual_storages.cjs.map +1 -1
- package/dist/drivers/virtual_storages.d.ts.map +1 -1
- package/dist/drivers/virtual_storages.js.map +1 -1
- package/dist/helpers/download.cjs +1 -1
- package/dist/helpers/download.cjs.map +1 -1
- package/dist/helpers/download.d.ts.map +1 -1
- package/dist/helpers/download.js +1 -0
- package/dist/helpers/download.js.map +1 -1
- package/dist/helpers/download_errors.cjs.map +1 -1
- package/dist/helpers/download_errors.d.ts.map +1 -1
- package/dist/helpers/download_errors.js.map +1 -1
- package/dist/helpers/validate.cjs +1 -1
- package/dist/helpers/validate.cjs.map +1 -1
- package/dist/helpers/validate.d.ts.map +1 -1
- package/dist/helpers/validate.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +4 -2
- 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 +1 -1
- 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 +3 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +1 -0
- 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 +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +7 -3
- 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 +4 -2
- 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 +1 -1
- 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 +1 -0
- 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 +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +7 -3
- 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 +7 -3
- 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 +1 -1
- 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 +3 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +1 -0
- 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 +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +3 -3
- 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 +8 -5
- 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 +1 -1
- 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 +3 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +1 -0
- 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.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +5 -5
- 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 +17 -7
- 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 +1 -1
- 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 +1 -0
- 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 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +7 -7
- 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 +0 -1
- package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.cjs +0 -1
- package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto-rest/downloadapi.d.ts +1 -1
- package/dist/proto-rest/downloadapi.d.ts.map +1 -1
- package/dist/proto-rest/index.d.ts +1 -1
- package/dist/proto-rest/index.d.ts.map +1 -1
- package/dist/proto-rest/progressapi.d.ts +1 -1
- package/dist/proto-rest/progressapi.d.ts.map +1 -1
- package/dist/proto-rest/streamingapi.d.ts +1 -1
- package/dist/proto-rest/streamingapi.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/drivers/download_url/driver.ts +44 -19
- package/src/drivers/download_url/get_local_tgz.test.ts +106 -0
- package/src/drivers/download_url/task.ts +53 -30
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.cjs","names":["MessageType","UnknownFieldHandler","WireType","ServiceType"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI\n */\nexport interface DownloadAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\n */\nexport interface DownloadAPI_GetDownloadURL {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\n */\nexport interface DownloadAPI_GetDownloadURL_Request {\n /**\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: bytes resource_signature = 3\n */\n resourceSignature: Uint8Array;\n /**\n * Pass `true` here if the blob will be downloaded from the internal network,\n * e.g. controllers could use this if they are trying to download something from the internal network.\n * For backward compatibility, by default pl treats all requests as from the external network.\n *\n * @generated from protobuf field: bool is_internal_use = 2\n */\n isInternalUse: boolean;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\n */\nexport interface DownloadAPI_GetDownloadURL_HTTPHeader {\n /**\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * @generated from protobuf field: string value = 2\n */\n value: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\n */\nexport interface DownloadAPI_GetDownloadURL_Response {\n /**\n * @generated from protobuf field: string download_url = 1\n */\n downloadUrl: string;\n /**\n * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2\n */\n headers: DownloadAPI_GetDownloadURL_HTTPHeader[];\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI$Type extends MessageType<DownloadAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI\", []);\n }\n create(value?: PartialMessage<DownloadAPI>): DownloadAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI): DownloadAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI\n */\nexport const DownloadAPI = new DownloadAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL$Type extends MessageType<DownloadAPI_GetDownloadURL> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\", []);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL>): DownloadAPI_GetDownloadURL {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL): DownloadAPI_GetDownloadURL {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\n */\nexport const DownloadAPI_GetDownloadURL = new DownloadAPI_GetDownloadURL$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_Request$Type extends MessageType<DownloadAPI_GetDownloadURL_Request> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"is_internal_use\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Request>): DownloadAPI_GetDownloadURL_Request {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.resourceSignature = new Uint8Array(0);\n message.isInternalUse = false;\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_Request>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Request): DownloadAPI_GetDownloadURL_Request {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* bool is_internal_use */ 2:\n message.isInternalUse = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* bool is_internal_use = 2; */\n if (message.isInternalUse !== false)\n writer.tag(2, WireType.Varint).bool(message.isInternalUse);\n /* bytes resource_signature = 3; */\n if (message.resourceSignature.length)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\n */\nexport const DownloadAPI_GetDownloadURL_Request = new DownloadAPI_GetDownloadURL_Request$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_HTTPHeader$Type extends MessageType<DownloadAPI_GetDownloadURL_HTTPHeader> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"value\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_HTTPHeader>): DownloadAPI_GetDownloadURL_HTTPHeader {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.value = \"\";\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_HTTPHeader>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_HTTPHeader): DownloadAPI_GetDownloadURL_HTTPHeader {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* string value */ 2:\n message.value = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_HTTPHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* string value = 2; */\n if (message.value !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\n */\nexport const DownloadAPI_GetDownloadURL_HTTPHeader = new DownloadAPI_GetDownloadURL_HTTPHeader$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_Response$Type extends MessageType<DownloadAPI_GetDownloadURL_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\", [\n { no: 1, name: \"download_url\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"headers\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DownloadAPI_GetDownloadURL_HTTPHeader }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Response>): DownloadAPI_GetDownloadURL_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.downloadUrl = \"\";\n message.headers = [];\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Response): DownloadAPI_GetDownloadURL_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string download_url */ 1:\n message.downloadUrl = reader.string();\n break;\n case /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers */ 2:\n message.headers.push(DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryRead(reader, reader.uint32(), options));\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string download_url = 1; */\n if (message.downloadUrl !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.downloadUrl);\n /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2; */\n for (let i = 0; i < message.headers.length; i++)\n DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryWrite(message.headers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\n */\nexport const DownloadAPI_GetDownloadURL_Response = new DownloadAPI_GetDownloadURL_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport const Download = new ServiceType(\"MiLaboratories.Controller.Shared.Download\", [\n { name: \"GetDownloadURL\", options: { \"google.api.http\": { post: \"/v1/get-download-url\", body: \"*\" } }, I: DownloadAPI_GetDownloadURL_Request, O: DownloadAPI_GetDownloadURL_Response }\n]);\n"],"mappings":";;;;AAyEA,IAAM,mBAAN,cAA+BA,qBAAAA,YAAyB;CACpD,cAAc;AACV,QAAM,gDAAgD,EAAE,CAAC;;CAE7D,OAAO,OAAkD;EACrD,MAAM,UAAU,WAAW,OAAO,OAAQ,KAAK,iBAAmB;AAClE,MAAI,UAAU,KAAA,EACV,EAAA,GAAA,qBAAA,wBAAoC,MAAM,SAAS,MAAM;AAC7D,SAAO;;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AAOD,qBAAAA,oBAAoB,UAAU,GAAG,KAAK,UAAU,SAAS,OAAO;AACjF,SAAO;;;;;;AAMf,MAAa,sCAAsC,IAAI,0CAA0C;;;;AAIjG,MAAa,WAAW,IAAIE,yBAAAA,YAAY,6CAA6C,CACjF;CAAE,MAAM;CAAkB,SAAS,EAAE,mBAAmB;EAAE,MAAM;EAAwB,MAAM;EAAK,EAAE;CAAE,GAAG;CAAoC,GAAG;CAAqC,CACzL,CAAC"}
|
|
1
|
+
{"version":3,"file":"protocol.cjs","names":["MessageType","UnknownFieldHandler","WireType","ServiceType"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI\n */\nexport interface DownloadAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\n */\nexport interface DownloadAPI_GetDownloadURL {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\n */\nexport interface DownloadAPI_GetDownloadURL_Request {\n /**\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: bytes resource_signature = 3\n */\n resourceSignature: Uint8Array;\n /**\n * Pass `true` here if the blob will be downloaded from the internal network,\n * e.g. controllers could use this if they are trying to download something from the internal network.\n * For backward compatibility, by default pl treats all requests as from the external network.\n *\n * @generated from protobuf field: bool is_internal_use = 2\n */\n isInternalUse: boolean;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\n */\nexport interface DownloadAPI_GetDownloadURL_HTTPHeader {\n /**\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * @generated from protobuf field: string value = 2\n */\n value: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\n */\nexport interface DownloadAPI_GetDownloadURL_Response {\n /**\n * @generated from protobuf field: string download_url = 1\n */\n downloadUrl: string;\n /**\n * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2\n */\n headers: DownloadAPI_GetDownloadURL_HTTPHeader[];\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI$Type extends MessageType<DownloadAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI\", []);\n }\n create(value?: PartialMessage<DownloadAPI>): DownloadAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI): DownloadAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI\n */\nexport const DownloadAPI = new DownloadAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL$Type extends MessageType<DownloadAPI_GetDownloadURL> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\", []);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL>): DownloadAPI_GetDownloadURL {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL): DownloadAPI_GetDownloadURL {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\n */\nexport const DownloadAPI_GetDownloadURL = new DownloadAPI_GetDownloadURL$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_Request$Type extends MessageType<DownloadAPI_GetDownloadURL_Request> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"is_internal_use\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Request>): DownloadAPI_GetDownloadURL_Request {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.resourceSignature = new Uint8Array(0);\n message.isInternalUse = false;\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_Request>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Request): DownloadAPI_GetDownloadURL_Request {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* bool is_internal_use */ 2:\n message.isInternalUse = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* bool is_internal_use = 2; */\n if (message.isInternalUse !== false)\n writer.tag(2, WireType.Varint).bool(message.isInternalUse);\n /* bytes resource_signature = 3; */\n if (message.resourceSignature.length)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\n */\nexport const DownloadAPI_GetDownloadURL_Request = new DownloadAPI_GetDownloadURL_Request$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_HTTPHeader$Type extends MessageType<DownloadAPI_GetDownloadURL_HTTPHeader> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"value\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_HTTPHeader>): DownloadAPI_GetDownloadURL_HTTPHeader {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.value = \"\";\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_HTTPHeader>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_HTTPHeader): DownloadAPI_GetDownloadURL_HTTPHeader {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* string value */ 2:\n message.value = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_HTTPHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* string value = 2; */\n if (message.value !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\n */\nexport const DownloadAPI_GetDownloadURL_HTTPHeader = new DownloadAPI_GetDownloadURL_HTTPHeader$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_Response$Type extends MessageType<DownloadAPI_GetDownloadURL_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\", [\n { no: 1, name: \"download_url\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"headers\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DownloadAPI_GetDownloadURL_HTTPHeader }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Response>): DownloadAPI_GetDownloadURL_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.downloadUrl = \"\";\n message.headers = [];\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Response): DownloadAPI_GetDownloadURL_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string download_url */ 1:\n message.downloadUrl = reader.string();\n break;\n case /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers */ 2:\n message.headers.push(DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryRead(reader, reader.uint32(), options));\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string download_url = 1; */\n if (message.downloadUrl !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.downloadUrl);\n /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2; */\n for (let i = 0; i < message.headers.length; i++)\n DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryWrite(message.headers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\n */\nexport const DownloadAPI_GetDownloadURL_Response = new DownloadAPI_GetDownloadURL_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport const Download = new ServiceType(\"MiLaboratories.Controller.Shared.Download\", [\n { name: \"GetDownloadURL\", options: { \"google.api.http\": { post: \"/v1/get-download-url\", body: \"*\" } }, I: Downlo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K,QAAQ;KAC5B,IAAI,MAAM,OACN,CAAC,MAAM,OAAOC,qBAAAA,oBAAoB,SAAS,EAAA,CAAG,KAAK,UAAU,SAAS,SAAS,UAAU,CAAC;GACtG;EACJ;EACA,OAAO;CACX;CACA,oBAAoB,SAA8C,QAAuB,SAA4C;EAEjI,IAAI,QAAQ,gBAAgB,IACxB,OAAO,IAAI,GAAGC,qBAAAA,SAAS,eAAe,CAAC,CAAC,OAAO,QAAQ,WAAW;EAEtE,KAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,QAAQ,QAAQ,KACxC,sCAAsC,oBAAoB,QAAQ,QAAQ,IAAI,OAAO,IAAI,GAAGA,qBAAAA,SAAS,eAAe,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,KAAK;EAChJ,IAAI,IAAI,QAAQ;EAChB,IAAI,MAAM,OACN,CAAC,KAAK,OAAOD,qBAAAA,oBAAoB,UAAU,EAAA,CAAG,KAAK,UAAU,SAAS,MAAM;EAChF,OAAO;CACX;AACJ;;;;AAIA,MAAa,sCAAsC,IAAI,yCAAyC;;;;AAIhG,MAAa,WAAW,IAAIE,yBAAAA,YAAY,6CAA6C,CACjF;CAAE,MAAM;CAAkB,SAAS,EAAE,mBAAmB;EAAE,MAAM;EAAwB,MAAM;CAAI,EAAE;CAAG,GAAG;CAAoC,GAAG;AAAoC,CACzL,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../../../../../../../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_protocol = require("./protocol.cjs");
|
|
3
2
|
let _protobuf_ts_runtime_rpc = require("@protobuf-ts/runtime-rpc");
|
|
4
3
|
//#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts
|
|
@@ -10,6 +9,7 @@ let _protobuf_ts_runtime_rpc = require("@protobuf-ts/runtime-rpc");
|
|
|
10
9
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Download
|
|
11
10
|
*/
|
|
12
11
|
var DownloadClient = class {
|
|
12
|
+
_transport;
|
|
13
13
|
typeName = require_protocol.Download.typeName;
|
|
14
14
|
methods = require_protocol.Download.methods;
|
|
15
15
|
options = require_protocol.Download.options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.client.cjs","names":["Download"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Download } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { DownloadAPI_GetDownloadURL_Response } from \"./protocol\";\nimport type { DownloadAPI_GetDownloadURL_Request } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * Download provides access to any data that can be downloaded over the network.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport interface IDownloadClient {\n /**\n * @generated from protobuf rpc: GetDownloadURL\n */\n getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>;\n}\n/**\n *\n * Download provides access to any data that can be downloaded over the network.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport class DownloadClient implements IDownloadClient, ServiceInfo {\n typeName = Download.typeName;\n methods = Download.methods;\n options = Download.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * @generated from protobuf rpc: GetDownloadURL\n */\n getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"protocol.client.cjs","names":["Download"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Download } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { DownloadAPI_GetDownloadURL_Response } from \"./protocol\";\nimport type { DownloadAPI_GetDownloadURL_Request } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * Download provides access to any data that can be downloaded over the network.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport interface IDownloadClient {\n /**\n * @generated from protobuf rpc: GetDownloadURL\n */\n getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>;\n}\n/**\n *\n * Download provides access to any data that can be downloaded over the network.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport class DownloadClient implements IDownloadClient, ServiceInfo {\n typeName = Download.typeName;\n methods = Download.methods;\n options = Download.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * @generated from protobuf rpc: GetDownloadURL\n */\n getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":";;;;;;;;;;AA+BA,IAAa,iBAAb,MAAoE;CAInC;CAH7B,WAAWA,iBAAAA,SAAS;CACpB,UAAUA,iBAAAA,SAAS;CACnB,UAAUA,iBAAAA,SAAS;CACnB,YAAY,YAA2C;EAA1B,KAAA,aAAA;CAC7B;;;;CAIA,eAAe,OAA2C,SAA0G;EAChK,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,OAAO;EAC1E,QAAA,GAAA,yBAAA,eAAA,CAA+F,SAAS,KAAK,YAAY,QAAQ,KAAK,KAAK;CAC/I;AACJ"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response } from "./protocol.js";
|
|
2
|
-
import * as _$_protobuf_ts_runtime_rpc0 from "@protobuf-ts/runtime-rpc";
|
|
3
2
|
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
4
|
-
import * as _$_protobuf_ts_runtime0 from "@protobuf-ts/runtime";
|
|
5
3
|
|
|
6
4
|
//#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts
|
|
7
5
|
/**
|
|
@@ -27,9 +25,9 @@ interface IDownloadClient {
|
|
|
27
25
|
declare class DownloadClient implements IDownloadClient, ServiceInfo {
|
|
28
26
|
private readonly _transport;
|
|
29
27
|
typeName: string;
|
|
30
|
-
methods:
|
|
28
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
31
29
|
options: {
|
|
32
|
-
[extensionName: string]:
|
|
30
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
33
31
|
};
|
|
34
32
|
constructor(_transport: RpcTransport);
|
|
35
33
|
/**
|
|
@@ -38,5 +36,5 @@ declare class DownloadClient implements IDownloadClient, ServiceInfo {
|
|
|
38
36
|
getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>;
|
|
39
37
|
}
|
|
40
38
|
//#endregion
|
|
41
|
-
export { DownloadClient };
|
|
39
|
+
export { DownloadClient, IDownloadClient };
|
|
42
40
|
//# sourceMappingURL=protocol.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.client.d.ts","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"protocol.client.d.ts","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts"],"mappings":";;;;;;;;;;;UAkBiB,eAAA;EAIb;;;EAAA,cAAA,CAAe,KAAA,EAAO,kCAAA,EAAoC,OAAA,GAAU,UAAA,GAAa,SAAA,CAAU,kCAAA,EAAoC,mCAAA;AAAA;;;;;AAAmC;AAStK;;cAAa,cAAA,YAA0B,eAAA,EAAiB,WAAA;EAAA,iBAIvB,UAAA;EAH7B,QAAA;EACA,OAAA,qCAAO,UAAA;EACP,OAAA;IAAA;;cAC6B,UAAA,EAAY,YAAA;EAJW;;;EASpD,cAAA,CAAe,KAAA,EAAO,kCAAA,EAAoC,OAAA,GAAU,UAAA,GAAa,SAAA,CAAU,kCAAA,EAAoC,mCAAA;AAAA"}
|
|
@@ -9,6 +9,7 @@ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
|
9
9
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Download
|
|
10
10
|
*/
|
|
11
11
|
var DownloadClient = class {
|
|
12
|
+
_transport;
|
|
12
13
|
typeName = Download.typeName;
|
|
13
14
|
methods = Download.methods;
|
|
14
15
|
options = Download.options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.client.js","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Download } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { DownloadAPI_GetDownloadURL_Response } from \"./protocol\";\nimport type { DownloadAPI_GetDownloadURL_Request } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * Download provides access to any data that can be downloaded over the network.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport interface IDownloadClient {\n /**\n * @generated from protobuf rpc: GetDownloadURL\n */\n getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>;\n}\n/**\n *\n * Download provides access to any data that can be downloaded over the network.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport class DownloadClient implements IDownloadClient, ServiceInfo {\n typeName = Download.typeName;\n methods = Download.methods;\n options = Download.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * @generated from protobuf rpc: GetDownloadURL\n */\n getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":";;;;;;;;;;AA+BA,IAAa,iBAAb,MAAoE;
|
|
1
|
+
{"version":3,"file":"protocol.client.js","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Download } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { DownloadAPI_GetDownloadURL_Response } from \"./protocol\";\nimport type { DownloadAPI_GetDownloadURL_Request } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * Download provides access to any data that can be downloaded over the network.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport interface IDownloadClient {\n /**\n * @generated from protobuf rpc: GetDownloadURL\n */\n getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>;\n}\n/**\n *\n * Download provides access to any data that can be downloaded over the network.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport class DownloadClient implements IDownloadClient, ServiceInfo {\n typeName = Download.typeName;\n methods = Download.methods;\n options = Download.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * @generated from protobuf rpc: GetDownloadURL\n */\n getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":";;;;;;;;;;AA+BA,IAAa,iBAAb,MAAoE;CAInC;CAH7B,WAAW,SAAS;CACpB,UAAU,SAAS;CACnB,UAAU,SAAS;CACnB,YAAY,YAA2C;EAA1B,KAAA,aAAA;CAC7B;;;;CAIA,eAAe,OAA2C,SAA0G;EAChK,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,OAAO;EAC1E,OAAO,eAAwF,SAAS,KAAK,YAAY,QAAQ,KAAK,KAAK;CAC/I;AACJ"}
|
package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts
CHANGED
|
@@ -82,5 +82,5 @@ declare class DownloadAPI_GetDownloadURL_Response$Type extends MessageType<Downl
|
|
|
82
82
|
*/
|
|
83
83
|
declare const DownloadAPI_GetDownloadURL_Response: DownloadAPI_GetDownloadURL_Response$Type;
|
|
84
84
|
//#endregion
|
|
85
|
-
export { DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response };
|
|
85
|
+
export { DownloadAPI_GetDownloadURL_HTTPHeader, DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response };
|
|
86
86
|
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts"],"mappings":";;;;;AAyDS;AAKT;UApCiB,kCAAA;;;;EAIb,UAAA;EAwCS;;AAAqC;AA6E8B;;EA/G5E,iBAAA,EAAmB,UAAU;EAiHiC;;;;;;;EAzG9D,aAAA;AAAA;;;;UAKa,qCAAA;EAoGgD;;;EAhG7D,IAAA;;;;EAIA,KAAK;AAAA;;;;UAKQ,mCAAA;EAwG6B;;;EApG1C,WAAA;EAoGsF;;;EAhGtF,OAAA,EAAS,qCAAqC;AAAA;AAAA,cA+E5C,uCAAA,SAAgD,WAAA,CAAY,kCAAA;;EAQ9D,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,kCAAA,IAAsC,kCAAA;EASpE,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,kCAAA,GAAqC,kCAAA;EAyBpI,mBAAA,CAAoB,OAAA,EAAS,kCAAA,EAAoC,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cAmB7G,kCAAA,EAAkC,uCAAgD;AAAA,cAEzF,0CAAA,SAAmD,WAAA,CAAY,qCAAA;;EAOjE,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,qCAAA,IAAyC,qCAAA;EAQvE,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,qCAAA,GAAwC,qCAAA;EAsBvI,mBAAA,CAAoB,OAAA,EAAS,qCAAA,EAAuC,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cAgBhH,qCAAA,EAAqC,0CAAmD;AAAA,cAE/F,wCAAA,SAAiD,WAAA,CAAY,mCAAA;;EAO/D,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,mCAAA,IAAuC,mCAAA;EAQrE,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,mCAAA,GAAsC,mCAAA;EAsBrI,mBAAA,CAAoB,OAAA,EAAS,mCAAA,EAAqC,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cAgB9G,mCAAA,EAAmC,wCAAiD"}
|
package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js
CHANGED
|
@@ -88,7 +88,7 @@ var DownloadAPI_GetDownloadURL_Request$Type = class extends MessageType {
|
|
|
88
88
|
create(value) {
|
|
89
89
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
90
90
|
message.resourceId = 0n;
|
|
91
|
-
message.resourceSignature = new Uint8Array(0);
|
|
91
|
+
message.resourceSignature = /* @__PURE__ */ new Uint8Array(0);
|
|
92
92
|
message.isInternalUse = false;
|
|
93
93
|
if (value !== void 0) reflectionMergePartial(this, message, value);
|
|
94
94
|
return message;
|
|
@@ -233,6 +233,10 @@ var DownloadAPI_GetDownloadURL_Response$Type = class extends MessageType {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
/**
|
|
236
|
+
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response
|
|
237
|
+
*/
|
|
238
|
+
const DownloadAPI_GetDownloadURL_Response = new DownloadAPI_GetDownloadURL_Response$Type();
|
|
239
|
+
/**
|
|
236
240
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Download
|
|
237
241
|
*/
|
|
238
242
|
const Download = new ServiceType("MiLaboratories.Controller.Shared.Download", [{
|
|
@@ -242,9 +246,9 @@ const Download = new ServiceType("MiLaboratories.Controller.Shared.Download", [{
|
|
|
242
246
|
body: "*"
|
|
243
247
|
} },
|
|
244
248
|
I: DownloadAPI_GetDownloadURL_Request,
|
|
245
|
-
O:
|
|
249
|
+
O: DownloadAPI_GetDownloadURL_Response
|
|
246
250
|
}]);
|
|
247
251
|
//#endregion
|
|
248
|
-
export { Download };
|
|
252
|
+
export { Download, DownloadAPI_GetDownloadURL_HTTPHeader, DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response };
|
|
249
253
|
|
|
250
254
|
//# sourceMappingURL=protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI\n */\nexport interface DownloadAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\n */\nexport interface DownloadAPI_GetDownloadURL {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\n */\nexport interface DownloadAPI_GetDownloadURL_Request {\n /**\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: bytes resource_signature = 3\n */\n resourceSignature: Uint8Array;\n /**\n * Pass `true` here if the blob will be downloaded from the internal network,\n * e.g. controllers could use this if they are trying to download something from the internal network.\n * For backward compatibility, by default pl treats all requests as from the external network.\n *\n * @generated from protobuf field: bool is_internal_use = 2\n */\n isInternalUse: boolean;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\n */\nexport interface DownloadAPI_GetDownloadURL_HTTPHeader {\n /**\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * @generated from protobuf field: string value = 2\n */\n value: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\n */\nexport interface DownloadAPI_GetDownloadURL_Response {\n /**\n * @generated from protobuf field: string download_url = 1\n */\n downloadUrl: string;\n /**\n * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2\n */\n headers: DownloadAPI_GetDownloadURL_HTTPHeader[];\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI$Type extends MessageType<DownloadAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI\", []);\n }\n create(value?: PartialMessage<DownloadAPI>): DownloadAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI): DownloadAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI\n */\nexport const DownloadAPI = new DownloadAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL$Type extends MessageType<DownloadAPI_GetDownloadURL> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\", []);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL>): DownloadAPI_GetDownloadURL {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL): DownloadAPI_GetDownloadURL {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\n */\nexport const DownloadAPI_GetDownloadURL = new DownloadAPI_GetDownloadURL$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_Request$Type extends MessageType<DownloadAPI_GetDownloadURL_Request> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"is_internal_use\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Request>): DownloadAPI_GetDownloadURL_Request {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.resourceSignature = new Uint8Array(0);\n message.isInternalUse = false;\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_Request>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Request): DownloadAPI_GetDownloadURL_Request {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* bool is_internal_use */ 2:\n message.isInternalUse = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* bool is_internal_use = 2; */\n if (message.isInternalUse !== false)\n writer.tag(2, WireType.Varint).bool(message.isInternalUse);\n /* bytes resource_signature = 3; */\n if (message.resourceSignature.length)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\n */\nexport const DownloadAPI_GetDownloadURL_Request = new DownloadAPI_GetDownloadURL_Request$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_HTTPHeader$Type extends MessageType<DownloadAPI_GetDownloadURL_HTTPHeader> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"value\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_HTTPHeader>): DownloadAPI_GetDownloadURL_HTTPHeader {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.value = \"\";\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_HTTPHeader>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_HTTPHeader): DownloadAPI_GetDownloadURL_HTTPHeader {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* string value */ 2:\n message.value = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_HTTPHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* string value = 2; */\n if (message.value !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\n */\nexport const DownloadAPI_GetDownloadURL_HTTPHeader = new DownloadAPI_GetDownloadURL_HTTPHeader$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_Response$Type extends MessageType<DownloadAPI_GetDownloadURL_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\", [\n { no: 1, name: \"download_url\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"headers\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DownloadAPI_GetDownloadURL_HTTPHeader }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Response>): DownloadAPI_GetDownloadURL_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.downloadUrl = \"\";\n message.headers = [];\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Response): DownloadAPI_GetDownloadURL_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string download_url */ 1:\n message.downloadUrl = reader.string();\n break;\n case /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers */ 2:\n message.headers.push(DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryRead(reader, reader.uint32(), options));\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string download_url = 1; */\n if (message.downloadUrl !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.downloadUrl);\n /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2; */\n for (let i = 0; i < message.headers.length; i++)\n DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryWrite(message.headers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\n */\nexport const DownloadAPI_GetDownloadURL_Response = new DownloadAPI_GetDownloadURL_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport const Download = new ServiceType(\"MiLaboratories.Controller.Shared.Download\", [\n { name: \"GetDownloadURL\", options: { \"google.api.http\": { post: \"/v1/get-download-url\", body: \"*\" } }, I: DownloadAPI_GetDownloadURL_Request, O: DownloadAPI_GetDownloadURL_Response }\n]);\n"],"mappings":";;;AAyEA,IAAM,mBAAN,cAA+B,YAAyB;CACpD,cAAc;AACV,QAAM,gDAAgD,EAAE,CAAC;;CAE7D,OAAO,OAAkD;EACrD,MAAM,UAAU,WAAW,OAAO,OAAQ,KAAK,iBAAmB;AAClE,MAAI,UAAU,KAAA,EACV,wBAAoC,MAAM,SAAS,MAAM;AAC7D,SAAO;;CAEX,mBAAmB,QAAuB,QAAgB,SAA4B,QAAmC;EACrH,IAAI,UAAU,UAAU,KAAK,QAAQ,EAAE,MAAM,OAAO,MAAM;AAC1D,SAAO,OAAO,MAAM,KAAK;GACrB,IAAI,CAAC,SAAS,YAAY,OAAO,KAAK;AACtC,WAAQ,SAAR;IACI;KACI,IAAI,IAAI,QAAQ;AAChB,SAAI,MAAM,QACN,OAAM,IAAI,WAAW,MAAM,iBAAiB,QAAQ,cAAc,SAAS,QAAQ,KAAK,WAAW;KACvG,IAAI,IAAI,OAAO,KAAK,SAAS;AAC7B,SAAI,MAAM,MACN,EAAC,MAAM,OAAO,oBAAoB,SAAS,GAAG,KAAK,UAAU,SAAS,SAAS,UAAU,EAAE;;;AAG3G,SAAO;;CAEX,oBAAoB,SAAsB,QAAuB,SAA4C;EACzG,IAAI,IAAI,QAAQ;AAChB,MAAI,MAAM,MACN,EAAC,KAAK,OAAO,oBAAoB,UAAU,GAAG,KAAK,UAAU,SAAS,OAAO;AACjF,SAAO;;;AAMY,IAAI,kBAAkB;AAEjD,IAAM,kCAAN,cAA8C,YAAwC;CAClF,cAAc;AACV,QAAM,+DAA+D,EAAE,CAAC;;CAE5E,OAAO,OAAgF;EACnF,MAAM,UAAU,WAAW,OAAO,OAAQ,KAAK,iBAAmB;AAClE,MAAI,UAAU,KAAA,EACV,wBAAmD,MAAM,SA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AS,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM;EACjJ,IAAI,IAAI,QAAQ;AAChB,MAAI,MAAM,MACN,EAAC,KAAK,OAAO,oBAAoB,UAAU,GAAG,KAAK,UAAU,SAAS,OAAO;AACjF,SAAO;;;;;;AAUf,MAAa,WAAW,IAAI,YAAY,6CAA6C,CACjF;CAAE,MAAM;CAAkB,SAAS,EAAE,mBAAmB;EAAE,MAAM;EAAwB,MAAM;EAAK,EAAE;CAAE,GAAG;CAAoC,GAL/F,IAAI,0CAA0C;CAKyF,CACzL,CAAC"}
|
|
1
|
+
{"version":3,"file":"protocol.js","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI\n */\nexport interface DownloadAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\n */\nexport interface DownloadAPI_GetDownloadURL {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\n */\nexport interface DownloadAPI_GetDownloadURL_Request {\n /**\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: bytes resource_signature = 3\n */\n resourceSignature: Uint8Array;\n /**\n * Pass `true` here if the blob will be downloaded from the internal network,\n * e.g. controllers could use this if they are trying to download something from the internal network.\n * For backward compatibility, by default pl treats all requests as from the external network.\n *\n * @generated from protobuf field: bool is_internal_use = 2\n */\n isInternalUse: boolean;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\n */\nexport interface DownloadAPI_GetDownloadURL_HTTPHeader {\n /**\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * @generated from protobuf field: string value = 2\n */\n value: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\n */\nexport interface DownloadAPI_GetDownloadURL_Response {\n /**\n * @generated from protobuf field: string download_url = 1\n */\n downloadUrl: string;\n /**\n * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2\n */\n headers: DownloadAPI_GetDownloadURL_HTTPHeader[];\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI$Type extends MessageType<DownloadAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI\", []);\n }\n create(value?: PartialMessage<DownloadAPI>): DownloadAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI): DownloadAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI\n */\nexport const DownloadAPI = new DownloadAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL$Type extends MessageType<DownloadAPI_GetDownloadURL> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\", []);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL>): DownloadAPI_GetDownloadURL {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL): DownloadAPI_GetDownloadURL {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL\n */\nexport const DownloadAPI_GetDownloadURL = new DownloadAPI_GetDownloadURL$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_Request$Type extends MessageType<DownloadAPI_GetDownloadURL_Request> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"is_internal_use\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Request>): DownloadAPI_GetDownloadURL_Request {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.resourceSignature = new Uint8Array(0);\n message.isInternalUse = false;\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_Request>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Request): DownloadAPI_GetDownloadURL_Request {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* bool is_internal_use */ 2:\n message.isInternalUse = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* bool is_internal_use = 2; */\n if (message.isInternalUse !== false)\n writer.tag(2, WireType.Varint).bool(message.isInternalUse);\n /* bytes resource_signature = 3; */\n if (message.resourceSignature.length)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request\n */\nexport const DownloadAPI_GetDownloadURL_Request = new DownloadAPI_GetDownloadURL_Request$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_HTTPHeader$Type extends MessageType<DownloadAPI_GetDownloadURL_HTTPHeader> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"value\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_HTTPHeader>): DownloadAPI_GetDownloadURL_HTTPHeader {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.value = \"\";\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_HTTPHeader>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_HTTPHeader): DownloadAPI_GetDownloadURL_HTTPHeader {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* string value */ 2:\n message.value = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_HTTPHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* string value = 2; */\n if (message.value !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader\n */\nexport const DownloadAPI_GetDownloadURL_HTTPHeader = new DownloadAPI_GetDownloadURL_HTTPHeader$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DownloadAPI_GetDownloadURL_Response$Type extends MessageType<DownloadAPI_GetDownloadURL_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\", [\n { no: 1, name: \"download_url\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"headers\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DownloadAPI_GetDownloadURL_HTTPHeader }\n ]);\n }\n create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Response>): DownloadAPI_GetDownloadURL_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.downloadUrl = \"\";\n message.headers = [];\n if (value !== undefined)\n reflectionMergePartial<DownloadAPI_GetDownloadURL_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadAPI_GetDownloadURL_Response): DownloadAPI_GetDownloadURL_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string download_url */ 1:\n message.downloadUrl = reader.string();\n break;\n case /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers */ 2:\n message.headers.push(DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryRead(reader, reader.uint32(), options));\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: DownloadAPI_GetDownloadURL_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string download_url = 1; */\n if (message.downloadUrl !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.downloadUrl);\n /* repeated MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader headers = 2; */\n for (let i = 0; i < message.headers.length; i++)\n DownloadAPI_GetDownloadURL_HTTPHeader.internalBinaryWrite(message.headers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response\n */\nexport const DownloadAPI_GetDownloadURL_Response = new DownloadAPI_GetDownloadURL_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Download\n */\nexport const Download = new ServiceType(\"MiLaboratories.Controller.Shared.Download\", [\n { name: \"GetDownloadURL\", options: { \"google.api.http\": { post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,WAAW;EAEtE,KAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,QAAQ,QAAQ,KACxC,sCAAsC,oBAAoB,QAAQ,QAAQ,IAAI,OAAO,IAAI,GAAG,SAAS,eAAe,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,KAAK;EAChJ,IAAI,IAAI,QAAQ;EAChB,IAAI,MAAM,OACN,CAAC,KAAK,OAAO,oBAAoB,UAAU,EAAA,CAAG,KAAK,UAAU,SAAS,MAAM;EAChF,OAAO;CACX;AACJ;;;;AAIA,MAAa,sCAAsC,IAAI,yCAAyC;;;;AAIhG,MAAa,WAAW,IAAI,YAAY,6CAA6C,CACjF;CAAE,MAAM;CAAkB,SAAS,EAAE,mBAAmB;EAAE,MAAM;EAAwB,MAAM;CAAI,EAAE;CAAG,GAAG;CAAoC,GAAG;AAAoC,CACzL,CAAC"}
|
package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../../../../../../../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_timestamp = require("../../../../../../../google/protobuf/timestamp.cjs");
|
|
3
2
|
let _protobuf_ts_runtime_rpc = require("@protobuf-ts/runtime-rpc");
|
|
4
3
|
let _protobuf_ts_runtime = require("@protobuf-ts/runtime");
|
|
@@ -232,7 +231,7 @@ var LsAPI_List_Request$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
232
231
|
create(value) {
|
|
233
232
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
234
233
|
message.resourceId = 0n;
|
|
235
|
-
message.resourceSignature = new Uint8Array(0);
|
|
234
|
+
message.resourceSignature = /* @__PURE__ */ new Uint8Array(0);
|
|
236
235
|
message.location = "";
|
|
237
236
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
238
237
|
return message;
|
|
@@ -341,5 +340,8 @@ const LS = new _protobuf_ts_runtime_rpc.ServiceType("MiLaboratories.Controller.S
|
|
|
341
340
|
}]);
|
|
342
341
|
//#endregion
|
|
343
342
|
exports.LS = LS;
|
|
343
|
+
exports.LsAPI_ListItem = LsAPI_ListItem;
|
|
344
|
+
exports.LsAPI_List_Request = LsAPI_List_Request;
|
|
345
|
+
exports.LsAPI_List_Response = LsAPI_List_Response;
|
|
344
346
|
|
|
345
347
|
//# sourceMappingURL=protocol.cjs.map
|
package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.cjs","names":["MessageType","UnknownFieldHandler","Timestamp","WireType","ServiceType"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { Timestamp } from \"../../../../../../../google/protobuf/timestamp\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI\n */\nexport interface LsAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem\n */\nexport interface LsAPI_ListItem {\n /**\n * Name of the item in storage, without any prefixes.\n *\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * Size of the item in bytes.\n * Is always zero for directories (is_dir = true).\n *\n * @generated from protobuf field: uint64 size = 2\n */\n size: bigint;\n /**\n * is_dir is true for an item that can have subitems.\n *\n * @generated from protobuf field: bool is_dir = 3\n */\n isDir: boolean;\n /**\n * additional_info carries the signed identity envelope for federative storages.\n * KV schema: v=1, path, uid, sid, role, exp, kid, signed, sig.\n * Empty for non-federative storages. Verifiers MUST ignore unknown keys.\n *\n * @generated from protobuf field: map<string, string> additional_info = 8\n */\n additionalInfo: {\n [key: string]: string;\n };\n /**\n * full_name is the full name of the item, relative to the storage root.\n * It is <directory> + <name>.\n * The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.\n *\n * @generated from protobuf field: string full_name = 10\n */\n fullName: string;\n /**\n * The directory the item is located in. The value here is always a prefix of name:\n * name.HasPrefix(directory) is always true.\n *\n * @generated from protobuf field: string directory = 11\n */\n directory: string;\n /**\n * last_modified keeps the item's last modification timestamp.\n *\n * @generated from protobuf field: google.protobuf.Timestamp last_modified = 12\n */\n lastModified?: Timestamp;\n /**\n * Version of item in storage.\n * When the storage supports versioning or provides checksums for the data stored,\n * the <version> field keeps that data.\n * If not, it keeps any simple combination of item attributes that helps to\n * detect if the contents of the item have changed, e.g. <size>+<mtime>.\n * Anyway, the client should not try to interpret this field, but should provide it to the Platform\n * in operations with a given item (like BlobImportInternal) to help the Platform with deduplication.\n *\n * @generated from protobuf field: string version = 13\n */\n version: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List\n */\nexport interface LsAPI_List {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request\n */\nexport interface LsAPI_List_Request {\n /**\n * resource_id of 'LS/<Storage>' resource\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: bytes resource_signature = 3\n */\n resourceSignature: Uint8Array;\n /**\n * Location to list, relative to the storage root. Only items that have <full_name> starting\n * with <location> are included in the list response.\n *\n * @generated from protobuf field: string location = 2\n */\n location: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response\n */\nexport interface LsAPI_List_Response {\n /**\n * List of the full (relative to storage root) names of items from storage.\n * E.g., for 'fs' storage each name will consist of names of all directories, where the\n * item is located, and the item name itself.\n * The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.\n *\n * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1\n */\n items: LsAPI_ListItem[];\n /**\n * The delimiter is the path separator used in this storage. The client can use it to parse item names into parts,\n * to extract directory names.\n *\n * @generated from protobuf field: string delimiter = 2\n */\n delimiter: string;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI$Type extends MessageType<LsAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI\", []);\n }\n create(value?: PartialMessage<LsAPI>): LsAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<LsAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI): LsAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: LsAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI\n */\nexport const LsAPI = new LsAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI.ListItem\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"size\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"is_dir\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ },\n { no: 8, name: \"additional_info\", kind: \"map\", K: 9 /*ScalarType.STRING*/, V: { kind: \"scalar\", T: 9 /*ScalarType.STRING*/ } },\n { no: 10, name: \"full_name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 11, name: \"directory\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 12, name: \"last_modified\", kind: \"message\", T: () => Timestamp },\n { no: 13, name: \"version\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<LsAPI_ListItem>): LsAPI_ListItem {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.size = 0n;\n message.isDir = false;\n message.additionalInfo = {};\n message.fullName = \"\";\n message.directory = \"\";\n message.version = \"\";\n if (value !== undefined)\n reflectionMergePartial<LsAPI_ListItem>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_ListItem): LsAPI_ListItem {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* uint64 size */ 2:\n message.size = reader.uint64().toBigInt();\n break;\n case /* bool is_dir */ 3:\n message.isDir = reader.bool();\n break;\n case /* map<string, string> additional_info */ 8:\n this.binaryReadMap8(message.additionalInfo, reader, options);\n break;\n case /* string full_name */ 10:\n message.fullName = reader.string();\n break;\n case /* string directory */ 11:\n message.directory = reader.string();\n break;\n case /* google.protobuf.Timestamp last_modified */ 12:\n message.lastModified = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastModified);\n break;\n case /* string version */ 13:\n message.version = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n private binaryReadMap8(map: LsAPI_ListItem[\"additionalInfo\"], reader: IBinaryReader, options: BinaryReadOptions): void {\n let len = reader.uint32(), end = reader.pos + len, key: keyof LsAPI_ListItem[\"additionalInfo\"] | undefined, val: LsAPI_ListItem[\"additionalInfo\"][any] | undefined;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case 1:\n key = reader.string();\n break;\n case 2:\n val = reader.string();\n break;\n default: throw new globalThis.Error(\"unknown map entry field for MiLaboratories.Controller.Shared.LsAPI.ListItem.additional_info\");\n }\n }\n map[key ?? \"\"] = val ?? \"\";\n }\n internalBinaryWrite(message: LsAPI_ListItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* uint64 size = 2; */\n if (message.size !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.size);\n /* bool is_dir = 3; */\n if (message.isDir !== false)\n writer.tag(3, WireType.Varint).bool(message.isDir);\n /* map<string, string> additional_info = 8; */\n for (let k of globalThis.Object.keys(message.additionalInfo))\n writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.additionalInfo[k]).join();\n /* string full_name = 10; */\n if (message.fullName !== \"\")\n writer.tag(10, WireType.LengthDelimited).string(message.fullName);\n /* string directory = 11; */\n if (message.directory !== \"\")\n writer.tag(11, WireType.LengthDelimited).string(message.directory);\n /* google.protobuf.Timestamp last_modified = 12; */\n if (message.lastModified)\n Timestamp.internalBinaryWrite(message.lastModified, writer.tag(12, WireType.LengthDelimited).fork(), options).join();\n /* string version = 13; */\n if (message.version !== \"\")\n writer.tag(13, WireType.LengthDelimited).string(message.version);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem\n */\nexport const LsAPI_ListItem = new LsAPI_ListItem$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI_List$Type extends MessageType<LsAPI_List> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI.List\", []);\n }\n create(value?: PartialMessage<LsAPI_List>): LsAPI_List {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<LsAPI_List>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List): LsAPI_List {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: LsAPI_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List\n */\nexport const LsAPI_List = new LsAPI_List$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI.List.Request\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"location\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<LsAPI_List_Request>): LsAPI_List_Request {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.resourceSignature = new Uint8Array(0);\n message.location = \"\";\n if (value !== undefined)\n reflectionMergePartial<LsAPI_List_Request>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Request): LsAPI_List_Request {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* string location */ 2:\n message.location = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: LsAPI_List_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* string location = 2; */\n if (message.location !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.location);\n /* bytes resource_signature = 3; */\n if (message.resourceSignature.length)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request\n */\nexport const LsAPI_List_Request = new LsAPI_List_Request$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI.List.Response\", [\n { no: 1, name: \"items\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LsAPI_ListItem },\n { no: 2, name: \"delimiter\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<LsAPI_List_Response>): LsAPI_List_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.items = [];\n message.delimiter = \"\";\n if (value !== undefined)\n reflectionMergePartial<LsAPI_List_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Response): LsAPI_List_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items */ 1:\n message.items.push(LsAPI_ListItem.internalBinaryRead(reader, reader.uint32(), options));\n break;\n case /* string delimiter */ 2:\n message.delimiter = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: LsAPI_List_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1; */\n for (let i = 0; i < message.items.length; i++)\n LsAPI_ListItem.internalBinaryWrite(message.items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* string delimiter = 2; */\n if (message.delimiter !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.delimiter);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response\n */\nexport const LsAPI_List_Response = new LsAPI_List_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.LS\n */\nexport const LS = new ServiceType(\"MiLaboratories.Controller.Shared.LS\", [\n { name: \"List\", options: { \"google.api.http\": { post: \"/v1/list\", body: \"*\" } }, I: LsAPI_List_Request, O: LsAPI_List_Response }\n]);\n"],"mappings":";;;;;AAyIA,IAAM,aAAN,cAAyBA,qBAAAA,YAAmB;CACxC,cAAc;AACV,QAAM,0CAA0C,EAAE,CAAC;;CAEvD,OAAO,OAAsC;EACzC,MAAM,UAAU,WAAW,OAAO,OAAQ,KAAK,iBAAmB;AAClE,MAAI,UAAU,KAAA,EACV,EAAA,GAAA,qBAAA,wBAA8B,MAAM,SAAS,MAAM;AACvD,SAAO;;CAEX,mBAAmB,QAAuB,QAAgB,SAA4B,QAAuB;EACzG,IAAI,UAAU,UAAU,KAAK,QAAQ,EAAE,MAAM,OAAO,MAAM;AAC1D,SAAO,OAAO,MAAM,KAAK;GACrB,IAAI,CAAC,SAAS,YAAY,OAAO,KAAK;AACtC,WAAQ,SAAR;IACI;KACI,IAAI,IAAI,QAAQ;AAChB,SAAI,MAAM,QACN,OAAM,IAAI,WAA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B,QAAQ,cAAc,SAAS,QAAQ,KAAK,WAAW;KACvG,IAAI,IAAI,OAAO,KAAK,SAAS;AAC7B,SAAI,MAAM,MACN,EAAC,MAAM,OAAOC,qBAAAA,oBAAoB,SAAS,GAAG,KAAK,UAAU,SAAS,SAAS,UAAU,EAAE;;;AAG3G,SAAO;;CAEX,oBAAoB,SAA8B,QAAuB,SAA4C;AAEjH,OAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,MAAM,QAAQ,IACtC,gBAAe,oBAAoB,QAAQ,MAAM,IAAI,OAAO,IAAI,GAAGE,qBAAAA,SAAS,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM;AAExH,MAAI,QAAQ,cAAc,GACtB,QAAO,IAAI,GAAGA,qBAAAA,SAAS,gBAAgB,CAAC,OAAO,QAAQ,UAAU;EACrE,IAAI,IAAI,QAAQ;AAChB,MAAI,MAAM,MACN,EAAC,KAAK,OAAOF,qBAAAA,oBAAoB,UAAU,GAAG,KAAK,UAAU,SAAS,OAAO;AACjF,SAAO;;;;;;AAMf,MAAa,sBAAsB,IAAI,0BAA0B;;;;AAIjE,MAAa,KAAK,IAAIG,yBAAAA,YAAY,uCAAuC,CACrE;CAAE,MAAM;CAAQ,SAAS,EAAE,mBAAmB;EAAE,MAAM;EAAY,MAAM;EAAK,EAAE;CAAE,GAAG;CAAoB,GAAG;CAAqB,CACnI,CAAC"}
|
|
1
|
+
{"version":3,"file":"protocol.cjs","names":["MessageType","UnknownFieldHandler","Timestamp","WireType","ServiceType"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { Timestamp } from \"../../../../../../../google/protobuf/timestamp\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI\n */\nexport interface LsAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem\n */\nexport interface LsAPI_ListItem {\n /**\n * Name of the item in storage, without any prefixes.\n *\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * Size of the item in bytes.\n * Is always zero for directories (is_dir = true).\n *\n * @generated from protobuf field: uint64 size = 2\n */\n size: bigint;\n /**\n * is_dir is true for an item that can have subitems.\n *\n * @generated from protobuf field: bool is_dir = 3\n */\n isDir: boolean;\n /**\n * additional_info carries the signed identity envelope for federative storages.\n * KV schema: v=1, path, uid, sid, role, exp, kid, signed, sig.\n * Empty for non-federative storages. Verifiers MUST ignore unknown keys.\n *\n * @generated from protobuf field: map<string, string> additional_info = 8\n */\n additionalInfo: {\n [key: string]: string;\n };\n /**\n * full_name is the full name of the item, relative to the storage root.\n * It is <directory> + <name>.\n * The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.\n *\n * @generated from protobuf field: string full_name = 10\n */\n fullName: string;\n /**\n * The directory the item is located in. The value here is always a prefix of name:\n * name.HasPrefix(directory) is always true.\n *\n * @generated from protobuf field: string directory = 11\n */\n directory: string;\n /**\n * last_modified keeps the item's last modification timestamp.\n *\n * @generated from protobuf field: google.protobuf.Timestamp last_modified = 12\n */\n lastModified?: Timestamp;\n /**\n * Version of item in storage.\n * When the storage supports versioning or provides checksums for the data stored,\n * the <version> field keeps that data.\n * If not, it keeps any simple combination of item attributes that helps to\n * detect if the contents of the item have changed, e.g. <size>+<mtime>.\n * Anyway, the client should not try to interpret this field, but should provide it to the Platform\n * in operations with a given item (like BlobImportInternal) to help the Platform with deduplication.\n *\n * @generated from protobuf field: string version = 13\n */\n version: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List\n */\nexport interface LsAPI_List {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request\n */\nexport interface LsAPI_List_Request {\n /**\n * resource_id of 'LS/<Storage>' resource\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: bytes resource_signature = 3\n */\n resourceSignature: Uint8Array;\n /**\n * Location to list, relative to the storage root. Only items that have <full_name> starting\n * with <location> are included in the list response.\n *\n * @generated from protobuf field: string location = 2\n */\n location: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response\n */\nexport interface LsAPI_List_Response {\n /**\n * List of the full (relative to storage root) names of items from storage.\n * E.g., for 'fs' storage each name will consist of names of all directories, where the\n * item is located, and the item name itself.\n * The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.\n *\n * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1\n */\n items: LsAPI_ListItem[];\n /**\n * The delimiter is the path separator used in this storage. The client can use it to parse item names into parts,\n * to extract directory names.\n *\n * @generated from protobuf field: string delimiter = 2\n */\n delimiter: string;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI$Type extends MessageType<LsAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI\", []);\n }\n create(value?: PartialMessage<LsAPI>): LsAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<LsAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI): LsAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: LsAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI\n */\nexport const LsAPI = new LsAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI.ListItem\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"size\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"is_dir\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ },\n { no: 8, name: \"additional_info\", kind: \"map\", K: 9 /*ScalarType.STRING*/, V: { kind: \"scalar\", T: 9 /*ScalarType.STRING*/ } },\n { no: 10, name: \"full_name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 11, name: \"directory\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 12, name: \"last_modified\", kind: \"message\", T: () => Timestamp },\n { no: 13, name: \"version\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<LsAPI_ListItem>): LsAPI_ListItem {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.size = 0n;\n message.isDir = false;\n message.additionalInfo = {};\n message.fullName = \"\";\n message.directory = \"\";\n message.version = \"\";\n if (value !== undefined)\n reflectionMergePartial<LsAPI_ListItem>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_ListItem): LsAPI_ListItem {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* uint64 size */ 2:\n message.size = reader.uint64().toBigInt();\n break;\n case /* bool is_dir */ 3:\n message.isDir = reader.bool();\n break;\n case /* map<string, string> additional_info */ 8:\n this.binaryReadMap8(message.additionalInfo, reader, options);\n break;\n case /* string full_name */ 10:\n message.fullName = reader.string();\n break;\n case /* string directory */ 11:\n message.directory = reader.string();\n break;\n case /* google.protobuf.Timestamp last_modified */ 12:\n message.lastModified = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastModified);\n break;\n case /* string version */ 13:\n message.version = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n private binaryReadMap8(map: LsAPI_ListItem[\"additionalInfo\"], reader: IBinaryReader, options: BinaryReadOptions): void {\n let len = reader.uint32(), end = reader.pos + len, key: keyof LsAPI_ListItem[\"additionalInfo\"] | undefined, val: LsAPI_ListItem[\"additionalInfo\"][any] | undefined;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case 1:\n key = reader.string();\n break;\n case 2:\n val = reader.string();\n break;\n default: throw new globalThis.Error(\"unknown map entry field for MiLaboratories.Controller.Shared.LsAPI.ListItem.additional_info\");\n }\n }\n map[key ?? \"\"] = val ?? \"\";\n }\n internalBinaryWrite(message: LsAPI_ListItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* uint64 size = 2; */\n if (message.size !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.size);\n /* bool is_dir = 3; */\n if (message.isDir !== false)\n writer.tag(3, WireType.Varint).bool(message.isDir);\n /* map<string, string> additional_info = 8; */\n for (let k of globalThis.Object.keys(message.additionalInfo))\n writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.additionalInfo[k]).join();\n /* string full_name = 10; */\n if (message.fullName !== \"\")\n writer.tag(10, WireType.LengthDelimited).string(message.fullName);\n /* string directory = 11; */\n if (message.directory !== \"\")\n writer.tag(11, WireType.LengthDelimited).string(message.directory);\n /* google.protobuf.Timestamp last_modified = 12; */\n if (message.lastModified)\n Timestamp.internalBinaryWrite(message.lastModified, writer.tag(12, WireType.LengthDelimited).fork(), options).join();\n /* string version = 13; */\n if (message.version !== \"\")\n writer.tag(13, WireType.LengthDelimited).string(message.version);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem\n */\nexport const LsAPI_ListItem = new LsAPI_ListItem$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI_List$Type extends MessageType<LsAPI_List> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI.List\", []);\n }\n create(value?: PartialMessage<LsAPI_List>): LsAPI_List {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<LsAPI_List>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List): LsAPI_List {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: LsAPI_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List\n */\nexport const LsAPI_List = new LsAPI_List$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI.List.Request\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"location\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<LsAPI_List_Request>): LsAPI_List_Request {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.resourceSignature = new Uint8Array(0);\n message.location = \"\";\n if (value !== undefined)\n reflectionMergePartial<LsAPI_List_Request>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Request): LsAPI_List_Request {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* string location */ 2:\n message.location = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: LsAPI_List_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* string location = 2; */\n if (message.location !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.location);\n /* bytes resource_signature = 3; */\n if (message.resourceSignature.length)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request\n */\nexport const LsAPI_List_Request = new LsAPI_List_Request$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.LsAPI.List.Response\", [\n { no: 1, name: \"items\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LsAPI_ListItem },\n { no: 2, name: \"delimiter\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<LsAPI_List_Response>): LsAPI_List_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.items = [];\n message.delimiter = \"\";\n if (value !== undefined)\n reflectionMergePartial<LsAPI_List_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Response): LsAPI_List_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items */ 1:\n message.items.push(LsAPI_ListItem.internalBinaryRead(reader, reader.uint32(), options));\n break;\n case /* string delimiter */ 2:\n message.delimiter = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: LsAPI_List_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1; */\n for (let i = 0; i < message.items.length; i++)\n LsAPI_ListItem.internalBinaryWrite(message.items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* string delimiter = 2; */\n if (message.delimiter !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.delimiter);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response\n */\nexport const LsAPI_List_Response = new LsAPI_List_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.LS\n */\nexport const LS = new ServiceType(\"MiLaboratories.Controller.Shared.LS\", [\n { name: \"List\", options: { \"google.api.http\": { post: \"/v1/list\", body: \"*\" } }, I: LsAPI_List_Request, O: LsAPI_List_Response }\n]);\n"],"mappings":";;;;AA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AAc,IACtB,OAAO,IAAI,GAAGA,qBAAAA,SAAS,eAAe,CAAC,CAAC,OAAO,QAAQ,SAAS;EACpE,IAAI,IAAI,QAAQ;EAChB,IAAI,MAAM,OACN,CAAC,KAAK,OAAOF,qBAAAA,oBAAoB,UAAU,EAAA,CAAG,KAAK,UAAU,SAAS,MAAM;EAChF,OAAO;CACX;AACJ;;;;AAIA,MAAa,sBAAsB,IAAI,yBAAyB;;;;AAIhE,MAAa,KAAK,IAAIG,yBAAAA,YAAY,uCAAuC,CACrE;CAAE,MAAM;CAAQ,SAAS,EAAE,mBAAmB;EAAE,MAAM;EAAY,MAAM;CAAI,EAAE;CAAG,GAAG;CAAoB,GAAG;AAAoB,CACnI,CAAC"}
|
package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../../../../../../../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_protocol = require("./protocol.cjs");
|
|
3
2
|
let _protobuf_ts_runtime_rpc = require("@protobuf-ts/runtime-rpc");
|
|
4
3
|
//#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts
|
|
@@ -13,6 +12,7 @@ let _protobuf_ts_runtime_rpc = require("@protobuf-ts/runtime-rpc");
|
|
|
13
12
|
* @generated from protobuf service MiLaboratories.Controller.Shared.LS
|
|
14
13
|
*/
|
|
15
14
|
var LSClient = class {
|
|
15
|
+
_transport;
|
|
16
16
|
typeName = require_protocol.LS.typeName;
|
|
17
17
|
methods = require_protocol.LS.methods;
|
|
18
18
|
options = require_protocol.LS.options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.client.cjs","names":["LS"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { LS } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { LsAPI_List_Response } from \"./protocol\";\nimport type { LsAPI_List_Request } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * LS provides access to lists of blobs (files, S3 objects and so on) in some storage.\n * This API allows clients to know what items are available in storages that\n * the controllers can access, providing clients with the ability to start indexing,\n * say, existing sequence files from the corporate storage.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.LS\n */\nexport interface ILSClient {\n /**\n * @generated from protobuf rpc: List\n */\n list(input: LsAPI_List_Request, options?: RpcOptions): UnaryCall<LsAPI_List_Request, LsAPI_List_Response>;\n}\n/**\n *\n * LS provides access to lists of blobs (files, S3 objects and so on) in some storage.\n * This API allows clients to know what items are available in storages that\n * the controllers can access, providing clients with the ability to start indexing,\n * say, existing sequence files from the corporate storage.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.LS\n */\nexport class LSClient implements ILSClient, ServiceInfo {\n typeName = LS.typeName;\n methods = LS.methods;\n options = LS.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * @generated from protobuf rpc: List\n */\n list(input: LsAPI_List_Request, options?: RpcOptions): UnaryCall<LsAPI_List_Request, LsAPI_List_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<LsAPI_List_Request, LsAPI_List_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"protocol.client.cjs","names":["LS"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { LS } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { LsAPI_List_Response } from \"./protocol\";\nimport type { LsAPI_List_Request } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * LS provides access to lists of blobs (files, S3 objects and so on) in some storage.\n * This API allows clients to know what items are available in storages that\n * the controllers can access, providing clients with the ability to start indexing,\n * say, existing sequence files from the corporate storage.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.LS\n */\nexport interface ILSClient {\n /**\n * @generated from protobuf rpc: List\n */\n list(input: LsAPI_List_Request, options?: RpcOptions): UnaryCall<LsAPI_List_Request, LsAPI_List_Response>;\n}\n/**\n *\n * LS provides access to lists of blobs (files, S3 objects and so on) in some storage.\n * This API allows clients to know what items are available in storages that\n * the controllers can access, providing clients with the ability to start indexing,\n * say, existing sequence files from the corporate storage.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.LS\n */\nexport class LSClient implements ILSClient, ServiceInfo {\n typeName = LS.typeName;\n methods = LS.methods;\n options = LS.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * @generated from protobuf rpc: List\n */\n list(input: LsAPI_List_Request, options?: RpcOptions): UnaryCall<LsAPI_List_Request, LsAPI_List_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<LsAPI_List_Request, LsAPI_List_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAqCA,IAAa,WAAb,MAAwD;CAIvB;CAH7B,WAAWA,iBAAAA,GAAG;CACd,UAAUA,iBAAAA,GAAG;CACb,UAAUA,iBAAAA,GAAG;CACb,YAAY,YAA2C;EAA1B,KAAA,aAAA;CAC7B;;;;CAIA,KAAK,OAA2B,SAA0E;EACtG,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,OAAO;EAC1E,QAAA,GAAA,yBAAA,eAAA,CAA+D,SAAS,KAAK,YAAY,QAAQ,KAAK,KAAK;CAC/G;AACJ"}
|