@milaboratories/pl-drivers 1.13.0 → 1.14.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 (141) hide show
  1. package/dist/clients/download.cjs +5 -3
  2. package/dist/clients/download.cjs.map +1 -1
  3. package/dist/clients/download.d.ts.map +1 -1
  4. package/dist/clients/download.js +6 -4
  5. package/dist/clients/download.js.map +1 -1
  6. package/dist/clients/logs.cjs +10 -6
  7. package/dist/clients/logs.cjs.map +1 -1
  8. package/dist/clients/logs.d.ts.map +1 -1
  9. package/dist/clients/logs.js +11 -7
  10. package/dist/clients/logs.js.map +1 -1
  11. package/dist/clients/ls_api.cjs +5 -3
  12. package/dist/clients/ls_api.cjs.map +1 -1
  13. package/dist/clients/ls_api.js +6 -4
  14. package/dist/clients/ls_api.js.map +1 -1
  15. package/dist/clients/progress.cjs +7 -3
  16. package/dist/clients/progress.cjs.map +1 -1
  17. package/dist/clients/progress.d.ts.map +1 -1
  18. package/dist/clients/progress.js +8 -4
  19. package/dist/clients/progress.js.map +1 -1
  20. package/dist/clients/upload.cjs +22 -12
  21. package/dist/clients/upload.cjs.map +1 -1
  22. package/dist/clients/upload.d.ts.map +1 -1
  23. package/dist/clients/upload.js +23 -13
  24. package/dist/clients/upload.js.map +1 -1
  25. package/dist/drivers/download_blob/blob_key.cjs +3 -2
  26. package/dist/drivers/download_blob/blob_key.cjs.map +1 -1
  27. package/dist/drivers/download_blob/blob_key.js +3 -2
  28. package/dist/drivers/download_blob/blob_key.js.map +1 -1
  29. package/dist/drivers/download_blob/download_blob.cjs.map +1 -1
  30. package/dist/drivers/download_blob/download_blob.js.map +1 -1
  31. package/dist/drivers/download_blob_url/driver.cjs +2 -1
  32. package/dist/drivers/download_blob_url/driver.cjs.map +1 -1
  33. package/dist/drivers/download_blob_url/driver.d.ts +2 -2
  34. package/dist/drivers/download_blob_url/driver.d.ts.map +1 -1
  35. package/dist/drivers/download_blob_url/driver.js +3 -2
  36. package/dist/drivers/download_blob_url/driver.js.map +1 -1
  37. package/dist/drivers/download_blob_url/driver_id.cjs +4 -1
  38. package/dist/drivers/download_blob_url/driver_id.cjs.map +1 -1
  39. package/dist/drivers/download_blob_url/driver_id.js +3 -1
  40. package/dist/drivers/download_blob_url/driver_id.js.map +1 -1
  41. package/dist/drivers/download_url/task.cjs +1 -1
  42. package/dist/drivers/download_url/task.cjs.map +1 -1
  43. package/dist/drivers/download_url/task.d.ts.map +1 -1
  44. package/dist/drivers/download_url/task.js +1 -1
  45. package/dist/drivers/download_url/task.js.map +1 -1
  46. package/dist/drivers/helpers/download_remote_handle.cjs +7 -4
  47. package/dist/drivers/helpers/download_remote_handle.cjs.map +1 -1
  48. package/dist/drivers/helpers/download_remote_handle.js +8 -5
  49. package/dist/drivers/helpers/download_remote_handle.js.map +1 -1
  50. package/dist/drivers/helpers/logs_handle.cjs +9 -6
  51. package/dist/drivers/helpers/logs_handle.cjs.map +1 -1
  52. package/dist/drivers/helpers/logs_handle.js +10 -7
  53. package/dist/drivers/helpers/logs_handle.js.map +1 -1
  54. package/dist/drivers/helpers/ls_remote_import_handle.cjs +2 -2
  55. package/dist/drivers/helpers/ls_remote_import_handle.cjs.map +1 -1
  56. package/dist/drivers/helpers/ls_remote_import_handle.js +2 -2
  57. package/dist/drivers/helpers/ls_remote_import_handle.js.map +1 -1
  58. package/dist/drivers/helpers/ls_storage_entry.cjs +10 -16
  59. package/dist/drivers/helpers/ls_storage_entry.cjs.map +1 -1
  60. package/dist/drivers/helpers/ls_storage_entry.js +11 -17
  61. package/dist/drivers/helpers/ls_storage_entry.js.map +1 -1
  62. package/dist/drivers/logs_stream.cjs.map +1 -1
  63. package/dist/drivers/logs_stream.js.map +1 -1
  64. package/dist/drivers/ls.cjs +31 -29
  65. package/dist/drivers/ls.cjs.map +1 -1
  66. package/dist/drivers/ls.d.ts +10 -10
  67. package/dist/drivers/ls.d.ts.map +1 -1
  68. package/dist/drivers/ls.js +31 -29
  69. package/dist/drivers/ls.js.map +1 -1
  70. package/dist/drivers/types.cjs.map +1 -1
  71. package/dist/drivers/types.d.ts +2 -1
  72. package/dist/drivers/types.d.ts.map +1 -1
  73. package/dist/drivers/types.js.map +1 -1
  74. package/dist/drivers/upload.cjs.map +1 -1
  75. package/dist/drivers/upload.js.map +1 -1
  76. package/dist/drivers/virtual_storages.cjs +3 -0
  77. package/dist/drivers/virtual_storages.cjs.map +1 -1
  78. package/dist/drivers/virtual_storages.js +3 -0
  79. package/dist/drivers/virtual_storages.js.map +1 -1
  80. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +2 -2
  81. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +1 -1
  82. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +2 -2
  83. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  84. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +2 -2
  85. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +1 -1
  86. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs +2 -2
  87. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +1 -1
  88. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  89. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +2 -2
  90. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +1 -1
  91. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs +4 -4
  92. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +1 -1
  93. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +4 -4
  94. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  95. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +4 -4
  96. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +1 -1
  97. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs +6 -6
  98. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +1 -1
  99. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +6 -6
  100. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  101. package/dist/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 -1
  103. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs +10 -10
  104. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +1 -1
  105. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +10 -10
  106. package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -1
  107. package/dist/proto-rest/downloadapi.d.ts +6 -6
  108. package/dist/proto-rest/downloadapi.d.ts.map +1 -1
  109. package/dist/proto-rest/progressapi.d.ts +19 -19
  110. package/dist/proto-rest/progressapi.d.ts.map +1 -1
  111. package/package.json +5 -5
  112. package/src/clients/download.ts +6 -3
  113. package/src/clients/logs.ts +22 -7
  114. package/src/clients/ls_api.ts +6 -4
  115. package/src/clients/progress.ts +18 -4
  116. package/src/clients/upload.ts +31 -14
  117. package/src/drivers/download_blob/blob_key.ts +4 -8
  118. package/src/drivers/download_blob/download_blob.ts +2 -2
  119. package/src/drivers/download_blob_url/driver.ts +10 -5
  120. package/src/drivers/download_blob_url/driver_id.ts +5 -3
  121. package/src/drivers/download_url/task.ts +5 -1
  122. package/src/drivers/helpers/download_remote_handle.ts +16 -5
  123. package/src/drivers/helpers/logs_handle.ts +16 -7
  124. package/src/drivers/helpers/ls_remote_import_handle.ts +2 -2
  125. package/src/drivers/helpers/ls_storage_entry.ts +15 -17
  126. package/src/drivers/logs_stream.ts +5 -5
  127. package/src/drivers/ls.test.ts +4 -4
  128. package/src/drivers/ls.ts +44 -58
  129. package/src/drivers/types.ts +3 -1
  130. package/src/drivers/upload.ts +3 -3
  131. package/src/drivers/virtual_storages.ts +3 -0
  132. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +7 -6
  133. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +7 -6
  134. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +14 -12
  135. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +21 -18
  136. package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +35 -30
  137. package/src/proto-grpc/google/protobuf/descriptor.ts +5 -2
  138. package/src/proto-rest/downloadapi.ts +6 -6
  139. package/src/proto-rest/lsapi.ts +30 -30
  140. package/src/proto-rest/progressapi.ts +21 -21
  141. package/src/proto-rest/uploadapi.ts +41 -41
