@milaboratories/pl-drivers 1.11.19 → 1.11.21

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 (265) hide show
  1. package/dist/clients/constructors.cjs +5 -5
  2. package/dist/clients/constructors.cjs.map +1 -1
  3. package/dist/clients/constructors.js +5 -5
  4. package/dist/clients/constructors.js.map +1 -1
  5. package/dist/clients/download.cjs +29 -5
  6. package/dist/clients/download.cjs.map +1 -1
  7. package/dist/clients/download.d.ts +5 -4
  8. package/dist/clients/download.d.ts.map +1 -1
  9. package/dist/clients/download.js +30 -6
  10. package/dist/clients/download.js.map +1 -1
  11. package/dist/clients/logs.cjs +57 -16
  12. package/dist/clients/logs.cjs.map +1 -1
  13. package/dist/clients/logs.d.ts +6 -5
  14. package/dist/clients/logs.d.ts.map +1 -1
  15. package/dist/clients/logs.js +58 -17
  16. package/dist/clients/logs.js.map +1 -1
  17. package/dist/clients/ls_api.cjs +44 -8
  18. package/dist/clients/ls_api.cjs.map +1 -1
  19. package/dist/clients/ls_api.d.ts +4 -4
  20. package/dist/clients/ls_api.d.ts.map +1 -1
  21. package/dist/clients/ls_api.js +45 -9
  22. package/dist/clients/ls_api.js.map +1 -1
  23. package/dist/clients/progress.cjs +32 -29
  24. package/dist/clients/progress.cjs.map +1 -1
  25. package/dist/clients/progress.d.ts +5 -5
  26. package/dist/clients/progress.d.ts.map +1 -1
  27. package/dist/clients/progress.js +33 -30
  28. package/dist/clients/progress.js.map +1 -1
  29. package/dist/clients/upload.cjs +96 -30
  30. package/dist/clients/upload.cjs.map +1 -1
  31. package/dist/clients/upload.d.ts +8 -11
  32. package/dist/clients/upload.d.ts.map +1 -1
  33. package/dist/clients/upload.js +97 -31
  34. package/dist/clients/upload.js.map +1 -1
  35. package/dist/drivers/download_blob/download_blob.cjs +2 -2
  36. package/dist/drivers/download_blob/download_blob.cjs.map +1 -1
  37. package/dist/drivers/download_blob/download_blob.js +1 -1
  38. package/dist/drivers/download_blob/download_blob.js.map +1 -1
  39. package/dist/drivers/download_blob/download_blob_task.cjs +5 -5
  40. package/dist/drivers/download_blob/download_blob_task.cjs.map +1 -1
  41. package/dist/drivers/download_blob/download_blob_task.js +2 -2
  42. package/dist/drivers/download_blob/download_blob_task.js.map +1 -1
  43. package/dist/drivers/download_blob_url/task.cjs +5 -5
  44. package/dist/drivers/download_blob_url/task.cjs.map +1 -1
  45. package/dist/drivers/download_blob_url/task.js +2 -2
  46. package/dist/drivers/download_blob_url/task.js.map +1 -1
  47. package/dist/drivers/download_url/task.cjs +2 -2
  48. package/dist/drivers/download_url/task.cjs.map +1 -1
  49. package/dist/drivers/download_url/task.js +2 -2
  50. package/dist/drivers/download_url/task.js.map +1 -1
  51. package/dist/drivers/logs_stream.cjs.map +1 -1
  52. package/dist/drivers/logs_stream.js.map +1 -1
  53. package/dist/helpers/download.cjs +5 -24
  54. package/dist/helpers/download.cjs.map +1 -1
  55. package/dist/helpers/download.d.ts +0 -13
  56. package/dist/helpers/download.d.ts.map +1 -1
  57. package/dist/helpers/download.js +5 -21
  58. package/dist/helpers/download.js.map +1 -1
  59. package/dist/helpers/download_errors.cjs +43 -0
  60. package/dist/helpers/download_errors.cjs.map +1 -0
  61. package/dist/helpers/download_errors.d.ts +23 -0
  62. package/dist/helpers/download_errors.d.ts.map +1 -0
  63. package/dist/helpers/download_errors.js +36 -0
  64. package/dist/helpers/download_errors.js.map +1 -0
  65. package/dist/index.cjs +7 -0
  66. package/dist/index.cjs.map +1 -1
  67. package/dist/index.d.ts +1 -0
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +1 -0
  70. package/dist/index.js.map +1 -1
  71. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +2 -2
  72. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +1 -0
  73. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +1 -0
  74. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -0
  75. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js.map +1 -0
  76. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -0
  77. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +2 -2
  78. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +1 -0
  79. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs +2 -2
  80. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +1 -0
  81. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +1 -0
  82. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -0
  83. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js.map +1 -0
  84. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -0
  85. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +2 -2
  86. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +1 -0
  87. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs +3 -3
  88. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +1 -0
  89. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +1 -0
  90. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -0
  91. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js.map +1 -0
  92. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -0
  93. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +3 -3
  94. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +1 -0
  95. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs +6 -6
  96. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +1 -0
  97. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +1 -0
  98. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -0
  99. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js.map +1 -0
  100. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -0
  101. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +6 -6
  102. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +1 -0
  103. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs +84 -84
  104. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +1 -0
  105. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +1 -0
  106. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +16 -16
  107. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -0
  108. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +1 -0
  109. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +118 -118
  110. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -0
  111. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +76 -76
  112. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -0
  113. package/dist/proto-grpc/google/api/http.d.ts.map +1 -0
  114. package/dist/{proto → proto-grpc}/google/protobuf/descriptor.d.ts +5 -149
  115. package/dist/proto-grpc/google/protobuf/descriptor.d.ts.map +1 -0
  116. package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -0
  117. package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
  118. package/dist/proto-grpc/google/protobuf/duration.js.map +1 -0
  119. package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -0
  120. package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
  121. package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -0
  122. package/dist/proto-rest/downloadapi.d.ts +105 -0
  123. package/dist/proto-rest/downloadapi.d.ts.map +1 -0
  124. package/dist/proto-rest/index.d.ts +17 -0
  125. package/dist/proto-rest/index.d.ts.map +1 -0
  126. package/dist/proto-rest/lsapi.d.ts +148 -0
  127. package/dist/proto-rest/lsapi.d.ts.map +1 -0
  128. package/dist/proto-rest/progressapi.d.ts +159 -0
  129. package/dist/proto-rest/progressapi.d.ts.map +1 -0
  130. package/dist/proto-rest/streamingapi.d.ts +469 -0
  131. package/dist/proto-rest/streamingapi.d.ts.map +1 -0
  132. package/dist/proto-rest/uploadapi.d.ts +355 -0
  133. package/dist/proto-rest/uploadapi.d.ts.map +1 -0
  134. package/package.json +12 -8
  135. package/src/clients/constructors.ts +11 -11
  136. package/src/clients/download.ts +34 -11
  137. package/src/clients/logs.ts +69 -21
  138. package/src/clients/ls_api.ts +58 -14
  139. package/src/clients/progress.ts +41 -44
  140. package/src/clients/upload.ts +117 -53
  141. package/src/drivers/download_blob/download_blob.ts +1 -1
  142. package/src/drivers/download_blob/download_blob_task.ts +2 -2
  143. package/src/drivers/download_blob_url/task.ts +2 -2
  144. package/src/drivers/download_url/task.ts +2 -2
  145. package/src/drivers/logs_stream.ts +1 -1
  146. package/src/drivers/upload.test.ts +6 -25
  147. package/src/helpers/download.ts +4 -26
  148. package/src/helpers/download_errors.ts +40 -0
  149. package/src/index.ts +1 -0
  150. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +1 -1
  151. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +2 -2
  152. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +1 -1
  153. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +2 -2
  154. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +1 -1
  155. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +3 -3
  156. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +1 -1
  157. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +6 -6
  158. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +21 -21
  159. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +159 -159
  160. package/src/{proto → proto-grpc}/google/api/http.ts +1 -1
  161. package/src/{proto → proto-grpc}/google/protobuf/descriptor.ts +9 -217
  162. package/src/{proto → proto-grpc}/google/protobuf/duration.ts +1 -1
  163. package/src/{proto → proto-grpc}/google/protobuf/timestamp.ts +1 -1
  164. package/src/proto-rest/downloadapi.ts +105 -0
  165. package/src/proto-rest/index.ts +28 -0
  166. package/src/proto-rest/lsapi.ts +148 -0
  167. package/src/proto-rest/progressapi.ts +159 -0
  168. package/src/proto-rest/streamingapi.ts +469 -0
  169. package/src/proto-rest/uploadapi.ts +355 -0
  170. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +0 -53
  171. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +0 -1
  172. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +0 -1
  173. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +0 -1
  174. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +0 -1
  175. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js.map +0 -1
  176. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +0 -1
  177. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +0 -1
  178. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +0 -1
  179. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +0 -1
  180. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +0 -1
  181. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js.map +0 -1
  182. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +0 -1
  183. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +0 -1
  184. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +0 -1
  185. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +0 -1
  186. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +0 -1
  187. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js.map +0 -1
  188. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +0 -1
  189. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +0 -1
  190. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +0 -1
  191. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +0 -1
  192. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +0 -1
  193. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js.map +0 -1
  194. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +0 -1
  195. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +0 -1
  196. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +0 -1
  197. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +0 -1
  198. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +0 -1
  199. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +0 -1
  200. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +0 -1
  201. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +0 -1
  202. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +0 -329
  203. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +0 -1
  204. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +0 -5358
  205. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +0 -1
  206. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +0 -537
  207. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +0 -1
  208. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +0 -87
  209. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +0 -1
  210. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +0 -106
  211. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +0 -1
  212. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +0 -256
  213. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +0 -1
  214. package/dist/proto/google/api/http.d.ts.map +0 -1
  215. package/dist/proto/google/protobuf/any.d.ts +0 -181
  216. package/dist/proto/google/protobuf/any.d.ts.map +0 -1
  217. package/dist/proto/google/protobuf/descriptor.d.ts.map +0 -1
  218. package/dist/proto/google/protobuf/duration.cjs.map +0 -1
  219. package/dist/proto/google/protobuf/duration.d.ts.map +0 -1
  220. package/dist/proto/google/protobuf/duration.js.map +0 -1
  221. package/dist/proto/google/protobuf/empty.d.ts +0 -32
  222. package/dist/proto/google/protobuf/empty.d.ts.map +0 -1
  223. package/dist/proto/google/protobuf/struct.d.ts +0 -187
  224. package/dist/proto/google/protobuf/struct.d.ts.map +0 -1
  225. package/dist/proto/google/protobuf/timestamp.cjs.map +0 -1
  226. package/dist/proto/google/protobuf/timestamp.d.ts.map +0 -1
  227. package/dist/proto/google/protobuf/timestamp.js.map +0 -1
  228. package/dist/proto/google/protobuf/wrappers.d.ts +0 -335
  229. package/dist/proto/google/protobuf/wrappers.d.ts.map +0 -1
  230. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +0 -125
  231. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +0 -406
  232. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +0 -14986
  233. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +0 -1474
  234. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +0 -181
  235. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +0 -251
  236. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +0 -693
  237. package/src/proto/google/protobuf/any.ts +0 -326
  238. package/src/proto/google/protobuf/empty.ts +0 -94
  239. package/src/proto/google/protobuf/struct.ts +0 -484
  240. package/src/proto/google/protobuf/wrappers.ts +0 -785
  241. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs +0 -0
  242. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +0 -0
  243. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +0 -0
  244. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +0 -0
  245. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs +0 -0
  246. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +0 -0
  247. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js +0 -0
  248. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +0 -0
  249. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs +0 -0
  250. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +0 -0
  251. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +0 -0
  252. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +0 -0
  253. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs +0 -0
  254. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +0 -0
  255. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +0 -0
  256. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +0 -0
  257. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs +0 -0
  258. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js +0 -0
  259. /package/dist/{proto → proto-grpc}/google/api/http.d.ts +0 -0
  260. /package/dist/{proto → proto-grpc}/google/protobuf/duration.cjs +0 -0
  261. /package/dist/{proto → proto-grpc}/google/protobuf/duration.d.ts +0 -0
  262. /package/dist/{proto → proto-grpc}/google/protobuf/duration.js +0 -0
  263. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.cjs +0 -0
  264. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.d.ts +0 -0
  265. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.js +0 -0
