@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
@@ -35,59 +35,64 @@ export interface components {
35
35
  /** @description resource_id of 'LS/<Storage>' resource */
36
36
  resourceId: string;
37
37
  /**
38
- * @description location to list, absolute to storage root. Only items, that have <full_name> starting
39
- * from <location> are included into list response.
38
+ * Format: bytes
39
+ * @description Signature proving the caller is authorized to access this resource.
40
+ */
41
+ resourceSignature: string;
42
+ /**
43
+ * @description Location to list, relative to the storage root. Only items that have <full_name> starting
44
+ * with <location> are included in the list response.
40
45
  */
41
46
  location: string;
42
47
  };
43
48
  List_Response: {
44
49
  /**
45
- * @description List of the full (absolute to storage root) names of items from storage.
50
+ * @description List of the full (relative to storage root) names of items from storage.
46
51
  * E.g., for 'fs' storage each name will consist of names of all directories, where the
47
52
  * item is located, and the item name itself.
48
53
  * The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.
49
54
  */
50
55
  items: components["schemas"]["LsAPI_ListItem"][];
51
56
  /**
52
- * @description delimiter is path separator, used in this storage. Client can use it to parse item names into parts,
57
+ * @description The delimiter is the path separator used in this storage. The client can use it to parse item names into parts,
53
58
  * to extract directory names.
54
59
  */
55
60
  delimiter: string;
56
61
  };
57
62
  LsAPI_ListItem: {
58
- /** @description name of the item in storage, without any prefixes */
63
+ /** @description Name of the item in storage, without any prefixes. */
59
64
  name: string;
60
65
  /**
61
- * @description size of item in bytes
62
- * is always zero for directories (is_dir = true)
66
+ * @description Size of the item in bytes.
67
+ * Is always zero for directories (is_dir = true).
63
68
  */
64
69
  size: string;
65
- /** @description is_dir is true for item, that can have subitems. */
70
+ /** @description is_dir is true for an item that can have subitems. */
66
71
  isDir: boolean;
67
72
  /**
68
- * @description full_name is the name of item absolute to storage root.
69
- * it is <directory> + <name>
73
+ * @description full_name is the full name of the item, relative to the storage root.
74
+ * It is <directory> + <name>.
70
75
  * The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.
71
76
  */
72
77
  fullName: string;
73
78
  /**
74
- * @description directory, the item is located in. The value here is always a prefix of name:
79
+ * @description The directory the item is located in. The value here is always a prefix of name:
75
80
  * name.HasPrefix(directory) is always true.
76
81
  */
77
82
  directory: string;
78
83
  /**
79
84
  * Format: date-time
80
- * @description last_modified keeps the item last modification timestamp
85
+ * @description last_modified keeps the item's last modification timestamp.
81
86
  */
82
87
  lastModified: string;
83
88
  /**
84
- * @description version of item in storage.
85
- * When storage supports versioning or provides checksums for the data stored,
89
+ * @description Version of item in storage.
90
+ * When the storage supports versioning or provides checksums for the data stored,
86
91
  * the <version> field keeps that data.
87
- * If not - it keeps the any simple combination of item attributes, that helps to
88
- * detect if the contents of item has changed, e.g. <size>+<mtime>.
89
- * Anyway, client should not try to interpret this field, but should provide it to the Platform
90
- * in operations with given item (like BlobImportInternal) to help Platform with deduplication.
92
+ * If not, it keeps any simple combination of item attributes that helps to
93
+ * detect if the contents of the item have changed, e.g. <size>+<mtime>.
94
+ * Anyway, the client should not try to interpret this field, but should provide it to the Platform
95
+ * in operations with a given item (like BlobImportInternal) to help the Platform with deduplication.
91
96
  */
92
97
  version: string;
93
98
  };