@@ -34,9 +34,9 @@ export interface UploadAPI_Init_Request {
34
34
  /**
35
35
  * Signature proving the caller is authorized to access this resource.
36
36
  *
37
- * @generated from protobuf field: optional bytes resource_signature = 2
37
+ * @generated from protobuf field: bytes resource_signature = 2
38
38
  */
39
- resourceSignature?: Uint8Array;
39
+ resourceSignature: Uint8Array;
40
40
  }
41
41
  /**
42
42
  * @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.Init.Response
@@ -99,9 +99,9 @@ export interface UploadAPI_UpdateProgress_Request {
99
99
  /**
100
100
  * Signature proving the caller is authorized to access this resource.
101
101
  *
102
- * @generated from protobuf field: optional bytes resource_signature = 3
102
+ * @generated from protobuf field: bytes resource_signature = 3
103
103
  */
104
- resourceSignature?: Uint8Array;
104
+ resourceSignature: Uint8Array;
105
105
  /**
106
106
  * Number of bytes uploaded since the earlier call to UpdateProgress.
107
107
  * This value is just blindly added to the 'bytes_processed' of the progress report,
@@ -140,9 +140,9 @@ export interface UploadAPI_GetPartURL_Request {
140
140
  /**
141
141
  * Signature proving the caller is authorized to access this resource.
142
142
  *
143
- * @generated from protobuf field: optional bytes resource_signature = 6
143
+ * @generated from protobuf field: bytes resource_signature = 6
144
144
  */