@@ -1,1474 +0,0 @@
1
- // @generated by protobuf-ts 2.11.0 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
- // @generated from protobuf file "github.com/milaboratory/pl/plapi/plapiproto/api_types.proto" (package "MiLaboratories.PL.API", syntax proto3)
3
- // tslint:disable
4
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
- import { WireType } from "@protobuf-ts/runtime";
7
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
- import type { IBinaryReader } from "@protobuf-ts/runtime";
9
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
- import type { PartialMessage } from "@protobuf-ts/runtime";
11
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
- import { MessageType } from "@protobuf-ts/runtime";
13
- import { NotificationFilter_Payload } from "./resource_types";
14
- import { FieldType } from "./base_types";
15
- import { FieldRef } from "./base_types";
16
- import { Timestamp } from "../../../../../google/protobuf/timestamp";
17
- import { ResourceType } from "./base_types";
18
- /**
19
- * @generated from protobuf message MiLaboratories.PL.API.Tx
20
- */
21
- export interface Tx {
22
- /**
23
- * @generated from protobuf field: bool is_valid = 1
24
- */
25
- isValid: boolean;
26
- /**
27
- * @generated from protobuf field: uint64 id = 2
28
- */
29
- id: bigint;
30
- }
31
- /**
32
- * @generated from protobuf message MiLaboratories.PL.API.Resource
33
- */
34
- export interface Resource {
35
- /**
36
- * @generated from protobuf field: uint64 id = 2
37
- */
38
- id: bigint;
39
- /**
40
- * @generated from protobuf field: bytes canonical_id = 17
41
- */
42
- canonicalId: Uint8Array; // could be empty, it depends on resource lifecycle state
43
- /**
44
- * @generated from protobuf field: MiLaboratories.PL.API.Resource.Kind kind = 3
45
- */
46
- kind: Resource_Kind;
47
- /**
48
- * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 4
49
- */
50
- type?: ResourceType;
51
- /**
52
- * @generated from protobuf field: bytes data = 5
53
- */
54
- data: Uint8Array;
55
- /**
56
- * @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 16
57
- */
58
- features?: Resource_Features;
59
- /**
60
- * @generated from protobuf field: repeated MiLaboratories.PL.API.Field fields = 6
61
- */
62
- fields: Field[];
63
- /**
64
- * Resource has at least one field with error
65
- *
66
- * @generated from protobuf field: bool has_errors = 7
67
- */
68
- hasErrors: boolean;
69
- /**
70
- * @generated from protobuf field: bool inputs_locked = 8
71
- */
72
- inputsLocked: boolean;
73
- /**
74
- * @generated from protobuf field: bool outputs_locked = 9
75
- */
76
- outputsLocked: boolean;
77
- /**
78
- * @generated from protobuf field: bool resource_ready = 14
79
- */
80
- resourceReady: boolean;
81
- /**
82
- * @generated from protobuf field: bool is_final = 15
83
- */
84
- isFinal: boolean;
85
- /**
86
- * @generated from protobuf field: uint64 original_resource_id = 10
87
- */
88
- originalResourceId: bigint;
89
- /**
90
- * @generated from protobuf field: uint64 parent_resource_id = 11
91
- */
92
- parentResourceId: bigint;
93
- /**
94
- * @generated from protobuf field: google.protobuf.Timestamp created_time = 12
95
- */
96
- createdTime?: Timestamp;
97
- /**
98
- * @generated from protobuf field: google.protobuf.Timestamp deleted_time = 13
99
- */
100
- deletedTime?: Timestamp;
101
- }
102
- /**
103
- * @generated from protobuf message MiLaboratories.PL.API.Resource.Features
104
- */
105
- export interface Resource_Features {
106
- /**
107
- * @generated from protobuf field: bool ephemeral = 1
108
- */
109
- ephemeral: boolean; // false = 'supports deduplication'
110
- }
111
- /**
112
- * @generated from protobuf enum MiLaboratories.PL.API.Resource.Kind
113
- */
114
- export enum Resource_Kind {
115
- /**
116
- * @generated from protobuf enum value: KIND_INVALID = 0;
117
- */
118
- INVALID = 0,
119
- /**
120
- * @generated from protobuf enum value: KIND_STRUCTURAL = 1;
121
- */
122
- STRUCTURAL = 1,
123
- /**
124
- * @generated from protobuf enum value: KIND_VALUE = 2;
125
- */
126
- VALUE = 2
127
- }
128
- /**
129
- * @generated from protobuf message MiLaboratories.PL.API.Field
130
- */
131
- export interface Field {
132
- /**
133
- * field ID is always combination of parent resource ID and field name
134
- *
135
- * @generated from protobuf field: MiLaboratories.PL.Base.FieldRef id = 1
136
- */
137
- id?: FieldRef;
138
- /**
139
- * @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 2
140
- */
141
- type: FieldType;
142
- /**
143
- * @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 3
144
- */
145
- features?: Resource_Features;
146
- /**
147
- * _resolved_ value of field or _assigned_ if the field was assigned to a resource.
148
- * If field refers to another field, it will get
149
- * value only when this chain of references ends up with direct resource
150
- * reference. At that moment all fields in the chain will get their values
151
- * resolved and will start to refer to the same resource directly.
152
- *
153
- * @generated from protobuf field: uint64 value = 5
154
- */
155
- value: bigint;
156
- /**
157
- * If the value was empty, assigned or finally resolved.
158
- *
159
- * @generated from protobuf field: MiLaboratories.PL.API.Field.ValueStatus value_status = 7
160
- */
161
- valueStatus: Field_ValueStatus;
162
- /**
163
- * If the value is in its final state (ready, duplicate or error)
164
- *
165
- * @generated from protobuf field: bool value_is_final = 8
166
- */
167
- valueIsFinal: boolean;
168
- /**
169
- * Resource error resource id if any.
170
- * Is intended to report problems _from_ platform to client.
171
- *
172
- * @generated from protobuf field: uint64 error = 6
173
- */
174
- error: bigint;
175
- }
176
- /**
177
- * @generated from protobuf enum MiLaboratories.PL.API.Field.ValueStatus
178
- */
179
- export enum Field_ValueStatus {
180
- /**
181
- * @generated from protobuf enum value: INVALID = 0;
182
- */
183
- INVALID = 0,
184
- /**
185
- * @generated from protobuf enum value: EMPTY = 1;
186
- */
187
- EMPTY = 1,
188
- /**
189
- * @generated from protobuf enum value: ASSIGNED = 2;
190
- */
191
- ASSIGNED = 2,
192
- /**
193
- * @generated from protobuf enum value: RESOLVED = 3;
194
- */
195
- RESOLVED = 3
196
- }
197
- /**
198
- * @generated from protobuf message MiLaboratories.PL.API.Notification
199
- */
200
- export interface Notification {
201
- /**
202
- * @generated from protobuf field: uint64 subscription_id = 1
203
- */
204
- subscriptionId: bigint;
205
- /**
206
- * @generated from protobuf field: uint64 event_id = 2
207
- */
208
- eventId: bigint;
209
- /**
210
- * @generated from protobuf field: uint64 resource_id = 3
211
- */
212
- resourceId: bigint;
213
- /**
214
- * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 4
215
- */
216
- resourceType?: ResourceType;
217
- /**
218
- * @generated from protobuf field: MiLaboratories.PL.API.Notification.Events events = 5
219
- */
220
- events?: Notification_Events;
221
- /**
222
- * @generated from protobuf field: map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6
223
- */
224
- fieldChanges: {
225
- [key: string]: Notification_FieldChange;
226
- };
227
- /**
228
- * @generated from protobuf field: MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7
229
- */
230
- payload?: NotificationFilter_Payload;
231
- /**
232
- * @generated from protobuf field: string filter_name = 8
233
- */
234
- filterName: string;
235
- /**
236
- * @generated from protobuf field: MiLaboratories.PL.API.SpanInfo tx_span = 9
237
- */
238
- txSpan?: SpanInfo;
239
- }
240
- /**
241
- * @generated from protobuf message MiLaboratories.PL.API.Notification.Events
242
- */
243
- export interface Notification_Events {
244
- /**
245
- * @generated from protobuf field: bool resource_created = 1
246
- */
247
- resourceCreated: boolean;
248
- /**
249
- * @generated from protobuf field: bool resource_deleted = 2
250
- */
251
- resourceDeleted: boolean;
252
- /**
253
- * @generated from protobuf field: bool resource_ready = 4
254
- */
255
- resourceReady: boolean;
256
- /**
257
- * @generated from protobuf field: bool resource_duplicate = 5
258
- */
259
- resourceDuplicate: boolean;
260
- /**
261
- * @generated from protobuf field: bool resource_error = 15
262
- */
263
- resourceError: boolean;
264
- /**
265
- * @generated from protobuf field: bool inputs_locked = 12
266
- */
267
- inputsLocked: boolean;
268
- /**
269
- * @generated from protobuf field: bool outputs_locked = 13
270
- */
271
- outputsLocked: boolean;
272
- /**
273
- * @generated from protobuf field: bool field_created = 11
274
- */
275
- fieldCreated: boolean;
276
- /**
277
- * @generated from protobuf field: bool field_got_error = 16
278
- */
279
- fieldGotError: boolean;
280
- /**
281
- * @generated from protobuf field: bool input_set = 6
282
- */
283
- inputSet: boolean;
284
- /**
285
- * @generated from protobuf field: bool all_inputs_set = 7
286
- */
287
- allInputsSet: boolean;
288
- /**
289
- * @generated from protobuf field: bool output_set = 8
290
- */
291
- outputSet: boolean;
292
- /**
293
- * @generated from protobuf field: bool all_outputs_set = 9
294
- */
295
- allOutputsSet: boolean;
296
- /**
297
- * @generated from protobuf field: bool generic_otw_set = 14
298
- */
299
- genericOtwSet: boolean;
300
- /**
301
- * @generated from protobuf field: bool dynamic_changed = 10
302
- */
303
- dynamicChanged: boolean;
304
- }
305
- /**
306
- * @generated from protobuf message MiLaboratories.PL.API.Notification.FieldChange
307
- */
308
- export interface Notification_FieldChange {
309
- /**
310
- * @generated from protobuf field: MiLaboratories.PL.API.Field old = 1
311
- */
312
- old?: Field;
313
- /**
314
- * @generated from protobuf field: MiLaboratories.PL.API.Field new = 2
315
- */
316
- new?: Field;
317
- }
318
- /**
319
- * @generated from protobuf message MiLaboratories.PL.API.SpanInfo
320
- */
321
- export interface SpanInfo {
322
- /**
323
- * @generated from protobuf field: string path = 1
324
- */
325
- path: string;
326
- /**
327
- * @generated from protobuf field: map<string, string> carrier = 2
328
- */
329
- carrier: {
330
- [key: string]: string;
331
- };
332
- }
333
- /**
334
- * @generated from protobuf message MiLaboratories.PL.API.Subscription
335
- */
336
- export interface Subscription {
337
- /**
338
- * @generated from protobuf field: uint64 id = 1
339
- */
340
- id: bigint;
341
- /**
342
- * @generated from protobuf field: bool blocking = 3
343
- */
344
- blocking: boolean;
345
- }
346
- /**
347
- * @generated from protobuf message MiLaboratories.PL.API.Controller
348
- */
349
- export interface Controller {
350
- /**
351
- * @generated from protobuf field: string type = 1
352
- */
353
- type: string;
354
- /**
355
- * @generated from protobuf field: uint64 id = 2
356
- */
357
- id: bigint;
358
- /**
359
- * @generated from protobuf field: uint64 subscriptionID = 3
360
- */
361
- subscriptionID: bigint;
362
- }
363
- /**
364
- * @generated from protobuf message MiLaboratories.PL.API.ResourceSchema
365
- */
366
- export interface ResourceSchema {
367
- /**
368
- * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 1
369
- */
370
- type?: ResourceType;
371
- /**
372
- * @generated from protobuf field: repeated MiLaboratories.PL.API.FieldSchema fields = 2
373
- */
374
- fields: FieldSchema[];
375
- }
376
- /**
377
- * @generated from protobuf message MiLaboratories.PL.API.FieldSchema
378
- */
379
- export interface FieldSchema {
380
- /**
381
- * @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 1
382
- */
383
- type: FieldType;
384
- /**
385
- * @generated from protobuf field: string name = 2
386
- */
387
- name: string;
388
- }
389
- /**
390
- * @generated from protobuf message MiLaboratories.PL.API.ResourceAPIFeature
391
- */
392
- export interface ResourceAPIFeature {
393
- /**
394
- * @generated from protobuf field: string controller_type = 1
395
- */
396
- controllerType: string;
397
- /**
398
- * @generated from protobuf field: string feature_name = 2
399
- */
400
- featureName: string;
401
- /**
402
- * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 3
403
- */
404
- resourceType?: ResourceType;
405
- /**
406
- * @generated from protobuf field: string endpoint = 4
407
- */
408
- endpoint: string;
409
- }
410
- // @generated message type with reflection information, may provide speed optimized methods
411
- class Tx$Type extends MessageType<Tx> {
412
- constructor() {
413
- super("MiLaboratories.PL.API.Tx", [
414
- { no: 1, name: "is_valid", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
415
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
416
- ]);
417
- }
418
- create(value?: PartialMessage<Tx>): Tx {
419
- const message = globalThis.Object.create((this.messagePrototype!));
420
- message.isValid = false;
421
- message.id = 0n;
422
- if (value !== undefined)
423
- reflectionMergePartial<Tx>(this, message, value);
424
- return message;
425
- }
426
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tx): Tx {
427
- let message = target ?? this.create(), end = reader.pos + length;
428
- while (reader.pos < end) {
429
- let [fieldNo, wireType] = reader.tag();
430
- switch (fieldNo) {
431
- case /* bool is_valid */ 1:
432
- message.isValid = reader.bool();
433
- break;
434
- case /* uint64 id */ 2:
435
- message.id = reader.uint64().toBigInt();
436
- break;
437
- default:
438
- let u = options.readUnknownField;
439
- if (u === "throw")
440
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
441
- let d = reader.skip(wireType);
442
- if (u !== false)
443
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
444
- }
445
- }
446
- return message;
447
- }
448
- internalBinaryWrite(message: Tx, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
449
- /* bool is_valid = 1; */
450
- if (message.isValid !== false)
451
- writer.tag(1, WireType.Varint).bool(message.isValid);
452
- /* uint64 id = 2; */
453
- if (message.id !== 0n)
454
- writer.tag(2, WireType.Varint).uint64(message.id);
455
- let u = options.writeUnknownFields;
456
- if (u !== false)
457
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
458
- return writer;
459
- }
460
- }
461
- /**
462
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Tx
463
- */
464
- export const Tx = new Tx$Type();
465
- // @generated message type with reflection information, may provide speed optimized methods
466
- class Resource$Type extends MessageType<Resource> {
467
- constructor() {
468
- super("MiLaboratories.PL.API.Resource", [
469
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
470
- { no: 17, name: "canonical_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
471
- { no: 3, name: "kind", kind: "enum", T: () => ["MiLaboratories.PL.API.Resource.Kind", Resource_Kind, "KIND_"] },
472
- { no: 4, name: "type", kind: "message", T: () => ResourceType },
473
- { no: 5, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
474
- { no: 16, name: "features", kind: "message", T: () => Resource_Features },
475
- { no: 6, name: "fields", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Field },
476
- { no: 7, name: "has_errors", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
477
- { no: 8, name: "inputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
478
- { no: 9, name: "outputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
479
- { no: 14, name: "resource_ready", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
480
- { no: 15, name: "is_final", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
481
- { no: 10, name: "original_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
482
- { no: 11, name: "parent_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
483
- { no: 12, name: "created_time", kind: "message", T: () => Timestamp },
484
- { no: 13, name: "deleted_time", kind: "message", T: () => Timestamp }
485
- ]);
486
- }
487
- create(value?: PartialMessage<Resource>): Resource {
488
- const message = globalThis.Object.create((this.messagePrototype!));
489
- message.id = 0n;
490
- message.canonicalId = new Uint8Array(0);
491
- message.kind = 0;
492
- message.data = new Uint8Array(0);
493
- message.fields = [];
494
- message.hasErrors = false;
495
- message.inputsLocked = false;
496
- message.outputsLocked = false;
497
- message.resourceReady = false;
498
- message.isFinal = false;
499
- message.originalResourceId = 0n;
500
- message.parentResourceId = 0n;
501
- if (value !== undefined)
502
- reflectionMergePartial<Resource>(this, message, value);
503
- return message;
504
- }
505
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource): Resource {
506
- let message = target ?? this.create(), end = reader.pos + length;
507
- while (reader.pos < end) {
508
- let [fieldNo, wireType] = reader.tag();
509
- switch (fieldNo) {
510
- case /* uint64 id */ 2:
511
- message.id = reader.uint64().toBigInt();
512
- break;
513
- case /* bytes canonical_id */ 17:
514
- message.canonicalId = reader.bytes();
515
- break;
516
- case /* MiLaboratories.PL.API.Resource.Kind kind */ 3:
517
- message.kind = reader.int32();
518
- break;
519
- case /* MiLaboratories.PL.Base.ResourceType type */ 4:
520
- message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
521
- break;
522
- case /* bytes data */ 5:
523
- message.data = reader.bytes();
524
- break;
525
- case /* MiLaboratories.PL.API.Resource.Features features */ 16:
526
- message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
527
- break;
528
- case /* repeated MiLaboratories.PL.API.Field fields */ 6:
529
- message.fields.push(Field.internalBinaryRead(reader, reader.uint32(), options));
530
- break;
531
- case /* bool has_errors */ 7:
532
- message.hasErrors = reader.bool();
533
- break;
534
- case /* bool inputs_locked */ 8:
535
- message.inputsLocked = reader.bool();
536
- break;
537
- case /* bool outputs_locked */ 9:
538
- message.outputsLocked = reader.bool();
539
- break;
540
- case /* bool resource_ready */ 14:
541
- message.resourceReady = reader.bool();
542
- break;
543
- case /* bool is_final */ 15:
544
- message.isFinal = reader.bool();
545
- break;
546
- case /* uint64 original_resource_id */ 10:
547
- message.originalResourceId = reader.uint64().toBigInt();
548
- break;
549
- case /* uint64 parent_resource_id */ 11:
550
- message.parentResourceId = reader.uint64().toBigInt();
551
- break;
552
- case /* google.protobuf.Timestamp created_time */ 12:
553
- message.createdTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdTime);
554
- break;
555
- case /* google.protobuf.Timestamp deleted_time */ 13:
556
- message.deletedTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedTime);
557
- break;
558
- default:
559
- let u = options.readUnknownField;
560
- if (u === "throw")
561
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
562
- let d = reader.skip(wireType);
563
- if (u !== false)
564
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
565
- }
566
- }
567
- return message;
568
- }
569
- internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
570
- /* uint64 id = 2; */
571
- if (message.id !== 0n)
572
- writer.tag(2, WireType.Varint).uint64(message.id);
573
- /* MiLaboratories.PL.API.Resource.Kind kind = 3; */
574
- if (message.kind !== 0)
575
- writer.tag(3, WireType.Varint).int32(message.kind);
576
- /* MiLaboratories.PL.Base.ResourceType type = 4; */
577
- if (message.type)
578
- ResourceType.internalBinaryWrite(message.type, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
579
- /* bytes data = 5; */
580
- if (message.data.length)
581
- writer.tag(5, WireType.LengthDelimited).bytes(message.data);
582
- /* repeated MiLaboratories.PL.API.Field fields = 6; */
583
- for (let i = 0; i < message.fields.length; i++)
584
- Field.internalBinaryWrite(message.fields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
585
- /* bool has_errors = 7; */
586
- if (message.hasErrors !== false)
587
- writer.tag(7, WireType.Varint).bool(message.hasErrors);
588
- /* bool inputs_locked = 8; */
589
- if (message.inputsLocked !== false)
590
- writer.tag(8, WireType.Varint).bool(message.inputsLocked);
591
- /* bool outputs_locked = 9; */
592
- if (message.outputsLocked !== false)
593
- writer.tag(9, WireType.Varint).bool(message.outputsLocked);
594
- /* uint64 original_resource_id = 10; */
595
- if (message.originalResourceId !== 0n)
596
- writer.tag(10, WireType.Varint).uint64(message.originalResourceId);
597
- /* uint64 parent_resource_id = 11; */
598
- if (message.parentResourceId !== 0n)
599
- writer.tag(11, WireType.Varint).uint64(message.parentResourceId);
600
- /* google.protobuf.Timestamp created_time = 12; */
601
- if (message.createdTime)
602
- Timestamp.internalBinaryWrite(message.createdTime, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
603
- /* google.protobuf.Timestamp deleted_time = 13; */
604
- if (message.deletedTime)
605
- Timestamp.internalBinaryWrite(message.deletedTime, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
606
- /* bool resource_ready = 14; */
607
- if (message.resourceReady !== false)
608
- writer.tag(14, WireType.Varint).bool(message.resourceReady);
609
- /* bool is_final = 15; */
610
- if (message.isFinal !== false)
611
- writer.tag(15, WireType.Varint).bool(message.isFinal);
612
- /* MiLaboratories.PL.API.Resource.Features features = 16; */
613
- if (message.features)
614
- Resource_Features.internalBinaryWrite(message.features, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
615
- /* bytes canonical_id = 17; */
616
- if (message.canonicalId.length)
617
- writer.tag(17, WireType.LengthDelimited).bytes(message.canonicalId);
618
- let u = options.writeUnknownFields;
619
- if (u !== false)
620
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
621
- return writer;
622
- }
623
- }
624
- /**
625
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Resource
626
- */
627
- export const Resource = new Resource$Type();
628
- // @generated message type with reflection information, may provide speed optimized methods
629
- class Resource_Features$Type extends MessageType<Resource_Features> {
630
- constructor() {
631
- super("MiLaboratories.PL.API.Resource.Features", [
632
- { no: 1, name: "ephemeral", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
633
- ]);
634
- }
635
- create(value?: PartialMessage<Resource_Features>): Resource_Features {
636
- const message = globalThis.Object.create((this.messagePrototype!));
637
- message.ephemeral = false;
638
- if (value !== undefined)
639
- reflectionMergePartial<Resource_Features>(this, message, value);
640
- return message;
641
- }
642
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource_Features): Resource_Features {
643
- let message = target ?? this.create(), end = reader.pos + length;
644
- while (reader.pos < end) {
645
- let [fieldNo, wireType] = reader.tag();
646
- switch (fieldNo) {
647
- case /* bool ephemeral */ 1:
648
- message.ephemeral = reader.bool();
649
- break;
650
- default:
651
- let u = options.readUnknownField;
652
- if (u === "throw")
653
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
654
- let d = reader.skip(wireType);
655
- if (u !== false)
656
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
657
- }
658
- }
659
- return message;
660
- }
661
- internalBinaryWrite(message: Resource_Features, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
662
- /* bool ephemeral = 1; */
663
- if (message.ephemeral !== false)
664
- writer.tag(1, WireType.Varint).bool(message.ephemeral);
665
- let u = options.writeUnknownFields;
666
- if (u !== false)
667
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
668
- return writer;
669
- }
670
- }
671
- /**
672
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Resource.Features
673
- */
674
- export const Resource_Features = new Resource_Features$Type();
675
- // @generated message type with reflection information, may provide speed optimized methods
676
- class Field$Type extends MessageType<Field> {
677
- constructor() {
678
- super("MiLaboratories.PL.API.Field", [
679
- { no: 1, name: "id", kind: "message", T: () => FieldRef },
680
- { no: 2, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", FieldType] },
681
- { no: 3, name: "features", kind: "message", T: () => Resource_Features },
682
- { no: 5, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
683
- { no: 7, name: "value_status", kind: "enum", T: () => ["MiLaboratories.PL.API.Field.ValueStatus", Field_ValueStatus] },
684
- { no: 8, name: "value_is_final", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
685
- { no: 6, name: "error", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
686
- ]);
687
- }
688
- create(value?: PartialMessage<Field>): Field {
689
- const message = globalThis.Object.create((this.messagePrototype!));
690
- message.type = 0;
691
- message.value = 0n;
692
- message.valueStatus = 0;
693
- message.valueIsFinal = false;
694
- message.error = 0n;
695
- if (value !== undefined)
696
- reflectionMergePartial<Field>(this, message, value);
697
- return message;
698
- }
699
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Field): Field {
700
- let message = target ?? this.create(), end = reader.pos + length;
701
- while (reader.pos < end) {
702
- let [fieldNo, wireType] = reader.tag();
703
- switch (fieldNo) {
704
- case /* MiLaboratories.PL.Base.FieldRef id */ 1:
705
- message.id = FieldRef.internalBinaryRead(reader, reader.uint32(), options, message.id);
706
- break;
707
- case /* MiLaboratories.PL.Base.FieldType type */ 2:
708
- message.type = reader.int32();
709
- break;
710
- case /* MiLaboratories.PL.API.Resource.Features features */ 3:
711
- message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
712
- break;
713
- case /* uint64 value */ 5:
714
- message.value = reader.uint64().toBigInt();
715
- break;
716
- case /* MiLaboratories.PL.API.Field.ValueStatus value_status */ 7:
717
- message.valueStatus = reader.int32();
718
- break;
719
- case /* bool value_is_final */ 8:
720
- message.valueIsFinal = reader.bool();
721
- break;
722
- case /* uint64 error */ 6:
723
- message.error = reader.uint64().toBigInt();
724
- break;
725
- default:
726
- let u = options.readUnknownField;
727
- if (u === "throw")
728
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
729
- let d = reader.skip(wireType);
730
- if (u !== false)
731
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
732
- }
733
- }
734
- return message;
735
- }
736
- internalBinaryWrite(message: Field, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
737
- /* MiLaboratories.PL.Base.FieldRef id = 1; */
738
- if (message.id)
739
- FieldRef.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
740
- /* MiLaboratories.PL.Base.FieldType type = 2; */
741
- if (message.type !== 0)
742
- writer.tag(2, WireType.Varint).int32(message.type);
743
- /* MiLaboratories.PL.API.Resource.Features features = 3; */
744
- if (message.features)
745
- Resource_Features.internalBinaryWrite(message.features, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
746
- /* uint64 value = 5; */
747
- if (message.value !== 0n)
748
- writer.tag(5, WireType.Varint).uint64(message.value);
749
- /* uint64 error = 6; */
750
- if (message.error !== 0n)
751
- writer.tag(6, WireType.Varint).uint64(message.error);
752
- /* MiLaboratories.PL.API.Field.ValueStatus value_status = 7; */
753
- if (message.valueStatus !== 0)
754
- writer.tag(7, WireType.Varint).int32(message.valueStatus);
755
- /* bool value_is_final = 8; */
756
- if (message.valueIsFinal !== false)
757
- writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
758
- let u = options.writeUnknownFields;
759
- if (u !== false)
760
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
761
- return writer;
762
- }
763
- }
764
- /**
765
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Field
766
- */
767
- export const Field = new Field$Type();
768
- // @generated message type with reflection information, may provide speed optimized methods
769
- class Notification$Type extends MessageType<Notification> {
770
- constructor() {
771
- super("MiLaboratories.PL.API.Notification", [
772
- { no: 1, name: "subscription_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
773
- { no: 2, name: "event_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
774
- { no: 3, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
775
- { no: 4, name: "resource_type", kind: "message", T: () => ResourceType },
776
- { no: 5, name: "events", kind: "message", T: () => Notification_Events },
777
- { no: 6, name: "field_changes", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Notification_FieldChange } },
778
- { no: 7, name: "payload", kind: "message", T: () => NotificationFilter_Payload },
779
- { no: 8, name: "filter_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
780
- { no: 9, name: "tx_span", kind: "message", T: () => SpanInfo }
781
- ]);
782
- }
783
- create(value?: PartialMessage<Notification>): Notification {
784
- const message = globalThis.Object.create((this.messagePrototype!));
785
- message.subscriptionId = 0n;
786
- message.eventId = 0n;
787
- message.resourceId = 0n;
788
- message.fieldChanges = {};
789
- message.filterName = "";
790
- if (value !== undefined)
791
- reflectionMergePartial<Notification>(this, message, value);
792
- return message;
793
- }
794
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification): Notification {
795
- let message = target ?? this.create(), end = reader.pos + length;
796
- while (reader.pos < end) {
797
- let [fieldNo, wireType] = reader.tag();
798
- switch (fieldNo) {
799
- case /* uint64 subscription_id */ 1:
800
- message.subscriptionId = reader.uint64().toBigInt();
801
- break;
802
- case /* uint64 event_id */ 2:
803
- message.eventId = reader.uint64().toBigInt();
804
- break;
805
- case /* uint64 resource_id */ 3:
806
- message.resourceId = reader.uint64().toBigInt();
807
- break;
808
- case /* MiLaboratories.PL.Base.ResourceType resource_type */ 4:
809
- message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
810
- break;
811
- case /* MiLaboratories.PL.API.Notification.Events events */ 5:
812
- message.events = Notification_Events.internalBinaryRead(reader, reader.uint32(), options, message.events);
813
- break;
814
- case /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes */ 6:
815
- this.binaryReadMap6(message.fieldChanges, reader, options);
816
- break;
817
- case /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload */ 7:
818
- message.payload = NotificationFilter_Payload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
819
- break;
820
- case /* string filter_name */ 8:
821
- message.filterName = reader.string();
822
- break;
823
- case /* MiLaboratories.PL.API.SpanInfo tx_span */ 9:
824
- message.txSpan = SpanInfo.internalBinaryRead(reader, reader.uint32(), options, message.txSpan);
825
- break;
826
- default:
827
- let u = options.readUnknownField;
828
- if (u === "throw")
829
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
830
- let d = reader.skip(wireType);
831
- if (u !== false)
832
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
833
- }
834
- }
835
- return message;
836
- }
837
- private binaryReadMap6(map: Notification["fieldChanges"], reader: IBinaryReader, options: BinaryReadOptions): void {
838
- let len = reader.uint32(), end = reader.pos + len, key: keyof Notification["fieldChanges"] | undefined, val: Notification["fieldChanges"][any] | undefined;
839
- while (reader.pos < end) {
840
- let [fieldNo, wireType] = reader.tag();
841
- switch (fieldNo) {
842
- case 1:
843
- key = reader.string();
844
- break;
845
- case 2:
846
- val = Notification_FieldChange.internalBinaryRead(reader, reader.uint32(), options);
847
- break;
848
- default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.Notification.field_changes");
849
- }
850
- }
851
- map[key ?? ""] = val ?? Notification_FieldChange.create();
852
- }
853
- internalBinaryWrite(message: Notification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
854
- /* uint64 subscription_id = 1; */
855
- if (message.subscriptionId !== 0n)
856
- writer.tag(1, WireType.Varint).uint64(message.subscriptionId);
857
- /* uint64 event_id = 2; */
858
- if (message.eventId !== 0n)
859
- writer.tag(2, WireType.Varint).uint64(message.eventId);
860
- /* uint64 resource_id = 3; */
861
- if (message.resourceId !== 0n)
862
- writer.tag(3, WireType.Varint).uint64(message.resourceId);
863
- /* MiLaboratories.PL.Base.ResourceType resource_type = 4; */
864
- if (message.resourceType)
865
- ResourceType.internalBinaryWrite(message.resourceType, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
866
- /* MiLaboratories.PL.API.Notification.Events events = 5; */
867
- if (message.events)
868
- Notification_Events.internalBinaryWrite(message.events, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
869
- /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6; */
870
- for (let k of globalThis.Object.keys(message.fieldChanges)) {
871
- writer.tag(6, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
872
- writer.tag(2, WireType.LengthDelimited).fork();
873
- Notification_FieldChange.internalBinaryWrite(message.fieldChanges[k], writer, options);
874
- writer.join().join();
875
- }
876
- /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7; */
877
- if (message.payload)
878
- NotificationFilter_Payload.internalBinaryWrite(message.payload, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
879
- /* string filter_name = 8; */
880
- if (message.filterName !== "")
881
- writer.tag(8, WireType.LengthDelimited).string(message.filterName);
882
- /* MiLaboratories.PL.API.SpanInfo tx_span = 9; */
883
- if (message.txSpan)
884
- SpanInfo.internalBinaryWrite(message.txSpan, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
885
- let u = options.writeUnknownFields;
886
- if (u !== false)
887
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
888
- return writer;
889
- }
890
- }
891
- /**
892
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Notification
893
- */
894
- export const Notification = new Notification$Type();
895
- // @generated message type with reflection information, may provide speed optimized methods
896
- class Notification_Events$Type extends MessageType<Notification_Events> {
897
- constructor() {
898
- super("MiLaboratories.PL.API.Notification.Events", [
899
- { no: 1, name: "resource_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
900
- { no: 2, name: "resource_deleted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
901
- { no: 4, name: "resource_ready", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
902
- { no: 5, name: "resource_duplicate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
903
- { no: 15, name: "resource_error", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
904
- { no: 12, name: "inputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
905
- { no: 13, name: "outputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
906
- { no: 11, name: "field_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
907
- { no: 16, name: "field_got_error", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
908
- { no: 6, name: "input_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
909
- { no: 7, name: "all_inputs_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
910
- { no: 8, name: "output_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
911
- { no: 9, name: "all_outputs_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
912
- { no: 14, name: "generic_otw_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
913
- { no: 10, name: "dynamic_changed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
914
- ]);
915
- }
916
- create(value?: PartialMessage<Notification_Events>): Notification_Events {
917
- const message = globalThis.Object.create((this.messagePrototype!));
918
- message.resourceCreated = false;
919
- message.resourceDeleted = false;
920
- message.resourceReady = false;
921
- message.resourceDuplicate = false;
922
- message.resourceError = false;
923
- message.inputsLocked = false;
924
- message.outputsLocked = false;
925
- message.fieldCreated = false;
926
- message.fieldGotError = false;
927
- message.inputSet = false;
928
- message.allInputsSet = false;
929
- message.outputSet = false;
930
- message.allOutputsSet = false;
931
- message.genericOtwSet = false;
932
- message.dynamicChanged = false;
933
- if (value !== undefined)
934
- reflectionMergePartial<Notification_Events>(this, message, value);
935
- return message;
936
- }
937
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification_Events): Notification_Events {
938
- let message = target ?? this.create(), end = reader.pos + length;
939
- while (reader.pos < end) {
940
- let [fieldNo, wireType] = reader.tag();
941
- switch (fieldNo) {
942
- case /* bool resource_created */ 1:
943
- message.resourceCreated = reader.bool();
944
- break;
945
- case /* bool resource_deleted */ 2:
946
- message.resourceDeleted = reader.bool();
947
- break;
948
- case /* bool resource_ready */ 4:
949
- message.resourceReady = reader.bool();
950
- break;
951
- case /* bool resource_duplicate */ 5:
952
- message.resourceDuplicate = reader.bool();
953
- break;
954
- case /* bool resource_error */ 15:
955
- message.resourceError = reader.bool();
956
- break;
957
- case /* bool inputs_locked */ 12:
958
- message.inputsLocked = reader.bool();
959
- break;
960
- case /* bool outputs_locked */ 13:
961
- message.outputsLocked = reader.bool();
962
- break;
963
- case /* bool field_created */ 11:
964
- message.fieldCreated = reader.bool();
965
- break;
966
- case /* bool field_got_error */ 16:
967
- message.fieldGotError = reader.bool();
968
- break;
969
- case /* bool input_set */ 6:
970
- message.inputSet = reader.bool();
971
- break;
972
- case /* bool all_inputs_set */ 7:
973
- message.allInputsSet = reader.bool();
974
- break;
975
- case /* bool output_set */ 8:
976
- message.outputSet = reader.bool();
977
- break;
978
- case /* bool all_outputs_set */ 9:
979
- message.allOutputsSet = reader.bool();
980
- break;
981
- case /* bool generic_otw_set */ 14:
982
- message.genericOtwSet = reader.bool();
983
- break;
984
- case /* bool dynamic_changed */ 10:
985
- message.dynamicChanged = reader.bool();
986
- break;
987
- default:
988
- let u = options.readUnknownField;
989
- if (u === "throw")
990
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
991
- let d = reader.skip(wireType);
992
- if (u !== false)
993
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
994
- }
995
- }
996
- return message;
997
- }
998
- internalBinaryWrite(message: Notification_Events, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
999
- /* bool resource_created = 1; */
1000
- if (message.resourceCreated !== false)
1001
- writer.tag(1, WireType.Varint).bool(message.resourceCreated);
1002
- /* bool resource_deleted = 2; */
1003
- if (message.resourceDeleted !== false)
1004
- writer.tag(2, WireType.Varint).bool(message.resourceDeleted);
1005
- /* bool resource_ready = 4; */
1006
- if (message.resourceReady !== false)
1007
- writer.tag(4, WireType.Varint).bool(message.resourceReady);
1008
- /* bool resource_duplicate = 5; */
1009
- if (message.resourceDuplicate !== false)
1010
- writer.tag(5, WireType.Varint).bool(message.resourceDuplicate);
1011
- /* bool input_set = 6; */
1012
- if (message.inputSet !== false)
1013
- writer.tag(6, WireType.Varint).bool(message.inputSet);
1014
- /* bool all_inputs_set = 7; */
1015
- if (message.allInputsSet !== false)
1016
- writer.tag(7, WireType.Varint).bool(message.allInputsSet);
1017
- /* bool output_set = 8; */
1018
- if (message.outputSet !== false)
1019
- writer.tag(8, WireType.Varint).bool(message.outputSet);
1020
- /* bool all_outputs_set = 9; */
1021
- if (message.allOutputsSet !== false)
1022
- writer.tag(9, WireType.Varint).bool(message.allOutputsSet);
1023
- /* bool dynamic_changed = 10; */
1024
- if (message.dynamicChanged !== false)
1025
- writer.tag(10, WireType.Varint).bool(message.dynamicChanged);
1026
- /* bool field_created = 11; */
1027
- if (message.fieldCreated !== false)
1028
- writer.tag(11, WireType.Varint).bool(message.fieldCreated);
1029
- /* bool inputs_locked = 12; */
1030
- if (message.inputsLocked !== false)
1031
- writer.tag(12, WireType.Varint).bool(message.inputsLocked);
1032
- /* bool outputs_locked = 13; */
1033
- if (message.outputsLocked !== false)
1034
- writer.tag(13, WireType.Varint).bool(message.outputsLocked);
1035
- /* bool generic_otw_set = 14; */
1036
- if (message.genericOtwSet !== false)
1037
- writer.tag(14, WireType.Varint).bool(message.genericOtwSet);
1038
- /* bool resource_error = 15; */
1039
- if (message.resourceError !== false)
1040
- writer.tag(15, WireType.Varint).bool(message.resourceError);
1041
- /* bool field_got_error = 16; */
1042
- if (message.fieldGotError !== false)
1043
- writer.tag(16, WireType.Varint).bool(message.fieldGotError);
1044
- let u = options.writeUnknownFields;
1045
- if (u !== false)
1046
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1047
- return writer;
1048
- }
1049
- }
1050
- /**
1051
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Notification.Events
1052
- */
1053
- export const Notification_Events = new Notification_Events$Type();
1054
- // @generated message type with reflection information, may provide speed optimized methods
1055
- class Notification_FieldChange$Type extends MessageType<Notification_FieldChange> {
1056
- constructor() {
1057
- super("MiLaboratories.PL.API.Notification.FieldChange", [
1058
- { no: 1, name: "old", kind: "message", T: () => Field },
1059
- { no: 2, name: "new", kind: "message", T: () => Field }
1060
- ]);
1061
- }
1062
- create(value?: PartialMessage<Notification_FieldChange>): Notification_FieldChange {
1063
- const message = globalThis.Object.create((this.messagePrototype!));
1064
- if (value !== undefined)
1065
- reflectionMergePartial<Notification_FieldChange>(this, message, value);
1066
- return message;
1067
- }
1068
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification_FieldChange): Notification_FieldChange {
1069
- let message = target ?? this.create(), end = reader.pos + length;
1070
- while (reader.pos < end) {
1071
- let [fieldNo, wireType] = reader.tag();
1072
- switch (fieldNo) {
1073
- case /* MiLaboratories.PL.API.Field old */ 1:
1074
- message.old = Field.internalBinaryRead(reader, reader.uint32(), options, message.old);
1075
- break;
1076
- case /* MiLaboratories.PL.API.Field new */ 2:
1077
- message.new = Field.internalBinaryRead(reader, reader.uint32(), options, message.new);
1078
- break;
1079
- default:
1080
- let u = options.readUnknownField;
1081
- if (u === "throw")
1082
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1083
- let d = reader.skip(wireType);
1084
- if (u !== false)
1085
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1086
- }
1087
- }
1088
- return message;
1089
- }
1090
- internalBinaryWrite(message: Notification_FieldChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1091
- /* MiLaboratories.PL.API.Field old = 1; */
1092
- if (message.old)
1093
- Field.internalBinaryWrite(message.old, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1094
- /* MiLaboratories.PL.API.Field new = 2; */
1095
- if (message.new)
1096
- Field.internalBinaryWrite(message.new, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1097
- let u = options.writeUnknownFields;
1098
- if (u !== false)
1099
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1100
- return writer;
1101
- }
1102
- }
1103
- /**
1104
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Notification.FieldChange
1105
- */
1106
- export const Notification_FieldChange = new Notification_FieldChange$Type();
1107
- // @generated message type with reflection information, may provide speed optimized methods
1108
- class SpanInfo$Type extends MessageType<SpanInfo> {
1109
- constructor() {
1110
- super("MiLaboratories.PL.API.SpanInfo", [
1111
- { no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1112
- { no: 2, name: "carrier", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
1113
- ]);
1114
- }
1115
- create(value?: PartialMessage<SpanInfo>): SpanInfo {
1116
- const message = globalThis.Object.create((this.messagePrototype!));
1117
- message.path = "";
1118
- message.carrier = {};
1119
- if (value !== undefined)
1120
- reflectionMergePartial<SpanInfo>(this, message, value);
1121
- return message;
1122
- }
1123
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SpanInfo): SpanInfo {
1124
- let message = target ?? this.create(), end = reader.pos + length;
1125
- while (reader.pos < end) {
1126
- let [fieldNo, wireType] = reader.tag();
1127
- switch (fieldNo) {
1128
- case /* string path */ 1:
1129
- message.path = reader.string();
1130
- break;
1131
- case /* map<string, string> carrier */ 2:
1132
- this.binaryReadMap2(message.carrier, reader, options);
1133
- break;
1134
- default:
1135
- let u = options.readUnknownField;
1136
- if (u === "throw")
1137
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1138
- let d = reader.skip(wireType);
1139
- if (u !== false)
1140
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1141
- }
1142
- }
1143
- return message;
1144
- }
1145
- private binaryReadMap2(map: SpanInfo["carrier"], reader: IBinaryReader, options: BinaryReadOptions): void {
1146
- let len = reader.uint32(), end = reader.pos + len, key: keyof SpanInfo["carrier"] | undefined, val: SpanInfo["carrier"][any] | undefined;
1147
- while (reader.pos < end) {
1148
- let [fieldNo, wireType] = reader.tag();
1149
- switch (fieldNo) {
1150
- case 1:
1151
- key = reader.string();
1152
- break;
1153
- case 2:
1154
- val = reader.string();
1155
- break;
1156
- default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.SpanInfo.carrier");
1157
- }
1158
- }
1159
- map[key ?? ""] = val ?? "";
1160
- }
1161
- internalBinaryWrite(message: SpanInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1162
- /* string path = 1; */
1163
- if (message.path !== "")
1164
- writer.tag(1, WireType.LengthDelimited).string(message.path);
1165
- /* map<string, string> carrier = 2; */
1166
- for (let k of globalThis.Object.keys(message.carrier))
1167
- writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.carrier[k]).join();
1168
- let u = options.writeUnknownFields;
1169
- if (u !== false)
1170
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1171
- return writer;
1172
- }
1173
- }
1174
- /**
1175
- * @generated MessageType for protobuf message MiLaboratories.PL.API.SpanInfo
1176
- */
1177
- export const SpanInfo = new SpanInfo$Type();
1178
- // @generated message type with reflection information, may provide speed optimized methods
1179
- class Subscription$Type extends MessageType<Subscription> {
1180
- constructor() {
1181
- super("MiLaboratories.PL.API.Subscription", [
1182
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1183
- { no: 3, name: "blocking", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1184
- ]);
1185
- }
1186
- create(value?: PartialMessage<Subscription>): Subscription {
1187
- const message = globalThis.Object.create((this.messagePrototype!));
1188
- message.id = 0n;
1189
- message.blocking = false;
1190
- if (value !== undefined)
1191
- reflectionMergePartial<Subscription>(this, message, value);
1192
- return message;
1193
- }
1194
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Subscription): Subscription {
1195
- let message = target ?? this.create(), end = reader.pos + length;
1196
- while (reader.pos < end) {
1197
- let [fieldNo, wireType] = reader.tag();
1198
- switch (fieldNo) {
1199
- case /* uint64 id */ 1:
1200
- message.id = reader.uint64().toBigInt();
1201
- break;
1202
- case /* bool blocking */ 3:
1203
- message.blocking = reader.bool();
1204
- break;
1205
- default:
1206
- let u = options.readUnknownField;
1207
- if (u === "throw")
1208
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1209
- let d = reader.skip(wireType);
1210
- if (u !== false)
1211
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1212
- }
1213
- }
1214
- return message;
1215
- }
1216
- internalBinaryWrite(message: Subscription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1217
- /* uint64 id = 1; */
1218
- if (message.id !== 0n)
1219
- writer.tag(1, WireType.Varint).uint64(message.id);
1220
- /* bool blocking = 3; */
1221
- if (message.blocking !== false)
1222
- writer.tag(3, WireType.Varint).bool(message.blocking);
1223
- let u = options.writeUnknownFields;
1224
- if (u !== false)
1225
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1226
- return writer;
1227
- }
1228
- }
1229
- /**
1230
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Subscription
1231
- */
1232
- export const Subscription = new Subscription$Type();
1233
- // @generated message type with reflection information, may provide speed optimized methods
1234
- class Controller$Type extends MessageType<Controller> {
1235
- constructor() {
1236
- super("MiLaboratories.PL.API.Controller", [
1237
- { no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1238
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1239
- { no: 3, name: "subscriptionID", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1240
- ]);
1241
- }
1242
- create(value?: PartialMessage<Controller>): Controller {
1243
- const message = globalThis.Object.create((this.messagePrototype!));
1244
- message.type = "";
1245
- message.id = 0n;
1246
- message.subscriptionID = 0n;
1247
- if (value !== undefined)
1248
- reflectionMergePartial<Controller>(this, message, value);
1249
- return message;
1250
- }
1251
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Controller): Controller {
1252
- let message = target ?? this.create(), end = reader.pos + length;
1253
- while (reader.pos < end) {
1254
- let [fieldNo, wireType] = reader.tag();
1255
- switch (fieldNo) {
1256
- case /* string type */ 1:
1257
- message.type = reader.string();
1258
- break;
1259
- case /* uint64 id */ 2:
1260
- message.id = reader.uint64().toBigInt();
1261
- break;
1262
- case /* uint64 subscriptionID */ 3:
1263
- message.subscriptionID = reader.uint64().toBigInt();
1264
- break;
1265
- default:
1266
- let u = options.readUnknownField;
1267
- if (u === "throw")
1268
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1269
- let d = reader.skip(wireType);
1270
- if (u !== false)
1271
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1272
- }
1273
- }
1274
- return message;
1275
- }
1276
- internalBinaryWrite(message: Controller, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1277
- /* string type = 1; */
1278
- if (message.type !== "")
1279
- writer.tag(1, WireType.LengthDelimited).string(message.type);
1280
- /* uint64 id = 2; */
1281
- if (message.id !== 0n)
1282
- writer.tag(2, WireType.Varint).uint64(message.id);
1283
- /* uint64 subscriptionID = 3; */
1284
- if (message.subscriptionID !== 0n)
1285
- writer.tag(3, WireType.Varint).uint64(message.subscriptionID);
1286
- let u = options.writeUnknownFields;
1287
- if (u !== false)
1288
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1289
- return writer;
1290
- }
1291
- }
1292
- /**
1293
- * @generated MessageType for protobuf message MiLaboratories.PL.API.Controller
1294
- */
1295
- export const Controller = new Controller$Type();
1296
- // @generated message type with reflection information, may provide speed optimized methods
1297
- class ResourceSchema$Type extends MessageType<ResourceSchema> {
1298
- constructor() {
1299
- super("MiLaboratories.PL.API.ResourceSchema", [
1300
- { no: 1, name: "type", kind: "message", T: () => ResourceType },
1301
- { no: 2, name: "fields", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldSchema }
1302
- ]);
1303
- }
1304
- create(value?: PartialMessage<ResourceSchema>): ResourceSchema {
1305
- const message = globalThis.Object.create((this.messagePrototype!));
1306
- message.fields = [];
1307
- if (value !== undefined)
1308
- reflectionMergePartial<ResourceSchema>(this, message, value);
1309
- return message;
1310
- }
1311
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceSchema): ResourceSchema {
1312
- let message = target ?? this.create(), end = reader.pos + length;
1313
- while (reader.pos < end) {
1314
- let [fieldNo, wireType] = reader.tag();
1315
- switch (fieldNo) {
1316
- case /* MiLaboratories.PL.Base.ResourceType type */ 1:
1317
- message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
1318
- break;
1319
- case /* repeated MiLaboratories.PL.API.FieldSchema fields */ 2:
1320
- message.fields.push(FieldSchema.internalBinaryRead(reader, reader.uint32(), options));
1321
- break;
1322
- default:
1323
- let u = options.readUnknownField;
1324
- if (u === "throw")
1325
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1326
- let d = reader.skip(wireType);
1327
- if (u !== false)
1328
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1329
- }
1330
- }
1331
- return message;
1332
- }
1333
- internalBinaryWrite(message: ResourceSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1334
- /* MiLaboratories.PL.Base.ResourceType type = 1; */
1335
- if (message.type)
1336
- ResourceType.internalBinaryWrite(message.type, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1337
- /* repeated MiLaboratories.PL.API.FieldSchema fields = 2; */
1338
- for (let i = 0; i < message.fields.length; i++)
1339
- FieldSchema.internalBinaryWrite(message.fields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1340
- let u = options.writeUnknownFields;
1341
- if (u !== false)
1342
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1343
- return writer;
1344
- }
1345
- }
1346
- /**
1347
- * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceSchema
1348
- */
1349
- export const ResourceSchema = new ResourceSchema$Type();
1350
- // @generated message type with reflection information, may provide speed optimized methods
1351
- class FieldSchema$Type extends MessageType<FieldSchema> {
1352
- constructor() {
1353
- super("MiLaboratories.PL.API.FieldSchema", [
1354
- { no: 1, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", FieldType] },
1355
- { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1356
- ]);
1357
- }
1358
- create(value?: PartialMessage<FieldSchema>): FieldSchema {
1359
- const message = globalThis.Object.create((this.messagePrototype!));
1360
- message.type = 0;
1361
- message.name = "";
1362
- if (value !== undefined)
1363
- reflectionMergePartial<FieldSchema>(this, message, value);
1364
- return message;
1365
- }
1366
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldSchema): FieldSchema {
1367
- let message = target ?? this.create(), end = reader.pos + length;
1368
- while (reader.pos < end) {
1369
- let [fieldNo, wireType] = reader.tag();
1370
- switch (fieldNo) {
1371
- case /* MiLaboratories.PL.Base.FieldType type */ 1:
1372
- message.type = reader.int32();
1373
- break;
1374
- case /* string name */ 2:
1375
- message.name = reader.string();
1376
- break;
1377
- default:
1378
- let u = options.readUnknownField;
1379
- if (u === "throw")
1380
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1381
- let d = reader.skip(wireType);
1382
- if (u !== false)
1383
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1384
- }
1385
- }
1386
- return message;
1387
- }
1388
- internalBinaryWrite(message: FieldSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1389
- /* MiLaboratories.PL.Base.FieldType type = 1; */
1390
- if (message.type !== 0)
1391
- writer.tag(1, WireType.Varint).int32(message.type);
1392
- /* string name = 2; */
1393
- if (message.name !== "")
1394
- writer.tag(2, WireType.LengthDelimited).string(message.name);
1395
- let u = options.writeUnknownFields;
1396
- if (u !== false)
1397
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1398
- return writer;
1399
- }
1400
- }
1401
- /**
1402
- * @generated MessageType for protobuf message MiLaboratories.PL.API.FieldSchema
1403
- */
1404
- export const FieldSchema = new FieldSchema$Type();
1405
- // @generated message type with reflection information, may provide speed optimized methods
1406
- class ResourceAPIFeature$Type extends MessageType<ResourceAPIFeature> {
1407
- constructor() {
1408
- super("MiLaboratories.PL.API.ResourceAPIFeature", [
1409
- { no: 1, name: "controller_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1410
- { no: 2, name: "feature_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1411
- { no: 3, name: "resource_type", kind: "message", T: () => ResourceType },
1412
- { no: 4, name: "endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1413
- ]);
1414
- }
1415
- create(value?: PartialMessage<ResourceAPIFeature>): ResourceAPIFeature {
1416
- const message = globalThis.Object.create((this.messagePrototype!));
1417
- message.controllerType = "";
1418
- message.featureName = "";
1419
- message.endpoint = "";
1420
- if (value !== undefined)
1421
- reflectionMergePartial<ResourceAPIFeature>(this, message, value);
1422
- return message;
1423
- }
1424
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceAPIFeature): ResourceAPIFeature {
1425
- let message = target ?? this.create(), end = reader.pos + length;
1426
- while (reader.pos < end) {
1427
- let [fieldNo, wireType] = reader.tag();
1428
- switch (fieldNo) {
1429
- case /* string controller_type */ 1:
1430
- message.controllerType = reader.string();
1431
- break;
1432
- case /* string feature_name */ 2:
1433
- message.featureName = reader.string();
1434
- break;
1435
- case /* MiLaboratories.PL.Base.ResourceType resource_type */ 3:
1436
- message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
1437
- break;
1438
- case /* string endpoint */ 4:
1439
- message.endpoint = reader.string();
1440
- break;
1441
- default:
1442
- let u = options.readUnknownField;
1443
- if (u === "throw")
1444
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1445
- let d = reader.skip(wireType);
1446
- if (u !== false)
1447
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1448
- }
1449
- }
1450
- return message;
1451
- }
1452
- internalBinaryWrite(message: ResourceAPIFeature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1453
- /* string controller_type = 1; */
1454
- if (message.controllerType !== "")
1455
- writer.tag(1, WireType.LengthDelimited).string(message.controllerType);
1456
- /* string feature_name = 2; */
1457
- if (message.featureName !== "")
1458
- writer.tag(2, WireType.LengthDelimited).string(message.featureName);
1459
- /* MiLaboratories.PL.Base.ResourceType resource_type = 3; */
1460
- if (message.resourceType)
1461
- ResourceType.internalBinaryWrite(message.resourceType, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1462
- /* string endpoint = 4; */
1463
- if (message.endpoint !== "")
1464
- writer.tag(4, WireType.LengthDelimited).string(message.endpoint);
1465
- let u = options.writeUnknownFields;
1466
- if (u !== false)
1467
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1468
- return writer;
1469
- }
1470
- }
1471
- /**
1472
- * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceAPIFeature
1473
- */
1474
- export const ResourceAPIFeature = new ResourceAPIFeature$Type();