@milaboratories/pl-drivers 1.12.7 → 1.12.8

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 (92) hide show
  1. package/dist/clients/download.cjs +1 -0
  2. package/dist/clients/download.cjs.map +1 -1
  3. package/dist/clients/download.js +1 -0
  4. package/dist/clients/download.js.map +1 -1
  5. package/dist/clients/logs.cjs +2 -0
  6. package/dist/clients/logs.cjs.map +1 -1
  7. package/dist/clients/logs.js +2 -0
  8. package/dist/clients/logs.js.map +1 -1
  9. package/dist/clients/ls_api.cjs +1 -0
  10. package/dist/clients/ls_api.cjs.map +1 -1
  11. package/dist/clients/ls_api.js +1 -0
  12. package/dist/clients/ls_api.js.map +1 -1
  13. package/dist/clients/progress.cjs +4 -1
  14. package/dist/clients/progress.cjs.map +1 -1
  15. package/dist/clients/progress.js +4 -1
  16. package/dist/clients/progress.js.map +1 -1
  17. package/dist/clients/upload.cjs +17 -3
  18. package/dist/clients/upload.cjs.map +1 -1
  19. package/dist/clients/upload.js +17 -3
  20. package/dist/clients/upload.js.map +1 -1
  21. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +28 -16
  22. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +1 -1
  23. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs +1 -1
  24. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +1 -1
  25. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
  26. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +1 -1
  27. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js.map +1 -1
  28. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +11 -5
  29. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +28 -16
  30. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +1 -1
  31. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs +26 -12
  32. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +1 -1
  33. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs +4 -4
  34. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +1 -1
  35. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js +4 -4
  36. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js.map +1 -1
  37. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +16 -16
  38. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +26 -12
  39. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +1 -1
  40. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs +36 -12
  41. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +1 -1
  42. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs +1 -1
  43. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +1 -1
  44. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +2 -2
  45. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +1 -1
  46. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js.map +1 -1
  47. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +8 -0
  48. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +36 -12
  49. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +1 -1
  50. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs +29 -189
  51. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +1 -1
  52. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs +20 -41
  53. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +1 -1
  54. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +36 -66
  55. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +20 -41
  56. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js.map +1 -1
  57. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +52 -137
  58. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +29 -189
  59. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +1 -1
  60. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs +225 -24
  61. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +1 -1
  62. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs +21 -7
  63. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +1 -1
  64. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js +21 -7
  65. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +1 -1
  66. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +225 -24
  67. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -1
  68. package/dist/proto-rest/downloadapi.d.ts +8 -3
  69. package/dist/proto-rest/progressapi.d.ts +4 -2
  70. package/dist/proto-rest/streamingapi.d.ts +64 -203
  71. package/package.json +5 -5
  72. package/src/clients/download.ts +1 -0
  73. package/src/clients/logs.ts +2 -0
  74. package/src/clients/ls_api.ts +1 -0
  75. package/src/clients/progress.ts +1 -1
  76. package/src/clients/upload.ts +14 -1
  77. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +2 -2
  78. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +24 -11
  79. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +8 -8
  80. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +31 -18
  81. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +2 -2
  82. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +23 -1
  83. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +39 -78
  84. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +72 -263
  85. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +41 -14
  86. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +286 -44
  87. package/src/proto-grpc/google/protobuf/descriptor.ts +2 -5
  88. package/src/proto-rest/downloadapi.ts +8 -3
  89. package/src/proto-rest/lsapi.ts +23 -18
  90. package/src/proto-rest/progressapi.ts +4 -0
  91. package/src/proto-rest/streamingapi.ts +65 -211
  92. package/src/proto-rest/uploadapi.ts +141 -39
