@milaboratories/pl-drivers 1.16.15 → 1.16.17

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.
Files changed (77) hide show
  1. package/dist/clients/constructors.d.ts +5 -7
  2. package/dist/clients/constructors.d.ts.map +1 -1
  3. package/dist/clients/download.d.ts +8 -10
  4. package/dist/clients/download.d.ts.map +1 -1
  5. package/dist/clients/logs.d.ts +5 -13
  6. package/dist/clients/logs.d.ts.map +1 -1
  7. package/dist/clients/ls_api.d.ts +1 -3
  8. package/dist/clients/ls_api.d.ts.map +1 -1
  9. package/dist/clients/progress.d.ts +3 -8
  10. package/dist/clients/progress.d.ts.map +1 -1
  11. package/dist/clients/upload.d.ts +8 -16
  12. package/dist/clients/upload.d.ts.map +1 -1
  13. package/dist/drivers/download_blob/download_blob.d.ts +4 -6
  14. package/dist/drivers/download_blob/download_blob.d.ts.map +1 -1
  15. package/dist/drivers/download_blob_url/driver.d.ts +2 -4
  16. package/dist/drivers/download_blob_url/driver.d.ts.map +1 -1
  17. package/dist/drivers/download_blob_url/snapshot.d.ts +3 -5
  18. package/dist/drivers/download_blob_url/snapshot.d.ts.map +1 -1
  19. package/dist/drivers/download_blob_url/task.d.ts +2 -4
  20. package/dist/drivers/download_blob_url/task.d.ts.map +1 -1
  21. package/dist/drivers/download_url/driver.d.ts +6 -7
  22. package/dist/drivers/download_url/driver.d.ts.map +1 -1
  23. package/dist/drivers/download_url/task.d.ts +2 -4
  24. package/dist/drivers/download_url/task.d.ts.map +1 -1
  25. package/dist/drivers/helpers/helpers.d.ts +2 -3
  26. package/dist/drivers/helpers/helpers.d.ts.map +1 -1
  27. package/dist/drivers/helpers/polling_ops.d.ts +4 -3
  28. package/dist/drivers/helpers/polling_ops.d.ts.map +1 -1
  29. package/dist/drivers/logs.d.ts +1 -3
  30. package/dist/drivers/logs.d.ts.map +1 -1
  31. package/dist/drivers/logs_stream.d.ts +4 -5
  32. package/dist/drivers/logs_stream.d.ts.map +1 -1
  33. package/dist/drivers/ls.d.ts +7 -9
  34. package/dist/drivers/ls.d.ts.map +1 -1
  35. package/dist/drivers/types.d.ts +62 -43
  36. package/dist/drivers/types.d.ts.map +1 -1
  37. package/dist/drivers/upload.d.ts +5 -6
  38. package/dist/drivers/upload.d.ts.map +1 -1
  39. package/dist/drivers/upload_task.d.ts +7 -9
  40. package/dist/drivers/upload_task.d.ts.map +1 -1
  41. package/dist/drivers/virtual_storages.d.ts +1 -3
  42. package/dist/drivers/virtual_storages.d.ts.map +1 -1
  43. package/dist/helpers/download.d.ts +2 -3
  44. package/dist/helpers/download.d.ts.map +1 -1
  45. package/dist/helpers/download_errors.d.ts +6 -7
  46. package/dist/helpers/download_errors.d.ts.map +1 -1
  47. package/dist/helpers/validate.d.ts +1 -2
  48. package/dist/helpers/validate.d.ts.map +1 -1
  49. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -4
  50. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  51. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +6 -8
  52. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  53. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +4 -6
  54. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  55. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +2 -4
  56. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  57. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +10 -12
  58. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  59. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +2 -4
  60. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  61. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +8 -10
  62. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  63. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +1 -3
  64. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
  65. package/dist/proto-grpc/google/protobuf/duration.d.ts +2 -4
  66. package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -1
  67. package/dist/proto-grpc/google/protobuf/timestamp.d.ts +2 -4
  68. package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -1
  69. package/dist/proto-rest/downloadapi.d.ts +17 -11
  70. package/dist/proto-rest/downloadapi.d.ts.map +1 -1
  71. package/dist/proto-rest/index.d.ts +4 -5
  72. package/dist/proto-rest/index.d.ts.map +1 -1
  73. package/dist/proto-rest/progressapi.d.ts +29 -17
  74. package/dist/proto-rest/progressapi.d.ts.map +1 -1
  75. package/dist/proto-rest/streamingapi.d.ts +33 -19
  76. package/dist/proto-rest/streamingapi.d.ts.map +1 -1
  77. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"logs_stream.d.ts","names":[],"sources":["../../src/drivers/logs_stream.ts"],"mappings":";;;;;;;;KAqBY,mBAAA,GAAsB,UAAU;EAAhC,qGAEV,kBAAkB;AAAA;AAAA,cAGP,gBAAA,YAA4B,GAAA,CAAI,UAAA;EAAA,iBAWxB,MAAA;EAAA,iBACA,UAAA;EAAA,iBACA,IAAA;;mBAXF,aAAA;EAUc;EAAA,iBAPd,eAAA;EAsB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QAEM,QAAA;EAAA,QAyBN,UAAA;AAAA"}
1
+ {"version":3,"file":"logs_stream.d.ts","names":[],"sources":["../../src/drivers/logs_stream.ts"],"mappings":";;;;;;;YAqBY,sBAAsB;;EAEhC;;qBAGW,4BAA4B,IAAI;mBAWxB;mBACA;mBACA;;mBAXF;;mBAGA;;mBAGA;EAEjB,YACmB,QAAQ,UACR,YAAY,YACZ,OAAM;EAczB,YAAY,KAAK,eAAe,aAAa,gBAAgB;EAC7D,YACE,KAAK,eAAe,aACpB,eACA,KAAK,gBACJ;UAqBK;;;EA0BR,eACE,KAAK,eAAe,aACpB,0BACC;EACH,eACE,KAAK,eAAe,aACpB,yBACA,KAAK;UAuBC;EAwBR,aAAa,KAAK,eAAe,cAAc,WAAW,IAAI;EAC9D,aAAa,KAAK,eAAe,aAAa,KAAK,gBAAgB,IAAI;UAkB/D;EAMF,UACJ,QAAQ,IAAI,cACZ,mBACA,sBACA,iCAA8B,QAAA,IAAA;EAY1B,SACJ,QAAQ,IAAI,cACZ,mBACA,sBACA,iCAA8B,QAAA,IAAA;UAYlB;UAyBA;UAKA;EAKR,cAAU;UAER;UAEA;;UAKA;;UAMA;;EAKK,aAAa;GAOnB,OAAO,iBAAiB;;UAKvB;;UAEA;UAEM;UAyBN"}
@@ -2,13 +2,12 @@ import { LocalStorageProjection, VirtualLocalStorageSpec } from "./types.js";
2
2
  import { PlClient } from "@milaboratories/pl-client";
