@milaboratories/pl-drivers 1.12.7 → 1.12.9

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 (271) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +7 -13
  2. package/dist/clients/constructors.cjs +6 -7
  3. package/dist/clients/constructors.cjs.map +1 -1
  4. package/dist/clients/constructors.d.ts.map +1 -0
  5. package/dist/clients/constructors.js +1 -2
  6. package/dist/clients/constructors.js.map +1 -1
  7. package/dist/clients/crc32c.cjs +1 -2
  8. package/dist/clients/crc32c.cjs.map +1 -1
  9. package/dist/clients/crc32c.js +1 -1
  10. package/dist/clients/download.cjs +6 -6
  11. package/dist/clients/download.cjs.map +1 -1
  12. package/dist/clients/download.d.ts.map +1 -0
  13. package/dist/clients/download.js +2 -2
  14. package/dist/clients/download.js.map +1 -1
  15. package/dist/clients/logs.cjs +5 -4
  16. package/dist/clients/logs.cjs.map +1 -1
  17. package/dist/clients/logs.d.ts.map +1 -0
  18. package/dist/clients/logs.js +3 -2
  19. package/dist/clients/logs.js.map +1 -1
  20. package/dist/clients/ls_api.cjs +4 -4
  21. package/dist/clients/ls_api.cjs.map +1 -1
  22. package/dist/clients/ls_api.d.ts.map +1 -0
  23. package/dist/clients/ls_api.js +2 -2
  24. package/dist/clients/ls_api.js.map +1 -1
  25. package/dist/clients/progress.cjs +7 -5
  26. package/dist/clients/progress.cjs.map +1 -1
  27. package/dist/clients/progress.d.ts.map +1 -0
  28. package/dist/clients/progress.js +5 -3
  29. package/dist/clients/progress.js.map +1 -1
  30. package/dist/clients/upload.cjs +22 -9
  31. package/dist/clients/upload.cjs.map +1 -1
  32. package/dist/clients/upload.d.ts.map +1 -0
  33. package/dist/clients/upload.js +18 -5
  34. package/dist/clients/upload.js.map +1 -1
  35. package/dist/drivers/download_blob/blob_key.cjs +3 -4
  36. package/dist/drivers/download_blob/blob_key.cjs.map +1 -1
  37. package/dist/drivers/download_blob/blob_key.js +2 -3
  38. package/dist/drivers/download_blob/blob_key.js.map +1 -1
  39. package/dist/drivers/download_blob/download_blob.cjs +13 -14
  40. package/dist/drivers/download_blob/download_blob.cjs.map +1 -1
  41. package/dist/drivers/download_blob/download_blob.d.ts.map +1 -0
  42. package/dist/drivers/download_blob/download_blob.js +1 -2
  43. package/dist/drivers/download_blob/download_blob.js.map +1 -1
  44. package/dist/drivers/download_blob/download_blob_task.cjs +4 -5
  45. package/dist/drivers/download_blob/download_blob_task.cjs.map +1 -1
  46. package/dist/drivers/download_blob/download_blob_task.js +1 -2
  47. package/dist/drivers/download_blob/download_blob_task.js.map +1 -1
  48. package/dist/drivers/download_blob/sparse_cache/cache.cjs +4 -5
  49. package/dist/drivers/download_blob/sparse_cache/cache.cjs.map +1 -1
  50. package/dist/drivers/download_blob/sparse_cache/cache.js +1 -2
  51. package/dist/drivers/download_blob/sparse_cache/cache.js.map +1 -1
  52. package/dist/drivers/download_blob/sparse_cache/file.cjs +2 -3
  53. package/dist/drivers/download_blob/sparse_cache/file.cjs.map +1 -1
  54. package/dist/drivers/download_blob/sparse_cache/file.js +1 -2
  55. package/dist/drivers/download_blob/sparse_cache/file.js.map +1 -1
  56. package/dist/drivers/download_blob/sparse_cache/ranges.cjs +3 -4
  57. package/dist/drivers/download_blob/sparse_cache/ranges.cjs.map +1 -1
  58. package/dist/drivers/download_blob/sparse_cache/ranges.js +1 -2
  59. package/dist/drivers/download_blob/sparse_cache/ranges.js.map +1 -1
  60. package/dist/drivers/download_blob_url/driver.cjs +8 -9
  61. package/dist/drivers/download_blob_url/driver.cjs.map +1 -1
  62. package/dist/drivers/download_blob_url/driver.d.ts.map +1 -0
  63. package/dist/drivers/download_blob_url/driver.js +1 -2
  64. package/dist/drivers/download_blob_url/driver.js.map +1 -1
  65. package/dist/drivers/download_blob_url/driver_id.cjs +1 -2
  66. package/dist/drivers/download_blob_url/driver_id.cjs.map +1 -1
  67. package/dist/drivers/download_blob_url/driver_id.js +1 -1
  68. package/dist/drivers/download_blob_url/snapshot.cjs +2 -3
  69. package/dist/drivers/download_blob_url/snapshot.cjs.map +1 -1
  70. package/dist/drivers/download_blob_url/snapshot.d.ts +2 -2
  71. package/dist/drivers/download_blob_url/snapshot.d.ts.map +1 -0
  72. package/dist/drivers/download_blob_url/snapshot.js +1 -2
  73. package/dist/drivers/download_blob_url/snapshot.js.map +1 -1
  74. package/dist/drivers/download_blob_url/task.cjs +5 -6
  75. package/dist/drivers/download_blob_url/task.cjs.map +1 -1
  76. package/dist/drivers/download_blob_url/task.d.ts.map +1 -0
  77. package/dist/drivers/download_blob_url/task.js +1 -2
  78. package/dist/drivers/download_blob_url/task.js.map +1 -1
  79. package/dist/drivers/download_url/driver.cjs +7 -8
  80. package/dist/drivers/download_url/driver.cjs.map +1 -1
  81. package/dist/drivers/download_url/driver.d.ts.map +1 -0
  82. package/dist/drivers/download_url/driver.js +1 -2
  83. package/dist/drivers/download_url/driver.js.map +1 -1
  84. package/dist/drivers/download_url/task.cjs +4 -5
  85. package/dist/drivers/download_url/task.cjs.map +1 -1
  86. package/dist/drivers/download_url/task.d.ts.map +1 -0
  87. package/dist/drivers/download_url/task.js +1 -2
  88. package/dist/drivers/download_url/task.js.map +1 -1
  89. package/dist/drivers/helpers/download_local_handle.cjs +1 -2
  90. package/dist/drivers/helpers/download_local_handle.cjs.map +1 -1
  91. package/dist/drivers/helpers/download_local_handle.js +1 -1
  92. package/dist/drivers/helpers/download_remote_handle.cjs +3 -4
  93. package/dist/drivers/helpers/download_remote_handle.cjs.map +1 -1
  94. package/dist/drivers/helpers/download_remote_handle.js +1 -2
  95. package/dist/drivers/helpers/download_remote_handle.js.map +1 -1
  96. package/dist/drivers/helpers/files_cache.cjs +2 -3
  97. package/dist/drivers/helpers/files_cache.cjs.map +1 -1
  98. package/dist/drivers/helpers/files_cache.js +1 -2
  99. package/dist/drivers/helpers/files_cache.js.map +1 -1
  100. package/dist/drivers/helpers/helpers.cjs +1 -2
  101. package/dist/drivers/helpers/helpers.cjs.map +1 -1
  102. package/dist/drivers/helpers/helpers.d.ts.map +1 -0
  103. package/dist/drivers/helpers/helpers.js +1 -1
  104. package/dist/drivers/helpers/helpers.js.map +1 -1
  105. package/dist/drivers/helpers/logs_handle.cjs +2 -3
  106. package/dist/drivers/helpers/logs_handle.cjs.map +1 -1
  107. package/dist/drivers/helpers/logs_handle.js +1 -2
  108. package/dist/drivers/helpers/logs_handle.js.map +1 -1
  109. package/dist/drivers/helpers/ls_remote_import_handle.cjs +4 -6
  110. package/dist/drivers/helpers/ls_remote_import_handle.cjs.map +1 -1
  111. package/dist/drivers/helpers/ls_remote_import_handle.js +3 -5
  112. package/dist/drivers/helpers/ls_remote_import_handle.js.map +1 -1
  113. package/dist/drivers/helpers/ls_storage_entry.cjs +2 -3
  114. package/dist/drivers/helpers/ls_storage_entry.cjs.map +1 -1
  115. package/dist/drivers/helpers/ls_storage_entry.js +1 -2
  116. package/dist/drivers/helpers/ls_storage_entry.js.map +1 -1
  117. package/dist/drivers/helpers/polling_ops.d.ts.map +1 -0
  118. package/dist/drivers/helpers/read_file.cjs +2 -3
  119. package/dist/drivers/helpers/read_file.cjs.map +1 -1
  120. package/dist/drivers/helpers/read_file.js +1 -2
  121. package/dist/drivers/helpers/read_file.js.map +1 -1
  122. package/dist/drivers/logs.cjs +3 -4
  123. package/dist/drivers/logs.cjs.map +1 -1
  124. package/dist/drivers/logs.d.ts.map +1 -0
  125. package/dist/drivers/logs.js +1 -2
  126. package/dist/drivers/logs.js.map +1 -1
  127. package/dist/drivers/logs_stream.cjs +4 -5
  128. package/dist/drivers/logs_stream.cjs.map +1 -1
  129. package/dist/drivers/logs_stream.d.ts.map +1 -0
  130. package/dist/drivers/logs_stream.js +1 -2
  131. package/dist/drivers/logs_stream.js.map +1 -1
  132. package/dist/drivers/ls.cjs +7 -8
  133. package/dist/drivers/ls.cjs.map +1 -1
  134. package/dist/drivers/ls.d.ts.map +1 -0
  135. package/dist/drivers/ls.js +1 -2
  136. package/dist/drivers/ls.js.map +1 -1
  137. package/dist/drivers/types.cjs +2 -3
  138. package/dist/drivers/types.cjs.map +1 -1
  139. package/dist/drivers/types.d.ts +4 -4
  140. package/dist/drivers/types.d.ts.map +1 -0
  141. package/dist/drivers/types.js +1 -2
  142. package/dist/drivers/types.js.map +1 -1
  143. package/dist/drivers/upload.cjs +5 -6
  144. package/dist/drivers/upload.cjs.map +1 -1
  145. package/dist/drivers/upload.d.ts.map +1 -0
  146. package/dist/drivers/upload.js +1 -2
  147. package/dist/drivers/upload.js.map +1 -1
  148. package/dist/drivers/upload_task.cjs +4 -5
  149. package/dist/drivers/upload_task.cjs.map +1 -1
  150. package/dist/drivers/upload_task.d.ts.map +1 -0
  151. package/dist/drivers/upload_task.js +1 -2
  152. package/dist/drivers/upload_task.js.map +1 -1
  153. package/dist/drivers/urls/url.cjs +2 -3
  154. package/dist/drivers/urls/url.cjs.map +1 -1
  155. package/dist/drivers/urls/url.js +1 -2
  156. package/dist/drivers/urls/url.js.map +1 -1
  157. package/dist/drivers/virtual_storages.cjs +2 -3
  158. package/dist/drivers/virtual_storages.cjs.map +1 -1
  159. package/dist/drivers/virtual_storages.d.ts.map +1 -0
  160. package/dist/drivers/virtual_storages.js +1 -2
  161. package/dist/drivers/virtual_storages.js.map +1 -1
  162. package/dist/helpers/download.cjs +3 -4
  163. package/dist/helpers/download.cjs.map +1 -1
  164. package/dist/helpers/download.d.ts.map +1 -0
  165. package/dist/helpers/download.js +1 -2
  166. package/dist/helpers/download.js.map +1 -1
  167. package/dist/helpers/download_errors.cjs +1 -2
  168. package/dist/helpers/download_errors.cjs.map +1 -1
  169. package/dist/helpers/download_errors.d.ts.map +1 -0
  170. package/dist/helpers/download_errors.js +1 -1
  171. package/dist/helpers/validate.cjs +2 -3
  172. package/dist/helpers/validate.cjs.map +1 -1
  173. package/dist/helpers/validate.d.ts.map +1 -0
  174. package/dist/helpers/validate.js +1 -2
  175. package/dist/helpers/validate.js.map +1 -1
  176. package/dist/index.cjs +22 -23
  177. package/dist/index.js +1 -2
  178. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +32 -27
  179. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +1 -1
  180. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs +4 -5
  181. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +1 -1
  182. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +6 -6
  183. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -0
  184. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +2 -3
  185. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js.map +1 -1
  186. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +11 -5
  187. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -0
  188. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +32 -31
  189. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +1 -1
  190. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs +31 -24
  191. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +1 -1
  192. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs +7 -8
  193. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +1 -1
  194. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js +5 -6
  195. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js.map +1 -1
  196. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +16 -16
  197. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -0
  198. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +30 -27
  199. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +1 -1
  200. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs +42 -28
  201. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +1 -1
  202. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs +4 -5
  203. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +1 -1
  204. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +6 -6
  205. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -0
  206. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +2 -3
  207. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js.map +1 -1
  208. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +8 -0
  209. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -0
  210. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +40 -26
  211. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +1 -1
  212. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs +32 -196
  213. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +1 -1
  214. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs +23 -45
  215. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +1 -1
  216. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +40 -70
  217. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -0
  218. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +21 -43
  219. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js.map +1 -1
  220. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +52 -137
  221. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -0
  222. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +31 -195
  223. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +1 -1
  224. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs +228 -46
  225. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +1 -1
  226. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs +24 -11
  227. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +1 -1
  228. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js +22 -9
  229. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +1 -1
  230. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -0
  231. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +227 -45
  232. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -1
  233. package/dist/proto-grpc/google/protobuf/duration.cjs +2 -3
  234. package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -1
  235. package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
  236. package/dist/proto-grpc/google/protobuf/duration.js +1 -2
  237. package/dist/proto-grpc/google/protobuf/duration.js.map +1 -1
  238. package/dist/proto-grpc/google/protobuf/timestamp.cjs +2 -3
  239. package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
  240. package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
  241. package/dist/proto-grpc/google/protobuf/timestamp.js +1 -2
  242. package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
  243. package/dist/proto-rest/downloadapi.d.ts +8 -3
  244. package/dist/proto-rest/downloadapi.d.ts.map +1 -0
  245. package/dist/proto-rest/index.d.ts.map +1 -0
  246. package/dist/proto-rest/progressapi.d.ts +4 -2
  247. package/dist/proto-rest/progressapi.d.ts.map +1 -0
  248. package/dist/proto-rest/streamingapi.d.ts +64 -203
  249. package/dist/proto-rest/streamingapi.d.ts.map +1 -0
  250. package/package.json +10 -10
  251. package/src/clients/download.ts +1 -0
  252. package/src/clients/logs.ts +2 -0
  253. package/src/clients/ls_api.ts +1 -0
  254. package/src/clients/progress.ts +1 -1
  255. package/src/clients/upload.ts +14 -1
  256. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +2 -2
  257. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +24 -11
  258. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +8 -8
  259. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +31 -18
  260. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +2 -2
  261. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +23 -1
  262. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +39 -78
  263. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +72 -263
  264. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +41 -14
  265. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +286 -44
  266. package/src/proto-grpc/google/protobuf/descriptor.ts +2 -5
  267. package/src/proto-rest/downloadapi.ts +8 -3
  268. package/src/proto-rest/lsapi.ts +23 -18
  269. package/src/proto-rest/progressapi.ts +4 -0
  270. package/src/proto-rest/streamingapi.ts +65 -211
  271. package/src/proto-rest/uploadapi.ts +141 -39