@@ -42,6 +42,8 @@ export interface components {
42
42
  schemas: {
43
43
  GetStatus_Request: {
44
44
  resourceId: string;
45
+ /** Format: bytes */
46
+ resourceSignature: string;
45
47
  };
46
48
  GetStatus_Response: {
47
49
  report: components["schemas"]["ProgressAPI_Report"];
@@ -64,6 +66,8 @@ export interface components {
64
66
  };
65
67
  RealtimeStatus_Request: {
66
68
  resourceId: string;
69
+ /** Format: bytes */
70
+ resourceSignature: string;
67
71
  updateInterval: string;
68
72
  };
69
73
  RealtimeStatus_Response: {
@@ -14,14 +14,14 @@ export interface paths {
14
14
  get?: never;
15
15
  put?: never;
16
16
  /**
17
- * @description LastLines provides single message with the last lines from data source.
18
- * When search pattern is specified, the last lines matching the given pattern are returned.
19
- * The lines are returned in reversed order, as server reads data source from the end.
20
- * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
17
+ * @description LastLines provides a single message with the last lines from the data source.
18
+ * When a search pattern is specified, the last lines matching the given pattern are returned.
19
+ * The lines are returned in reverse order, as the server reads the data source from the end.
20
+ * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
21
21
  * The <new_offset> returned in the response points to the _beginning_ of the last
22
- * line found, so client can continue reading the file backwards in subsequent calls.
23
- * This means, that use of this <new_offset> in ReadText() will return you the same line
24
- * returned last in LastLines() data.
22
+ * line found, so the client can continue reading the file backwards in subsequent calls.
23
+ * This means that the use of this <new_offset> in ReadText() will return the last line
24
+ * returned in the LastLines() response.
25
25
  */
26
26
  post: operations["Streaming_LastLines"];
27
27
  delete?: never;
@@ -40,10 +40,10 @@ export interface paths {
40
40
  get?: never;
41
41
  put?: never;
42
42
  /**
43
- * @description ReadBinary allows to read remote item in chunks using stream-like API.
44
- * The difference to StreamBinary is that the client receives single response for each
45
- * call and has to send new calls to the server to get fresh data from remote item.
46
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
43
+ * @description ReadBinary allows reading a remote item in chunks using a stream-like API.
44
+ * The client receives a single response for each call and has to send new calls
45
+ * to the server to get fresh data from the remote item.
46
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
47
47
  */
48
48
  post: operations["Streaming_ReadBinary"];
49
49
  delete?: never;
@@ -62,10 +62,10 @@ export interface paths {
62
62
  get?: never;
63
63
  put?: never;
64
64
  /**
65
- * @description ReadBinary allows to read remote item in chunks using stream-like API.
66
- * The difference to StreamBinary is that the client receives single response for each
67
- * call and has to send new calls to the server to get fresh data from remote item.
68
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
65
+ * @description ReadText allows reading a remote item in chunks using a stream-like API.
66
+ * The client receives a single response for each call and has to send new calls
67
+ * to the server to get fresh data from the remote item.
68
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
69
69
  */
70
70
  post: operations["Streaming_ReadText"];
71
71
  delete?: never;
@@ -74,47 +74,6 @@ export interface paths {
74
74
  patch?: never;
75
75
  trace?: never;
76
76
  };
77
- "/v1/stream/binary": {
78
- parameters: {
79
- query?: never;
80
- header?: never;
81
- path?: never;
82
- cookie?: never;
83
- };
84
- get?: never;
85
- put?: never;
86
- /**
87
- * @description StreamBinary provides stream of binary file. Each response message keeps
88
- * one single chunk of binary data from data source. See StreamingAPI.Binary message
89
- * for more info on available options.
90
- */
91
- post: operations["Streaming_StreamBinary"];
92
- delete?: never;
93
- options?: never;
94
- head?: never;
95
- patch?: never;
96
- trace?: never;
97
- };
98
- "/v1/stream/text": {
99
- parameters: {
100
- query?: never;
101
- header?: never;
102
- path?: never;
103
- cookie?: never;
104
- };
105
- get?: never;
106
- put?: never;
107
- /**
108
- * @description StreamText provides stream of textual file, splitting the data by newline symbol.
109
- * Each response message keeps one single line of text from data source.
110
- */
111
- post: operations["Streaming_StreamText"];
112
- delete?: never;
113
- options?: never;
114
- head?: never;
115
- patch?: never;
116
- trace?: never;
117
- };
118
77
  }
119
78
  export type webhooks = Record<string, never>;
120
79
  export interface components {
@@ -139,38 +98,48 @@ export interface components {
139
98
  details: components["schemas"]["GoogleProtobufAny"][];
140
99
  };
141
100
  StreamingAPI_LastLines: {
142
- /** @description <resource_id> of Stream resource, that keeps info on item to be streamed. */
101
+ /** @description <resource_id> of Stream resource that keeps info on item to be streamed. */
143
102
  resourceId: string;
144
103
  /**
145
- * @description <offset> makes streamer to perform seek operation to given offset before sending the contents.
146
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
147
- * By default, LastLines starts to treat the data source from the very last byte available in data stream
148
- * at the moment of call, but client can set the server to start from earlier position.
104
+ * Format: bytes
105
+ * @description Signature proving the caller is authorized to access this resource.
106
+ */
107
+ resourceSignature: string;
108
+ /**
109
+ * @description <offset> makes the streamer perform a seek operation to the given offset before sending the contents.
110
+ * This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.
111
+ * By default, LastLines starts reading the data source from the very last byte available in the data stream
112
+ * at the moment of the call, but the client can set the server to start from an earlier position.
149
113
  */
150
114
  offset: string;
151
115
  /**
152
116
  * Format: int32
153
- * @description <line_count> makes streamer to return up to <line_count> lines to the client.
117
+ * @description <line_count> makes the streamer return up to <line_count> lines to the client.
154
118
  * Default value: 1
155
119
  */
156
120
  lineCount: number;
157
121
  /**
158
- * @description <search> is substring for line search pattern.
159
- * This option makes controller to send to the client only lines, that
160
- * have given substring.
122
+ * @description <search> is a substring for the line search pattern.
123
+ * This option makes the controller send to the client only lines that
124
+ * have the given substring.
161
125
  */
162
126
  search: string;
163
127
  /**
164
- * @description <search_re> is regular expression for line search pattern.
165
- * This option makes controller to send to the client only lines, that
166
- * match given regular expression.
128
+ * @description <search_re> is a regular expression for the line search pattern.
129
+ * This option makes the controller send to the client only lines that
130
+ * match the given regular expression.
167
131
  */
168
132
  searchRe: string;
169
133
  };
170
134
  StreamingAPI_ReadBinary: {
171
- /** @description <resource_id> of Stream resource, that keeps info on item to be streamed. */
135
+ /** @description <resource_id> of Stream resource that keeps info on item to be streamed. */
172
136
  resourceId: string;
173
- /** @description <offset> makes streamer to perform seek operation to given offset before sending the data. */
137
+ /**
138
+ * Format: bytes
139
+ * @description Signature proving the caller is authorized to access this resource.
140
+ */
141
+ resourceSignature: string;
142
+ /** @description <offset> makes the streamer perform a seek operation to the given offset before sending the data. */
174
143
  offset: string;
175
144
  /**
176
145
  * Format: uint32
@@ -182,116 +151,67 @@ export interface components {
182
151
  chunkSize: number;
183
152
  };
184
153
  StreamingAPI_ReadText: {
185
- /** @description <resource_id> of Stream resource, that keeps info on item to be streamed. */
154
+ /** @description <resource_id> of Stream resource that keeps info on item to be streamed. */
186
155
  resourceId: string;
187
156
  /**
188
- * @description <offset> makes streamer to perform seek operation to given offset before sending the contents.
189
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
190
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
157
+ * Format: bytes
158
+ * @description Signature proving the caller is authorized to access this resource.
159
+ */
160
+ resourceSignature: string;
161
+ /**
162
+ * @description <offset> makes the streamer perform a seek operation to the given offset before sending the contents.
163
+ * This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.
164
+ * The client can just use the <new_offset> value of the last response from the server to continue streaming after reconnection.
191
165
  */
192
166
  offset: string;
193
167
  /**
194
- * @description <read_limit> allows client to limit total data sent from server.
168
+ * @description <read_limit> allows the client to limit total data sent from the server.
195
169
  * Measured in lines of text.
196
170
  * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
197
171
  * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
198
- * this is equivalent to 'head -n <read_limit> | grep <search>'.
199
- * At most 3.9 MiB (3900 * 1024 KiB) of data is returned in single read regardless of <read_limit> option
172
+ * This is equivalent to 'head -n <read_limit> | grep <search>'.
173
+ * At most 3.9 MiB (3900 KiB) of data is returned in a single read regardless of the <read_limit> option
200
174
  * Only full lines of text are returned except for the last line from the completed source
201
- * (the one that is not expected to have new data, like blob in storage)
175
+ * (the one that is not expected to have new data, like a blob in storage)
202
176
  */
203
177
  readLimit: string;
204
178
  /**
205
- * @description <search> is substring for line search pattern.
206
- * This option makes controller to send to the client only lines, that
207
- * have given substring.
179
+ * @description <search> is a substring for the line search pattern.
180
+ * This option makes the controller send to the client only lines that
181
+ * have the given substring.
208
182
  */
209
183
  search: string;
210
184
  /**
211
- * @description <search_re> is regular expression for line search pattern.
212
- * This option makes controller to send to the client only lines, that
213
- * match given regular expression.
185
+ * @description <search_re> is a regular expression for the line search pattern.
186
+ * This option makes the controller send to the client only lines that
187
+ * match the given regular expression.
214
188
  */
215
189
  searchRe: string;
216
190
  };
217
191
  StreamingAPI_Response: {
218
192
  /**
219
193
  * Format: bytes
220
- * @description data chunk from item, starting from the <new_offset> of the previous message in the same stream.
194
+ * @description data chunk from the item, starting from the <new_offset> of the previous message in the same stream.
221
195
  */
222
196
  data: string;
223
197
  /**
224
198
  * @description <size> is the actual size of the streamed item at the moment of this message.
225
- * This might be not a final amount of streamed data, as stream source can be updated
226
- * by other independent process (e.g., data is written to log file).
227
- * This field in combination with <new_offset> shows, how far the client is from the end
199
+ * This might not be the final amount of streamed data, as the stream source can be updated
200
+ * by another independent process (e.g., data is written to a log file).
201
+ * This field in combination with <new_offset> shows how far the client is from the end
228
202
  * of the data right now.
229
203
  */
230
204
  size: string;
231
205
  /**
232
206
  * @description <new_offset> is the new offset in bytes from the start of the streamed item,
233
- * including size of <data> in current response.
234
- * Call to Stream rpc with <offset> = <new_offset> will continue
235
- * streaming from the place of last received message
207
+ * including the size of <data> in the current response.
208
+ * A call to the Stream RPC with <offset> = <new_offset> will continue
209
+ * streaming from the place of the last received message
236
210
  * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of
237
211
  * previously received <data>)
238
212
  */
239
213
  newOffset: string;
240
214
  };
241
- StreamingAPI_StreamBinary: {
242
- /** @description <resource_id> of Stream resource, that keeps info on item to be streamed. */
243
- resourceId: string;
244
- /** @description <offset> makes streamer to perform seek operation to given offset before sending the data. */
245
- offset: string;
246
- /**
247
- * Format: uint32
248
- * @description <chunk_size> limits the maximum size of <data> for each response message in stream.
249
- *
250
- * Default value: 32 768 (32 KiB)
251
- * Max value: 3900 * 1024 (3.9 MiB)
252
- */
253
- chunkSize: number;
254
- /**
255
- * @description <read_limit> allows client to limit total data sent from server.
256
- * This limit is aggregation of all data, sent in all chunks.
257
- * E.g. to read 2000 bytes of data in chunks of at most
258
- * 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.
259
- * For storage item of appropriate size this settings will result in
260
- * 16 messages from server: 15 of 130 bytes and one of 50 bytes.
261
- */
262
- readLimit: string;
263
- };
264
- StreamingAPI_StreamText: {
265
- /** @description <resource_id> of Stream resource, that keeps info on item to be streamed. */
266
- resourceId: string;
267
- /**
268
- * @description <offset> makes streamer to perform seek operation to given offset before sending the contents.
269
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
270
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
271
- */
272
- offset: string;
273
- /**
274
- * @description <read_limit> allows client to limit total data sent from server.
275
- * This limit is aggregation of all data, sent in all chunks, measured
276
- * in lines of text.
277
- * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
278
- * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
279
- * this is equivalent to 'head -n <read_limit> | grep <search>'.
280
- */
281
- readLimit: string;
282
- /**
283
- * @description <search> is substring for line search pattern.
284
- * This option makes controller to send to the client only lines, that
285
- * have given substring.
286
- */
287
- search: string;
288
- /**
289
- * @description <search_re> is regular expression for line search pattern.
290
- * This option makes controller to send to the client only lines, that
291
- * match given regular expression.
292
- */
293
- searchRe: string;
294
- };
295
215
  };
296
216
  responses: never;
297
217
  parameters: never;
@@ -400,70 +320,4 @@ export interface operations {
400
320
  };
401
321
  };
402
322
  };
403
- Streaming_StreamBinary: {
404
- parameters: {
405
- query?: never;
406
- header?: never;
407
- path?: never;
408
- cookie?: never;
409
- };
410
- requestBody: {
411
- content: {
412
- "application/json": components["schemas"]["StreamingAPI_StreamBinary"];
413
- };
414
- };
415
- responses: {
416
- /** @description OK */
417
- 200: {
418
- headers: {
419
- [name: string]: unknown;
420
- };
421
- content: {
422
- "application/json": components["schemas"]["StreamingAPI_Response"];
423
- };
424
- };
425
- /** @description Default error response */
426
- default: {
427
- headers: {
428
- [name: string]: unknown;
429
- };
430
- content: {
431
- "application/json": components["schemas"]["Status"];
432
- };
433
- };
434
- };
435
- };
436
- Streaming_StreamText: {
437
- parameters: {
438
- query?: never;
439
- header?: never;
440
- path?: never;
441
- cookie?: never;
442
- };
443
- requestBody: {
444
- content: {
445
- "application/json": components["schemas"]["StreamingAPI_StreamText"];
446
- };
447
- };
448
- responses: {
449
- /** @description OK */
450
- 200: {
451
- headers: {
452
- [name: string]: unknown;
453
- };
454
- content: {
455
- "application/json": components["schemas"]["StreamingAPI_Response"];
456
- };
457
- };
458
- /** @description Default error response */
459
- default: {
460
- headers: {
461
- [name: string]: unknown;
462
- };
463
- content: {
464
- "application/json": components["schemas"]["Status"];
465
- };
466
- };
467
- };
468
- };
469
323
  }