3
3
  import { MiLogger, Signer } from "@milaboratories/ts-helpers";
4
4
  import * as sdk from "@milaboratories/pl-model-common";
5
-
6
5
  //#region src/drivers/ls.d.ts
7
6
  /**
8
7
  * Extends public and safe SDK's driver API with methods used internally in the middle
9
8
  * layer and in tests.
10
9
  */
11
- interface InternalLsDriver extends sdk.LsDriver {
10
+ export interface InternalLsDriver extends sdk.LsDriver {
12
11
  /**
13
12
  * Given local path, generates well-structured and signed upload handle.
14
13
  * To be used in tests and in implementation of the native file selection UI API.
@@ -16,15 +15,15 @@ interface InternalLsDriver extends sdk.LsDriver {
16
15
  getLocalFileHandle(localPath: string): Promise<sdk.LocalImportFileHandle>;
17
16
  listRemoteFilesWithFileStats(storage: sdk.StorageHandle, fullPath: string): Promise<ListRemoteFilesResultWithFileStats>;
18
17
  }
19
- type ListRemoteFilesResultWithFileStats = {
18
+ export type ListRemoteFilesResultWithFileStats = {
20
19
  parent?: string;
21
20
  entries: LsEntryWithFileStats[];
22
21
  };
23
- type LsEntryWithFileStats = sdk.LsEntry & {
22
+ export type LsEntryWithFileStats = sdk.LsEntry & {
24
23
  size: number;
25
24
  };
26
- type OpenFileDialogCallback = (multipleFiles: boolean, ops?: sdk.OpenDialogOps) => Promise<undefined | string[]>;
27
- declare class LsDriver implements InternalLsDriver {
25
+ export type OpenFileDialogCallback = (multipleFiles: boolean, ops?: sdk.OpenDialogOps) => Promise<undefined | string[]>;
26
+ export declare class LsDriver implements InternalLsDriver {
28
27
  private readonly logger;
29
28
  private readonly lsClient;
30
29
  private readonly userResources;
@@ -53,10 +52,9 @@ declare class LsDriver implements InternalLsDriver {
53
52
  /** Looks up ResourceType for a remote storage from the data libraries index. */
54
53
  private resolveRemoteStorageResourceInfo;
55
54
  fileToImportHandle(_file: sdk.FileLike): Promise<sdk.ImportFileHandle>;
56
- static init(logger: MiLogger, client: PlClient, signer: Signer, /** Pl storages available locally */
57
-
55
+ static init(logger: MiLogger, client: PlClient, signer: Signer,
56
+ /** Pl storages available locally */
58
57
  localProjections: LocalStorageProjection[], openFileDialogCallback: OpenFileDialogCallback, virtualStorages?: VirtualLocalStorageSpec[]): Promise<LsDriver>;
59
58
  }
60
59
  //#endregion
61
- export { InternalLsDriver, ListRemoteFilesResultWithFileStats, LsDriver, LsEntryWithFileStats, OpenFileDialogCallback };
62
60
  //# sourceMappingURL=ls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ls.d.ts","names":[],"sources":["../../src/drivers/ls.ts"],"mappings":";;;;;;;;AA6BA;;UAAiB,gBAAA,SAAyB,GAAA,CAAI,Q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AClB,wBAAwB,wBACxB,kBAAkB,4BACjB,QAAQ"}
@@ -1,10 +1,9 @@
1
1
  import { RangeBytes } from "@milaboratories/pl-model-common";
2
2
  import { InferSnapshot } from "@milaboratories/pl-tree";
3
3
  import { z } from "zod";
4
-
5
4
  //#region src/drivers/types.d.ts
6
5
  /** ResourceSnapshot that can be passed to OnDemandBlob */
7
- declare const OnDemandBlobResourceSnapshot: import("@milaboratories/pl-tree").ResourceSnapshotSchema<undefined, undefined, {
6
+ export declare const OnDemandBlobResourceSnapshot: import("@milaboratories/pl-tree").ResourceSnapshotSchema<undefined, undefined, {
8
7
  readonly "ctl/file/blobInfo": z.ZodObject<{
9
8
  sizeBytes: z.ZodNumber;
10
9
  }, "strip", z.ZodTypeAny, {
@@ -13,27 +12,33 @@ declare const OnDemandBlobResourceSnapshot: import("@milaboratories/pl-tree").Re
13
12
  sizeBytes: number;
14
13
  }>;
15
14
  }>;
16
- type OnDemandBlobResourceSnapshot = InferSnapshot<typeof OnDemandBlobResourceSnapshot>;
17
- declare function getSize(bs: OnDemandBlobResourceSnapshot, range?: RangeBytes): number;
18
- declare const ImportFileHandleUploadData: z.ZodObject<{
19
- /** Local file path, to take data for upload */localPath: z.ZodString; /** Path signature, to check this data was generated by us */
20
- pathSignature: z.ZodString; /** File size in bytes */
21
- sizeBytes: z.ZodString; /** Modification time unix timestamp in seconds */
15
+ export type OnDemandBlobResourceSnapshot = InferSnapshot<typeof OnDemandBlobResourceSnapshot>;
16
+ export declare function getSize(bs: OnDemandBlobResourceSnapshot, range?: RangeBytes): number;
17
+ export declare const ImportFileHandleUploadData: z.ZodObject<{
18
+ /** Local file path, to take data for upload */
19
+ localPath: z.ZodString;
20
+ /** Path signature, to check this data was generated by us */
21
+ pathSignature: z.ZodString;
22
+ /** File size in bytes */
23
+ sizeBytes: z.ZodString;
24
+ /** Modification time unix timestamp in seconds */
22
25
  modificationTime: z.ZodString;
23
26
  }, "strip", z.ZodTypeAny, {
24
- sizeBytes: string;
25
27
  localPath: string;
26
28
  pathSignature: string;
29
+ sizeBytes: string;
27
30
  modificationTime: string;
28
31
  }, {
29
- sizeBytes: string;
30
32
  localPath: string;
31
33
  pathSignature: string;
34
+ sizeBytes: string;
32
35
  modificationTime: string;
33
36
  }>;
34
- type ImportFileHandleUploadData = z.infer<typeof ImportFileHandleUploadData>;
35
- declare const ImportFileHandleIndexData: z.ZodObject<{
36
- /** Pl storage id */storageId: z.ZodString; /** Path inside storage */
37
+ export type ImportFileHandleUploadData = z.infer<typeof ImportFileHandleUploadData>;
38
+ export declare const ImportFileHandleIndexData: z.ZodObject<{
39
+ /** Pl storage id */
40
+ storageId: z.ZodString;
41
+ /** Path inside storage */
37
42
  path: z.ZodString;
38
43
  /**
39
44
  * Federative identity envelope from LsAPI.List.Response.ListItem.additional_info.
@@ -41,32 +46,38 @@ declare const ImportFileHandleIndexData: z.ZodObject<{
41
46
  */
42
47
  additionalInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
43
48
  }, "strip", z.ZodTypeAny, {
44
- path: string;
45
49
  storageId: string;
50
+ path: string;
46
51
  additionalInfo?: Record<string, string> | undefined;
47
52
  }, {
48
- path: string;
49
53
  storageId: string;
54
+ path: string;
50
55
  additionalInfo?: Record<string, string> | undefined;
51
56
  }>;
52
- type ImportFileHandleIndexData = z.infer<typeof ImportFileHandleIndexData>;
53
- declare const ImportFileHandleData: z.ZodUnion<[z.ZodObject<{
54
- /** Local file path, to take data for upload */localPath: z.ZodString; /** Path signature, to check this data was generated by us */
55
- pathSignature: z.ZodString; /** File size in bytes */
56
- sizeBytes: z.ZodString; /** Modification time unix timestamp in seconds */
57
+ export type ImportFileHandleIndexData = z.infer<typeof ImportFileHandleIndexData>;
58
+ export declare const ImportFileHandleData: z.ZodUnion<[z.ZodObject<{
59
+ /** Local file path, to take data for upload */
60
+ localPath: z.ZodString;
61
+ /** Path signature, to check this data was generated by us */
62
+ pathSignature: z.ZodString;
63
+ /** File size in bytes */
64
+ sizeBytes: z.ZodString;
65
+ /** Modification time unix timestamp in seconds */
57
66
  modificationTime: z.ZodString;
58
67
  }, "strip", z.ZodTypeAny, {
59
- sizeBytes: string;
60
68
  localPath: string;
61
69
  pathSignature: string;
70
+ sizeBytes: string;
62
71
  modificationTime: string;
63
72
  }, {
64
- sizeBytes: string;
65
73
  localPath: string;
66
74
  pathSignature: string;
75
+ sizeBytes: string;
67
76
  modificationTime: string;
68
77
  }>, z.ZodObject<{
69
- /** Pl storage id */storageId: z.ZodString; /** Path inside storage */
78
+ /** Pl storage id */
79
+ storageId: z.ZodString;
80
+ /** Path inside storage */
70
81
  path: z.ZodString;
71
82
  /**
72
83
  * Federative identity envelope from LsAPI.List.Response.ListItem.additional_info.
@@ -74,44 +85,49 @@ declare const ImportFileHandleData: z.ZodUnion<[z.ZodObject<{
74
85
  */
75
86
  additionalInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
76
87
  }, "strip", z.ZodTypeAny, {
77
- path: string;
78
88
  storageId: string;
89
+ path: string;
79
90
  additionalInfo?: Record<string, string> | undefined;
80
91
  }, {
81
- path: string;
82
92
  storageId: string;
93
+ path: string;
83
94
  additionalInfo?: Record<string, string> | undefined;
84
95
  }>]>;
85
- type ImportFileHandleData = z.infer<typeof ImportFileHandleData>;
96
+ export type ImportFileHandleData = z.infer<typeof ImportFileHandleData>;
86
97
  /** Options from BlobUpload resource that have to be passed to getProgress. */
87
98
  /** ResourceSnapshot that can be passed to GetProgressID */
88
- declare const UploadResourceSnapshot: import("@milaboratories/pl-tree").ResourceSnapshotSchema<z.ZodObject<{
89
- /** Local file path, to take data for upload */localPath: z.ZodString; /** Path signature, to check this data was generated by us */
90
- pathSignature: z.ZodString; /** File size in bytes */
91
- sizeBytes: z.ZodString; /** Modification time unix timestamp in seconds */
99
+ export declare const UploadResourceSnapshot: import("@milaboratories/pl-tree").ResourceSnapshotSchema<z.ZodObject<{
100
+ /** Local file path, to take data for upload */
101
+ localPath: z.ZodString;
102
+ /** Path signature, to check this data was generated by us */
103
+ pathSignature: z.ZodString;
104
+ /** File size in bytes */
105
+ sizeBytes: z.ZodString;
106
+ /** Modification time unix timestamp in seconds */
92
107
  modificationTime: z.ZodString;
93
108
  }, "strip", z.ZodTypeAny, {
94
- sizeBytes: string;
95
109
  localPath: string;
96
110
  pathSignature: string;
111
+ sizeBytes: string;
97
112
  modificationTime: string;
98
113
  }, {
99
- sizeBytes: string;
100
114
  localPath: string;
101
115
  pathSignature: string;
116
+ sizeBytes: string;
102
117
  modificationTime: string;
103
118
  }>, {
104
119
  readonly blob: false;
105
120
  }, undefined>;
106
- declare const IndexResourceSnapshot: import("@milaboratories/pl-tree").ResourceSnapshotSchema<undefined, {
121
+ export declare const IndexResourceSnapshot: import("@milaboratories/pl-tree").ResourceSnapshotSchema<undefined, {
107
122
  readonly incarnation: false;
108
123
  }, undefined>;
109
- type UploadResourceSnapshot = InferSnapshot<typeof UploadResourceSnapshot>;
110
- type IndexResourceSnapshot = InferSnapshot<typeof IndexResourceSnapshot>;
111
- type ImportResourceSnapshot = UploadResourceSnapshot | IndexResourceSnapshot;
124
+ export type UploadResourceSnapshot = InferSnapshot<typeof UploadResourceSnapshot>;
125
+ export type IndexResourceSnapshot = InferSnapshot<typeof IndexResourceSnapshot>;
126
+ export type ImportResourceSnapshot = UploadResourceSnapshot | IndexResourceSnapshot;
112
127
  /** Defines which storages from pl are available via local paths */
113
- type LocalStorageProjection = {
114
- /** Pl storage id */readonly storageId: string;
128
+ export type LocalStorageProjection = {
129
+ /** Pl storage id */
130
+ readonly storageId: string;
115
131
  /**
116
132
  * Local path, the storage is mounted at.
117
133
  *
@@ -121,12 +137,15 @@ type LocalStorageProjection = {
121
137
  readonly localPath: string;
122
138
  };
123
139
  /** Allows to add parts of local FS as virtual storages, presenting homogeneous API to UI */
124
- type VirtualLocalStorageSpec = {
125
- /** Stable machine identifier, must not intersect with other storage ids */readonly id: string; /** Human-readable display name */
126
- readonly name: string; /** Local path to "chroot" the API in */
127
- readonly root: string; /** Used as hint to UI controls to, set as initial path during browsing */
140
+ export type VirtualLocalStorageSpec = {
141
+ /** Stable machine identifier, must not intersect with other storage ids */
142
+ readonly id: string;
143
+ /** Human-readable display name */
144
+ readonly name: string;
145
+ /** Local path to "chroot" the API in */
146
+ readonly root: string;
147
+ /** Used as hint to UI controls to, set as initial path during browsing */
128
148
  readonly initialPath: string;
129
149
  };
130
150
  //#endregion
131
- export { ImportFileHandleData, ImportFileHandleIndexData, ImportFileHandleUploadData, ImportResourceSnapshot, IndexResourceSnapshot, LocalStorageProjection, OnDemandBlobResourceSnapshot, UploadResourceSnapshot, VirtualLocalStorageSpec, getSize };
132
151
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/drivers/types.ts"],"mappings":";;;;;;cASa,4BAAA,oCAA4B,sBAAA;EAAA;;;;;;;;KAQ7B,4BAAA,GAA+B,aAAa,QAAQ,4BAAA;AAAA,iBAEhD,OAAA,CAAQ,EAAA,EAAI,4BAAA,EAA8B,KAAA,GAAQ,UAAU;AAAA,cAoB/D,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;KAU3B,0BAAA,GAA6B,CAAA,CAAE,KAAK,QAAQ,0BAAA;AAAA,cAE3C,yBAAA,EAAyB,CAAA,CAAA,SAAA;EAhC4B,4CAAU;;EAoB/D;;;;;;;;;;;;;;KAuBD,yBAAA,GAA4B,CAAA,CAAE,KAAK,QAAQ,yBAAA;AAAA,cAE1C,oBAAA,EAAoB,CAAA,CAAA,QAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;8CAfrB;;;;;;;;;;;;;;;;KAmBA,oBAAA,GAAuB,CAAA,CAAE,KAAK,QAAQ,oBAAA;;;cAKrC,sBAAA,oCAAsB,sBAAA,CAAA,CAAA,CAAA,SAAA;yEAtBG;8BAAA;;;;;;;;;;;;;;;;cA6BzB,qBAAA,oCAAqB,sBAAA;EAAA,SAAA,WAAA;AAAA;AAAA,KAMtB,sBAAA,GAAyB,aAAa,QAAQ,sBAAA;AAAA,KAC9C,qBAAA,GAAwB,aAAa,QAAQ,qBAAA;AAAA,KAE7C,sBAAA,GAAyB,sBAAA,GAAyB,qBAAqB;;KAOvE,sBAAA;+BAED,SAAA;;;AApCX;;;;WA4CW,SAAS;AAAA;;KAIR,uBAAA;EAhDoE,oFAkDrE,EAAA,UA7CT;EAAA,SA+CS,IAAA;WAGA,IAAA;WAGA,WAAA;AAAA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/drivers/types.ts"],"mappings":";;;;;qBASa,gEAA4B;;;;;;;;;YAQ7B,+BAA+B,qBAAqB;wBAEhD,QAAQ,IAAI,8BAA8B,QAAQ;qBAoBrD,4BAA0B,EAAA;;;;;;;;;;;;;;;;;;;;YAU3B,6BAA6B,EAAE,aAAa;qBAE3C,2BAAyB,EAAA;;;;;;;;;;;;;;;;;;;YAW1B,4BAA4B,EAAE,aAAa;qBAE1C,sBAAoB,EAAA,UAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAIrB,uBAAuB,EAAE,aAAa;;;qBAKrC,0DAAsB,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;qBAOtB,yDAAqB;WAAA;;YAMtB,yBAAyB,qBAAqB;YAC9C,wBAAwB,qBAAqB;YAE7C,yBAAyB,yBAAyB;;YAOlD;;WAED;;;;;;;WAQA;;;YAIC;;WAED;;WAEA;;WAGA;;WAGA"}
@@ -6,11 +6,11 @@ import { MiLogger, Signer } from "@milaboratories/ts-helpers";
6
6
  import { Computable, ComputableCtx } from "@milaboratories/computable";
7
7
  import * as sdk from "@milaboratories/pl-model-common";
8
8
  import { PlTreeEntry, PlTreeEntryAccessor, PlTreeNodeAccessor } from "@milaboratories/pl-tree";
9
-
10
9
  //#region src/drivers/upload.d.ts
11
- declare function makeBlobImportSnapshot(entryOrAccessor: PlTreeEntry | PlTreeNodeAccessor | PlTreeEntryAccessor, ctx: ComputableCtx): ImportResourceSnapshot;
12
- type UploadDriverOps = PollingOps & {
13
- /** How much parts of a file can be multipart-uploaded to S3 at once. */nConcurrentPartUploads: number;
10
+ export declare function makeBlobImportSnapshot(entryOrAccessor: PlTreeEntry | PlTreeNodeAccessor | PlTreeEntryAccessor, ctx: ComputableCtx): ImportResourceSnapshot;
11
+ export type UploadDriverOps = PollingOps & {
12
+ /** How much parts of a file can be multipart-uploaded to S3 at once. */
13
+ nConcurrentPartUploads: number;
14
14
  /** How much upload/indexing statuses of blobs can the driver ask
15
15
  * from the platform gRPC at once. */
16
16
  nConcurrentGetProgresses: number;
@@ -19,7 +19,7 @@ type UploadDriverOps = PollingOps & {
19
19
  * uploads.
20
20
  * Handles both Index and Upload blobs,
21
21
  * the client needs to pass concrete blobs from `handle` field. */
22
- declare class UploadDriver {
22
+ export declare class UploadDriver {
23
23
  private readonly logger;
24
24
  private readonly signer;
25
25
  private readonly clientBlob;
@@ -55,5 +55,4 @@ declare class UploadDriver {
55
55
  private getAllNotDoneProgresses;
56
56
  }
57
57
  //#endregion
58
- export { UploadDriver, UploadDriverOps, makeBlobImportSnapshot };
59
58
  //# sourceMappingURL=upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/drivers/upload.ts"],"mappings":";;;;;;;;;;iBAsBgB,sBAAA,CACd,eAAA,EAAiB,WAAA,GAAc,kBAAA,GAAqB,mBAAA,EACpD,GAAA,EAAK,aAAA,GACJ,sBAAA;AAAA,KAYS,eAAA,GAAkB,UAAU;EAfF,wEAiBpC,sBAAA;EAhBiB;;EAmBjB,wBAAA;AAAA;;;;;cASW,YAAA;EAAA,iBAQQ,MAAA;EAAA,iBACA,MAAA;EAAA,iBACA,UAAA;EAAA,iBACA,cAAA;EAAA,iBACA,IAAA;EAAA,iBAXF,YAAA;EA3BM;EAAA,iBA8BN,WAAA;EAAA,iBACA,KAAA;cAGE,MAAA,EAAQ,QAAA,EACR,MAAA,EAAQ,MAAA,EACR,UAAA,EAAY,YAAA,EACZ,cAAA,EAAgB,cAAA,EAChB,IAAA,GAAM,eAAA;EA1Ba;EAkDtC,aAAA,CACE,cAAA,EAAgB,sBAAA,GAAyB,WAAA,GACxC,UAAA,CAAW,GAAA,CAAI,cAAA;EAClB,aAAA,CACE,cAAA,EAAgB,sBAAA,GAAyB,WAAA,EACzC,GAAA,EAAK,aAAA,GACJ,GAAA,CAAI,cAAA;EAAA,QAoBC,kBAAA;EAvEgB;EAAA,QA4GV,OAAA;EAnGH;EA4GE,UAAA,IAAU,OAAA;EAAA,QAIf,oBAAA;EAAA,QAEA,mBAAA;EAzGmB;EAAA,QA8GnB,aAAA;EA5G2B;EAAA,QAkH3B,YAAA;EAxFU;EA6FL,SAAA,IAAa,OAAA;EAAA,CAOnB,MAAA,CAAO,YAAA,KAAiB,OAAA;EAnG5B;EAAA,QAwGK,WAAA;EAtGmC;EAAA,QAwGnC,WAAA;EAAA,QAEM,QAAA;EAAA,QAwBN,uBAAA;AAAA"}
1
+ {"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/drivers/upload.ts"],"mappings":";;;;;;;;;wBAsBgB,uBACd,iBAAiB,cAAc,qBAAqB,qBACpD,KAAK,gBACJ;YAYS,kBAAkB;;EAE5B;;;EAGA;;;;;;qBASW;mBAQQ;mBACA;mBACA;mBACA;mBACA;mBAXF;;mBAGA;mBACA;EAEjB,YACmB,QAAQ,UACR,QAAQ,QACR,YAAY,cACZ,gBAAgB,gBAChB,OAAM;;EAwBzB,cACE,gBAAgB,yBAAyB,cACxC,WAAW,IAAI;EAClB,cACE,gBAAgB,yBAAyB,aACzC,KAAK,gBACJ,IAAI;UAoBC;;UAqCM;;EASD,cAAU;UAIf;UAEA;;UAKA;;UAMA;;EAKK,aAAa;GAOnB,OAAO,iBAAiB;;UAKvB;;UAEA;UAEM;UAwBN"}
@@ -5,12 +5,11 @@ import { MiLogger, Signer } from "@milaboratories/ts-helpers";
5
5
  import { Watcher } from "@milaboratories/computable";
6
6
  import * as sdk from "@milaboratories/pl-model-common";
7
7
  import { ResourceInfo } from "@milaboratories/pl-tree";
8
-
9
8
  //#region src/drivers/upload_task.d.ts
10
9
  /** Holds all info needed to upload a file and a status of uploading
11
10
  * and indexing. Also, has a method to update a status of the progress.
12
11
  * And holds a change source. */
13
- declare class UploadTask {
12
+ export declare class UploadTask {
14
13
  private readonly logger;
15
14
  private readonly clientBlob;
16
15
  private readonly clientProgress;
@@ -46,18 +45,17 @@ declare class UploadTask {
46
45
  private isComputableDone;
47
46
  }
48
47
  /** Uploads a blob if it's not BlobIndex. */
49
- declare function uploadBlob(logger: MiLogger, clientBlob: ClientUpload, res: ResourceInfo, uploadData: ImportFileHandleUploadData, isDoneFn: () => boolean, speed: {
48
+ export declare function uploadBlob(logger: MiLogger, clientBlob: ClientUpload, res: ResourceInfo, uploadData: ImportFileHandleUploadData, isDoneFn: () => boolean, speed: {
50
49
  nPartsWithThisUploadSpeed: number;
51
50
  nPartsToIncreaseUpload: number;
52
51
  currentSpeed: number;
53
52
  maxSpeed: number;
54
53
  }): Promise<void>;
55
54
  /** Returns true if we need to upload the blob that got from this progress. */
56
- declare function isMyUpload(p: sdk.ImportProgress): boolean;
57
- declare function isUpload(res: ResourceInfo): boolean;
58
- declare function isSignMatch(signer: Signer, path: string, signature: string): boolean;
59
- declare function isTerminalUploadError(e: any): boolean;
60
- declare function nonRecoverableError(e: any): e is MTimeError | UnexpectedEOF | NoFileForUploading | BadRequestError;
55
+ export declare function isMyUpload(p: sdk.ImportProgress): boolean;
56
+ export declare function isUpload(res: ResourceInfo): boolean;
57
+ export declare function isSignMatch(signer: Signer, path: string, signature: string): boolean;
58
+ export declare function isTerminalUploadError(e: any): boolean;
59
+ export declare function nonRecoverableError(e: any): e is BadRequestError | MTimeError | NoFileForUploading | UnexpectedEOF;
61
60
  //#endregion
62
- export { UploadTask, isMyUpload, isSignMatch, isTerminalUploadError, isUpload, nonRecoverableError, upload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AAA,CAAS,GAAiB,EAAZ,YAAY;AAAA,iBAI1B,WAAA,CAAY,MAAA,EAAQ,MAAM,EAAE,IAAA,UAAc,SAAA;AAAA,iBAkC1C,qBAAA,CAAsB,CAAM;AAAA,iBAY5B,mBAAA,CAAoB,CAAA,QAAM,CAAA,IAAA,UAAA,GAAA,aAAA,GAAA,kBAAA,GAAA,eAAA"}
1
+ {"version":3,"file":"upload_task.d.ts","names":[],"sources":["../../src/drivers/upload_task.ts"],"mappings":";;;;;;;;;;;qBAqBa;mBAmBQ;mBACA;mBACA;mBACA;WAED,KAAK;mBAvBN;mBACA;UACT;UACA;UACA;;UAGA;EACD,UAAU,IAAI;;EAGd;;;UAIC;EAER,YACmB,QAAQ,UACR,YAAY,cACZ,gBAAgB,gBAChB,mCACjB,QAAQ,QACQ,KAAK;EAQhB,YAAY,GAAG,SAAS,mBAAgB,IAAA;EAWxC;;EAKM,kBAAc;EA8Cd,gBAAY;;UA0CjB;;UAKA;EAMD,mBAAmB,KAAK;UAOvB;EAKD,WAAW,GAAG,SAAS;EAKvB,WAAW;UAIV;;;wBAMY,WACpB,QAAQ,UACR,YAAY,cACZ,KAAK,cACL,YAAY,4BACZ,yBACA;EACE;EACA;EACA;EACA;IACD;;wBAgEa,WAAW,GAAG,IAAI;wBAiClB,SAAS,KAAK;wBAId,YAAY,QAAQ,QAAQ,cAAc;wBAkC1C,sBAAsB;wBAYtB,oBAAoB,SAAM,KAAA,kBAAA,aAAA,qBAAA"}
@@ -1,7 +1,5 @@
1
1
  import { VirtualLocalStorageSpec } from "./types.js";
2
-
3
2
  //#region src/drivers/virtual_storages.d.ts
4
- declare function DefaultVirtualLocalStorages(): Promise<VirtualLocalStorageSpec[]>;
3
+ export declare function DefaultVirtualLocalStorages(): Promise<VirtualLocalStorageSpec[]>;
5
4
  //#endregion
6
- export { DefaultVirtualLocalStorages };
7
5
  //# sourceMappingURL=virtual_storages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"virtual_storages.d.ts","names":[],"sources":["../../src/drivers/virtual_storages.ts"],"mappings":";;;iBAMsB,2BAAA,IAA+B,OAAO,CAAC,uBAAA"}
1
+ {"version":3,"file":"virtual_storages.d.ts","names":[],"sources":["../../src/drivers/virtual_storages.ts"],"mappings":";;wBAMsB,+BAA+B,QAAQ"}
@@ -1,15 +1,14 @@
1
1
  import { Dispatcher } from "undici";
2
2
  import { ReadableStream } from "node:stream/web";
3
3
  import { GetContentOptions } from "@milaboratories/pl-model-common";
4
-
5
4
  //#region src/helpers/download.d.ts
6
5
  type ContentHandler$1<T> = (content: ReadableStream, size: number) => Promise<T>;
7
- declare class RemoteFileDownloader {
6
+ export declare class RemoteFileDownloader {
8
7
  readonly httpClient: Dispatcher;
9
8
  private readonly offByOneServers;
10
9
  constructor(httpClient: Dispatcher);
11
10
  withContent<T>(url: string, reqHeaders: Record<string, string>, ops: GetContentOptions, handler: ContentHandler$1<T>): Promise<T>;
12
11
  }
13
12
  //#endregion
14
- export { ContentHandler$1 as ContentHandler, RemoteFileDownloader };
13
+ export { ContentHandler$1 as ContentHandler };
15
14
  //# sourceMappingURL=download.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"download.d.ts","names":[],"sources":["../../src/helpers/download.ts"],"mappings":";;;;;KAWY,gBAAA,OAAqB,OAAA,EAAS,cAAA,EAAgB,IAAA,aAAiB,OAAA,CAAQ,CAAA;AAAA,cAEtE,oBAAA;EAAA,SAGiB,UAAA,EAAY,UAAA;EAAA,iBAFvB,eAAA;cAEW,UAAA,EAAY,UAAA;EAElC,WAAA,IACJ,GAAA,UACA,UAAA,EAAY,MAAA,kBACZ,GAAA,EAAK,iBAAA,EACL,OAAA,EAAS,gBAAA,CAAe,CAAA,IACvB,OAAA,CAAQ,CAAA;AAAA"}
1
+ {"version":3,"file":"download.d.ts","names":[],"sources":["../../src/helpers/download.ts"],"mappings":";;;;KAWY,iBAAe,MAAM,SAAS,gBAAgB,iBAAiB,QAAQ;qBAEtE;WAGiB,YAAY;mBAFvB;EAEjB,YAA4B,YAAY;EAElC,YAAY,GAChB,aACA,YAAY,wBACZ,KAAK,mBACL,SAAS,iBAAe,KACvB,QAAQ"}
@@ -1,26 +1,25 @@
1
1
  //#region src/helpers/download_errors.d.ts
2
- declare class DownloadNetworkError extends Error {
2
+ export declare class DownloadNetworkError extends Error {
3
3
  name: string;
4
4
  statusCode: number;
5
5
  url: string;
6
6
  beginning: string;
7
7
  constructor(statusCode: number, url: string, beginning: string);
8
8
  }
9
- declare function isDownloadNetworkError(error: unknown): error is DownloadNetworkError;
9
+ export declare function isDownloadNetworkError(error: unknown): error is DownloadNetworkError;
10
10
  /** Throws when a status code of the downloading URL was in range [400, 500). */
11
- declare class DownloadNetworkError400 extends DownloadNetworkError {
11
+ export declare class DownloadNetworkError400 extends DownloadNetworkError {
12
12
  name: string;
13
13
  }
14
- declare function isDownloadNetworkError400(error: unknown): error is DownloadNetworkError400;
14
+ export declare function isDownloadNetworkError400(error: unknown): error is DownloadNetworkError400;
15
15
  /**
16
16
  * There are backend versions that return 1 less byte than requested in range.
17
17
  * For such cases, this error will be thrown, so client can retry the request.
18
18
  * Dowloader will retry the request with one more byte in range.
19
19
  */
20
- declare class OffByOneError extends Error {
20
+ export declare class OffByOneError extends Error {
21
21
  name: string;
22
22
  }
23
- declare function isOffByOneError(error: unknown): error is OffByOneError;
23
+ export declare function isOffByOneError(error: unknown): error is OffByOneError;
24
24
  //#endregion
25
- export { DownloadNetworkError, DownloadNetworkError400, OffByOneError, isDownloadNetworkError, isDownloadNetworkError400, isOffByOneError };
26
25
  //# sourceMappingURL=download_errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"download_errors.d.ts","names":[],"sources":["../../src/helpers/download_errors.ts"],"mappings":";cAAa,oBAAA,SAA6B,KAAK;EAC7C,IAAA;EAEA,UAAA;EACA,GAAA;EACA,SAAA;cAEY,UAAA,UAAoB,GAAA,UAAa,SAAA;AAAA;AAAA,iBAU/B,sBAAA,CAAuB,KAAA,YAAiB,KAAA,IAAS,oBAAoB;;cAKxE,uBAAA,SAAgC,oBAAoB;EAC/D,IAAI;AAAA;AAAA,iBAGU,yBAAA,CAA0B,KAAA,YAAiB,KAAA,IAAS,uBAAuB;;;AAnB3B;AAUhE;;cAkBa,aAAA,SAAsB,KAAK;EACtC,IAAI;AAAA;AAAA,iBAGU,eAAA,CAAgB,KAAA,YAAiB,KAAA,IAAS,aAAa"}
1
+ {"version":3,"file":"download_errors.d.ts","names":[],"sources":["../../src/helpers/download_errors.ts"],"mappings":";qBAAa,6BAA6B;EACxC;EAEA;EACA;EACA;EAEA,YAAY,oBAAoB,aAAa;;wBAU/B,uBAAuB,iBAAiB,SAAS;;qBAKpD,gCAAgC;EAC3C;;wBAGc,0BAA0B,iBAAiB,SAAS;;;;;;qBASvD,sBAAsB;EACjC;;wBAGc,gBAAgB,iBAAiB,SAAS"}
@@ -1,5 +1,4 @@
1
1
  //#region src/helpers/validate.d.ts
2
- declare function validateAbsolute(p: string): string;
2
+ export declare function validateAbsolute(p: string): string;
3
3
  //#endregion
4
- export { validateAbsolute };
5
4
  //# sourceMappingURL=validate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","names":[],"sources":["../../src/helpers/validate.ts"],"mappings":";iBAEgB,gBAAA,CAAiB,CAAS"}
1
+ {"version":3,"file":"validate.d.ts","names":[],"sources":["../../src/helpers/validate.ts"],"mappings":";wBAEgB,iBAAiB"}
@@ -1,6 +1,5 @@
1
1
  import { DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response } from "./protocol.js";
2
2
  import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
3
-
4
3
  //#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts
5
4
  /**
6
5
  *
@@ -9,7 +8,7 @@ import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/r
9
8
  *
10
9
  * @generated from protobuf service MiLaboratories.Controller.Shared.Download
11
10
  */
12
- interface IDownloadClient {
11
+ export interface IDownloadClient {
13
12
  /**
14
13
  * @generated from protobuf rpc: GetDownloadURL
15
14
  */
@@ -22,7 +21,7 @@ interface IDownloadClient {
22
21
  *
23
22
  * @generated from protobuf service MiLaboratories.Controller.Shared.Download
24
23
  */
25
- declare class DownloadClient implements IDownloadClient, ServiceInfo {
24
+ export declare class DownloadClient implements IDownloadClient, ServiceInfo {
26
25
  private readonly _transport;
27
26
  typeName: string;
28
27
  methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
@@ -36,5 +35,4 @@ declare class DownloadClient implements IDownloadClient, ServiceInfo {
36
35
  getDownloadURL(input: DownloadAPI_GetDownloadURL_Request, options?: RpcOptions): UnaryCall<DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response>;
37
36
  }
38
37
  //#endregion
39
- export { DownloadClient, IDownloadClient };
40
38
  //# 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":";;;;;;;;;;;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"}
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":";;;;;;;;;;iBAkBiB;;;;EAIb,eAAe,OAAO,oCAAoC,UAAU,aAAa,UAAU,oCAAoC;;;;;;;;;qBAStH,0BAA0B,iBAAiB;mBAIvB;EAH7B;EACA,4CAAO;EACP;;;EACA,YAA6B,YAAY;;;;EAKzC,eAAe,OAAO,oCAAoC,UAAU,aAAa,UAAU,oCAAoC"}
@@ -1,11 +1,10 @@
1
1
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
2
2
  import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, MessageType, PartialMessage } from "@protobuf-ts/runtime";
3
-
4
3
  //#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts
5
4
  /**
6
5
  * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request
7
6
  */
8
- interface DownloadAPI_GetDownloadURL_Request {
7
+ export interface DownloadAPI_GetDownloadURL_Request {
9
8
  /**
10
9
  * @generated from protobuf field: uint64 resource_id = 1
11
10
  */
@@ -28,7 +27,7 @@ interface DownloadAPI_GetDownloadURL_Request {
28
27
  /**
29
28
  * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader
30
29
  */
31
- interface DownloadAPI_GetDownloadURL_HTTPHeader {
30
+ export interface DownloadAPI_GetDownloadURL_HTTPHeader {
32
31
  /**
33
32
  * @generated from protobuf field: string name = 1
34
33
  */
@@ -41,7 +40,7 @@ interface DownloadAPI_GetDownloadURL_HTTPHeader {
41
40
  /**
42
41
  * @generated from protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response
43
42
  */
44
- interface DownloadAPI_GetDownloadURL_Response {
43
+ export interface DownloadAPI_GetDownloadURL_Response {
45
44
  /**
46
45
  * @generated from protobuf field: string download_url = 1
47
46
  */
@@ -60,7 +59,7 @@ declare class DownloadAPI_GetDownloadURL_Request$Type extends MessageType<Downlo
60
59
  /**
61
60
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Request
62
61
  */
63
- declare const DownloadAPI_GetDownloadURL_Request: DownloadAPI_GetDownloadURL_Request$Type;
62
+ export declare const DownloadAPI_GetDownloadURL_Request: DownloadAPI_GetDownloadURL_Request$Type;
64
63
  declare class DownloadAPI_GetDownloadURL_HTTPHeader$Type extends MessageType<DownloadAPI_GetDownloadURL_HTTPHeader> {
65
64
  constructor();
66
65
  create(value?: PartialMessage<DownloadAPI_GetDownloadURL_HTTPHeader>): DownloadAPI_GetDownloadURL_HTTPHeader;
@@ -70,7 +69,7 @@ declare class DownloadAPI_GetDownloadURL_HTTPHeader$Type extends MessageType<Dow
70
69
  /**
71
70
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.HTTPHeader
72
71
  */
73
- declare const DownloadAPI_GetDownloadURL_HTTPHeader: DownloadAPI_GetDownloadURL_HTTPHeader$Type;
72
+ export declare const DownloadAPI_GetDownloadURL_HTTPHeader: DownloadAPI_GetDownloadURL_HTTPHeader$Type;
74
73
  declare class DownloadAPI_GetDownloadURL_Response$Type extends MessageType<DownloadAPI_GetDownloadURL_Response> {
75
74
  constructor();
76
75
  create(value?: PartialMessage<DownloadAPI_GetDownloadURL_Response>): DownloadAPI_GetDownloadURL_Response;
@@ -80,7 +79,6 @@ declare class DownloadAPI_GetDownloadURL_Response$Type extends MessageType<Downl
80
79
  /**
81
80
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.DownloadAPI.GetDownloadURL.Response
82
81
  */
83
- declare const DownloadAPI_GetDownloadURL_Response: DownloadAPI_GetDownloadURL_Response$Type;
82
+ export declare const DownloadAPI_GetDownloadURL_Response: DownloadAPI_GetDownloadURL_Response$Type;
84
83
  //#endregion
85
- export { DownloadAPI_GetDownloadURL_HTTPHeader, DownloadAPI_GetDownloadURL_Request, DownloadAPI_GetDownloadURL_Response };
86
84
  //# 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":";;;;;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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gB9G,qCAAmC"}
@@ -1,12 +1,11 @@
1
1
  import { Timestamp } from "../../../../../../../google/protobuf/timestamp.js";
2
2
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
3
3
  import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, MessageType, PartialMessage } from "@protobuf-ts/runtime";
4
-
5
4
  //#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts
6
5
  /**
7
6
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
8
7
  */
9
- interface LsAPI_ListItem {
8
+ export interface LsAPI_ListItem {
10
9
  /**
11
10
  * Name of the item in storage, without any prefixes.
12
11
  *
@@ -73,7 +72,7 @@ interface LsAPI_ListItem {
73
72
  /**
74
73
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
75
74
  */
76
- interface LsAPI_List_Response {
75
+ export interface LsAPI_List_Response {
77
76
  /**
78
77
  * List of the full (relative to storage root) names of items from storage.
79
78
  * E.g., for 'fs' storage each name will consist of names of all directories, where the
@@ -101,7 +100,7 @@ declare class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
101
100
  /**
102
101
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
103
102
  */
104
- declare const LsAPI_ListItem: LsAPI_ListItem$Type;
103
+ export declare const LsAPI_ListItem: LsAPI_ListItem$Type;
105
104
  declare class LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response> {
106
105
  constructor();
107
106
  create(value?: PartialMessage<LsAPI_List_Response>): LsAPI_List_Response;
@@ -111,7 +110,6 @@ declare class LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response>
111
110
  /**
112
111
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
113
112
  */
114
- declare const LsAPI_List_Response: LsAPI_List_Response$Type;
113
+ export declare const LsAPI_List_Response: LsAPI_List_Response$Type;
115
114
  //#endregion
116
- export { LsAPI_ListItem, LsAPI_List_Response };
117
115
  //# 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/lsapi/protocol.ts"],"mappings":";;;;;;;;UAsBiB,cAAA;EAkDE;;;AAYR;AAkCX;EA1FI,IAAA;;;;;;;EAOA,IAAA;EA4IE;;;;;EAtIF,KAAA;EAmJgD;;;;;;;EA3IhD,cAAA;IAAA,CACK,GAAA;EAAA;EA6HoC;;;;;;;EApHzC,QAAA;EAiIO;;;;;;EA1HP,SAAA;EAuI0D;;;;;EAjI1D,YAAA,GAAe,SAAS;EAyLK;;;;;;;;AAAkF;AAkCnH;;EA/MI,OAAA;AAAA;;;;UAkCa,mBAAA;EAmSkF;;;;;;;;EA1R/F,KAAA,EAAO,cAAc;EAgToD;;;AAA2C;AAgBxH;;EAzTI,SAAA;AAAA;AAAA,cAyCE,mBAAA,SAA4B,WAAA,CAAY,cAAA;;EAa1C,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,cAAA,IAAkB,cAAA;EAahD,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,cAAA,GAAiB,cAAA;EAAA,QAwCxG,cAAA;EAgBR,mBAAA,CAAoB,OAAA,EAAS,cAAA,EAAgB,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cAkCzF,cAAA,EAAc,mBAA4B;AAAA,cAuGjD,wBAAA,SAAiC,WAAA,CAAY,mBAAA;;EAO/C,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,mBAAA,IAAuB,mBAAA;EAQrD,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,mBAAA,GAAsB,mBAAA;EAsBrH,mBAAA,C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