@milaboratories/pl-client 2.18.5 → 3.1.0

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 (213) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +12 -22
  2. package/dist/_virtual/_rolldown/runtime.js +6 -11
  3. package/dist/core/PromiseTracker.cjs +2 -3
  4. package/dist/core/PromiseTracker.cjs.map +1 -1
  5. package/dist/core/PromiseTracker.d.ts.map +1 -0
  6. package/dist/core/PromiseTracker.js +1 -2
  7. package/dist/core/PromiseTracker.js.map +1 -1
  8. package/dist/core/StatefulPromise.cjs +1 -2
  9. package/dist/core/StatefulPromise.cjs.map +1 -1
  10. package/dist/core/StatefulPromise.js +1 -1
  11. package/dist/core/StatefulPromise.js.map +1 -1
  12. package/dist/core/abstract_stream.d.ts.map +1 -0
  13. package/dist/core/advisory_locks.cjs +1 -2
  14. package/dist/core/advisory_locks.cjs.map +1 -1
  15. package/dist/core/advisory_locks.js +1 -1
  16. package/dist/core/advisory_locks.js.map +1 -1
  17. package/dist/core/auth.cjs +2 -3
  18. package/dist/core/auth.cjs.map +1 -1
  19. package/dist/core/auth.d.ts.map +1 -0
  20. package/dist/core/auth.js +1 -2
  21. package/dist/core/auth.js.map +1 -1
  22. package/dist/core/cache.d.ts.map +1 -0
  23. package/dist/core/client.cjs +63 -36
  24. package/dist/core/client.cjs.map +1 -1
  25. package/dist/core/client.d.ts +3 -1
  26. package/dist/core/client.d.ts.map +1 -0
  27. package/dist/core/client.js +54 -27
  28. package/dist/core/client.js.map +1 -1
  29. package/dist/core/config.cjs +16 -17
  30. package/dist/core/config.cjs.map +1 -1
  31. package/dist/core/config.d.ts.map +1 -0
  32. package/dist/core/config.js +16 -16
  33. package/dist/core/config.js.map +1 -1
  34. package/dist/core/default_client.cjs +6 -7
  35. package/dist/core/default_client.cjs.map +1 -1
  36. package/dist/core/default_client.d.ts.map +1 -0
  37. package/dist/core/default_client.js +1 -2
  38. package/dist/core/default_client.js.map +1 -1
  39. package/dist/core/driver.cjs +1 -2
  40. package/dist/core/driver.cjs.map +1 -1
  41. package/dist/core/driver.d.ts.map +1 -0
  42. package/dist/core/driver.js +1 -1
  43. package/dist/core/error_resource.cjs +1 -2
  44. package/dist/core/error_resource.cjs.map +1 -1
  45. package/dist/core/error_resource.js +1 -1
  46. package/dist/core/errors.cjs +11 -4
  47. package/dist/core/errors.cjs.map +1 -1
  48. package/dist/core/errors.d.ts +2 -1
  49. package/dist/core/errors.d.ts.map +1 -0
  50. package/dist/core/errors.js +9 -3
  51. package/dist/core/errors.js.map +1 -1
  52. package/dist/core/final.cjs +3 -4
  53. package/dist/core/final.cjs.map +1 -1
  54. package/dist/core/final.d.ts.map +1 -0
  55. package/dist/core/final.js +1 -2
  56. package/dist/core/final.js.map +1 -1
  57. package/dist/core/ll_client.cjs +35 -18
  58. package/dist/core/ll_client.cjs.map +1 -1
  59. package/dist/core/ll_client.d.ts +6 -1
  60. package/dist/core/ll_client.d.ts.map +1 -0
  61. package/dist/core/ll_client.js +25 -8
  62. package/dist/core/ll_client.js.map +1 -1
  63. package/dist/core/ll_transaction.cjs +4 -5
  64. package/dist/core/ll_transaction.cjs.map +1 -1
  65. package/dist/core/ll_transaction.d.ts.map +1 -0
  66. package/dist/core/ll_transaction.js +1 -2
  67. package/dist/core/ll_transaction.js.map +1 -1
  68. package/dist/core/stat.cjs +1 -2
  69. package/dist/core/stat.cjs.map +1 -1
  70. package/dist/core/stat.d.ts.map +1 -0
  71. package/dist/core/stat.js +1 -1
  72. package/dist/core/transaction.cjs +32 -21
  73. package/dist/core/transaction.cjs.map +1 -1
  74. package/dist/core/transaction.d.ts.map +1 -0
  75. package/dist/core/transaction.js +23 -12
  76. package/dist/core/transaction.js.map +1 -1
  77. package/dist/core/type_conversion.cjs +8 -9
  78. package/dist/core/type_conversion.cjs.map +1 -1
  79. package/dist/core/type_conversion.js +4 -5
  80. package/dist/core/type_conversion.js.map +1 -1
  81. package/dist/core/types.cjs +3 -4
  82. package/dist/core/types.cjs.map +1 -1
  83. package/dist/core/types.d.ts.map +1 -0
  84. package/dist/core/types.js +2 -3
  85. package/dist/core/types.js.map +1 -1
  86. package/dist/core/unauth_client.cjs +4 -5
  87. package/dist/core/unauth_client.cjs.map +1 -1
  88. package/dist/core/unauth_client.d.ts.map +1 -0
  89. package/dist/core/unauth_client.js +1 -2
  90. package/dist/core/unauth_client.js.map +1 -1
  91. package/dist/core/websocket_stream.cjs +4 -5
  92. package/dist/core/websocket_stream.cjs.map +1 -1
  93. package/dist/core/websocket_stream.js +1 -2
  94. package/dist/core/websocket_stream.js.map +1 -1
  95. package/dist/core/wire.d.ts.map +1 -0
  96. package/dist/helpers/pl.cjs +12 -14
  97. package/dist/helpers/pl.cjs.map +1 -1
  98. package/dist/helpers/pl.d.ts.map +1 -0
  99. package/dist/helpers/pl.js +5 -7
  100. package/dist/helpers/pl.js.map +1 -1
  101. package/dist/helpers/poll.cjs +3 -4
  102. package/dist/helpers/poll.cjs.map +1 -1
  103. package/dist/helpers/poll.d.ts.map +1 -0
  104. package/dist/helpers/poll.js +1 -2
  105. package/dist/helpers/poll.js.map +1 -1
  106. package/dist/helpers/retry_strategy.cjs +1 -2
  107. package/dist/helpers/retry_strategy.cjs.map +1 -1
  108. package/dist/helpers/retry_strategy.js +1 -1
  109. package/dist/helpers/retry_strategy.js.map +1 -1
  110. package/dist/helpers/tx_helpers.cjs +3 -4
  111. package/dist/helpers/tx_helpers.cjs.map +1 -1
  112. package/dist/helpers/tx_helpers.d.ts.map +1 -0
  113. package/dist/helpers/tx_helpers.js +1 -2
  114. package/dist/helpers/tx_helpers.js.map +1 -1
  115. package/dist/index.cjs +34 -34
  116. package/dist/index.d.ts +2 -2
  117. package/dist/index.js +2 -3
  118. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs +3 -4
  119. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -1
  120. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
  121. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js +1 -2
  122. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -1
  123. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +2039 -644
  124. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -1
  125. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +62 -13
  126. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -1
  127. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +78 -8
  128. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
  129. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +60 -11
  130. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -1
  131. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +658 -51
  132. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
  133. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js +2033 -639
  134. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
  135. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +251 -22
  136. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -1
  137. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +104 -10
  138. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
  139. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +248 -19
  140. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -1
  141. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +28 -15
  142. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -1
  143. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +4 -0
  144. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
  145. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +27 -14
  146. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -1
  147. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs +17 -16
  148. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +1 -1
  149. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +4 -0
  150. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
  151. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js +15 -14
  152. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +1 -1
  153. package/dist/proto-grpc/google/protobuf/any.cjs +2 -3
  154. package/dist/proto-grpc/google/protobuf/any.cjs.map +1 -1
  155. package/dist/proto-grpc/google/protobuf/any.d.ts.map +1 -0
  156. package/dist/proto-grpc/google/protobuf/any.js +1 -2
  157. package/dist/proto-grpc/google/protobuf/any.js.map +1 -1
  158. package/dist/proto-grpc/google/protobuf/duration.cjs +2 -3
  159. package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -1
  160. package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
  161. package/dist/proto-grpc/google/protobuf/duration.js +1 -2
  162. package/dist/proto-grpc/google/protobuf/duration.js.map +1 -1
  163. package/dist/proto-grpc/google/protobuf/timestamp.cjs +2 -3
  164. package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
  165. package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
  166. package/dist/proto-grpc/google/protobuf/timestamp.js +1 -2
  167. package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
  168. package/dist/proto-grpc/google/rpc/code.cjs +1 -2
  169. package/dist/proto-grpc/google/rpc/code.cjs.map +1 -1
  170. package/dist/proto-grpc/google/rpc/code.d.ts.map +1 -0
  171. package/dist/proto-grpc/google/rpc/code.js +1 -1
  172. package/dist/proto-grpc/google/rpc/code.js.map +1 -1
  173. package/dist/proto-rest/index.cjs +8 -9
  174. package/dist/proto-rest/index.cjs.map +1 -1
  175. package/dist/proto-rest/index.d.ts.map +1 -0
  176. package/dist/proto-rest/index.js +1 -2
  177. package/dist/proto-rest/index.js.map +1 -1
  178. package/dist/proto-rest/plapi.d.ts +281 -28
  179. package/dist/proto-rest/plapi.d.ts.map +1 -0
  180. package/dist/test/tcp-proxy.cjs +2 -3
  181. package/dist/test/tcp-proxy.cjs.map +1 -1
  182. package/dist/test/tcp-proxy.d.ts.map +1 -0
  183. package/dist/test/tcp-proxy.js +1 -2
  184. package/dist/test/tcp-proxy.js.map +1 -1
  185. package/dist/test/test_config.cjs +16 -19
  186. package/dist/test/test_config.cjs.map +1 -1
  187. package/dist/test/test_config.d.ts.map +1 -0
  188. package/dist/test/test_config.js +3 -6
  189. package/dist/test/test_config.js.map +1 -1
  190. package/dist/util/pl.cjs +1 -2
  191. package/dist/util/pl.cjs.map +1 -1
  192. package/dist/util/pl.js +1 -1
  193. package/dist/util/util.cjs +1 -2
  194. package/dist/util/util.cjs.map +1 -1
  195. package/dist/util/util.js +1 -1
  196. package/package.json +8 -8
  197. package/src/core/client.ts +80 -30
  198. package/src/core/errors.ts +11 -0
  199. package/src/core/ll_client.test.ts +8 -0
  200. package/src/core/ll_client.ts +30 -2
  201. package/src/core/ll_transaction.test.ts +12 -2
  202. package/src/core/transaction.ts +41 -10
  203. package/src/core/type_conversion.ts +1 -1
  204. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +119 -15
  205. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +2274 -322
  206. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +276 -20
  207. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +11 -0
  208. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/import.ts +2 -2
  209. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +11 -0
  210. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.ts +3 -3
  211. package/src/proto-grpc/google/protobuf/descriptor.ts +2 -5
  212. package/src/proto-grpc/google/protobuf/struct.ts +1 -1
  213. package/src/proto-rest/plapi.ts +293 -22
