@milaboratories/pl-client 2.11.3 → 2.11.5

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 (65) hide show
  1. package/dist/core/transaction.d.ts +2 -1
  2. package/dist/core/transaction.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1377 -1173
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +3 -3
  8. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  9. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  10. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  11. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  12. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +2 -2
  13. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +11 -11
  14. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  15. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  16. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  17. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  18. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +10 -10
  19. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +25 -25
  20. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +50 -50
  21. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +415 -304
  22. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  23. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +70 -66
  24. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
  25. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +4 -4
  26. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +16 -16
  27. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +30 -30
  28. package/dist/proto/google/api/http.d.ts +93 -89
  29. package/dist/proto/google/api/http.d.ts.map +1 -1
  30. package/dist/proto/google/protobuf/any.d.ts +2 -2
  31. package/dist/proto/google/protobuf/descriptor.d.ts +1298 -1151
  32. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  33. package/dist/proto/google/protobuf/duration.d.ts +2 -2
  34. package/dist/proto/google/protobuf/struct.d.ts +10 -8
  35. package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
  36. package/dist/proto/google/protobuf/timestamp.d.ts +2 -2
  37. package/dist/proto/google/protobuf/wrappers.d.ts +36 -9
  38. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
  39. package/package.json +3 -3
  40. package/src/core/ll_client.test.ts +3 -3
  41. package/src/core/ll_transaction.test.ts +4 -4
  42. package/src/core/transaction.ts +2 -0
  43. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +5 -5
  44. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +23 -24
  45. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +232 -247
  46. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +3 -3
  47. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +13 -13
  48. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +35 -37
  49. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +375 -399
  50. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +11 -11
  51. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +26 -26
  52. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +51 -51
  53. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +687 -418
  54. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +113 -101
  55. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +5 -5
  56. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +17 -17
  57. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +50 -50
  58. package/src/proto/google/api/http.ts +290 -295
  59. package/src/proto/google/protobuf/any.ts +3 -3
  60. package/src/proto/google/protobuf/descriptor.ts +3235 -3123
  61. package/src/proto/google/protobuf/duration.ts +3 -3
  62. package/src/proto/google/protobuf/empty.ts +1 -1
  63. package/src/proto/google/protobuf/struct.ts +13 -11
  64. package/src/proto/google/protobuf/timestamp.ts +3 -3
  65. package/src/proto/google/protobuf/wrappers.ts +48 -14
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.6 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
1
+ // @generated by protobuf-ts 2.11.0 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
2
  // @generated from protobuf file "github.com/milaboratory/pl/plapi/plapiproto/api_types.proto" (package "MiLaboratories.PL.API", syntax proto3)
3
3
  // tslint:disable
4
4
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -20,11 +20,11 @@ import { ResourceType } from "./base_types";
20
20
  */
21
21
  export interface Tx {
22
22
  /**
23
- * @generated from protobuf field: bool is_valid = 1;
23
+ * @generated from protobuf field: bool is_valid = 1
24
24
  */
25
25
  isValid: boolean;
26
26
  /**
27
- * @generated from protobuf field: uint64 id = 2;
27
+ * @generated from protobuf field: uint64 id = 2
28
28
  */
29
29
  id: bigint;
30
30
  }