145
- resourceSignature?: Uint8Array;
145
+ resourceSignature: Uint8Array;
146
146
  /**
147
147
  * Part to be uploaded. It is the responsibility of the client to keep track of already uploaded parts:
148
148
  * - client can request a URL for the same part twice (request -> request) without errors;
@@ -247,9 +247,9 @@ export interface UploadAPI_Finalize_Request {
247
247
  /**
248
248
  * Signature proving the caller is authorized to access this resource.
249
249
  *
250
- * @generated from protobuf field: optional bytes resource_signature = 4
250
+ * @generated from protobuf field: bytes resource_signature = 4
251
251
  */
252
- resourceSignature?: Uint8Array;
252
+ resourceSignature: Uint8Array;
253
253
  /**
254
254
  * The client can send the final checksum of the whole file to verify the upload.
255
255
  * The algorithm used to calculate this final checksum must match the algorithm from
@@ -289,9 +289,9 @@ export interface UploadAPI_Reset_Request {
289
289
  /**
290
290
  * Signature proving the caller is authorized to access this resource.
291
291
  *
292
- * @generated from protobuf field: optional bytes resource_signature = 2
292
+ * @generated from protobuf field: bytes resource_signature = 2
293
293
  */
294
- resourceSignature?: Uint8Array;
294
+ resourceSignature: Uint8Array;
295
295
  }
296
296
  /**
297
297
  * @generated from protobuf message MiLaboratories.Controller.Shared.UploadAPI.Reset.Response
@@ -392,12 +392,13 @@ class UploadAPI_Init_Request$Type extends MessageType<UploadAPI_Init_Request> {
392
392
  constructor() {
393
393
  super("MiLaboratories.Controller.Shared.UploadAPI.Init.Request", [
394
394
  { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
395
- { no: 2, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
395
+ { no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
396
396
  ]);
397
397
  }
398
398
  create(value?: PartialMessage<UploadAPI_Init_Request>): UploadAPI_Init_Request {
399
399
  const message = globalThis.Object.create((this.messagePrototype!));
400
400
  message.resourceId = 0n;
401
+ message.resourceSignature = new Uint8Array(0);
401
402
  if (value !== undefined)
402
403
  reflectionMergePartial<UploadAPI_Init_Request>(this, message, value);
403
404
  return message;
@@ -410,7 +411,7 @@ class UploadAPI_Init_Request$Type extends MessageType<UploadAPI_Init_Request> {
410
411
  case /* uint64 resource_id */ 1:
