@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
@@ -3,54 +3,23 @@ import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, Me
3
3
 
4
4
  //#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts
5
5
  /**
6
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
6
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
7
7
  */
8
- interface StreamingAPI_StreamBinary {
8
+ interface StreamingAPI_ReadBinary {
9
9
  /**
10
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
10
+ * <resource_id> of Stream resource that keeps info on item to be streamed.
11
11
  *
12
12
  * @generated from protobuf field: uint64 resource_id = 1
13
13
  */
14
14
  resourceId: bigint;
15
15
  /**
16
- * <offset> makes streamer to perform seek operation to given offset before sending the data.
17
- *
18
- * @generated from protobuf field: int64 offset = 2
19
- */
20
- offset: bigint;
21
- /**
22
- * <chunk_size> limits the maximum size of <data> for each response message in stream.
23
- *
24
- * Default value: 32 768 (32 KiB)
25
- * Max value: 3900 * 1024 (3.9 MiB)
16
+ * Signature proving the caller is authorized to access this resource.
26
17
  *
27
- * @generated from protobuf field: optional uint32 chunk_size = 11
18
+ * @generated from protobuf field: optional bytes resource_signature = 3
28
19
  */
29
- chunkSize?: number;
20
+ resourceSignature?: Uint8Array;
30
21
  /**
31
- * <read_limit> allows client to limit total data sent from server.
32
- * This limit is aggregation of all data, sent in all chunks.
33
- * E.g. to read 2000 bytes of data in chunks of at most
34
- * 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.
35
- * For storage item of appropriate size this settings will result in
36
- * 16 messages from server: 15 of 130 bytes and one of 50 bytes.
37
- *
38
- * @generated from protobuf field: optional int64 read_limit = 20
39
- */
40
- readLimit?: bigint;
41
- }
42
- /**
43
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
44
- */
45
- interface StreamingAPI_ReadBinary {
46
- /**
47
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
48
- *
49
- * @generated from protobuf field: uint64 resource_id = 1
50
- */
51
- resourceId: bigint;
52
- /**
53
- * <offset> makes streamer to perform seek operation to given offset before sending the data.
22
+ * <offset> makes the streamer perform a seek operation to the given offset before sending the data.
54
23
  *
55
24
  * @generated from protobuf field: int64 offset = 2
56
25
  */
@@ -66,94 +35,54 @@ interface StreamingAPI_ReadBinary {
66
35
  chunkSize?: number;
67
36
  }
68
37
  /**
69
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
38
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
70
39
  */
71
- interface StreamingAPI_StreamText {
40
+ interface StreamingAPI_ReadText {
72
41
  /**
73
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
42
+ * <resource_id> of Stream resource that keeps info on item to be streamed.
74
43
  *
75
44
  * @generated from protobuf field: uint64 resource_id = 1
76
45
  */
77
46
  resourceId: bigint;
78
47
  /**
79
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
80
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
81
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
48
+ * Signature proving the caller is authorized to access this resource.
82
49
  *
83
- * @generated from protobuf field: int64 offset = 2
50
+ * @generated from protobuf field: optional bytes resource_signature = 3
84
51
  */
85
- offset: bigint;
52
+ resourceSignature?: Uint8Array;
86
53
  /**
87
- * <read_limit> allows client to limit total data sent from server.
88
- * This limit is aggregation of all data, sent in all chunks, measured
89
- * in lines of text.
90
- * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
91
- * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
92
- * this is equivalent to 'head -n <read_limit> | grep <search>'.
93
- *
94
- * @generated from protobuf field: optional int64 read_limit = 20
95
- */
96
- readLimit?: bigint;
97
- /**
98
- * <search> is substring for line search pattern.
99
- * This option makes controller to send to the client only lines, that
100
- * have given substring.
101
- *
102
- * @generated from protobuf field: optional string search = 21
103
- */
104
- search?: string;
105
- /**
106
- * <search_re> is regular expression for line search pattern.
107
- * This option makes controller to send to the client only lines, that
108
- * match given regular expression.
109
- *
110
- * @generated from protobuf field: optional string search_re = 22
111
- */
112
- searchRe?: string;
113
- }
114
- /**
115
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
116
- */
117
- interface StreamingAPI_ReadText {
118
- /**
119
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
120
- *
121
- * @generated from protobuf field: uint64 resource_id = 1
122
- */
123
- resourceId: bigint;
124
- /**
125
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
126
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
127
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
54
+ * <offset> makes the streamer perform a seek operation to the given offset before sending the contents.
55
+ * This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.
56
+ * The client can just use the <new_offset> value of the last response from the server to continue streaming after reconnection.
128
57
  *
129
58
  * @generated from protobuf field: int64 offset = 2
130
59
  */
131
60
  offset: bigint;
132
61
  /**
133
- * <read_limit> allows client to limit total data sent from server.
62
+ * <read_limit> allows the client to limit total data sent from the server.
134
63
  * Measured in lines of text.
135
64
  * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
136
65
  * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
137
- * this is equivalent to 'head -n <read_limit> | grep <search>'.
138
- * At most 3.9 MiB (3900 * 1024 KiB) of data is returned in single read regardless of <read_limit> option
66
+ * This is equivalent to 'head -n <read_limit> | grep <search>'.
67
+ * At most 3.9 MiB (3900 KiB) of data is returned in a single read regardless of the <read_limit> option
139
68
  * Only full lines of text are returned except for the last line from the completed source
140
- * (the one that is not expected to have new data, like blob in storage)
69
+ * (the one that is not expected to have new data, like a blob in storage)
141
70
  *
142
71
  * @generated from protobuf field: optional int64 read_limit = 20
143
72
  */
144
73
  readLimit?: bigint;
145
74
  /**
146
- * <search> is substring for line search pattern.
147
- * This option makes controller to send to the client only lines, that
148
- * have given substring.
75
+ * <search> is a substring for the line search pattern.
76
+ * This option makes the controller send to the client only lines that
77
+ * have the given substring.
149
78
  *
150
79
  * @generated from protobuf field: optional string search = 21
151
80
  */
152
81
  search?: string;
153
82
  /**
154
- * <search_re> is regular expression for line search pattern.
155
- * This option makes controller to send to the client only lines, that
156
- * match given regular expression.
83
+ * <search_re> is a regular expression for the line search pattern.
84
+ * This option makes the controller send to the client only lines that
85
+ * match the given regular expression.
157
86
  *
158
87
  * @generated from protobuf field: optional string search_re = 22
159
88
  */
@@ -164,39 +93,45 @@ interface StreamingAPI_ReadText {
164
93
  */
165
94
  interface StreamingAPI_LastLines {
166
95
  /**
167
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
96
+ * <resource_id> of Stream resource that keeps info on item to be streamed.
168
97
  *
169
98
  * @generated from protobuf field: uint64 resource_id = 1
170
99
  */
171
100
  resourceId: bigint;
172
101
  /**
173
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
174
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
175
- * By default, LastLines starts to treat the data source from the very last byte available in data stream
176
- * at the moment of call, but client can set the server to start from earlier position.
102
+ * Signature proving the caller is authorized to access this resource.
103
+ *
104
+ * @generated from protobuf field: optional bytes resource_signature = 4
105
+ */
106
+ resourceSignature?: Uint8Array;
107
+ /**
108
+ * <offset> makes the streamer perform a seek operation to the given offset before sending the contents.
109
+ * This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.
110
+ * By default, LastLines starts reading the data source from the very last byte available in the data stream
111
+ * at the moment of the call, but the client can set the server to start from an earlier position.
177
112
  *
178
113
  * @generated from protobuf field: optional int64 offset = 2
179
114
  */
180
115
  offset?: bigint;
181
116
  /**
182
- * <line_count> makes streamer to return up to <line_count> lines to the client.
117
+ * <line_count> makes the streamer return up to <line_count> lines to the client.
183
118
  * Default value: 1
184
119
  *
185
120
  * @generated from protobuf field: optional int32 line_count = 3
186
121
  */
187
122
  lineCount?: number;
188
123
  /**
189
- * <search> is substring for line search pattern.
190
- * This option makes controller to send to the client only lines, that
191
- * have given substring.
124
+ * <search> is a substring for the line search pattern.
125
+ * This option makes the controller send to the client only lines that
126
+ * have the given substring.
192
127
  *
193
128
  * @generated from protobuf field: optional string search = 21
194
129
  */
195
130
  search?: string;
196
131
  /**
197
- * <search_re> is regular expression for line search pattern.
198
- * This option makes controller to send to the client only lines, that
199
- * match given regular expression.
132
+ * <search_re> is a regular expression for the line search pattern.
133
+ * This option makes the controller send to the client only lines that
134
+ * match the given regular expression.
200
135
  *
201
136
  * @generated from protobuf field: optional string search_re = 22
202
137
  */
@@ -207,16 +142,16 @@ interface StreamingAPI_LastLines {
207
142
  */
208
143
  interface StreamingAPI_Response {
209
144
  /**
210
- * data chunk from item, starting from the <new_offset> of the previous message in the same stream.
145
+ * data chunk from the item, starting from the <new_offset> of the previous message in the same stream.
211
146
  *
212
147
  * @generated from protobuf field: bytes data = 1
213
148
  */
214
149
  data: Uint8Array;
215
150
  /**
216
151
  * <size> is the actual size of the streamed item at the moment of this message.
217
- * This might be not a final amount of streamed data, as stream source can be updated
218
- * by other independent process (e.g., data is written to log file).
219
- * This field in combination with <new_offset> shows, how far the client is from the end
152
+ * This might not be the final amount of streamed data, as the stream source can be updated
153
+ * by another independent process (e.g., data is written to a log file).
154
+ * This field in combination with <new_offset> shows how far the client is from the end
220
155
  * of the data right now.
221
156
  *
222
157
  * @generated from protobuf field: uint64 size = 2
@@ -224,9 +159,9 @@ interface StreamingAPI_Response {
224
159
  size: bigint;
225
160
  /**
226
161
  * <new_offset> is the new offset in bytes from the start of the streamed item,
227
- * including size of <data> in current response.
228
- * Call to Stream rpc with <offset> = <new_offset> will continue
229
- * streaming from the place of last received message
162
+ * including the size of <data> in the current response.
163
+ * A call to the Stream RPC with <offset> = <new_offset> will continue
164
+ * streaming from the place of the last received message
230
165
  * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of
231
166
  * previously received <data>)
232
167
  *
@@ -234,16 +169,6 @@ interface StreamingAPI_Response {
234
169
  */
235
170
  newOffset: bigint;
236
171
  }
237
- declare class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {
238
- constructor();
239
- create(value?: PartialMessage<StreamingAPI_StreamBinary>): StreamingAPI_StreamBinary;
240
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamBinary): StreamingAPI_StreamBinary;
241
- internalBinaryWrite(message: StreamingAPI_StreamBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
242
- }
243
- /**
244
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
245
- */
246
- declare const StreamingAPI_StreamBinary: StreamingAPI_StreamBinary$Type;
247
172
  declare class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {
248
173
  constructor();
249
174
  create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary;
@@ -254,16 +179,6 @@ declare class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_Read
254
179
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
255
180
  */
256
181
  declare const StreamingAPI_ReadBinary: StreamingAPI_ReadBinary$Type;
257
- declare class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {
258
- constructor();
259
- create(value?: PartialMessage<StreamingAPI_StreamText>): StreamingAPI_StreamText;
260
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamText): StreamingAPI_StreamText;
261
- internalBinaryWrite(message: StreamingAPI_StreamText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
262
- }
263
- /**
264
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
265
- */
266
- declare const StreamingAPI_StreamText: StreamingAPI_StreamText$Type;
267
182
  declare class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
268
183
  constructor();
269
184
  create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText;
@@ -295,5 +210,5 @@ declare class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Respon
295
210
  */
296
211
  declare const StreamingAPI_Response: StreamingAPI_Response$Type;
297
212
  //#endregion
298
- export { StreamingAPI_LastLines, StreamingAPI_ReadBinary, StreamingAPI_ReadText, StreamingAPI_Response, StreamingAPI_StreamBinary, StreamingAPI_StreamText };
213
+ export { StreamingAPI_LastLines, StreamingAPI_ReadBinary, StreamingAPI_ReadText, StreamingAPI_Response };
299
214
  //# sourceMappingURL=protocol.d.ts.map
@@ -35,9 +35,9 @@ var StreamingAPI$Type = class extends MessageType {
35
35
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI
36
36
  */
37
37
  const StreamingAPI = new StreamingAPI$Type();
38
- var StreamingAPI_StreamBinary$Type = class extends MessageType {
38
+ var StreamingAPI_ReadBinary$Type = class extends MessageType {
39
39
  constructor() {
40
- super("MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary", [
40
+ super("MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary", [
41
41
  {
42
42
  no: 1,
43
43
  name: "resource_id",
@@ -46,85 +46,11 @@ var StreamingAPI_StreamBinary$Type = class extends MessageType {
46
46
  L: 0
47
47
  },
48
48
  {
49
- no: 2,
50
- name: "offset",
51
- kind: "scalar",
52
- T: 3,
53
- L: 0
54
- },
55
- {
56
- no: 11,
57
- name: "chunk_size",
58
- kind: "scalar",
59
- opt: true,
60
- T: 13
61
- },
62
- {
63
- no: 20,
64
- name: "read_limit",
49
+ no: 3,
50
+ name: "resource_signature",
65
51
  kind: "scalar",
66
52
  opt: true,
67
- T: 3,
68
- L: 0
69
- }
70
- ]);
71
- }
72
- create(value) {
73
- const message = globalThis.Object.create(this.messagePrototype);
74
- message.resourceId = 0n;
75
- message.offset = 0n;
76
- if (value !== void 0) reflectionMergePartial(this, message, value);
77
- return message;
78
- }
79
- internalBinaryRead(reader, length, options, target) {
80
- let message = target ?? this.create(), end = reader.pos + length;
81
- while (reader.pos < end) {
82
- let [fieldNo, wireType] = reader.tag();
83
- switch (fieldNo) {
84
- case 1:
85
- message.resourceId = reader.uint64().toBigInt();
86
- break;
87
- case 2:
88
- message.offset = reader.int64().toBigInt();
89
- break;
90
- case 11:
91
- message.chunkSize = reader.uint32();
92
- break;
93
- case 20:
94
- message.readLimit = reader.int64().toBigInt();
95
- break;
96
- default:
97
- let u = options.readUnknownField;
98
- if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
99
- let d = reader.skip(wireType);
100
- if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
101
- }
102
- }
103
- return message;
104
- }
105
- internalBinaryWrite(message, writer, options) {
106
- if (message.resourceId !== 0n) writer.tag(1, WireType.Varint).uint64(message.resourceId);
107
- if (message.offset !== 0n) writer.tag(2, WireType.Varint).int64(message.offset);
108
- if (message.chunkSize !== void 0) writer.tag(11, WireType.Varint).uint32(message.chunkSize);
109
- if (message.readLimit !== void 0) writer.tag(20, WireType.Varint).int64(message.readLimit);
110
- let u = options.writeUnknownFields;
111
- if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
112
- return writer;
113
- }
114
- };
115
- /**
116
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
117
- */
118
- const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();
119
- var StreamingAPI_ReadBinary$Type = class extends MessageType {
120
- constructor() {
121
- super("MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary", [
122
- {
123
- no: 1,
124
- name: "resource_id",
125
- kind: "scalar",
126
- T: 4,
127
- L: 0
53
+ T: 12
128
54
  },
129
55
  {
130
56
  no: 2,
@@ -157,6 +83,9 @@ var StreamingAPI_ReadBinary$Type = class extends MessageType {
157
83
  case 1:
158
84
  message.resourceId = reader.uint64().toBigInt();
159
85
  break;
86
+ case 3:
87
+ message.resourceSignature = reader.bytes();
88
+ break;
160
89
  case 2:
161
90
  message.offset = reader.int64().toBigInt();
162
91
  break;
@@ -175,6 +104,7 @@ var StreamingAPI_ReadBinary$Type = class extends MessageType {
175
104
  internalBinaryWrite(message, writer, options) {
176
105
  if (message.resourceId !== 0n) writer.tag(1, WireType.Varint).uint64(message.resourceId);
177
106
  if (message.offset !== 0n) writer.tag(2, WireType.Varint).int64(message.offset);
107
+ if (message.resourceSignature !== void 0) writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
178
108
  if (message.chunkSize !== void 0) writer.tag(11, WireType.Varint).uint32(message.chunkSize);
179
109
  let u = options.writeUnknownFields;
180
110
  if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -185,9 +115,9 @@ var StreamingAPI_ReadBinary$Type = class extends MessageType {
185
115
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
186
116
  */
187
117
  const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();
188
- var StreamingAPI_StreamText$Type = class extends MessageType {
118
+ var StreamingAPI_ReadText$Type = class extends MessageType {
189
119
  constructor() {
190
- super("MiLaboratories.Controller.Shared.StreamingAPI.StreamText", [
120
+ super("MiLaboratories.Controller.Shared.StreamingAPI.ReadText", [
191
121
  {
192
122
  no: 1,
193
123
  name: "resource_id",
@@ -196,96 +126,11 @@ var StreamingAPI_StreamText$Type = class extends MessageType {
196
126
  L: 0
197
127
  },
198
128
  {
199
- no: 2,
200
- name: "offset",
201
- kind: "scalar",
202
- T: 3,
203
- L: 0
204
- },
205
- {
206
- no: 20,
207
- name: "read_limit",
208
- kind: "scalar",
209
- opt: true,
210
- T: 3,
211
- L: 0
212
- },
213
- {
214
- no: 21,
215
- name: "search",
216
- kind: "scalar",
217
- opt: true,
218
- T: 9
219
- },
220
- {
221
- no: 22,
222
- name: "search_re",
129
+ no: 3,
130
+ name: "resource_signature",
223
131
  kind: "scalar",
224
132
  opt: true,
225
- T: 9
226
- }
227
- ]);
228
- }
229
- create(value) {
230
- const message = globalThis.Object.create(this.messagePrototype);
231
- message.resourceId = 0n;
232
- message.offset = 0n;
233
- if (value !== void 0) reflectionMergePartial(this, message, value);
234
- return message;
235
- }
236
- internalBinaryRead(reader, length, options, target) {
237
- let message = target ?? this.create(), end = reader.pos + length;
238
- while (reader.pos < end) {
239
- let [fieldNo, wireType] = reader.tag();
240
- switch (fieldNo) {
241
- case 1:
242
- message.resourceId = reader.uint64().toBigInt();
243
- break;
244
- case 2:
245
- message.offset = reader.int64().toBigInt();
246
- break;
247
- case 20:
248
- message.readLimit = reader.int64().toBigInt();
249
- break;
250
- case 21:
251
- message.search = reader.string();
252
- break;
253
- case 22:
254
- message.searchRe = reader.string();
255
- break;
256
- default:
257
- let u = options.readUnknownField;
258
- if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
259
- let d = reader.skip(wireType);
260
- if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
261
- }
262
- }
263
- return message;
264
- }
265
- internalBinaryWrite(message, writer, options) {
266
- if (message.resourceId !== 0n) writer.tag(1, WireType.Varint).uint64(message.resourceId);
267
- if (message.offset !== 0n) writer.tag(2, WireType.Varint).int64(message.offset);
268
- if (message.readLimit !== void 0) writer.tag(20, WireType.Varint).int64(message.readLimit);
269
- if (message.search !== void 0) writer.tag(21, WireType.LengthDelimited).string(message.search);
270
- if (message.searchRe !== void 0) writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
271
- let u = options.writeUnknownFields;
272
- if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
273
- return writer;
274
- }
275
- };
276
- /**
277
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
278
- */
279
- const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();
280
- var StreamingAPI_ReadText$Type = class extends MessageType {
281
- constructor() {
282
- super("MiLaboratories.Controller.Shared.StreamingAPI.ReadText", [
283
- {
284
- no: 1,
285
- name: "resource_id",
286
- kind: "scalar",
287
- T: 4,
288
- L: 0
133
+ T: 12
289
134
  },
290
135
  {
291
136
  no: 2,
@@ -333,6 +178,9 @@ var StreamingAPI_ReadText$Type = class extends MessageType {
333
178
  case 1:
334
179
  message.resourceId = reader.uint64().toBigInt();
335
180
  break;
181
+ case 3:
182
+ message.resourceSignature = reader.bytes();
183
+ break;
336
184
  case 2:
337
185
  message.offset = reader.int64().toBigInt();
338
186
  break;
@@ -357,6 +205,7 @@ var StreamingAPI_ReadText$Type = class extends MessageType {
357
205
  internalBinaryWrite(message, writer, options) {
358
206
  if (message.resourceId !== 0n) writer.tag(1, WireType.Varint).uint64(message.resourceId);
359
207
  if (message.offset !== 0n) writer.tag(2, WireType.Varint).int64(message.offset);
208
+ if (message.resourceSignature !== void 0) writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
360
209
  if (message.readLimit !== void 0) writer.tag(20, WireType.Varint).int64(message.readLimit);
361
210
  if (message.search !== void 0) writer.tag(21, WireType.LengthDelimited).string(message.search);
362
211
  if (message.searchRe !== void 0) writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
@@ -379,6 +228,13 @@ var StreamingAPI_LastLines$Type = class extends MessageType {
379
228
  T: 4,
380
229
  L: 0
381
230
  },
231
+ {
232
+ no: 4,
233
+ name: "resource_signature",
234
+ kind: "scalar",
235
+ opt: true,
236
+ T: 12
237
+ },
382
238
  {
383
239
  no: 2,
384
240
  name: "offset",
@@ -424,6 +280,9 @@ var StreamingAPI_LastLines$Type = class extends MessageType {
424
280
  case 1:
425
281
  message.resourceId = reader.uint64().toBigInt();
426
282
  break;
283
+ case 4:
284
+ message.resourceSignature = reader.bytes();
285
+ break;
427
286
  case 2:
428
287
  message.offset = reader.int64().toBigInt();
429
288
  break;
@@ -449,6 +308,7 @@ var StreamingAPI_LastLines$Type = class extends MessageType {
449
308
  if (message.resourceId !== 0n) writer.tag(1, WireType.Varint).uint64(message.resourceId);
450
309
  if (message.offset !== void 0) writer.tag(2, WireType.Varint).int64(message.offset);
451
310
  if (message.lineCount !== void 0) writer.tag(3, WireType.Varint).int32(message.lineCount);
311
+ if (message.resourceSignature !== void 0) writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
452
312
  if (message.search !== void 0) writer.tag(21, WireType.LengthDelimited).string(message.search);
453
313
  if (message.searchRe !== void 0) writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
454
314
  let u = options.writeUnknownFields;
@@ -533,16 +393,6 @@ const StreamingAPI_Response = new StreamingAPI_Response$Type();
533
393
  * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming
534
394
  */
535
395
  const Streaming = new ServiceType("MiLaboratories.Controller.Shared.Streaming", [
536
- {
537
- name: "StreamBinary",
538
- serverStreaming: true,
539
- options: { "google.api.http": {
540
- post: "/v1/stream/binary",
541
- body: "*"
542
- } },
543
- I: StreamingAPI_StreamBinary,
544
- O: StreamingAPI_Response
545
- },
546
396
  {
547
397
  name: "ReadBinary",
548
398
  options: { "google.api.http": {
@@ -552,16 +402,6 @@ const Streaming = new ServiceType("MiLaboratories.Controller.Shared.Streaming",
552
402
  I: StreamingAPI_ReadBinary,
553
403
  O: StreamingAPI_Response
554
404
  },
555
- {
556
- name: "StreamText",
557
- serverStreaming: true,
558
- options: { "google.api.http": {
559
- post: "/v1/stream/text",
560
- body: "*"
561
- } },
562
- I: StreamingAPI_StreamText,
563
- O: StreamingAPI_Response
564
- },
565
405
  {
566
406
  name: "ReadText",
567
407
  options: { "google.api.http": {