@@ -33,65 +33,69 @@ export interface Tx {
33
33
  */
34
34
  export interface Resource {
35
35
  /**
36
- * @generated from protobuf field: uint64 id = 2;
36
+ * @generated from protobuf field: uint64 id = 2
37
37
  */
38
38
  id: bigint;
39
39
  /**
40
- * @generated from protobuf field: MiLaboratories.PL.API.Resource.Kind kind = 3;
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
41
45
  */
42
46
  kind: Resource_Kind;
43
47
  /**
44
- * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 4;
48
+ * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 4
45
49
  */
46
50
  type?: ResourceType;
47
51
  /**
48
- * @generated from protobuf field: bytes data = 5;
52
+ * @generated from protobuf field: bytes data = 5
49
53
  */
50
54
  data: Uint8Array;
51
55
  /**
52
- * @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 16;
56
+ * @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 16
53
57
  */
54
58
  features?: Resource_Features;
55
59
  /**
56
- * @generated from protobuf field: repeated MiLaboratories.PL.API.Field fields = 6;
60
+ * @generated from protobuf field: repeated MiLaboratories.PL.API.Field fields = 6
57
61
  */
58
62
  fields: Field[];
59
63
  /**
60
64
  * Resource has at least one field with error
61
65
  *
62
- * @generated from protobuf field: bool has_errors = 7;
66
+ * @generated from protobuf field: bool has_errors = 7
63
67
  */
64
68
  hasErrors: boolean;
65
69
  /**
66
- * @generated from protobuf field: bool inputs_locked = 8;
70
+ * @generated from protobuf field: bool inputs_locked = 8
67
71
  */
68
72
  inputsLocked: boolean;
69
73
  /**
70
- * @generated from protobuf field: bool outputs_locked = 9;
74
+ * @generated from protobuf field: bool outputs_locked = 9
71
75
  */
72
76
  outputsLocked: boolean;
73
77
  /**
74
- * @generated from protobuf field: bool resource_ready = 14;
78
+ * @generated from protobuf field: bool resource_ready = 14
75
79
  */
76
80
  resourceReady: boolean;
77
81
  /**
78
- * @generated from protobuf field: bool is_final = 15;
82
+ * @generated from protobuf field: bool is_final = 15
79
83
  */
80
84
  isFinal: boolean;
81
85
  /**
82
- * @generated from protobuf field: uint64 original_resource_id = 10;
86
+ * @generated from protobuf field: uint64 original_resource_id = 10
83
87
  */
84
88
  originalResourceId: bigint;
85
89
  /**
86
- * @generated from protobuf field: uint64 parent_resource_id = 11;
90
+ * @generated from protobuf field: uint64 parent_resource_id = 11
87
91
  */
88
92
  parentResourceId: bigint;
89
93
  /**
90
- * @generated from protobuf field: google.protobuf.Timestamp created_time = 12;
94
+ * @generated from protobuf field: google.protobuf.Timestamp created_time = 12
91
95
  */
92
96
  createdTime?: Timestamp;
93
97
  /**
94
- * @generated from protobuf field: google.protobuf.Timestamp deleted_time = 13;
98
+ * @generated from protobuf field: google.protobuf.Timestamp deleted_time = 13
95
99
  */
96
100
  deletedTime?: Timestamp;
97
101
  }
@@ -100,7 +104,7 @@ export interface Resource {
100
104
  */
101
105
  export interface Resource_Features {
102
106
  /**
103
- * @generated from protobuf field: bool ephemeral = 1;
107
+ * @generated from protobuf field: bool ephemeral = 1
104
108
  */
105
109
  ephemeral: boolean; // false = 'supports deduplication'
106
110
  }
@@ -128,15 +132,15 @@ export interface Field {
128
132
  /**
129
133
  * field ID is always combination of parent resource ID and field name
130
134
  *
131
- * @generated from protobuf field: MiLaboratories.PL.Base.FieldRef id = 1;
135
+ * @generated from protobuf field: MiLaboratories.PL.Base.FieldRef id = 1
132
136
  */
133
137
  id?: FieldRef;
134
138
  /**
135
- * @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 2;
139
+ * @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 2
136
140
  */
137
141
  type: FieldType;
138
142
  /**
139
- * @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 3;
143
+ * @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 3
140
144
  */
141
145
  features?: Resource_Features;
142
146
  /**
@@ -146,26 +150,26 @@ export interface Field {
146
150
  * reference. At that moment all fields in the chain will get their values
147
151
  * resolved and will start to refer to the same resource directly.
148
152
  *
149
- * @generated from protobuf field: uint64 value = 5;
153
+ * @generated from protobuf field: uint64 value = 5
150
154
  */
151
155
  value: bigint;
152
156
  /**
153
157
  * If the value was empty, assigned or finally resolved.
154
158
  *
155
- * @generated from protobuf field: MiLaboratories.PL.API.Field.ValueStatus value_status = 7;
159
+ * @generated from protobuf field: MiLaboratories.PL.API.Field.ValueStatus value_status = 7
156
160
  */
157
161
  valueStatus: Field_ValueStatus;
158
162
  /**
159
163
  * If the value is in its final state (ready, duplicate or error)
160
164
  *
161
- * @generated from protobuf field: bool value_is_final = 8;
165
+ * @generated from protobuf field: bool value_is_final = 8
162
166
  */
163
167
  valueIsFinal: boolean;
164
168
  /**
165
169
  * Resource error resource id if any.
166
170
  * Is intended to report problems _from_ platform to client.
167
171
  *
168
- * @generated from protobuf field: uint64 error = 6;
172
+ * @generated from protobuf field: uint64 error = 6
169
173
  */
170
174
  error: bigint;
171
175
  }
@@ -195,41 +199,41 @@ export enum Field_ValueStatus {
195
199
  */
196
200
  export interface Notification {
197
201
  /**
198
- * @generated from protobuf field: uint64 subscription_id = 1;
202
+ * @generated from protobuf field: uint64 subscription_id = 1
199
203
  */
200
204
  subscriptionId: bigint;
201
205
  /**
202
- * @generated from protobuf field: uint64 event_id = 2;
206
+ * @generated from protobuf field: uint64 event_id = 2
203
207
  */
204
208
  eventId: bigint;
205
209
  /**
206
- * @generated from protobuf field: uint64 resource_id = 3;
210
+ * @generated from protobuf field: uint64 resource_id = 3
207
211
  */
208
212
  resourceId: bigint;
209
213
  /**
210
- * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 4;
214
+ * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 4
211
215
  */
212
216
  resourceType?: ResourceType;
213
217
  /**
214
- * @generated from protobuf field: MiLaboratories.PL.API.Notification.Events events = 5;
218
+ * @generated from protobuf field: MiLaboratories.PL.API.Notification.Events events = 5
215
219
  */
216
220
  events?: Notification_Events;
217
221
  /**
218
- * @generated from protobuf field: map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6;
222
+ * @generated from protobuf field: map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6
219
223
  */
220
224
  fieldChanges: {
221
225
  [key: string]: Notification_FieldChange;
222
226
  };
223
227
  /**
224
- * @generated from protobuf field: MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7;
228
+ * @generated from protobuf field: MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7
225
229
  */
226
230
  payload?: NotificationFilter_Payload;
227
231
  /**
228
- * @generated from protobuf field: string filter_name = 8;
232
+ * @generated from protobuf field: string filter_name = 8
229
233
  */
230
234
  filterName: string;
231
235
  /**
232
- * @generated from protobuf field: MiLaboratories.PL.API.SpanInfo tx_span = 9;
236
+ * @generated from protobuf field: MiLaboratories.PL.API.SpanInfo tx_span = 9
233
237
  */
234
238
  txSpan?: SpanInfo;
235
239
  }
@@ -238,63 +242,63 @@ export interface Notification {
238
242
  */
239
243
  export interface Notification_Events {
240
244
  /**
241
- * @generated from protobuf field: bool resource_created = 1;
245
+ * @generated from protobuf field: bool resource_created = 1
242
246
  */
243
247
  resourceCreated: boolean;
244
248
  /**
245
- * @generated from protobuf field: bool resource_deleted = 2;
249
+ * @generated from protobuf field: bool resource_deleted = 2
246
250
  */
247
251
  resourceDeleted: boolean;
248
252
  /**
249
- * @generated from protobuf field: bool resource_ready = 4;
253
+ * @generated from protobuf field: bool resource_ready = 4
250
254
  */
251
255
  resourceReady: boolean;
252
256
  /**
253
- * @generated from protobuf field: bool resource_duplicate = 5;
257
+ * @generated from protobuf field: bool resource_duplicate = 5
254
258
  */
255
259
  resourceDuplicate: boolean;
256
260
  /**
257
- * @generated from protobuf field: bool resource_error = 15;
261
+ * @generated from protobuf field: bool resource_error = 15
258
262
  */
259
263
  resourceError: boolean;
260
264
  /**
261
- * @generated from protobuf field: bool inputs_locked = 12;
265
+ * @generated from protobuf field: bool inputs_locked = 12
262
266
  */
263
267
  inputsLocked: boolean;
264
268
  /**
265
- * @generated from protobuf field: bool outputs_locked = 13;
269
+ * @generated from protobuf field: bool outputs_locked = 13
266
270
  */
267
271
  outputsLocked: boolean;
268
272
  /**
269
- * @generated from protobuf field: bool field_created = 11;
273
+ * @generated from protobuf field: bool field_created = 11
270
274
  */
271
275
  fieldCreated: boolean;
272
276
  /**
273
- * @generated from protobuf field: bool field_got_error = 16;
277
+ * @generated from protobuf field: bool field_got_error = 16
274
278
  */
275
279
  fieldGotError: boolean;
276
280
  /**
277
- * @generated from protobuf field: bool input_set = 6;
281
+ * @generated from protobuf field: bool input_set = 6
278
282
  */
279
283
  inputSet: boolean;
280
284
  /**
281
- * @generated from protobuf field: bool all_inputs_set = 7;
285
+ * @generated from protobuf field: bool all_inputs_set = 7
282
286
  */
283
287
  allInputsSet: boolean;
284
288
  /**
285
- * @generated from protobuf field: bool output_set = 8;
289
+ * @generated from protobuf field: bool output_set = 8
286
290
  */
287
291
  outputSet: boolean;
288
292
  /**
289
- * @generated from protobuf field: bool all_outputs_set = 9;
293
+ * @generated from protobuf field: bool all_outputs_set = 9
290
294
  */
291
295
  allOutputsSet: boolean;
292
296
  /**
293
- * @generated from protobuf field: bool generic_otw_set = 14;
297
+ * @generated from protobuf field: bool generic_otw_set = 14
294
298
  */
295
299
  genericOtwSet: boolean;
296
300
  /**
297
- * @generated from protobuf field: bool dynamic_changed = 10;
301
+ * @generated from protobuf field: bool dynamic_changed = 10
298
302
  */
299
303
  dynamicChanged: boolean;
300
304
  }
@@ -303,11 +307,11 @@ export interface Notification_Events {
303
307
  */
304
308
  export interface Notification_FieldChange {
305
309
  /**
306
- * @generated from protobuf field: MiLaboratories.PL.API.Field old = 1;
310
+ * @generated from protobuf field: MiLaboratories.PL.API.Field old = 1
307
311
  */
308
312
  old?: Field;
309
313
  /**
310
- * @generated from protobuf field: MiLaboratories.PL.API.Field new = 2;
314
+ * @generated from protobuf field: MiLaboratories.PL.API.Field new = 2
311
315
  */
312
316
  new?: Field;
313
317
  }
@@ -316,11 +320,11 @@ export interface Notification_FieldChange {
316
320
  */
317
321
  export interface SpanInfo {
318
322
  /**
319
- * @generated from protobuf field: string path = 1;
323
+ * @generated from protobuf field: string path = 1
320
324
  */
321
325
  path: string;
322
326
  /**
323
- * @generated from protobuf field: map<string, string> carrier = 2;
327
+ * @generated from protobuf field: map<string, string> carrier = 2
324
328
  */
325
329
  carrier: {
326
330
  [key: string]: string;
@@ -331,11 +335,11 @@ export interface SpanInfo {
331
335
  */
332
336
  export interface Subscription {
333
337
  /**
334
- * @generated from protobuf field: uint64 id = 1;
338
+ * @generated from protobuf field: uint64 id = 1
335
339
  */
336
340
  id: bigint;
337
341
  /**
338
- * @generated from protobuf field: bool blocking = 3;
342
+ * @generated from protobuf field: bool blocking = 3
339
343
  */
340
344
  blocking: boolean;
341
345
  }
@@ -344,15 +348,15 @@ export interface Subscription {
344
348
  */
345
349
  export interface Controller {
346
350
  /**
347
- * @generated from protobuf field: string type = 1;
351
+ * @generated from protobuf field: string type = 1
348
352
  */
349
353
  type: string;
350
354
  /**
351
- * @generated from protobuf field: uint64 id = 2;
355
+ * @generated from protobuf field: uint64 id = 2
352
356
  */
353
357
  id: bigint;
354
358
  /**
355
- * @generated from protobuf field: uint64 subscriptionID = 3;
359
+ * @generated from protobuf field: uint64 subscriptionID = 3
356
360
  */
357
361
  subscriptionID: bigint;
358
362
  }
@@ -361,11 +365,11 @@ export interface Controller {
361
365
  */
362
366
  export interface ResourceSchema {
363
367
  /**
364
- * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 1;
368
+ * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 1
365
369
  */
366
370
  type?: ResourceType;
367
371
  /**
368
- * @generated from protobuf field: repeated MiLaboratories.PL.API.FieldSchema fields = 2;
372
+ * @generated from protobuf field: repeated MiLaboratories.PL.API.FieldSchema fields = 2
369
373
  */
370
374
  fields: FieldSchema[];
371
375
  }
@@ -374,11 +378,11 @@ export interface ResourceSchema {
374
378
  */
375
379
  export interface FieldSchema {
376
380
  /**
377
- * @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 1;
381
+ * @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 1
378
382
  */
379
383
  type: FieldType;
380
384
  /**
381
- * @generated from protobuf field: string name = 2;
385
+ * @generated from protobuf field: string name = 2
382
386
  */
383
387
  name: string;
384
388
  }
@@ -387,19 +391,19 @@ export interface FieldSchema {
387
391
  */
388
392
  export interface ResourceAPIFeature {
389
393
  /**
390
- * @generated from protobuf field: string controller_type = 1;
394
+ * @generated from protobuf field: string controller_type = 1
391
395
  */
392
396
  controllerType: string;
393
397
  /**
394
- * @generated from protobuf field: string feature_name = 2;
398
+ * @generated from protobuf field: string feature_name = 2
395
399
  */
396
400
  featureName: string;
397
401
  /**
398
- * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 3;
402
+ * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 3
399
403
  */
400
404
  resourceType?: ResourceType;
401
405
  /**
402
- * @generated from protobuf field: string endpoint = 4;
406
+ * @generated from protobuf field: string endpoint = 4
403
407
  */
404
408
  endpoint: string;
405
409
  }
@@ -463,11 +467,12 @@ class Resource$Type extends MessageType<Resource> {
463
467
  constructor() {
464
468
  super("MiLaboratories.PL.API.Resource", [
465
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*/ },
466
471
  { no: 3, name: "kind", kind: "enum", T: () => ["MiLaboratories.PL.API.Resource.Kind", Resource_Kind, "KIND_"] },
467
472
  { no: 4, name: "type", kind: "message", T: () => ResourceType },
468
473
  { no: 5, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
469
474
  { no: 16, name: "features", kind: "message", T: () => Resource_Features },
470
- { no: 6, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Field },
475
+ { no: 6, name: "fields", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Field },
471
476
  { no: 7, name: "has_errors", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
472
477
  { no: 8, name: "inputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
473
478
  { no: 9, name: "outputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
@@ -482,6 +487,7 @@ class Resource$Type extends MessageType<Resource> {
482
487
  create(value?: PartialMessage<Resource>): Resource {
483
488
  const message = globalThis.Object.create((this.messagePrototype!));
484
489
  message.id = 0n;
490
+ message.canonicalId = new Uint8Array(0);
485
491
  message.kind = 0;
486
492
  message.data = new Uint8Array(0);
487
493
  message.fields = [];
@@ -504,6 +510,9 @@ class Resource$Type extends MessageType<Resource> {
504
510
  case /* uint64 id */ 2:
505
511
  message.id = reader.uint64().toBigInt();
506
512
  break;
513
+ case /* bytes canonical_id */ 17:
514
+ message.canonicalId = reader.bytes();
515
+ break;
507
516
  case /* MiLaboratories.PL.API.Resource.Kind kind */ 3:
508
517
  message.kind = reader.int32();
509
518
  break;
@@ -570,9 +579,6 @@ class Resource$Type extends MessageType<Resource> {
570
579
  /* bytes data = 5; */
571
580
  if (message.data.length)
572
581
  writer.tag(5, WireType.LengthDelimited).bytes(message.data);
573
- /* MiLaboratories.PL.API.Resource.Features features = 16; */
574
- if (message.features)
575
- Resource_Features.internalBinaryWrite(message.features, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
576
582
  /* repeated MiLaboratories.PL.API.Field fields = 6; */
577
583
  for (let i = 0; i < message.fields.length; i++)
578
584
  Field.internalBinaryWrite(message.fields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
@@ -585,12 +591,6 @@ class Resource$Type extends MessageType<Resource> {
585
591
  /* bool outputs_locked = 9; */
586
592
  if (message.outputsLocked !== false)
587
593
  writer.tag(9, WireType.Varint).bool(message.outputsLocked);
588
- /* bool resource_ready = 14; */
589
- if (message.resourceReady !== false)
590
- writer.tag(14, WireType.Varint).bool(message.resourceReady);
591
- /* bool is_final = 15; */
592
- if (message.isFinal !== false)
593
- writer.tag(15, WireType.Varint).bool(message.isFinal);
594
594
  /* uint64 original_resource_id = 10; */
595
595
  if (message.originalResourceId !== 0n)
596
596
  writer.tag(10, WireType.Varint).uint64(message.originalResourceId);
@@ -603,6 +603,18 @@ class Resource$Type extends MessageType<Resource> {
603
603
  /* google.protobuf.Timestamp deleted_time = 13; */
604
604
  if (message.deletedTime)
605
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);
606
618
  let u = options.writeUnknownFields;
607
619
  if (u !== false)
608
620
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -734,15 +746,15 @@ class Field$Type extends MessageType<Field> {
734
746
  /* uint64 value = 5; */
735
747
  if (message.value !== 0n)
736
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);
737
752
  /* MiLaboratories.PL.API.Field.ValueStatus value_status = 7; */
738
753
  if (message.valueStatus !== 0)
739
754
  writer.tag(7, WireType.Varint).int32(message.valueStatus);
740
755
  /* bool value_is_final = 8; */
741
756
  if (message.valueIsFinal !== false)
742
757
  writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
743
- /* uint64 error = 6; */
744
- if (message.error !== 0n)
745
- writer.tag(6, WireType.Varint).uint64(message.error);
746
758
  let u = options.writeUnknownFields;
747
759
  if (u !== false)
748
760
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -833,7 +845,7 @@ class Notification$Type extends MessageType<Notification> {
833
845
  case 2:
834
846
  val = Notification_FieldChange.internalBinaryRead(reader, reader.uint32(), options);
835
847
  break;
836
- default: throw new globalThis.Error("unknown map entry field for field MiLaboratories.PL.API.Notification.field_changes");
848
+ default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.Notification.field_changes");
837
849
  }
838
850
  }
839
851
  map[key ?? ""] = val ?? Notification_FieldChange.create();
@@ -996,21 +1008,6 @@ class Notification_Events$Type extends MessageType<Notification_Events> {
996
1008
  /* bool resource_duplicate = 5; */
997
1009
  if (message.resourceDuplicate !== false)
998
1010
  writer.tag(5, WireType.Varint).bool(message.resourceDuplicate);
999
- /* bool resource_error = 15; */
1000
- if (message.resourceError !== false)
1001
- writer.tag(15, WireType.Varint).bool(message.resourceError);
1002
- /* bool inputs_locked = 12; */
1003
- if (message.inputsLocked !== false)
1004
- writer.tag(12, WireType.Varint).bool(message.inputsLocked);
1005
- /* bool outputs_locked = 13; */
1006
- if (message.outputsLocked !== false)
1007
- writer.tag(13, WireType.Varint).bool(message.outputsLocked);
1008
- /* bool field_created = 11; */
1009
- if (message.fieldCreated !== false)
1010
- writer.tag(11, WireType.Varint).bool(message.fieldCreated);
1011
- /* bool field_got_error = 16; */
1012
- if (message.fieldGotError !== false)
1013
- writer.tag(16, WireType.Varint).bool(message.fieldGotError);
1014
1011
  /* bool input_set = 6; */
1015
1012
  if (message.inputSet !== false)
1016
1013
  writer.tag(6, WireType.Varint).bool(message.inputSet);
@@ -1023,12 +1020,27 @@ class Notification_Events$Type extends MessageType<Notification_Events> {
1023
1020
  /* bool all_outputs_set = 9; */
1024
1021
  if (message.allOutputsSet !== false)
1025
1022
  writer.tag(9, WireType.Varint).bool(message.allOutputsSet);
1026
- /* bool generic_otw_set = 14; */
1027
- if (message.genericOtwSet !== false)
1028
- writer.tag(14, WireType.Varint).bool(message.genericOtwSet);
1029
1023
  /* bool dynamic_changed = 10; */
1030
1024
  if (message.dynamicChanged !== false)
1031
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);
1032
1044
  let u = options.writeUnknownFields;
1033
1045
  if (u !== false)
1034
1046
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1141,7 +1153,7 @@ class SpanInfo$Type extends MessageType<SpanInfo> {
1141
1153
  case 2:
1142
1154
  val = reader.string();
1143
1155
  break;
1144
- default: throw new globalThis.Error("unknown map entry field for field MiLaboratories.PL.API.SpanInfo.carrier");
1156
+ default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.SpanInfo.carrier");
1145
1157
  }
1146
1158
  }
1147
1159
  map[key ?? ""] = val ?? "";
@@ -1286,7 +1298,7 @@ class ResourceSchema$Type extends MessageType<ResourceSchema> {
1286
1298
  constructor() {
1287
1299
  super("MiLaboratories.PL.API.ResourceSchema", [
1288
1300
  { no: 1, name: "type", kind: "message", T: () => ResourceType },
1289
- { no: 2, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => FieldSchema }
1301
+ { no: 2, name: "fields", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldSchema }
1290
1302
  ]);
1291
1303
  }
1292
1304
  create(value?: PartialMessage<ResourceSchema>): ResourceSchema {
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.6 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
1
+ // @generated by protobuf-ts 2.11.0 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
2
  // @generated from protobuf file "github.com/milaboratory/pl/plapi/plapiproto/base_types.proto" (package "MiLaboratories.PL.Base", syntax proto3)
3
3
  // tslint:disable
4
4
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -15,11 +15,11 @@ import { MessageType } from "@protobuf-ts/runtime";
15
15
  */
16
16
  export interface ResourceType {
17
17
  /**
18
- * @generated from protobuf field: string name = 1;
18
+ * @generated from protobuf field: string name = 1
19
19
  */
20
20
  name: string;
21
21
  /**
22
- * @generated from protobuf field: string version = 2;
22
+ * @generated from protobuf field: string version = 2
23
23
  */
24
24
  version: string;
25
25
  }
@@ -28,11 +28,11 @@ export interface ResourceType {
28
28
  */
29
29
  export interface FieldRef {
30
30
  /**
31
- * @generated from protobuf field: uint64 resource_id = 2;
31
+ * @generated from protobuf field: uint64 resource_id = 2
32
32
  */
33
33
  resourceId: bigint;
34
34
  /**
35
- * @generated from protobuf field: string field_name = 3;
35
+ * @generated from protobuf field: string field_name = 3
36
36
  */
37
37
  fieldName: string;
38
38
  }