@@ -22,53 +22,53 @@ export interface LsAPI {
22
22
  */
23
23
  export interface LsAPI_ListItem {
24
24
  /**
25
- * name of the item in storage, without any prefixes
25
+ * Name of the item in storage, without any prefixes.
26
26
  *
27
27
  * @generated from protobuf field: string name = 1
28
28
  */
29
29
  name: string;
30
30
  /**
31
- * size of item in bytes
32
- * is always zero for directories (is_dir = true)
31
+ * Size of the item in bytes.
32
+ * Is always zero for directories (is_dir = true).
33
33
  *
34
34
  * @generated from protobuf field: uint64 size = 2
35
35
  */
36
36
  size: bigint;
37
37
  /**
38
- * is_dir is true for item, that can have subitems.
38
+ * is_dir is true for an item that can have subitems.
39
39
  *
40
40
  * @generated from protobuf field: bool is_dir = 3
41
41
  */
42
42
  isDir: boolean;
43
43
  /**
44
- * full_name is the name of item absolute to storage root.
45
- * it is <directory> + <name>
44
+ * full_name is the full name of the item, relative to the storage root.
45
+ * It is <directory> + <name>.
46
46
  * The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.
47
47
  *
48
48
  * @generated from protobuf field: string full_name = 10
49
49
  */
50
50
  fullName: string;
51
51
  /**
52
- * directory, the item is located in. The value here is always a prefix of name:
52
+ * The directory the item is located in. The value here is always a prefix of name:
53
53
  * name.HasPrefix(directory) is always true.
54
54
  *
55
55
  * @generated from protobuf field: string directory = 11
56
56
  */
57
57
  directory: string;
58
58
  /**
59
- * last_modified keeps the item last modification timestamp
59
+ * last_modified keeps the item's last modification timestamp.
60
60
  *
61
61
  * @generated from protobuf field: google.protobuf.Timestamp last_modified = 12
62
62
  */
63
63
  lastModified?: Timestamp;
64
64
  /**
65
- * version of item in storage.
66
- * When storage supports versioning or provides checksums for the data stored,
65
+ * Version of item in storage.
66
+ * When the storage supports versioning or provides checksums for the data stored,
67
67
  * the <version> field keeps that data.
68
- * If not - it keeps the any simple combination of item attributes, that helps to
69
- * detect if the contents of item has changed, e.g. <size>+<mtime>.
70
- * Anyway, client should not try to interpret this field, but should provide it to the Platform
71
- * in operations with given item (like BlobImportInternal) to help Platform with deduplication.
68
+ * If not, it keeps any simple combination of item attributes that helps to
69
+ * detect if the contents of the item have changed, e.g. <size>+<mtime>.
70
+ * Anyway, the client should not try to interpret this field, but should provide it to the Platform
71
+ * in operations with a given item (like BlobImportInternal) to help the Platform with deduplication.
72
72
  *
73
73
  * @generated from protobuf field: string version = 13
74
74
  */
@@ -90,8 +90,14 @@ export interface LsAPI_List_Request {
90
90
  */
91
91
  resourceId: bigint;
92
92
  /**
93
- * location to list, absolute to storage root. Only items, that have <full_name> starting
94
- * from <location> are included into list response.
93
+ * Signature proving the caller is authorized to access this resource.
94
+ *
95
+ * @generated from protobuf field: optional bytes resource_signature = 3
96
+ */
97
+ resourceSignature?: Uint8Array;
98
+ /**
99
+ * Location to list, relative to the storage root. Only items that have <full_name> starting
100
+ * with <location> are included in the list response.
95
101
  *
96
102
  * @generated from protobuf field: string location = 2
97
103
  */
@@ -102,7 +108,7 @@ export interface LsAPI_List_Request {
102
108
  */
103
109
  export interface LsAPI_List_Response {
104
110
  /**
105
- * List of the full (absolute to storage root) names of items from storage.
111
+ * List of the full (relative to storage root) names of items from storage.
106
112
  * E.g., for 'fs' storage each name will consist of names of all directories, where the
107
113
  * item is located, and the item name itself.
108
114
  * The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.
@@ -111,7 +117,7 @@ export interface LsAPI_List_Response {
111
117
  */
112
118
  items: LsAPI_ListItem[];
113
119
  /**
114
- * delimiter is path separator, used in this storage. Client can use it to parse item names into parts,
120
+ * The delimiter is the path separator used in this storage. The client can use it to parse item names into parts,
115
121
  * to extract directory names.
116
122
  *
117
123
  * @generated from protobuf field: string delimiter = 2
@@ -293,6 +299,7 @@ class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
293
299
  constructor() {
294
300
  super("MiLaboratories.Controller.Shared.LsAPI.List.Request", [
295
301
  { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
302
+ { no: 3, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
296
303
  { no: 2, name: "location", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
297
304
  ]);
298
305
  }
@@ -312,6 +319,9 @@ class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
312
319
  case /* uint64 resource_id */ 1:
313
320
  message.resourceId = reader.uint64().toBigInt();
314
321
  break;
322
+ case /* optional bytes resource_signature */ 3:
323
+ message.resourceSignature = reader.bytes();
324
+ break;
315
325
  case /* string location */ 2:
316
326
  message.location = reader.string();
317
327
  break;
@@ -333,6 +343,9 @@ class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
333
343
  /* string location = 2; */
334
344
  if (message.location !== "")
335
345
  writer.tag(2, WireType.LengthDelimited).string(message.location);
346
+ /* optional bytes resource_signature = 3; */
347
+ if (message.resourceSignature !== undefined)
348
+ writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
336
349
  let u = options.writeUnknownFields;
337
350
  if (u !== false)
338
351
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -14,7 +14,7 @@ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
14
14
  import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
15
15
  /**
16
16
  *
17
- * Progress provides access to progress of any long-running process associated with resource.
17
+ * Progress provides access to the progress of any long-running process associated with a resource.
18
18
  *
19
19
  *
20
20
  * @generated from protobuf service MiLaboratories.Controller.Shared.Progress
@@ -31,7 +31,7 @@ export interface IProgressClient {
31
31
  }
32
32
  /**
33
33
  *
34
- * Progress provides access to progress of any long-running process associated with resource.
34
+ * Progress provides access to the progress of any long-running process associated with a resource.
35
35
  *
36
36
  *
37
37
  * @generated from protobuf service MiLaboratories.Controller.Shared.Progress
@@ -57,6 +57,10 @@ export interface ProgressAPI_GetStatus_Request {
57
57
  * @generated from protobuf field: uint64 resource_id = 1
58
58
  */
59
59
  resourceId: bigint;
60
+ /**
61
+ * @generated from protobuf field: optional bytes resource_signature = 2
62
+ */
63
+ resourceSignature?: Uint8Array;
60
64
  }
61
65
  /**
62
66
  * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
@@ -80,6 +84,10 @@ export interface ProgressAPI_RealtimeStatus_Request {
80
84
  * @generated from protobuf field: uint64 resource_id = 1
81
85
  */
82
86
  resourceId: bigint;
87
+ /**
88
+ * @generated from protobuf field: optional bytes resource_signature = 3
89
+ */
90
+ resourceSignature?: Uint8Array;
83
91
  /**
84
92
  * @generated from protobuf field: google.protobuf.Duration update_interval = 2
85
93
  */
@@ -253,7 +261,8 @@ export const ProgressAPI_GetStatus = new ProgressAPI_GetStatus$Type();
253
261
  class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStatus_Request> {
254
262
  constructor() {
255
263
  super("MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request", [
256
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
264
+ { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
265
+ { no: 2, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
257
266
  ]);
258
267
  }
259
268
  create(value?: PartialMessage<ProgressAPI_GetStatus_Request>): ProgressAPI_GetStatus_Request {
@@ -271,6 +280,9 @@ class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStat
271
280
  case /* uint64 resource_id */ 1:
272
281
  message.resourceId = reader.uint64().toBigInt();
273
282
  break;
283
+ case /* optional bytes resource_signature */ 2:
284
+ message.resourceSignature = reader.bytes();
285
+ break;
274
286
  default:
275
287
  let u = options.readUnknownField;
276
288
  if (u === "throw")
@@ -286,6 +298,9 @@ class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStat
286
298
  /* uint64 resource_id = 1; */
287
299
  if (message.resourceId !== 0n)
288
300
  writer.tag(1, WireType.Varint).uint64(message.resourceId);
301
+ /* optional bytes resource_signature = 2; */
302
+ if (message.resourceSignature !== undefined)
303
+ writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
289
304
  let u = options.writeUnknownFields;
290
305
  if (u !== false)
291
306
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -385,6 +400,7 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
385
400
  constructor() {
386
401
  super("MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request", [
387
402
  { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
403
+ { no: 3, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
388
404
  { no: 2, name: "update_interval", kind: "message", T: () => Duration }
389
405
  ]);
390
406
  }
@@ -403,6 +419,9 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
403
419
  case /* uint64 resource_id */ 1:
404
420
  message.resourceId = reader.uint64().toBigInt();
405
421
  break;
422
+ case /* optional bytes resource_signature */ 3:
423
+ message.resourceSignature = reader.bytes();
424
+ break;
406
425
  case /* google.protobuf.Duration update_interval */ 2:
407
426
  message.updateInterval = Duration.internalBinaryRead(reader, reader.uint32(), options, message.updateInterval);
408
427
  break;
@@ -424,6 +443,9 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
424
443
  /* google.protobuf.Duration update_interval = 2; */
425
444
  if (message.updateInterval)
426
445
  Duration.internalBinaryWrite(message.updateInterval, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
446
+ /* optional bytes resource_signature = 3; */
447
+ if (message.resourceSignature !== undefined)
448
+ writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
427
449
  let u = options.writeUnknownFields;
428
450
  if (u !== false)
429
451
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -6,65 +6,47 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
6
  import { Streaming } from "./protocol";
7
7
  import type { StreamingAPI_LastLines } from "./protocol";
8
8
  import type { StreamingAPI_ReadText } from "./protocol";
9
- import type { StreamingAPI_StreamText } from "./protocol";
10
- import type { StreamingAPI_ReadBinary } from "./protocol";
11
- import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
12
9
  import { stackIntercept } from "@protobuf-ts/runtime-rpc";
13
10
  import type { StreamingAPI_Response } from "./protocol";
14
- import type { StreamingAPI_StreamBinary } from "./protocol";
15
- import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
11
+ import type { StreamingAPI_ReadBinary } from "./protocol";
12
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
16
13
  import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
17
14
  /**
18
15
  *
19
- * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
20
- * the caller receives this fresh data in stream from server.
16
+ * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
17
+ * the caller receives this fresh data in a stream from the server.
21
18
  *
22
19
  *
23
20
  * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
24
21
  */
25
22
  export interface IStreamingClient {
26
23
  /**
27
- * StreamBinary provides stream of binary file. Each response message keeps
28
- * one single chunk of binary data from data source. See StreamingAPI.Binary message
29
- * for more info on available options.
30
- *
31
- * @generated from protobuf rpc: StreamBinary
32
- */
33
- streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
34
- /**
35
- * ReadBinary allows to read remote item in chunks using stream-like API.
36
- * The difference to StreamBinary is that the client receives single response for each
37
- * call and has to send new calls to the server to get fresh data from remote item.
38
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
24
+ * ReadBinary allows reading a remote item in chunks using a stream-like API.
25
+ * The client receives a single response for each call and has to send new calls
26
+ * to the server to get fresh data from the remote item.
27
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
39
28
  *
40
29
  * @generated from protobuf rpc: ReadBinary
41
30
  */
42
31
  readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
43
32
  /**
44
- * StreamText provides stream of textual file, splitting the data by newline symbol.
45
- * Each response message keeps one single line of text from data source.
46
- *
47
- * @generated from protobuf rpc: StreamText
48
- */
49
- streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
50
- /**
51
- * ReadBinary allows to read remote item in chunks using stream-like API.
52
- * The difference to StreamBinary is that the client receives single response for each
53
- * call and has to send new calls to the server to get fresh data from remote item.
54
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
33
+ * ReadText allows reading a remote item in chunks using a stream-like API.
34
+ * The client receives a single response for each call and has to send new calls
35
+ * to the server to get fresh data from the remote item.
36
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
55
37
  *
56
38
  * @generated from protobuf rpc: ReadText
57
39
  */
58
40
  readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
59
41
  /**
60
- * LastLines provides single message with the last lines from data source.
61
- * When search pattern is specified, the last lines matching the given pattern are returned.
62
- * The lines are returned in reversed order, as server reads data source from the end.
63
- * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
42
+ * LastLines provides a single message with the last lines from the data source.
43
+ * When a search pattern is specified, the last lines matching the given pattern are returned.
44
+ * The lines are returned in reverse order, as the server reads the data source from the end.
45
+ * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
64
46
  * The <new_offset> returned in the response points to the _beginning_ of the last
65
- * line found, so client can continue reading the file backwards in subsequent calls.
66
- * This means, that use of this <new_offset> in ReadText() will return you the same line
67
- * returned last in LastLines() data.
47
+ * line found, so the client can continue reading the file backwards in subsequent calls.
48
+ * This means that the use of this <new_offset> in ReadText() will return the last line
49
+ * returned in the LastLines() response.
68
50
  *
69
51
  * @generated from protobuf rpc: LastLines
70
52
  */
@@ -72,8 +54,8 @@ export interface IStreamingClient {
72
54
  }
73
55
  /**
74
56
  *
75
- * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
76
- * the caller receives this fresh data in stream from server.
57
+ * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
58
+ * the caller receives this fresh data in a stream from the server.
77
59
  *
78
60
  *
79
61
  * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
@@ -85,64 +67,43 @@ export class StreamingClient implements IStreamingClient, ServiceInfo {
85
67
  constructor(private readonly _transport: RpcTransport) {
86
68
  }
87
69
  /**
88
- * StreamBinary provides stream of binary file. Each response message keeps
89
- * one single chunk of binary data from data source. See StreamingAPI.Binary message
90
- * for more info on available options.
91
- *
92
- * @generated from protobuf rpc: StreamBinary
93
- */
94
- streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response> {
95
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
96
- return stackIntercept<StreamingAPI_StreamBinary, StreamingAPI_Response>("serverStreaming", this._transport, method, opt, input);
97
- }
98
- /**
99
- * ReadBinary allows to read remote item in chunks using stream-like API.
100
- * The difference to StreamBinary is that the client receives single response for each
101
- * call and has to send new calls to the server to get fresh data from remote item.
102
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
70
+ * ReadBinary allows reading a remote item in chunks using a stream-like API.
71
+ * The client receives a single response for each call and has to send new calls
72
+ * to the server to get fresh data from the remote item.
73
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
103
74
  *
104
75
  * @generated from protobuf rpc: ReadBinary
105
76
  */
106
77
  readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {
107
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
78
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
108
79
  return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>("unary", this._transport, method, opt, input);
109
80
  }
110
81
  /**
111
- * StreamText provides stream of textual file, splitting the data by newline symbol.
112
- * Each response message keeps one single line of text from data source.
113
- *
114
- * @generated from protobuf rpc: StreamText
115
- */
116
- streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response> {
117
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
118
- return stackIntercept<StreamingAPI_StreamText, StreamingAPI_Response>("serverStreaming", this._transport, method, opt, input);
119
- }
120
- /**
121
- * ReadBinary allows to read remote item in chunks using stream-like API.
122
- * The difference to StreamBinary is that the client receives single response for each
123
- * call and has to send new calls to the server to get fresh data from remote item.
124
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
82
+ * ReadText allows reading a remote item in chunks using a stream-like API.
83
+ * The client receives a single response for each call and has to send new calls
84
+ * to the server to get fresh data from the remote item.
85
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
125
86
  *
126
87
  * @generated from protobuf rpc: ReadText
127
88
  */
128
89
  readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {
129
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
90
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
130
91
  return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>("unary", this._transport, method, opt, input);
131
92
  }
132
93
  /**
133
- * LastLines provides single message with the last lines from data source.
134
- * When search pattern is specified, the last lines matching the given pattern are returned.
135
- * The lines are returned in reversed order, as server reads data source from the end.
136
- * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
94
+ * LastLines provides a single message with the last lines from the data source.
95
+ * When a search pattern is specified, the last lines matching the given pattern are returned.
96
+ * The lines are returned in reverse order, as the server reads the data source from the end.
97
+ * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
137
98
  * The <new_offset> returned in the response points to the _beginning_ of the last
138
- * line found, so client can continue reading the file backwards in subsequent calls.
139
- * This means, that use of this <new_offset> in ReadText() will return you the same line
140
- * returned last in LastLines() data.
99
+ * line found, so the client can continue reading the file backwards in subsequent calls.
100
+ * This means that the use of this <new_offset> in ReadText() will return the last line
101
+ * returned in the LastLines() response.
141
102
  *
142
103
  * @generated from protobuf rpc: LastLines
143
104
  */
144
105
  lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {
145
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
106
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
146
107
  return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>("unary", this._transport, method, opt, input);
147
108
  }
148
109
  }