@@ -1,6 +1,6 @@
1
+ import { Timestamp } from "../../../../../google/protobuf/timestamp.js";
1
2
  import { FieldRef, FieldType, ResourceType } from "./base_types.js";
2
3
  import { NotificationFilter_Payload } from "./resource_types.js";
3
- import { Timestamp } from "../../../../../google/protobuf/timestamp.js";
4
4
  import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, MessageType, PartialMessage } from "@protobuf-ts/runtime";
5
5
 
6
6
  //#region src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts
@@ -22,9 +22,13 @@ interface Tx {
22
22
  */
23
23
  interface Resource {
24
24
  /**
25
- * @generated from protobuf field: uint64 id = 2
25
+ * @generated from protobuf field: uint64 resource_id = 2
26
26
  */
27
- id: bigint;
27
+ resourceId: bigint;
28
+ /**
29
+ * @generated from protobuf field: optional bytes resource_signature = 18
30
+ */
31
+ resourceSignature?: Uint8Array;
28
32
  /**
29
33
  * @generated from protobuf field: bytes canonical_id = 17
30
34
  */
@@ -133,17 +137,24 @@ interface Field {
133
137
  */
134
138
  features?: Resource_Features;
135
139
  /**
136
- * _resolved_ value of field or _assigned_ if the field was assigned to a resource.
137
- * If field refers to another field, it will get
138
- * value only when this chain of references ends up with direct resource
139
- * reference. At that moment all fields in the chain will get their values
140
+ * _resolved_ value of a field or _assigned_ if the field was assigned to a resource.
141
+ * If a field refers to another field, it will get
142
+ * a value only when this chain of references ends up with a direct resource
143
+ * reference. At that moment, all fields in the chain will get their values
140
144
  * resolved and will start to refer to the same resource directly.
141
145
  *
142
146
  * @generated from protobuf field: uint64 value = 5
143
147
  */
144
148
  value: bigint;
145
149
  /**
146
- * If the value was empty, assigned or finally resolved.
150
+ * Signature for value resource ID, inheriting the parent resource's color.
151
+ * Populated server-side when the parent resource has a known color in the current TX.
152
+ *
153
+ * @generated from protobuf field: optional bytes value_signature = 10
154
+ */
155
+ valueSignature?: Uint8Array;
156
+ /**
157
+ * Whether the value is empty, assigned, or finally resolved.
147
158
  *
148
159
  * @generated from protobuf field: MiLaboratories.PL.API.Field.ValueStatus value_status = 7
149
160
  */
@@ -155,12 +166,18 @@ interface Field {
155
166
  */
156
167
  valueIsFinal: boolean;
157
168
  /**
158
- * Resource error resource id if any.
159
- * Is intended to report problems _from_ platform to client.
169
+ * Error resource ID, if any.
170
+ * Is intended to report problems _from_ the platform to the client.
160
171
  *
161
172
  * @generated from protobuf field: uint64 error = 6
162
173
  */
163
174
  error: bigint;
175
+ /**
176
+ * Signature for error resource ID, inheriting the parent resource's color.
177
+ *
178
+ * @generated from protobuf field: optional bytes error_signature = 11
179
+ */
180
+ errorSignature?: Uint8Array;
164
181
  }
165
182
  /**
166
183
  * @generated from protobuf enum MiLaboratories.PL.API.Field.ValueStatus
@@ -290,6 +307,10 @@ interface Notification_Events {
290
307
  * @generated from protobuf field: bool dynamic_changed = 10
291
308
  */
292
309
  dynamicChanged: boolean;
310
+ /**
311
+ * @generated from protobuf field: bool resource_recovered = 17
312
+ */
313
+ resourceRecovered: boolean;
293
314
  }
294
315
  /**
295
316
  * @generated from protobuf message MiLaboratories.PL.API.Notification.FieldChange
@@ -348,6 +369,67 @@ interface ResourceSchema {
348
369
  * @generated from protobuf field: repeated MiLaboratories.PL.API.FieldSchema fields = 2
349
370
  */
350
371
  fields: FieldSchema[];
372
+ /**
373
+ * Access restriction flags for non-controller roles
374
+ *
375
+ * @generated from protobuf field: optional MiLaboratories.PL.API.ResourceSchema.AccessFlags access_flags = 3
376
+ */
377
+ accessFlags?: ResourceSchema_AccessFlags;
378
+ /**
379
+ * @generated from protobuf field: bool free_inputs = 4
380
+ */
381
+ freeInputs: boolean;
382
+ /**
383
+ * @generated from protobuf field: bool free_outputs = 5
384
+ */
385
+ freeOutputs: boolean;
386
+ }
387
+ /**
388
+ * @generated from protobuf message MiLaboratories.PL.API.ResourceSchema.AccessFlags
389
+ */
390
+ interface ResourceSchema_AccessFlags {
391
+ /**
392
+ * Deny-list approach: default = allowed (true)
393
+ * Controllers set these to false to restrict non-controller roles (role='u', role='w')
394
+ *
395
+ * @generated from protobuf field: optional bool create_resource = 1
396
+ */
397
+ createResource?: boolean;
398
+ /**
399
+ * IMPORTANT: read_fields=false with write_fields=true is a forbidden combination
400
+ *
401
+ * @generated from protobuf field: optional bool read_fields = 2
402
+ */
403
+ readFields?: boolean;
404
+ /**
405
+ * @generated from protobuf field: optional bool write_fields = 3
406
+ */
407
+ writeFields?: boolean;
408
+ /**
409
+ * IMPORTANT: read_kv=false with write_kv=true is a forbidden combination
410
+ *
411
+ * @generated from protobuf field: optional bool read_kv = 4
412
+ */
413
+ readKv?: boolean;
414
+ /**
415
+ * @generated from protobuf field: optional bool write_kv = 5
416
+ */
417
+ writeKv?: boolean;
418
+ /**
419
+ * Per-field-type overrides (map: field_type → bool)
420
+ * When defined for a field type, overrides resource-level flags
421
+ *
422
+ * @generated from protobuf field: map<uint32, bool> read_by_field_type = 6
423
+ */
424
+ readByFieldType: {
425
+ [key: number]: boolean;
426
+ };
427
+ /**
428
+ * @generated from protobuf field: map<uint32, bool> write_by_field_type = 7
429
+ */
430
+ writeByFieldType: {
431
+ [key: number]: boolean;
432
+ };
351
433
  }
352
434
  /**
353
435
  * @generated from protobuf message MiLaboratories.PL.API.FieldSchema
@@ -485,6 +567,18 @@ declare class ResourceSchema$Type extends MessageType<ResourceSchema> {
485
567
  * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceSchema
486
568
  */
487
569
  declare const ResourceSchema: ResourceSchema$Type;
570
+ declare class ResourceSchema_AccessFlags$Type extends MessageType<ResourceSchema_AccessFlags> {
571
+ constructor();
572
+ create(value?: PartialMessage<ResourceSchema_AccessFlags>): ResourceSchema_AccessFlags;
573
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceSchema_AccessFlags): ResourceSchema_AccessFlags;
574
+ private binaryReadMap6;
575
+ private binaryReadMap7;
576
+ internalBinaryWrite(message: ResourceSchema_AccessFlags, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
577
+ }
578
+ /**
579
+ * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceSchema.AccessFlags
580
+ */
581
+ declare const ResourceSchema_AccessFlags: ResourceSchema_AccessFlags$Type;
488
582
  declare class FieldSchema$Type extends MessageType<FieldSchema> {
489
583
  constructor();
490
584
  create(value?: PartialMessage<FieldSchema>): FieldSchema;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_types.d.ts","names":[],"sources":["../../../../../../../src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts"],"mappings":";;;;;;AAiCA;;;AAAA,UAbiB,EAAA;EAyBA;;;EArBb,OAAA;EAqCW;;;EAjCX,EAAA;AAAA;;;;UAKa,QAAA;EAYb;;;EARA,UAAA;EAgBA;;;EAZA,iBAAA,GAAoB,UAAA;EAoBpB;;;EAhBA,WAAA,EAAa,UAAA;EA0Bb;;;EAtBA,IAAA,EAAM,aAAA;EAsCN;;;EAlCA,IAAA,GAAO,YAAA;EA8CO;;;EA1Cd,IAAA,EAAM,UAAA;EA8CiB;AAK3B;;EA/CI,QAAA,GAAW,iBA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BAAA,EAAoB,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cAsB7F,kBAAA,EAAkB,uBAAA"}
@@ -1,8 +1,7 @@
1
+ import { Timestamp } from "../../../../../google/protobuf/timestamp.js";
1
2
  import { FieldRef, FieldType, ResourceType } from "./base_types.js";
2
3
  import { NotificationFilter_Payload } from "./resource_types.js";
3
- import { Timestamp } from "../../../../../google/protobuf/timestamp.js";
4
4
  import { MessageType, UnknownFieldHandler, WireType, reflectionMergePartial } from "@protobuf-ts/runtime";
5
-
6
5
  //#region src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts
7
6
  /**
8
7
  * @generated from protobuf enum MiLaboratories.PL.API.Resource.Kind
@@ -103,11 +102,18 @@ var Resource$Type = class extends MessageType {
103
102
  super("MiLaboratories.PL.API.Resource", [
104
103
  {
105
104
  no: 2,
106
- name: "id",
105
+ name: "resource_id",
107
106
  kind: "scalar",
108
107
  T: 4,
109
108
  L: 0
110
109
  },
110
+ {
111
+ no: 18,
112
+ name: "resource_signature",
113
+ kind: "scalar",
114
+ opt: true,
115
+ T: 12
116
+ },
111
117
  {
112
118
  no: 17,
113
119
  name: "canonical_id",
@@ -209,7 +215,7 @@ var Resource$Type = class extends MessageType {
209
215
  }
210
216
  create(value) {
211
217
  const message = globalThis.Object.create(this.messagePrototype);
212
- message.id = 0n;
218
+ message.resourceId = 0n;
213
219
  message.canonicalId = new Uint8Array(0);
214
220
  message.kind = 0;
215
221
  message.data = new Uint8Array(0);
@@ -230,7 +236,10 @@ var Resource$Type = class extends MessageType {
230
236
  let [fieldNo, wireType] = reader.tag();
231
237
  switch (fieldNo) {
232
238
  case 2:
233
- message.id = reader.uint64().toBigInt();
239
+ message.resourceId = reader.uint64().toBigInt();
240
+ break;
241
+ case 18:
242
+ message.resourceSignature = reader.bytes();
234
243
  break;
235
244
  case 17:
236
245
  message.canonicalId = reader.bytes();
@@ -287,7 +296,7 @@ var Resource$Type = class extends MessageType {
287
296
  return message;
288
297
  }
289
298
  internalBinaryWrite(message, writer, options) {
290
- if (message.id !== 0n) writer.tag(2, WireType.Varint).uint64(message.id);
299
+ if (message.resourceId !== 0n) writer.tag(2, WireType.Varint).uint64(message.resourceId);
291
300
  if (message.kind !== 0) writer.tag(3, WireType.Varint).int32(message.kind);
292
301
  if (message.type) ResourceType.internalBinaryWrite(message.type, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
293
302
  if (message.data.length) writer.tag(5, WireType.LengthDelimited).bytes(message.data);
@@ -303,6 +312,7 @@ var Resource$Type = class extends MessageType {
303
312
  if (message.isFinal !== false) writer.tag(15, WireType.Varint).bool(message.isFinal);
304
313
  if (message.features) Resource_Features.internalBinaryWrite(message.features, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
305
314
  if (message.canonicalId.length) writer.tag(17, WireType.LengthDelimited).bytes(message.canonicalId);
315
+ if (message.resourceSignature !== void 0) writer.tag(18, WireType.LengthDelimited).bytes(message.resourceSignature);
306
316
  let u = options.writeUnknownFields;
307
317
  if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
308
318
  return writer;
@@ -383,6 +393,13 @@ var Field$Type = class extends MessageType {
383
393
  T: 4,
384
394
  L: 0
385
395
  },
396
+ {
397
+ no: 10,
398
+ name: "value_signature",
399
+ kind: "scalar",
400
+ opt: true,
401
+ T: 12
402
+ },
386
403
  {
387
404
  no: 7,
388
405
  name: "value_status",
@@ -401,6 +418,13 @@ var Field$Type = class extends MessageType {
401
418
  kind: "scalar",
402
419
  T: 4,
403
420
  L: 0
421
+ },
422
+ {
423
+ no: 11,
424
+ name: "error_signature",
425
+ kind: "scalar",
426
+ opt: true,
427
+ T: 12
404
428
  }
405
429
  ]);
406
430
  }
@@ -431,6 +455,9 @@ var Field$Type = class extends MessageType {
431
455
  case 5:
432
456
  message.value = reader.uint64().toBigInt();
433
457
  break;
458
+ case 10:
459
+ message.valueSignature = reader.bytes();
460
+ break;
434
461
  case 7:
435
462
  message.valueStatus = reader.int32();
436
463
  break;
@@ -440,6 +467,9 @@ var Field$Type = class extends MessageType {
440
467
  case 6:
441
468
  message.error = reader.uint64().toBigInt();
442
469
  break;
470
+ case 11:
471
+ message.errorSignature = reader.bytes();
472
+ break;
443
473
  default:
444
474
  let u = options.readUnknownField;
445
475
  if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
@@ -457,6 +487,8 @@ var Field$Type = class extends MessageType {
457
487
  if (message.error !== 0n) writer.tag(6, WireType.Varint).uint64(message.error);
458
488
  if (message.valueStatus !== 0) writer.tag(7, WireType.Varint).int32(message.valueStatus);
459
489
  if (message.valueIsFinal !== false) writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
490
+ if (message.valueSignature !== void 0) writer.tag(10, WireType.LengthDelimited).bytes(message.valueSignature);
491
+ if (message.errorSignature !== void 0) writer.tag(11, WireType.LengthDelimited).bytes(message.errorSignature);
460
492
  let u = options.writeUnknownFields;
461
493
  if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
462
494
  return writer;
@@ -715,6 +747,12 @@ var Notification_Events$Type = class extends MessageType {
715
747
  name: "dynamic_changed",
716
748
  kind: "scalar",
717
749
  T: 8
750
+ },
751
+ {
752
+ no: 17,
753
+ name: "resource_recovered",
754
+ kind: "scalar",
755
+ T: 8
718
756
  }
719
757
  ]);
720
758
  }
@@ -735,6 +773,7 @@ var Notification_Events$Type = class extends MessageType {
735
773
  message.allOutputsSet = false;
736
774
  message.genericOtwSet = false;
737
775
  message.dynamicChanged = false;
776
+ message.resourceRecovered = false;
738
777
  if (value !== void 0) reflectionMergePartial(this, message, value);
739
778
  return message;
740
779
  }
@@ -788,6 +827,9 @@ var Notification_Events$Type = class extends MessageType {
788
827
  case 10:
789
828
  message.dynamicChanged = reader.bool();
790
829
  break;
830
+ case 17:
831
+ message.resourceRecovered = reader.bool();
832
+ break;
791
833
  default:
792
834
  let u = options.readUnknownField;
793
835
  if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
@@ -813,6 +855,7 @@ var Notification_Events$Type = class extends MessageType {
813
855
  if (message.genericOtwSet !== false) writer.tag(14, WireType.Varint).bool(message.genericOtwSet);
814
856
  if (message.resourceError !== false) writer.tag(15, WireType.Varint).bool(message.resourceError);
815
857
  if (message.fieldGotError !== false) writer.tag(16, WireType.Varint).bool(message.fieldGotError);
858
+ if (message.resourceRecovered !== false) writer.tag(17, WireType.Varint).bool(message.resourceRecovered);
816
859
  let u = options.writeUnknownFields;
817
860
  if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
818
861
  return writer;
@@ -1071,22 +1114,45 @@ var Controller$Type = class extends MessageType {
1071
1114
  const Controller = new Controller$Type();
1072
1115
  var ResourceSchema$Type = class extends MessageType {
1073
1116
  constructor() {
1074
- super("MiLaboratories.PL.API.ResourceSchema", [{
1075
- no: 1,
1076
- name: "type",
1077
- kind: "message",
1078
- T: () => ResourceType
1079
- }, {
1080
- no: 2,
1081
- name: "fields",
1082
- kind: "message",
1083
- repeat: 2,
1084
- T: () => FieldSchema
1085
- }]);
1117
+ super("MiLaboratories.PL.API.ResourceSchema", [
1118
+ {
1119
+ no: 1,
1120
+ name: "type",
1121
+ kind: "message",
1122
+ T: () => ResourceType
1123
+ },
1124
+ {
1125
+ no: 2,
1126
+ name: "fields",
1127
+ kind: "message",
1128
+ repeat: 2,
1129
+ T: () => FieldSchema
1130
+ },
1131
+ {
1132
+ no: 3,
1133
+ name: "access_flags",
1134
+ kind: "message",
1135
+ T: () => ResourceSchema_AccessFlags
1136
+ },
1137
+ {
1138
+ no: 4,
1139
+ name: "free_inputs",
1140
+ kind: "scalar",
1141
+ T: 8
1142
+ },
1143
+ {
1144
+ no: 5,
1145
+ name: "free_outputs",
1146
+ kind: "scalar",
1147
+ T: 8
1148
+ }
1149
+ ]);
1086
1150
  }
1087
1151
  create(value) {
1088
1152
  const message = globalThis.Object.create(this.messagePrototype);
1089
1153
  message.fields = [];
1154
+ message.freeInputs = false;
1155
+ message.freeOutputs = false;
1090
1156
  if (value !== void 0) reflectionMergePartial(this, message, value);
1091
1157
  return message;
1092
1158
  }
@@ -1101,6 +1167,15 @@ var ResourceSchema$Type = class extends MessageType {
1101
1167
  case 2:
1102
1168
  message.fields.push(FieldSchema.internalBinaryRead(reader, reader.uint32(), options));
1103
1169
  break;
1170
+ case 3:
1171
+ message.accessFlags = ResourceSchema_AccessFlags.internalBinaryRead(reader, reader.uint32(), options, message.accessFlags);
1172
+ break;
1173
+ case 4:
1174
+ message.freeInputs = reader.bool();
1175
+ break;
1176
+ case 5:
1177
+ message.freeOutputs = reader.bool();
1178
+ break;
1104
1179
  default:
1105
1180
  let u = options.readUnknownField;
1106
1181
  if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
@@ -1113,6 +1188,9 @@ var ResourceSchema$Type = class extends MessageType {
1113
1188
  internalBinaryWrite(message, writer, options) {
1114
1189
  if (message.type) ResourceType.internalBinaryWrite(message.type, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1115
1190
  for (let i = 0; i < message.fields.length; i++) FieldSchema.internalBinaryWrite(message.fields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1191
+ if (message.accessFlags) ResourceSchema_AccessFlags.internalBinaryWrite(message.accessFlags, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1192
+ if (message.freeInputs !== false) writer.tag(4, WireType.Varint).bool(message.freeInputs);
1193
+ if (message.freeOutputs !== false) writer.tag(5, WireType.Varint).bool(message.freeOutputs);
1116
1194
  let u = options.writeUnknownFields;
1117
1195
  if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1118
1196
  return writer;
@@ -1122,6 +1200,157 @@ var ResourceSchema$Type = class extends MessageType {
1122
1200
  * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceSchema
1123
1201
  */
1124
1202
  const ResourceSchema = new ResourceSchema$Type();
1203
+ var ResourceSchema_AccessFlags$Type = class extends MessageType {
1204
+ constructor() {
1205
+ super("MiLaboratories.PL.API.ResourceSchema.AccessFlags", [
1206
+ {
1207
+ no: 1,
1208
+ name: "create_resource",
1209
+ kind: "scalar",
1210
+ opt: true,
1211
+ T: 8
1212
+ },
1213
+ {
1214
+ no: 2,
1215
+ name: "read_fields",
1216
+ kind: "scalar",
1217
+ opt: true,
1218
+ T: 8
1219
+ },
1220
+ {
1221
+ no: 3,
1222
+ name: "write_fields",
1223
+ kind: "scalar",
1224
+ opt: true,
1225
+ T: 8
1226
+ },
1227
+ {
1228
+ no: 4,
1229
+ name: "read_kv",
1230
+ kind: "scalar",
1231
+ opt: true,
1232
+ T: 8
1233
+ },
1234
+ {
1235
+ no: 5,
1236
+ name: "write_kv",
1237
+ kind: "scalar",
1238
+ opt: true,
1239
+ T: 8
1240
+ },
1241
+ {
1242
+ no: 6,
1243
+ name: "read_by_field_type",
1244
+ kind: "map",
1245
+ K: 13,
1246
+ V: {
1247
+ kind: "scalar",
1248
+ T: 8
1249
+ }
1250
+ },
1251
+ {
1252
+ no: 7,
1253
+ name: "write_by_field_type",
1254
+ kind: "map",
1255
+ K: 13,
1256
+ V: {
1257
+ kind: "scalar",
1258
+ T: 8
1259
+ }
1260
+ }
1261
+ ]);
1262
+ }
1263
+ create(value) {
1264
+ const message = globalThis.Object.create(this.messagePrototype);
1265
+ message.readByFieldType = {};
1266
+ message.writeByFieldType = {};
1267
+ if (value !== void 0) reflectionMergePartial(this, message, value);
1268
+ return message;
1269
+ }
1270
+ internalBinaryRead(reader, length, options, target) {
1271
+ let message = target ?? this.create(), end = reader.pos + length;
1272
+ while (reader.pos < end) {
1273
+ let [fieldNo, wireType] = reader.tag();
1274
+ switch (fieldNo) {
1275
+ case 1:
1276
+ message.createResource = reader.bool();
1277
+ break;
1278
+ case 2:
1279
+ message.readFields = reader.bool();
1280
+ break;
1281
+ case 3:
1282
+ message.writeFields = reader.bool();
1283
+ break;
1284
+ case 4:
1285
+ message.readKv = reader.bool();
1286
+ break;
1287
+ case 5:
1288
+ message.writeKv = reader.bool();
1289
+ break;
1290
+ case 6:
1291
+ this.binaryReadMap6(message.readByFieldType, reader, options);
1292
+ break;
1293
+ case 7:
1294
+ this.binaryReadMap7(message.writeByFieldType, reader, options);
1295
+ break;
1296
+ default:
1297
+ let u = options.readUnknownField;
1298
+ if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1299
+ let d = reader.skip(wireType);
1300
+ if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1301
+ }
1302
+ }
1303
+ return message;
1304
+ }
1305
+ binaryReadMap6(map, reader, options) {
1306
+ let len = reader.uint32(), end = reader.pos + len, key, val;
1307
+ while (reader.pos < end) {
1308
+ let [fieldNo, wireType] = reader.tag();
1309
+ switch (fieldNo) {
1310
+ case 1:
1311
+ key = reader.uint32();
1312
+ break;
1313
+ case 2:
1314
+ val = reader.bool();
1315
+ break;
1316
+ default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.ResourceSchema.AccessFlags.read_by_field_type");
1317
+ }
1318
+ }
1319
+ map[key ?? 0] = val ?? false;
1320
+ }
1321
+ binaryReadMap7(map, reader, options) {
1322
+ let len = reader.uint32(), end = reader.pos + len, key, val;
1323
+ while (reader.pos < end) {
1324
+ let [fieldNo, wireType] = reader.tag();
1325
+ switch (fieldNo) {
1326
+ case 1:
1327
+ key = reader.uint32();
1328
+ break;
1329
+ case 2:
1330
+ val = reader.bool();
1331
+ break;
1332
+ default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.ResourceSchema.AccessFlags.write_by_field_type");
1333
+ }
1334
+ }
1335
+ map[key ?? 0] = val ?? false;
1336
+ }
1337
+ internalBinaryWrite(message, writer, options) {
1338
+ if (message.createResource !== void 0) writer.tag(1, WireType.Varint).bool(message.createResource);
1339
+ if (message.readFields !== void 0) writer.tag(2, WireType.Varint).bool(message.readFields);
1340
+ if (message.writeFields !== void 0) writer.tag(3, WireType.Varint).bool(message.writeFields);
1341
+ if (message.readKv !== void 0) writer.tag(4, WireType.Varint).bool(message.readKv);
1342
+ if (message.writeKv !== void 0) writer.tag(5, WireType.Varint).bool(message.writeKv);
1343
+ for (let k of globalThis.Object.keys(message.readByFieldType)) writer.tag(6, WireType.LengthDelimited).fork().tag(1, WireType.Varint).uint32(parseInt(k)).tag(2, WireType.Varint).bool(message.readByFieldType[k]).join();
1344
+ for (let k of globalThis.Object.keys(message.writeByFieldType)) writer.tag(7, WireType.LengthDelimited).fork().tag(1, WireType.Varint).uint32(parseInt(k)).tag(2, WireType.Varint).bool(message.writeByFieldType[k]).join();
1345
+ let u = options.writeUnknownFields;
1346
+ if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1347
+ return writer;
1348
+ }
1349
+ };
1350
+ /**
1351
+ * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceSchema.AccessFlags
1352
+ */
1353
+ const ResourceSchema_AccessFlags = new ResourceSchema_AccessFlags$Type();
1125
1354
  var FieldSchema$Type = class extends MessageType {
1126
1355
  constructor() {
1127
1356
  super("MiLaboratories.PL.API.FieldSchema", [{
@@ -1252,7 +1481,7 @@ var ResourceAPIFeature$Type = class extends MessageType {
1252
1481
  * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceAPIFeature
1253
1482
  */
1254
1483
  const ResourceAPIFeature = new ResourceAPIFeature$Type();
1255
-
1256
1484
  //#endregion
1257
1485
  export { Controller, Field, Field_ValueStatus, Notification, Resource, ResourceAPIFeature, ResourceSchema, Resource_Kind, Subscription, Tx };
1486
+
1258
1487
  //# sourceMappingURL=api_types.js.map