@@ -1 +1 @@
1
- {"version":3,"file":"protocol.cjs","names":["MessageType","UnknownFieldHandler","WireType","ServiceType"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI\n */\nexport interface StreamingAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary\n */\nexport interface StreamingAPI_StreamBinary {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the data.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <chunk_size> limits the maximum size of <data> for each response message in stream.\n *\n * Default value: 32 768 (32 KiB)\n * Max value: 3900 * 1024 (3.9 MiB)\n *\n * @generated from protobuf field: optional uint32 chunk_size = 11\n */\n chunkSize?: number;\n /**\n * <read_limit> allows client to limit total data sent from server.\n * This limit is aggregation of all data, sent in all chunks.\n * E.g. to read 2000 bytes of data in chunks of at most\n * 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.\n * For storage item of appropriate size this settings will result in\n * 16 messages from server: 15 of 130 bytes and one of 50 bytes.\n *\n * @generated from protobuf field: optional int64 read_limit = 20\n */\n readLimit?: bigint;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\n */\nexport interface StreamingAPI_ReadBinary {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the data.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <chunk_size> limits the maximum size of <data> for response message in stream.\n *\n * Default value: 32 768 (32 KiB)\n * Max value: 3900 * 1024 (3.9 MiB)\n *\n * @generated from protobuf field: optional uint32 chunk_size = 11\n */\n chunkSize?: number;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText\n */\nexport interface StreamingAPI_StreamText {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.\n * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <read_limit> allows client to limit total data sent from server.\n * This limit is aggregation of all data, sent in all chunks, measured\n * in lines of text.\n * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.\n * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.\n * this is equivalent to 'head -n <read_limit> | grep <search>'.\n *\n * @generated from protobuf field: optional int64 read_limit = 20\n */\n readLimit?: bigint;\n /**\n * <search> is substring for line search pattern.\n * This option makes controller to send to the client only lines, that\n * have given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is regular expression for line search pattern.\n * This option makes controller to send to the client only lines, that\n * match given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText\n */\nexport interface StreamingAPI_ReadText {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.\n * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <read_limit> allows client to limit total data sent from server.\n * Measured in lines of text.\n * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.\n * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.\n * this is equivalent to 'head -n <read_limit> | grep <search>'.\n * At most 3.9 MiB (3900 * 1024 KiB) of data is returned in single read regardless of <read_limit> option\n * Only full lines of text are returned except for the last line from the completed source\n * (the one that is not expected to have new data, like blob in storage)\n *\n * @generated from protobuf field: optional int64 read_limit = 20\n */\n readLimit?: bigint;\n /**\n * <search> is substring for line search pattern.\n * This option makes controller to send to the client only lines, that\n * have given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is regular expression for line search pattern.\n * This option makes controller to send to the client only lines, that\n * match given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines\n */\nexport interface StreamingAPI_LastLines {\n /**\n * <resource_id> of Stream resource, that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * <offset> makes streamer to perform seek operation to given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.\n * By default, LastLines starts to treat the data source from the very last byte available in data stream\n * at the moment of call, but client can set the server to start from earlier position.\n *\n * @generated from protobuf field: optional int64 offset = 2\n */\n offset?: bigint;\n /**\n * <line_count> makes streamer to return up to <line_count> lines to the client.\n * Default value: 1\n *\n * @generated from protobuf field: optional int32 line_count = 3\n */\n lineCount?: number;\n /**\n * <search> is substring for line search pattern.\n * This option makes controller to send to the client only lines, that\n * have given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is regular expression for line search pattern.\n * This option makes controller to send to the client only lines, that\n * match given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response\n */\nexport interface StreamingAPI_Response {\n /**\n * data chunk from item, starting from the <new_offset> of the previous message in the same stream.\n *\n * @generated from protobuf field: bytes data = 1\n */\n data: Uint8Array;\n /**\n * <size> is the actual size of the streamed item at the moment of this message.\n * This might be not a final amount of streamed data, as stream source can be updated\n * by other independent process (e.g., data is written to log file).\n * This field in combination with <new_offset> shows, how far the client is from the end\n * of the data right now.\n *\n * @generated from protobuf field: uint64 size = 2\n */\n size: bigint;\n /**\n * <new_offset> is the new offset in bytes from the start of the streamed item,\n * including size of <data> in current response.\n * Call to Stream rpc with <offset> = <new_offset> will continue\n * streaming from the place of last received message\n * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of\n * previously received <data>)\n *\n * @generated from protobuf field: uint64 new_offset = 3\n */\n newOffset: bigint;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI$Type extends MessageType<StreamingAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI\", []);\n }\n create(value?: PartialMessage<StreamingAPI>): StreamingAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI): StreamingAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI\n */\nexport const StreamingAPI = new StreamingAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 11, name: \"chunk_size\", kind: \"scalar\", opt: true, T: 13 /*ScalarType.UINT32*/ },\n { no: 20, name: \"read_limit\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_StreamBinary>): StreamingAPI_StreamBinary {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamBinary): StreamingAPI_StreamBinary {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional uint32 chunk_size */ 11:\n message.chunkSize = reader.uint32();\n break;\n case /* optional int64 read_limit */ 20:\n message.readLimit = reader.int64().toBigInt();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_StreamBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional uint32 chunk_size = 11; */\n if (message.chunkSize !== undefined)\n writer.tag(11, WireType.Varint).uint32(message.chunkSize);\n /* optional int64 read_limit = 20; */\n if (message.readLimit !== undefined)\n writer.tag(20, WireType.Varint).int64(message.readLimit);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary\n */\nexport const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 11, name: \"chunk_size\", kind: \"scalar\", opt: true, T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadBinary): StreamingAPI_ReadBinary {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional uint32 chunk_size */ 11:\n message.chunkSize = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_ReadBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional uint32 chunk_size = 11; */\n if (message.chunkSize !== undefined)\n writer.tag(11, WireType.Varint).uint32(message.chunkSize);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\n */\nexport const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.StreamText\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 20, name: \"read_limit\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_StreamText>): StreamingAPI_StreamText {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamText): StreamingAPI_StreamText {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int64 read_limit */ 20:\n message.readLimit = reader.int64().toBigInt();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_StreamText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional int64 read_limit = 20; */\n if (message.readLimit !== undefined)\n writer.tag(20, WireType.Varint).int64(message.readLimit);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText\n */\nexport const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.ReadText\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 20, name: \"read_limit\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadText): StreamingAPI_ReadText {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int64 read_limit */ 20:\n message.readLimit = reader.int64().toBigInt();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_ReadText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional int64 read_limit = 20; */\n if (message.readLimit !== undefined)\n writer.tag(20, WireType.Varint).int64(message.readLimit);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText\n */\nexport const StreamingAPI_ReadText = new StreamingAPI_ReadText$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.LastLines\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"line_count\", kind: \"scalar\", opt: true, T: 5 /*ScalarType.INT32*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_LastLines>): StreamingAPI_LastLines {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_LastLines): StreamingAPI_LastLines {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int32 line_count */ 3:\n message.lineCount = reader.int32();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_LastLines, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* optional int64 offset = 2; */\n if (message.offset !== undefined)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional int32 line_count = 3; */\n if (message.lineCount !== undefined)\n writer.tag(3, WireType.Varint).int32(message.lineCount);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines\n */\nexport const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.Response\", [\n { no: 1, name: \"data\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"size\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"new_offset\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.data = new Uint8Array(0);\n message.size = 0n;\n message.newOffset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_Response): StreamingAPI_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes data */ 1:\n message.data = reader.bytes();\n break;\n case /* uint64 size */ 2:\n message.size = reader.uint64().toBigInt();\n break;\n case /* uint64 new_offset */ 3:\n message.newOffset = reader.uint64().toBigInt();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes data = 1; */\n if (message.data.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.data);\n /* uint64 size = 2; */\n if (message.size !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.size);\n /* uint64 new_offset = 3; */\n if (message.newOffset !== 0n)\n writer.tag(3, WireType.Varint).uint64(message.newOffset);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response\n */\nexport const StreamingAPI_Response = new StreamingAPI_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport const Streaming = new ServiceType(\"MiLaboratories.Controller.Shared.Streaming\", [\n { name: \"StreamBinary\", serverStreaming: true, options: { \"google.api.http\": { post: \"/v1/stream/binary\", body: \"*\" } }, I: StreamingAPI_StreamBinary, O: StreamingAPI_Response },\n { name: \"ReadBinary\", options: { \"google.api.http\": { post: \"/v1/read/binary\", body: \"*\" } }, I: StreamingAPI_ReadBinary, O: StreamingAPI_Response },\n { name: \"StreamText\", serverStreaming: true, options: { \"google.api.http\": { post: \"/v1/stream/text\", body: \"*\" } }, I: StreamingAPI_StreamText, O: StreamingAPI_Response },\n { name: \"ReadText\", options: { \"google.api.http\": { post: \"/v1/read/text\", body: \"*\" } }, I: StreamingAPI_ReadText, O: StreamingAPI_Response },\n { name: \"LastLines\", options: { \"google.api.http\": { post: \"/v1/last-lines\", body: \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AE,MAAM;GAAqB,MAAM;GAAK,EAAE;EAAE,GAAG;EAA2B,GAAG;EAAuB;CACjL;EAAE,MAAM;EAAc,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAmB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAyB,GAAG;EAAuB;CACpJ;EAAE,MAAM;EAAc,iBAAiB;EAAM,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAmB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAyB,GAAG;EAAuB;CAC3K;EAAE,MAAM;EAAY,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAiB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAuB,GAAG;EAAuB;CAC9I;EAAE,MAAM;EAAa,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAkB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAwB,GAAG;EAAuB;CACpJ,CAAC"}
1
+ {"version":3,"file":"protocol.cjs","names":["MessageType","UnknownFieldHandler","WireType","ServiceType"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI\n */\nexport interface StreamingAPI {\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\n */\nexport interface StreamingAPI_ReadBinary {\n /**\n * <resource_id> of Stream resource that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: optional bytes resource_signature = 3\n */\n resourceSignature?: Uint8Array;\n /**\n * <offset> makes the streamer perform a seek operation to the given offset before sending the data.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <chunk_size> limits the maximum size of <data> for response message in stream.\n *\n * Default value: 32 768 (32 KiB)\n * Max value: 3900 * 1024 (3.9 MiB)\n *\n * @generated from protobuf field: optional uint32 chunk_size = 11\n */\n chunkSize?: number;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText\n */\nexport interface StreamingAPI_ReadText {\n /**\n * <resource_id> of Stream resource that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: optional bytes resource_signature = 3\n */\n resourceSignature?: Uint8Array;\n /**\n * <offset> makes the streamer perform a seek operation to the given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.\n * The client can just use the <new_offset> value of the last response from the server to continue streaming after reconnection.\n *\n * @generated from protobuf field: int64 offset = 2\n */\n offset: bigint;\n /**\n * <read_limit> allows the client to limit total data sent from the server.\n * Measured in lines of text.\n * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.\n * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.\n * This is equivalent to 'head -n <read_limit> | grep <search>'.\n * At most 3.9 MiB (3900 KiB) of data is returned in a single read regardless of the <read_limit> option\n * Only full lines of text are returned except for the last line from the completed source\n * (the one that is not expected to have new data, like a blob in storage)\n *\n * @generated from protobuf field: optional int64 read_limit = 20\n */\n readLimit?: bigint;\n /**\n * <search> is a substring for the line search pattern.\n * This option makes the controller send to the client only lines that\n * have the given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is a regular expression for the line search pattern.\n * This option makes the controller send to the client only lines that\n * match the given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines\n */\nexport interface StreamingAPI_LastLines {\n /**\n * <resource_id> of Stream resource that keeps info on item to be streamed.\n *\n * @generated from protobuf field: uint64 resource_id = 1\n */\n resourceId: bigint;\n /**\n * Signature proving the caller is authorized to access this resource.\n *\n * @generated from protobuf field: optional bytes resource_signature = 4\n */\n resourceSignature?: Uint8Array;\n /**\n * <offset> makes the streamer perform a seek operation to the given offset before sending the contents.\n * This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.\n * By default, LastLines starts reading the data source from the very last byte available in the data stream\n * at the moment of the call, but the client can set the server to start from an earlier position.\n *\n * @generated from protobuf field: optional int64 offset = 2\n */\n offset?: bigint;\n /**\n * <line_count> makes the streamer return up to <line_count> lines to the client.\n * Default value: 1\n *\n * @generated from protobuf field: optional int32 line_count = 3\n */\n lineCount?: number;\n /**\n * <search> is a substring for the line search pattern.\n * This option makes the controller send to the client only lines that\n * have the given substring.\n *\n * @generated from protobuf field: optional string search = 21\n */\n search?: string;\n /**\n * <search_re> is a regular expression for the line search pattern.\n * This option makes the controller send to the client only lines that\n * match the given regular expression.\n *\n * @generated from protobuf field: optional string search_re = 22\n */\n searchRe?: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response\n */\nexport interface StreamingAPI_Response {\n /**\n * data chunk from the item, starting from the <new_offset> of the previous message in the same stream.\n *\n * @generated from protobuf field: bytes data = 1\n */\n data: Uint8Array;\n /**\n * <size> is the actual size of the streamed item at the moment of this message.\n * This might not be the final amount of streamed data, as the stream source can be updated\n * by another independent process (e.g., data is written to a log file).\n * This field in combination with <new_offset> shows how far the client is from the end\n * of the data right now.\n *\n * @generated from protobuf field: uint64 size = 2\n */\n size: bigint;\n /**\n * <new_offset> is the new offset in bytes from the start of the streamed item,\n * including the size of <data> in the current response.\n * A call to the Stream RPC with <offset> = <new_offset> will continue\n * streaming from the place of the last received message\n * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of\n * previously received <data>)\n *\n * @generated from protobuf field: uint64 new_offset = 3\n */\n newOffset: bigint;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI$Type extends MessageType<StreamingAPI> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI\", []);\n }\n create(value?: PartialMessage<StreamingAPI>): StreamingAPI {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI): StreamingAPI {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI\n */\nexport const StreamingAPI = new StreamingAPI$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 11, name: \"chunk_size\", kind: \"scalar\", opt: true, T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadBinary): StreamingAPI_ReadBinary {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional uint32 chunk_size */ 11:\n message.chunkSize = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_ReadBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional bytes resource_signature = 3; */\n if (message.resourceSignature !== undefined)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n /* optional uint32 chunk_size = 11; */\n if (message.chunkSize !== undefined)\n writer.tag(11, WireType.Varint).uint32(message.chunkSize);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary\n */\nexport const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.ReadText\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"resource_signature\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 20, name: \"read_limit\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.offset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadText): StreamingAPI_ReadText {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional bytes resource_signature */ 3:\n message.resourceSignature = reader.bytes();\n break;\n case /* int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int64 read_limit */ 20:\n message.readLimit = reader.int64().toBigInt();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_ReadText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* int64 offset = 2; */\n if (message.offset !== 0n)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional bytes resource_signature = 3; */\n if (message.resourceSignature !== undefined)\n writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);\n /* optional int64 read_limit = 20; */\n if (message.readLimit !== undefined)\n writer.tag(20, WireType.Varint).int64(message.readLimit);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText\n */\nexport const StreamingAPI_ReadText = new StreamingAPI_ReadText$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.LastLines\", [\n { no: 1, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 4, name: \"resource_signature\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"offset\", kind: \"scalar\", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"line_count\", kind: \"scalar\", opt: true, T: 5 /*ScalarType.INT32*/ },\n { no: 21, name: \"search\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ },\n { no: 22, name: \"search_re\", kind: \"scalar\", opt: true, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_LastLines>): StreamingAPI_LastLines {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_LastLines): StreamingAPI_LastLines {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 1:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional bytes resource_signature */ 4:\n message.resourceSignature = reader.bytes();\n break;\n case /* optional int64 offset */ 2:\n message.offset = reader.int64().toBigInt();\n break;\n case /* optional int32 line_count */ 3:\n message.lineCount = reader.int32();\n break;\n case /* optional string search */ 21:\n message.search = reader.string();\n break;\n case /* optional string search_re */ 22:\n message.searchRe = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_LastLines, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 1; */\n if (message.resourceId !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.resourceId);\n /* optional int64 offset = 2; */\n if (message.offset !== undefined)\n writer.tag(2, WireType.Varint).int64(message.offset);\n /* optional int32 line_count = 3; */\n if (message.lineCount !== undefined)\n writer.tag(3, WireType.Varint).int32(message.lineCount);\n /* optional bytes resource_signature = 4; */\n if (message.resourceSignature !== undefined)\n writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);\n /* optional string search = 21; */\n if (message.search !== undefined)\n writer.tag(21, WireType.LengthDelimited).string(message.search);\n /* optional string search_re = 22; */\n if (message.searchRe !== undefined)\n writer.tag(22, WireType.LengthDelimited).string(message.searchRe);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines\n */\nexport const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {\n constructor() {\n super(\"MiLaboratories.Controller.Shared.StreamingAPI.Response\", [\n { no: 1, name: \"data\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"size\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 3, name: \"new_offset\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }\n ]);\n }\n create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.data = new Uint8Array(0);\n message.size = 0n;\n message.newOffset = 0n;\n if (value !== undefined)\n reflectionMergePartial<StreamingAPI_Response>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_Response): StreamingAPI_Response {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes data */ 1:\n message.data = reader.bytes();\n break;\n case /* uint64 size */ 2:\n message.size = reader.uint64().toBigInt();\n break;\n case /* uint64 new_offset */ 3:\n message.newOffset = reader.uint64().toBigInt();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: StreamingAPI_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes data = 1; */\n if (message.data.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.data);\n /* uint64 size = 2; */\n if (message.size !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.size);\n /* uint64 new_offset = 3; */\n if (message.newOffset !== 0n)\n writer.tag(3, WireType.Varint).uint64(message.newOffset);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response\n */\nexport const StreamingAPI_Response = new StreamingAPI_Response$Type();\n/**\n * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport const Streaming = new ServiceType(\"MiLaboratories.Controller.Shared.Streaming\", [\n { name: \"ReadBinary\", options: { \"google.api.http\": { post: \"/v1/read/binary\", body: \"*\" } }, I: StreamingAPI_ReadBinary, O: StreamingAPI_Response },\n { name: \"ReadText\", options: { \"google.api.http\": { post: \"/v1/read/text\", body: \"*\" } }, I: StreamingAPI_ReadText, O: StreamingAPI_Response },\n { name: \"LastLines\", options: { \"google.api.http\": { post: \"/v1/last-lines\", body: \"*\" } }, I: StreamingAPI_LastLines, O: StreamingAPI_Response }\n]);\n"],"mappings":";;;;AA0LA,IAAM,oBAAN,cAAgCA,qBAAAA,YAA0B;CACtD,cAAc;AACV,QAAM,iDAAiD,EAAE,CAAC;;CAE9D,OAAO,OAAoD;EACvD,MAAM,UAAU,WAAW,OAAO,OAAQ,KAAK,iBAAmB;AAClE,MAAI,UAAU,KAAA,EACV,EAAA,GAAA,qBAAA,wBAAqC,MAAM,SAAS,MAAM;AAC9D,SAAO;;CAEX,mBAAmB,QAAuB,QAAgB,SAA4B,QAAqC;EACvH,IAAI,UAAU,UAAU,KAAK,QAAQ,EAAE,MAAM,OAAO,MAAM;AAC1D,SAAO,OAAO,MAAM,KAAK;GACrB,IAAI,CAAC,SAAS,YAAY,OAAO,KAAK;AACtC,WAAQ,SAAR;IACI;KACI,IAAI,IAAI,QAAQ;AAChB,SAAI,MAAM,QACN,OAAM,IAAI,WAAW,MAAM,iBAAiB,QAAQ,cAAc,SAAS,QAAQ,KAAK,WAAW;KACvG,IAAI,IAAI,OAAO,KAAK,SAAS;AAC7B,SAAI,MAAM,MACN,EAAC,MAAM,OAAOC,qBAAAA,oBAAoB,SAAS,GAAG,KAAK,UAAU,SAAS,SAAS,UAAU,EAAE;;;AAG3G,SAAO;;CAEX,oBAAoB,SAAuB,QAAuB,SAA4C;EAC1G,IAAI,IAAI,QAAQ;AAChB,MAAI,MAAM,MACN,EAA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AmB;GAAE,MAAM;GAAmB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAyB,GAAG;EAAuB;CACpJ;EAAE,MAAM;EAAY,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAiB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAuB,GAAG;EAAuB;CAC9I;EAAE,MAAM;EAAa,SAAS,EAAE,mBAAmB;GAAE,MAAM;GAAkB,MAAM;GAAK,EAAE;EAAE,GAAG;EAAwB,GAAG;EAAuB;CACpJ,CAAC"}
@@ -1,12 +1,11 @@
1
- const require_runtime = require('../../../../../../../../_virtual/_rolldown/runtime.cjs');
2
- const require_protocol = require('./protocol.cjs');
1
+ require("../../../../../../../../_virtual/_rolldown/runtime.cjs");
2
+ const require_protocol = require("./protocol.cjs");
3
3
  let _protobuf_ts_runtime_rpc = require("@protobuf-ts/runtime-rpc");
4
-
5
4
  //#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts
6
5
  /**
7
6
  *
8
- * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
9
- * the caller receives this fresh data in stream from server.
7
+ * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
8
+ * the caller receives this fresh data in a stream from the server.
10
9
  *
11
10
  *
12
11
  * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
@@ -19,68 +18,47 @@ var StreamingClient = class {
19
18
  this._transport = _transport;
20
19
  }
21
20
  /**
22
- * StreamBinary provides stream of binary file. Each response message keeps
23
- * one single chunk of binary data from data source. See StreamingAPI.Binary message
24
- * for more info on available options.
25
- *
26
- * @generated from protobuf rpc: StreamBinary
27
- */
28
- streamBinary(input, options) {
29
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
30
- return (0, _protobuf_ts_runtime_rpc.stackIntercept)("serverStreaming", this._transport, method, opt, input);
31
- }
32
- /**
33
- * ReadBinary allows to read remote item in chunks using stream-like API.
34
- * The difference to StreamBinary is that the client receives single response for each
35
- * call and has to send new calls to the server to get fresh data from remote item.
36
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
21
+ * ReadBinary allows reading a remote item in chunks using a stream-like API.
22
+ * The client receives a single response for each call and has to send new calls
23
+ * to the server to get fresh data from the remote item.
24
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
37
25
  *
38
26
  * @generated from protobuf rpc: ReadBinary
39
27
  */
40
28
  readBinary(input, options) {
41
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
29
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
42
30
  return (0, _protobuf_ts_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
43
31
  }
44
32
  /**
45
- * StreamText provides stream of textual file, splitting the data by newline symbol.
46
- * Each response message keeps one single line of text from data source.
47
- *
48
- * @generated from protobuf rpc: StreamText
49
- */
50
- streamText(input, options) {
51
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
52
- return (0, _protobuf_ts_runtime_rpc.stackIntercept)("serverStreaming", this._transport, method, opt, input);
53
- }
54
- /**
55
- * ReadBinary allows to read remote item in chunks using stream-like API.
56
- * The difference to StreamBinary is that the client receives single response for each
57
- * call and has to send new calls to the server to get fresh data from remote item.
58
- * 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.
59
37
  *
60
38
  * @generated from protobuf rpc: ReadText
61
39
  */
62
40
  readText(input, options) {
63
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
41
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
64
42
  return (0, _protobuf_ts_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
65
43
  }
66
44
  /**
67
- * LastLines provides single message with the last lines from data source.
68
- * When search pattern is specified, the last lines matching the given pattern are returned.
69
- * The lines are returned in reversed order, as server reads data source from the end.
70
- * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
45
+ * LastLines provides a single message with the last lines from the data source.
46
+ * When a search pattern is specified, the last lines matching the given pattern are returned.
47
+ * The lines are returned in reverse order, as the server reads the data source from the end.
48
+ * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
71
49
  * The <new_offset> returned in the response points to the _beginning_ of the last
72
- * line found, so client can continue reading the file backwards in subsequent calls.
73
- * This means, that use of this <new_offset> in ReadText() will return you the same line
74
- * returned last in LastLines() data.
50
+ * line found, so the client can continue reading the file backwards in subsequent calls.
51
+ * This means that the use of this <new_offset> in ReadText() will return the last line
52
+ * returned in the LastLines() response.
75
53
  *
76
54
  * @generated from protobuf rpc: LastLines
77
55
  */
78
56
  lastLines(input, options) {
79
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
57
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
80
58
  return (0, _protobuf_ts_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
81
59
  }
82
60
  };
83
-
84
61
  //#endregion
85
62
  exports.StreamingClient = StreamingClient;
63
+
86
64
  //# sourceMappingURL=protocol.client.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"protocol.client.cjs","names":["Streaming"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Streaming } from \"./protocol\";\nimport type { StreamingAPI_LastLines } from \"./protocol\";\nimport type { StreamingAPI_ReadText } from \"./protocol\";\nimport type { StreamingAPI_StreamText } from \"./protocol\";\nimport type { StreamingAPI_ReadBinary } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { StreamingAPI_Response } from \"./protocol\";\nimport type { StreamingAPI_StreamBinary } from \"./protocol\";\nimport type { ServerStreamingCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,\n * the caller receives this fresh data in stream from server.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport interface IStreamingClient {\n /**\n * StreamBinary provides stream of binary file. Each response message keeps\n * one single chunk of binary data from data source. See StreamingAPI.Binary message\n * for more info on available options.\n *\n * @generated from protobuf rpc: StreamBinary\n */\n streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;\n /**\n * ReadBinary allows to read remote item in chunks using stream-like API.\n * The difference to StreamBinary is that the client receives single response for each\n * call and has to send new calls to the server to get fresh data from remote item.\n * Each response (each chunk from server) keeps not more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadBinary\n */\n readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;\n /**\n * StreamText provides stream of textual file, splitting the data by newline symbol.\n * Each response message keeps one single line of text from data source.\n *\n * @generated from protobuf rpc: StreamText\n */\n streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;\n /**\n * ReadBinary allows to read remote item in chunks using stream-like API.\n * The difference to StreamBinary is that the client receives single response for each\n * call and has to send new calls to the server to get fresh data from remote item.\n * Each response (each chunk from server) keeps not more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadText\n */\n readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;\n /**\n * LastLines provides single message with the last lines from data source.\n * When search pattern is specified, the last lines matching the given pattern are returned.\n * The lines are returned in reversed order, as server reads data source from the end.\n * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'\n * The <new_offset> returned in the response points to the _beginning_ of the last\n * line found, so client can continue reading the file backwards in subsequent calls.\n * This means, that use of this <new_offset> in ReadText() will return you the same line\n * returned last in LastLines() data.\n *\n * @generated from protobuf rpc: LastLines\n */\n lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response>;\n}\n/**\n *\n * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,\n * the caller receives this fresh data in stream from server.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport class StreamingClient implements IStreamingClient, ServiceInfo {\n typeName = Streaming.typeName;\n methods = Streaming.methods;\n options = Streaming.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * StreamBinary provides stream of binary file. Each response message keeps\n * one single chunk of binary data from data source. See StreamingAPI.Binary message\n * for more info on available options.\n *\n * @generated from protobuf rpc: StreamBinary\n */\n streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_StreamBinary, StreamingAPI_Response>(\"serverStreaming\", this._transport, method, opt, input);\n }\n /**\n * ReadBinary allows to read remote item in chunks using stream-like API.\n * The difference to StreamBinary is that the client receives single response for each\n * call and has to send new calls to the server to get fresh data from remote item.\n * Each response (each chunk from server) keeps not more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadBinary\n */\n readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * StreamText provides stream of textual file, splitting the data by newline symbol.\n * Each response message keeps one single line of text from data source.\n *\n * @generated from protobuf rpc: StreamText\n */\n streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_StreamText, StreamingAPI_Response>(\"serverStreaming\", this._transport, method, opt, input);\n }\n /**\n * ReadBinary allows to read remote item in chunks using stream-like API.\n * The difference to StreamBinary is that the client receives single response for each\n * call and has to send new calls to the server to get fresh data from remote item.\n * Each response (each chunk from server) keeps not more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadText\n */\n readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * LastLines provides single message with the last lines from data source.\n * When search pattern is specified, the last lines matching the given pattern are returned.\n * The lines are returned in reversed order, as server reads data source from the end.\n * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'\n * The <new_offset> returned in the response points to the _beginning_ of the last\n * line found, so client can continue reading the file backwards in subsequent calls.\n * This means, that use of this <new_offset> in ReadText() will return you the same line\n * returned last in LastLines() data.\n *\n * @generated from protobuf rpc: LastLines\n */\n lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {\n const method = this.methods[4], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAgFA,IAAa,kBAAb,MAAsE;CAClE,WAAWA,2BAAU;CACrB,UAAUA,2BAAU;CACpB,UAAUA,2BAAU;CACpB,YAAY,AAAiB,YAA0B;EAA1B;;;;;;;;;CAS7B,aAAa,OAAkC,SAA6F;EACxI,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,sDAAwE,mBAAmB,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;CAUnI,WAAW,OAAgC,SAAiF;EACxH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,sDAAsE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;CAQvH,WAAW,OAAgC,SAA2F;EAClI,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,sDAAsE,mBAAmB,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;CAUjI,SAAS,OAA8B,SAA+E;EAClH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,sDAAoE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;;;;;CAcrH,UAAU,OAA+B,SAAgF;EACrH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,sDAAqE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM"}
1
+ {"version":3,"file":"protocol.client.cjs","names":["Streaming"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Streaming } from \"./protocol\";\nimport type { StreamingAPI_LastLines } from \"./protocol\";\nimport type { StreamingAPI_ReadText } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { StreamingAPI_Response } from \"./protocol\";\nimport type { StreamingAPI_ReadBinary } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,\n * the caller receives this fresh data in a stream from the server.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport interface IStreamingClient {\n /**\n * ReadBinary allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadBinary\n */\n readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;\n /**\n * ReadText allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadText\n */\n readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;\n /**\n * LastLines provides a single message with the last lines from the data source.\n * When a search pattern is specified, the last lines matching the given pattern are returned.\n * The lines are returned in reverse order, as the server reads the data source from the end.\n * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'\n * The <new_offset> returned in the response points to the _beginning_ of the last\n * line found, so the client can continue reading the file backwards in subsequent calls.\n * This means that the use of this <new_offset> in ReadText() will return the last line\n * returned in the LastLines() response.\n *\n * @generated from protobuf rpc: LastLines\n */\n lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response>;\n}\n/**\n *\n * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,\n * the caller receives this fresh data in a stream from the server.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport class StreamingClient implements IStreamingClient, ServiceInfo {\n typeName = Streaming.typeName;\n methods = Streaming.methods;\n options = Streaming.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * ReadBinary allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadBinary\n */\n readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * ReadText allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadText\n */\n readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * LastLines provides a single message with the last lines from the data source.\n * When a search pattern is specified, the last lines matching the given pattern are returned.\n * The lines are returned in reverse order, as the server reads the data source from the end.\n * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'\n * The <new_offset> returned in the response points to the _beginning_ of the last\n * line found, so the client can continue reading the file backwards in subsequent calls.\n * This means that the use of this <new_offset> in ReadText() will return the last line\n * returned in the LastLines() response.\n *\n * @generated from protobuf rpc: LastLines\n */\n lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":";;;;;;;;;;;;AA8DA,IAAa,kBAAb,MAAsE;CAClE,WAAWA,iBAAAA,UAAU;CACrB,UAAUA,iBAAAA,UAAU;CACpB,UAAUA,iBAAAA,UAAU;CACpB,YAAY,YAA2C;AAA1B,OAAA,aAAA;;;;;;;;;;CAU7B,WAAW,OAAgC,SAAiF;EACxH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,UAAA,GAAA,yBAAA,gBAAsE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;CAUvH,SAAS,OAA8B,SAA+E;EAClH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,UAAA,GAAA,yBAAA,gBAAoE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;;;;;CAcrH,UAAU,OAA+B,SAAgF;EACrH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,UAAA,GAAA,yBAAA,gBAAqE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM"}
@@ -1,60 +1,45 @@
1
- import { StreamingAPI_LastLines, StreamingAPI_ReadBinary, StreamingAPI_ReadText, StreamingAPI_Response, StreamingAPI_StreamBinary, StreamingAPI_StreamText } from "./protocol.js";
2
- import * as _protobuf_ts_runtime_rpc0 from "@protobuf-ts/runtime-rpc";
3
- import { RpcOptions, RpcTransport, ServerStreamingCall, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
4
- import * as _protobuf_ts_runtime0 from "@protobuf-ts/runtime";
1
+ import { StreamingAPI_LastLines, StreamingAPI_ReadBinary, StreamingAPI_ReadText, StreamingAPI_Response } from "./protocol.js";
2
+ import * as _$_protobuf_ts_runtime_rpc0 from "@protobuf-ts/runtime-rpc";
3
+ import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
4
+ import * as _$_protobuf_ts_runtime0 from "@protobuf-ts/runtime";
5
5
 
6
6
  //#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts
7
7
  /**
8
8
  *
9
- * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
10
- * the caller receives this fresh data in stream from server.
9
+ * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
10
+ * the caller receives this fresh data in a stream from the server.
11
11
  *
12
12
  *
13
13
  * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
14
14
  */
15
15
  interface IStreamingClient {
16
16
  /**
17
- * StreamBinary provides stream of binary file. Each response message keeps
18
- * one single chunk of binary data from data source. See StreamingAPI.Binary message
19
- * for more info on available options.
20
- *
21
- * @generated from protobuf rpc: StreamBinary
22
- */
23
- streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
24
- /**
25
- * ReadBinary allows to read remote item in chunks using stream-like API.
26
- * The difference to StreamBinary is that the client receives single response for each
27
- * call and has to send new calls to the server to get fresh data from remote item.
28
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
17
+ * ReadBinary allows reading a remote item in chunks using a stream-like API.
18
+ * The client receives a single response for each call and has to send new calls
19
+ * to the server to get fresh data from the remote item.
20
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
29
21
  *
30
22
  * @generated from protobuf rpc: ReadBinary
31
23
  */
32
24
  readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
33
25
  /**
34
- * StreamText provides stream of textual file, splitting the data by newline symbol.
35
- * Each response message keeps one single line of text from data source.
36
- *
37
- * @generated from protobuf rpc: StreamText
38
- */
39
- streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
40
- /**
41
- * ReadBinary allows to read remote item in chunks using stream-like API.
42
- * The difference to StreamBinary is that the client receives single response for each
43
- * call and has to send new calls to the server to get fresh data from remote item.
44
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
26
+ * ReadText allows reading a remote item in chunks using a stream-like API.
27
+ * The client receives a single response for each call and has to send new calls
28
+ * to the server to get fresh data from the remote item.
29
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
45
30
  *
46
31
  * @generated from protobuf rpc: ReadText
47
32
  */
48
33
  readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
49
34
  /**
50
- * LastLines provides single message with the last lines from data source.
51
- * When search pattern is specified, the last lines matching the given pattern are returned.
52
- * The lines are returned in reversed order, as server reads data source from the end.
53
- * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
35
+ * LastLines provides a single message with the last lines from the data source.
36
+ * When a search pattern is specified, the last lines matching the given pattern are returned.
37
+ * The lines are returned in reverse order, as the server reads the data source from the end.
38
+ * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
54
39
  * The <new_offset> returned in the response points to the _beginning_ of the last
55
- * line found, so client can continue reading the file backwards in subsequent calls.
56
- * This means, that use of this <new_offset> in ReadText() will return you the same line
57
- * returned last in LastLines() data.
40
+ * line found, so the client can continue reading the file backwards in subsequent calls.
41
+ * This means that the use of this <new_offset> in ReadText() will return the last line
42
+ * returned in the LastLines() response.
58
43
  *
59
44
  * @generated from protobuf rpc: LastLines
60
45
  */
@@ -62,8 +47,8 @@ interface IStreamingClient {
62
47
  }
63
48
  /**
64
49
  *
65
- * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
66
- * the caller receives this fresh data in stream from server.
50
+ * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
51
+ * the caller receives this fresh data in a stream from the server.
67
52
  *
68
53
  *
69
54
  * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
@@ -71,53 +56,38 @@ interface IStreamingClient {
71
56
  declare class StreamingClient implements IStreamingClient, ServiceInfo {
72
57
  private readonly _transport;
73
58
  typeName: string;
74
- methods: _protobuf_ts_runtime_rpc0.MethodInfo<any, any>[];
59
+ methods: _$_protobuf_ts_runtime_rpc0.MethodInfo<any, any>[];
75
60
  options: {
76
- [extensionName: string]: _protobuf_ts_runtime0.JsonValue;
61
+ [extensionName: string]: _$_protobuf_ts_runtime0.JsonValue;
77
62
  };
78
63
  constructor(_transport: RpcTransport);
79
64
  /**
80
- * StreamBinary provides stream of binary file. Each response message keeps
81
- * one single chunk of binary data from data source. See StreamingAPI.Binary message
82
- * for more info on available options.
83
- *
84
- * @generated from protobuf rpc: StreamBinary
85
- */
86
- streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
87
- /**
88
- * ReadBinary allows to read remote item in chunks using stream-like API.
89
- * The difference to StreamBinary is that the client receives single response for each
90
- * call and has to send new calls to the server to get fresh data from remote item.
91
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
65
+ * ReadBinary 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.
92
69
  *
93
70
  * @generated from protobuf rpc: ReadBinary
94
71
  */
95
72
  readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
96
73
  /**
97
- * StreamText provides stream of textual file, splitting the data by newline symbol.
98
- * Each response message keeps one single line of text from data source.
99
- *
100
- * @generated from protobuf rpc: StreamText
101
- */
102
- streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
103
- /**
104
- * ReadBinary allows to read remote item in chunks using stream-like API.
105
- * The difference to StreamBinary is that the client receives single response for each
106
- * call and has to send new calls to the server to get fresh data from remote item.
107
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
74
+ * ReadText allows reading a remote item in chunks using a stream-like API.
75
+ * The client receives a single response for each call and has to send new calls
76
+ * to the server to get fresh data from the remote item.
77
+ * Each response (each chunk from the server) contains no more than 3.9MiB of data.
108
78
  *
109
79
  * @generated from protobuf rpc: ReadText
110
80
  */
111
81
  readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
112
82
  /**
113
- * LastLines provides single message with the last lines from data source.
114
- * When search pattern is specified, the last lines matching the given pattern are returned.
115
- * The lines are returned in reversed order, as server reads data source from the end.
116
- * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
83
+ * LastLines provides a single message with the last lines from the data source.
84
+ * When a search pattern is specified, the last lines matching the given pattern are returned.
85
+ * The lines are returned in reverse order, as the server reads the data source from the end.
86
+ * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
117
87
  * The <new_offset> returned in the response points to the _beginning_ of the last
118
- * line found, so client can continue reading the file backwards in subsequent calls.
119
- * This means, that use of this <new_offset> in ReadText() will return you the same line
120
- * returned last in LastLines() data.
88
+ * line found, so the client can continue reading the file backwards in subsequent calls.
89
+ * This means that the use of this <new_offset> in ReadText() will return the last line
90
+ * returned in the LastLines() response.
121
91
  *
122
92
  * @generated from protobuf rpc: LastLines
123
93
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.client.d.ts","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts"],"mappings":";;;;;;;;;;;;;;UAqBiB,gBAAA;EAkBkF;;;;;;;;EAT/F,UAAA,CAAW,KAAA,EAAO,uBAAA,EAAyB,OAAA,GAAU,UAAA,GAAa,SAAA,CAAU,uBAAA,EAAyB,qBAAA;EAArG;;;;;;;;EASA,QAAA,CAAS,KAAA,EAAO,qBAAA,EAAuB,OAAA,GAAU,UAAA,GAAa,SAAA,CAAU,qBAAA,EAAuB,qBAAA;EAA/E;;;;;;;;;;;;EAahB,SAAA,CAAU,KAAA,EAAO,sBAAA,EAAwB,OAAA,GAAU,UAAA,GAAa,SAAA,CAAU,sBAAA,EAAwB,qBAAA;AAAA;;;;AAUtG;;;;;cAAa,eAAA,YAA2B,gBAAA,EAAkB,WAAA;EAAA,iBAIzB,UAAA;EAH7B,QAAA;EACA,OAAA,EAFyB,2BAAA,CAElB,UAAA;EACP,OAAA;IAAA,yBADO,uBAAA,CAAA,SAAA;EAAA;cAEsB,UAAA,EAAY,YAAA;EAsB+B;;;;;;;;EAZxE,UAAA,CAAW,KAAA,EAAO,uBAAA,EAAyB,OAAA,GAAU,UAAA,GAAa,SAAA,CAAU,uBAAA,EAAyB,qBAAA;EAd/C;;;;;;;;EA0BtD,QAAA,CAAS,KAAA,EAAO,qBAAA,EAAuB,OAAA,GAAU,UAAA,GAAa,SAAA,CAAU,qBAAA,EAAuB,qBAAA;EAvB/F;;;;;;;;;;;;EAuCA,SAAA,CAAU,KAAA,EAAO,sBAAA,EAAwB,OAAA,GAAU,UAAA,GAAa,SAAA,CAAU,sBAAA,EAAwB,qBAAA;AAAA"}