411
412
  message.resourceId = reader.uint64().toBigInt();
412
413
  break;
413
- case /* optional bytes resource_signature */ 2:
414
+ case /* bytes resource_signature */ 2:
414
415
  message.resourceSignature = reader.bytes();
415
416
  break;
416
417
  default:
@@ -428,8 +429,8 @@ class UploadAPI_Init_Request$Type extends MessageType<UploadAPI_Init_Request> {
428
429
  /* uint64 resource_id = 1; */
429
430
  if (message.resourceId !== 0n)
430
431
  writer.tag(1, WireType.Varint).uint64(message.resourceId);
431
- /* optional bytes resource_signature = 2; */
432
- if (message.resourceSignature !== undefined)
432
+ /* bytes resource_signature = 2; */
433
+ if (message.resourceSignature.length)
433
434
  writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
434
435
  let u = options.writeUnknownFields;
435
436
  if (u !== false)
@@ -571,13 +572,14 @@ class UploadAPI_UpdateProgress_Request$Type extends MessageType<UploadAPI_Update
571
572
  constructor() {
572
573
  super("MiLaboratories.Controller.Shared.UploadAPI.UpdateProgress.Request", [
573
574
  { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
574
- { no: 3, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
575
+ { no: 3, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
575
576
  { no: 2, name: "bytes_processed", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
576
577
  ]);
577
578
  }
578
579
  create(value?: PartialMessage<UploadAPI_UpdateProgress_Request>): UploadAPI_UpdateProgress_Request {
579
580
  const message = globalThis.Object.create((this.messagePrototype!));
580
581
  message.resourceId = 0n;
582
+ message.resourceSignature = new Uint8Array(0);
581
583
  message.bytesProcessed = 0n;
582
584
  if (value !== undefined)
583
585
  reflectionMergePartial<UploadAPI_UpdateProgress_Request>(this, message, value);
@@ -591,7 +593,7 @@ class UploadAPI_UpdateProgress_Request$Type extends MessageType<UploadAPI_Update
591
593
  case /* uint64 resource_id */ 1:
592
594
  message.resourceId = reader.uint64().toBigInt();
593
595
  break;
594
- case /* optional bytes resource_signature */ 3:
596
+ case /* bytes resource_signature */ 3:
595
597
  message.resourceSignature = reader.bytes();
596
598
  break;
597
599
  case /* int64 bytes_processed */ 2:
@@ -615,8 +617,8 @@ class UploadAPI_UpdateProgress_Request$Type extends MessageType<UploadAPI_Update
615
617
  /* int64 bytes_processed = 2; */
616
618
  if (message.bytesProcessed !== 0n)
617
619
  writer.tag(2, WireType.Varint).int64(message.bytesProcessed);
618
- /* optional bytes resource_signature = 3; */
619
- if (message.resourceSignature !== undefined)
620
+ /* bytes resource_signature = 3; */
621
+ if (message.resourceSignature.length)
620
622
  writer.tag(3, WireType.LengthDelimited).bytes(message.resourceSignature);
621
623
  let u = options.writeUnknownFields;
622
624
  if (u !== false)
@@ -709,7 +711,7 @@ class UploadAPI_GetPartURL_Request$Type extends MessageType<UploadAPI_GetPartURL
709
711
  constructor() {
710
712
  super("MiLaboratories.Controller.Shared.UploadAPI.GetPartURL.Request", [
711
713
  { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
712
- { no: 6, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
714
+ { no: 6, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
713
715
  { no: 2, name: "part_number", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
714
716
  { no: 3, name: "uploaded_part_size", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
715
717
  { no: 4, name: "is_internal_use", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
@@ -719,6 +721,7 @@ class UploadAPI_GetPartURL_Request$Type extends MessageType<UploadAPI_GetPartURL
719
721
  create(value?: PartialMessage<UploadAPI_GetPartURL_Request>): UploadAPI_GetPartURL_Request {
720
722
  const message = globalThis.Object.create((this.messagePrototype!));
721
723
  message.resourceId = 0n;
724
+ message.resourceSignature = new Uint8Array(0);
722
725
  message.partNumber = 0n;
723
726
  message.uploadedPartSize = 0n;
724
727
  message.isInternalUse = false;
@@ -735,7 +738,7 @@ class UploadAPI_GetPartURL_Request$Type extends MessageType<UploadAPI_GetPartURL
735
738
  case /* uint64 resource_id */ 1:
736
739
  message.resourceId = reader.uint64().toBigInt();
737
740
  break;
738
- case /* optional bytes resource_signature */ 6:
741
+ case /* bytes resource_signature */ 6:
739
742
  message.resourceSignature = reader.bytes();
740
743
  break;
741
744
  case /* uint64 part_number */ 2:
@@ -777,8 +780,8 @@ class UploadAPI_GetPartURL_Request$Type extends MessageType<UploadAPI_GetPartURL
777
780
  /* string part_checksum = 5; */
778
781
  if (message.partChecksum !== "")
779
782
  writer.tag(5, WireType.LengthDelimited).string(message.partChecksum);
780
- /* optional bytes resource_signature = 6; */
781
- if (message.resourceSignature !== undefined)
783
+ /* bytes resource_signature = 6; */
784
+ if (message.resourceSignature.length)
782
785
  writer.tag(6, WireType.LengthDelimited).bytes(message.resourceSignature);
783
786
  let u = options.writeUnknownFields;
784
787
  if (u !== false)
@@ -967,7 +970,7 @@ class UploadAPI_Finalize_Request$Type extends MessageType<UploadAPI_Finalize_Req
967
970
  constructor() {
968
971
  super("MiLaboratories.Controller.Shared.UploadAPI.Finalize.Request", [
969
972
  { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
970
- { no: 4, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
973
+ { no: 4, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
971
974
  { no: 2, name: "checksum_algorithm", kind: "enum", T: () => ["MiLaboratories.Controller.Shared.UploadAPI.ChecksumAlgorithm", UploadAPI_ChecksumAlgorithm, "CHECKSUM_ALGORITHM_"] },
972
975
  { no: 3, name: "checksum", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
973
976
  ]);
@@ -975,6 +978,7 @@ class UploadAPI_Finalize_Request$Type extends MessageType<UploadAPI_Finalize_Req
975
978
  create(value?: PartialMessage<UploadAPI_Finalize_Request>): UploadAPI_Finalize_Request {
976
979
  const message = globalThis.Object.create((this.messagePrototype!));
977
980
  message.resourceId = 0n;
981
+ message.resourceSignature = new Uint8Array(0);
978
982
  message.checksumAlgorithm = 0;
979
983
  message.checksum = new Uint8Array(0);
980
984
  if (value !== undefined)
@@ -989,7 +993,7 @@ class UploadAPI_Finalize_Request$Type extends MessageType<UploadAPI_Finalize_Req
989
993
  case /* uint64 resource_id */ 1:
990
994
  message.resourceId = reader.uint64().toBigInt();
991
995
  break;
992
- case /* optional bytes resource_signature */ 4:
996
+ case /* bytes resource_signature */ 4:
993
997
  message.resourceSignature = reader.bytes();
994
998
  break;
995
999
  case /* MiLaboratories.Controller.Shared.UploadAPI.ChecksumAlgorithm checksum_algorithm */ 2:
@@ -1019,8 +1023,8 @@ class UploadAPI_Finalize_Request$Type extends MessageType<UploadAPI_Finalize_Req
1019
1023
  /* bytes checksum = 3; */
1020
1024
  if (message.checksum.length)
1021
1025
  writer.tag(3, WireType.LengthDelimited).bytes(message.checksum);
1022
- /* optional bytes resource_signature = 4; */
1023
- if (message.resourceSignature !== undefined)
1026
+ /* bytes resource_signature = 4; */
1027
+ if (message.resourceSignature.length)
1024
1028
  writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
1025
1029
  let u = options.writeUnknownFields;
1026
1030
  if (u !== false)
@@ -1113,12 +1117,13 @@ class UploadAPI_Reset_Request$Type extends MessageType<UploadAPI_Reset_Request>
1113
1117
  constructor() {
1114
1118
  super("MiLaboratories.Controller.Shared.UploadAPI.Reset.Request", [
1115
1119
  { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1116
- { no: 2, name: "resource_signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
1120
+ { no: 2, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
1117
1121
  ]);
1118
1122
  }
1119
1123
  create(value?: PartialMessage<UploadAPI_Reset_Request>): UploadAPI_Reset_Request {
1120
1124
  const message = globalThis.Object.create((this.messagePrototype!));
1121
1125
  message.resourceId = 0n;
1126
+ message.resourceSignature = new Uint8Array(0);
1122
1127
  if (value !== undefined)
1123
1128
  reflectionMergePartial<UploadAPI_Reset_Request>(this, message, value);
1124
1129
  return message;
@@ -1131,7 +1136,7 @@ class UploadAPI_Reset_Request$Type extends MessageType<UploadAPI_Reset_Request>
1131
1136
  case /* uint64 resource_id */ 1:
1132
1137
  message.resourceId = reader.uint64().toBigInt();
1133
1138
  break;
1134
- case /* optional bytes resource_signature */ 2:
1139
+ case /* bytes resource_signature */ 2:
1135
1140
  message.resourceSignature = reader.bytes();
1136
1141
  break;
1137
1142
  default:
@@ -1149,8 +1154,8 @@ class UploadAPI_Reset_Request$Type extends MessageType<UploadAPI_Reset_Request>
1149
1154
  /* uint64 resource_id = 1; */
1150
1155
  if (message.resourceId !== 0n)
1151
1156
  writer.tag(1, WireType.Varint).uint64(message.resourceId);
1152
- /* optional bytes resource_signature = 2; */
1153
- if (message.resourceSignature !== undefined)
1157
+ /* bytes resource_signature = 2; */
1158
+ if (message.resourceSignature.length)
1154
1159
  writer.tag(2, WireType.LengthDelimited).bytes(message.resourceSignature);
1155
1160
  let u = options.writeUnknownFields;
1156
1161
  if (u !== false)
@@ -1260,6 +1260,8 @@ export enum FieldOptions_JSType {
1260
1260
  }
1261
1261
  /**
1262
1262
  * If set to RETENTION_SOURCE, the option will be omitted from the binary.
1263
+ * Note: as of January 2023, support for this is in progress and does not yet
1264
+ * have an effect (b/264593489).
1263
1265
  *
1264
1266
  * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention
1265
1267
  */
@@ -1280,7 +1282,8 @@ export enum FieldOptions_OptionRetention {
1280
1282
  /**
1281
1283
  * This indicates the types of entities that the field may apply to when used
1282
1284
  * as an option. If it is unset, then the field may be freely used as an
1283
- * option on any kind of entity.
1285
+ * option on any kind of entity. Note: as of January 2023, support for this is
1286
+ * in progress and does not yet have an effect (b/264593489).
1284
1287
  *
1285
1288
  * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType
1286
1289
  */
@@ -2067,7 +2070,7 @@ export enum Edition {
2067
2070
  EDITION_2024 = 1001,
2068
2071
  /**
2069
2072
  * Placeholder editions for testing feature resolution. These should not be
2070
- * used or relied on outside of tests.
2073
+ * used or relyed on outside of tests.
2071
2074
  *
2072
2075
  * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1;
2073
2076
  */
@@ -24,11 +24,11 @@ export interface paths {
24
24
  export type webhooks = Record<string, never>;
25
25
  export interface components {
26
26
  schemas: {
27
- GetDownloadURL_HTTPHeader: {
27
+ DownloadAPI_GetDownloadURL_HTTPHeader: {
28
28
  name: string;
29
29
  value: string;
30
30
  };
31
- GetDownloadURL_Request: {
31
+ DownloadAPI_GetDownloadURL_Request: {
32
32
  resourceId: string;
33
33
  /**
34
34
  * Format: bytes
@@ -42,9 +42,9 @@ export interface components {
42
42
  */
43
43
  isInternalUse: boolean;
44
44
  };
45
- GetDownloadURL_Response: {
45
+ DownloadAPI_GetDownloadURL_Response: {
46
46
  downloadUrl: string;
47
- headers: components["schemas"]["GetDownloadURL_HTTPHeader"][];
47
+ headers: components["schemas"]["DownloadAPI_GetDownloadURL_HTTPHeader"][];
48
48
  };
49
49
  /** @description Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. */
50
50
  GoogleProtobufAny: {
@@ -83,7 +83,7 @@ export interface operations {
83
83
  };
84
84
  requestBody: {
85
85
  content: {
86
- "application/json": components["schemas"]["GetDownloadURL_Request"];
86
+ "application/json": components["schemas"]["DownloadAPI_GetDownloadURL_Request"];
87
87
  };
88
88
  };
89
89
  responses: {
@@ -93,7 +93,7 @@ export interface operations {
93
93
  [name: string]: unknown;
94
94
  };
95
95
  content: {
96
- "application/json": components["schemas"]["GetDownloadURL_Response"];
96
+ "application/json": components["schemas"]["DownloadAPI_GetDownloadURL_Response"];
97
97
  };
98
98
  };
99
99
  /** @description Default error response */
@@ -31,34 +31,6 @@ export interface components {
31
31
  } & {
32
32
  [key: string]: unknown;
33
33
  };
34
- List_Request: {
35
- /** @description resource_id of 'LS/<Storage>' resource */
36
- resourceId: string;
37
- /**
38
- * Format: bytes
39
- * @description Signature proving the caller is authorized to access this resource.
40
- */
41
- resourceSignature: string;
42
- /**
43
- * @description Location to list, relative to the storage root. Only items that have <full_name> starting
44
- * with <location> are included in the list response.
45
- */
46
- location: string;
47
- };
48
- List_Response: {
49
- /**
50
- * @description List of the full (relative to storage root) names of items from storage.
51
- * E.g., for 'fs' storage each name will consist of names of all directories, where the
52
- * item is located, and the item name itself.
53
- * The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.
54
- */
55
- items: components["schemas"]["LsAPI_ListItem"][];
56
- /**
57
- * @description The delimiter is the path separator used in this storage. The client can use it to parse item names into parts,
58
- * to extract directory names.
59
- */
60
- delimiter: string;
61
- };
62
34
  LsAPI_ListItem: {
63
35
  /** @description Name of the item in storage, without any prefixes. */
64
36
  name: string;
@@ -96,6 +68,34 @@ export interface components {
96
68
  */
97
69
  version: string;
98
70
  };
71
+ LsAPI_List_Request: {
72
+ /** @description resource_id of 'LS/<Storage>' resource */
73
+ resourceId: string;
74
+ /**
75
+ * Format: bytes
76
+ * @description Signature proving the caller is authorized to access this resource.
77
+ */
78
+ resourceSignature: string;
79
+ /**
80
+ * @description Location to list, relative to the storage root. Only items that have <full_name> starting
81
+ * with <location> are included in the list response.
82
+ */
83
+ location: string;
84
+ };
85
+ LsAPI_List_Response: {
86
+ /**
87
+ * @description List of the full (relative to storage root) names of items from storage.
88
+ * E.g., for 'fs' storage each name will consist of names of all directories, where the
89
+ * item is located, and the item name itself.
90
+ * The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.
91
+ */
92
+ items: components["schemas"]["LsAPI_ListItem"][];
93
+ /**
94
+ * @description The delimiter is the path separator used in this storage. The client can use it to parse item names into parts,
95
+ * to extract directory names.
96
+ */
97
+ delimiter: string;
98
+ };
99
99
  /** @description The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). */
100
100
  Status: {
101
101
  /**
@@ -126,7 +126,7 @@ export interface operations {
126
126
  };
127
127
  requestBody: {
128
128
  content: {
129
- "application/json": components["schemas"]["List_Request"];
129
+ "application/json": components["schemas"]["LsAPI_List_Request"];
130
130
  };
131
131
  };
132
132
  responses: {
@@ -136,7 +136,7 @@ export interface operations {
136
136
  [name: string]: unknown;
137
137
  };
138
138
  content: {
139
- "application/json": components["schemas"]["List_Response"];
139
+ "application/json": components["schemas"]["LsAPI_List_Response"];
140
140
  };
141
141
  };
142
142
  /** @description Default error response */
@@ -40,14 +40,6 @@ export interface paths {
40
40
  export type webhooks = Record<string, never>;
41
41
  export interface components {
42
42
  schemas: {
43
- GetStatus_Request: {
44
- resourceId: string;
45
- /** Format: bytes */
46
- resourceSignature: string;
47
- };
48
- GetStatus_Response: {
49
- report: components["schemas"]["ProgressAPI_Report"];
50
- };
51
43
  /** @description Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. */
52
44
  GoogleProtobufAny: {
53
45
  /** @description The type of the serialized message. */
@@ -55,6 +47,23 @@ export interface components {
55
47
  } & {
56
48
  [key: string]: unknown;
57
49
  };
50
+ ProgressAPI_GetStatus_Request: {
51
+ resourceId: string;
52
+ /** Format: bytes */
53
+ resourceSignature: string;
54
+ };
55
+ ProgressAPI_GetStatus_Response: {
56
+ report: components["schemas"]["ProgressAPI_Report"];
57
+ };
58
+ ProgressAPI_RealtimeStatus_Request: {
59
+ resourceId: string;
60
+ /** Format: bytes */
61
+ resourceSignature: string;
62
+ updateInterval: string;
63
+ };
64
+ ProgressAPI_RealtimeStatus_Response: {
65
+ report: components["schemas"]["ProgressAPI_Report"];
66
+ };
58
67
  ProgressAPI_Report: {
59
68
  /** Format: float */
60
69
  progress: number;
@@ -64,15 +73,6 @@ export interface components {
64
73
  /** @description Name of current progress stage (if any) */
65
74
  name: string;
66
75
  };
67
- RealtimeStatus_Request: {
68
- resourceId: string;
69
- /** Format: bytes */
70
- resourceSignature: string;
71
- updateInterval: string;
72
- };
73
- RealtimeStatus_Response: {
74
- report: components["schemas"]["ProgressAPI_Report"];
75
- };
76
76
  /** @description The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). */
77
77
  Status: {
78
78
  /**
@@ -103,7 +103,7 @@ export interface operations {
103
103
  };
104
104
  requestBody: {
105
105
  content: {
106
- "application/json": components["schemas"]["GetStatus_Request"];
106
+ "application/json": components["schemas"]["ProgressAPI_GetStatus_Request"];
107
107
  };
108
108
  };
109
109
  responses: {
@@ -113,7 +113,7 @@ export interface operations {
113
113
  [name: string]: unknown;
114
114
  };
115
115
  content: {
116
- "application/json": components["schemas"]["GetStatus_Response"];
116
+ "application/json": components["schemas"]["ProgressAPI_GetStatus_Response"];
117
117
  };
118
118
  };
119
119
  /** @description Default error response */
@@ -136,7 +136,7 @@ export interface operations {
136
136
  };
137
137
  requestBody: {
138
138
  content: {
139
- "application/json": components["schemas"]["RealtimeStatus_Request"];
139
+ "application/json": components["schemas"]["ProgressAPI_RealtimeStatus_Request"];
140
140
  };
141
141
  };
142
142
  responses: {
@@ -146,7 +146,7 @@ export interface operations {
146
146
  [name: string]: unknown;
147
147
  };
148
148
  content: {
149
- "application/json": components["schemas"]["RealtimeStatus_Response"];
149
+ "application/json": components["schemas"]["ProgressAPI_RealtimeStatus_Response"];
150
150
  };
151
151
  };
152
152
  /** @description Default error response */