core-3nweb-client-lib 0.27.4 → 0.27.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 (84) hide show
  1. package/build/api-defs/files.d.ts +40 -10
  2. package/build/core/asmail/delivery/per-recipient-wip.js +2 -2
  3. package/build/core/asmail/inbox/inbox-events.js +10 -5
  4. package/build/core/asmail/inbox/index.d.ts +3 -2
  5. package/build/core/asmail/inbox/index.js +14 -10
  6. package/build/core/asmail/inbox/msg-indexing.d.ts +17 -64
  7. package/build/core/asmail/inbox/msg-indexing.js +440 -311
  8. package/build/core/asmail/inbox/msg-on-disk.js +2 -1
  9. package/build/core/asmail/index.js +3 -2
  10. package/build/core/asmail/keyring/correspondent-keys.js +3 -1
  11. package/build/core/asmail/keyring/index.d.ts +1 -4
  12. package/build/core/asmail/keyring/index.js +6 -6
  13. package/build/core/asmail/msg/opener.js +4 -3
  14. package/build/core/asmail/msg/packer.d.ts +1 -0
  15. package/build/core/asmail/msg/packer.js +8 -4
  16. package/build/core/index.js +2 -3
  17. package/build/core/storage/local/obj-files.js +2 -1
  18. package/build/core/storage/synced/storage.js +3 -2
  19. package/build/core/storage/synced/upload-header-file.js +4 -2
  20. package/build/core/storage/synced/upsyncer.js +3 -5
  21. package/build/ipc-via-protobuf/asmail-cap.js +14 -15
  22. package/build/ipc-via-protobuf/bytes.js +42 -18
  23. package/build/ipc-via-protobuf/file.js +43 -39
  24. package/build/ipc-via-protobuf/fs.js +72 -67
  25. package/build/ipc-via-protobuf/mailerid.js +2 -2
  26. package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -0
  27. package/build/ipc-via-protobuf/protobuf-msg.js +5 -1
  28. package/build/ipc-via-protobuf/startup-cap.js +8 -8
  29. package/build/ipc-via-protobuf/storage-cap.js +4 -4
  30. package/build/lib-client/3nstorage/xsp-fs/common.js +2 -0
  31. package/build/lib-client/3nstorage/xsp-fs/file-node.js +0 -17
  32. package/build/lib-client/3nstorage/xsp-fs/file.d.ts +1 -1
  33. package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +1 -1
  34. package/build/lib-client/3nstorage/xsp-fs/folder-node.js +13 -7
  35. package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +1 -1
  36. package/build/lib-client/3nstorage/xsp-fs/fs.js +1 -1
  37. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +2 -2
  38. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +7 -3
  39. package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +1 -0
  40. package/build/lib-client/3nstorage/xsp-fs/node-persistence.js +7 -5
  41. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +3 -4
  42. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +20 -15
  43. package/build/lib-client/cryptor/cryptor-in-worker.js +37 -47
  44. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  45. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  46. package/build/lib-client/cryptor/in-proc-js.js +15 -12
  47. package/build/lib-client/cryptor/in-proc-wasm.js +11 -8
  48. package/build/lib-client/cryptor/serialization-for-wasm.d.ts +36 -0
  49. package/build/lib-client/cryptor/serialization-for-wasm.js +58 -0
  50. package/build/lib-client/cryptor-work-labels.d.ts +26 -0
  51. package/build/lib-client/cryptor-work-labels.js +152 -0
  52. package/build/lib-client/fs-sync-utils.d.ts +7 -1
  53. package/build/lib-client/fs-sync-utils.js +18 -7
  54. package/build/lib-client/local-files/dev-file-src.d.ts +2 -1
  55. package/build/lib-client/local-files/dev-file-src.js +5 -1
  56. package/build/lib-client/local-files/device-fs.js +2 -1
  57. package/build/lib-client/objs-on-disk/obj-on-disk.js +5 -1
  58. package/build/lib-client/request-utils.js +14 -14
  59. package/build/lib-common/async-cryptor-wrap.d.ts +9 -9
  60. package/build/lib-common/async-cryptor-wrap.js +13 -13
  61. package/build/lib-common/byte-streaming/pipe.d.ts +1 -1
  62. package/build/lib-common/byte-streaming/pipe.js +3 -3
  63. package/build/lib-common/byte-streaming/wrapping.js +4 -2
  64. package/build/lib-common/json-utils.js +0 -3
  65. package/build/lib-common/processes/synced.js +0 -184
  66. package/build/lib-sqlite-on-3nstorage/index.d.ts +32 -0
  67. package/build/lib-sqlite-on-3nstorage/index.js +117 -0
  68. package/build/lib-sqlite-on-3nstorage/sqljs.d.ts +279 -0
  69. package/build/lib-sqlite-on-3nstorage/sqljs.js +223 -0
  70. package/build/protos/asmail.proto.js +3748 -1121
  71. package/build/protos/bytes.proto.js +731 -204
  72. package/build/protos/common.proto.js +192 -44
  73. package/build/protos/cryptor.proto.js +184 -61
  74. package/build/protos/file.proto.js +1336 -324
  75. package/build/protos/fs.proto.js +3099 -846
  76. package/build/protos/ipc.proto.js +244 -61
  77. package/build/protos/logger.proto.js +219 -53
  78. package/build/protos/mailerid.proto.js +230 -50
  79. package/build/protos/startup.proto.js +341 -77
  80. package/build/protos/storage.proto.js +276 -62
  81. package/package.json +8 -7
  82. package/protos/bytes.proto +13 -4
  83. package/protos/file.proto +4 -1
  84. package/protos/fs.proto +4 -1
@@ -52,7 +52,7 @@ function makeFileCaller(caller, fileMsg) {
52
52
  file.writeTxt = writeTxt.makeCaller(caller, objPath);
53
53
  }
54
54
  if (fileMsg.isVersioned) {
55
- const vPath = objPath.concat('v');
55
+ const vPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'v');
56
56
  file.v = {
57
57
  getByteSource: vGetByteSource.makeCaller(caller, vPath),
58
58
  getXAttr: vGetXAttr.makeCaller(caller, vPath),
@@ -72,8 +72,7 @@ function makeFileCaller(caller, fileMsg) {
72
72
  file.v.archiveCurrent = vArchiveCurrent.makeCaller(caller, vPath);
73
73
  }
74
74
  if (fileMsg.isSynced) {
75
- const vsPath = objPath.concat('v', 'sync');
76
- const vsConnectPath = objPath.concat('v', 'sync', 'connect');
75
+ const vsPath = (0, protobuf_msg_1.methodPathFor)(vPath, 'sync');
77
76
  file.v.sync = {
78
77
  status: vsStatus.makeCaller(caller, vsPath),
79
78
  updateStatusInfo: vsUpdateStatusInfo.makeCaller(caller, vsPath),
@@ -248,7 +247,7 @@ var stat;
248
247
  }
249
248
  stat.wrapService = wrapService;
250
249
  function makeCaller(caller, objPath) {
251
- const path = objPath.concat('stat');
250
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'stat');
252
251
  return () => caller
253
252
  .startPromiseCall(path, undefined)
254
253
  .then(unpackStats);
@@ -298,7 +297,7 @@ var getXAttr;
298
297
  }
299
298
  getXAttr.wrapService = wrapService;
300
299
  function makeCaller(caller, objPath) {
301
- const path = objPath.concat('getXAttr');
300
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'getXAttr');
302
301
  return xaName => caller
303
302
  .startPromiseCall(path, requestType.pack({ xaName }))
304
303
  .then(unpackXAttrValue);
@@ -317,7 +316,7 @@ var listXAttrs;
317
316
  }
318
317
  listXAttrs.wrapService = wrapService;
319
318
  function makeCaller(caller, objPath) {
320
- const path = objPath.concat('listXAttrs');
319
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'listXAttrs');
321
320
  return () => caller
322
321
  .startPromiseCall(path, undefined)
323
322
  .then(buf => (0, protobuf_msg_1.fixArray)(protobuf_msg_1.strArrValType.unpack(buf).values));
@@ -347,7 +346,7 @@ var readBytes;
347
346
  }
348
347
  readBytes.wrapService = wrapService;
349
348
  function makeCaller(caller, objPath) {
350
- const path = objPath.concat('readBytes');
349
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'readBytes');
351
350
  return (start, end) => caller
352
351
  .startPromiseCall(path, requestType.pack({
353
352
  start: (0, protobuf_msg_1.toOptVal)(start), end: (0, protobuf_msg_1.toOptVal)(end)
@@ -368,7 +367,7 @@ var readTxt;
368
367
  }
369
368
  readTxt.wrapService = wrapService;
370
369
  function makeCaller(caller, objPath) {
371
- const path = objPath.concat('readTxt');
370
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'readTxt');
372
371
  return () => caller
373
372
  .startPromiseCall(path, undefined)
374
373
  .then(buf => (buf ? (0, protobuf_msg_1.decodeFromUtf8)(buf) : ''));
@@ -403,7 +402,7 @@ var readJSON;
403
402
  }
404
403
  readJSON.wrapService = wrapService;
405
404
  function makeCaller(caller, objPath) {
406
- const path = objPath.concat('readJSON');
405
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'readJSON');
407
406
  return () => caller
408
407
  .startPromiseCall(path, undefined)
409
408
  .then(unpackJSON);
@@ -425,7 +424,7 @@ var getByteSource;
425
424
  }
426
425
  getByteSource.wrapService = wrapService;
427
426
  function makeCaller(caller, objPath) {
428
- const path = objPath.concat('getByteSource');
427
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'getByteSource');
429
428
  return () => caller
430
429
  .startPromiseCall(path, undefined)
431
430
  .then(buf => {
@@ -520,7 +519,7 @@ var watch;
520
519
  }
521
520
  watch.wrapService = wrapService;
522
521
  function makeCaller(caller, objPath) {
523
- const path = objPath.concat('watch');
522
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'watch');
524
523
  return obs => {
525
524
  const s = new rxjs_1.Subject();
526
525
  const unsub = caller.startObservableCall(path, undefined, s);
@@ -591,7 +590,7 @@ var vGetXAttr;
591
590
  }
592
591
  vGetXAttr.wrapService = wrapService;
593
592
  function makeCaller(caller, objPath) {
594
- const path = objPath.concat('getXAttr');
593
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'getXAttr');
595
594
  return (xaName, flags) => caller
596
595
  .startPromiseCall(path, requestType.pack({
597
596
  xaName, flags: versionedReadFlagsToMsg(flags)
@@ -623,7 +622,7 @@ var vListXAttrs;
623
622
  }
624
623
  vListXAttrs.wrapService = wrapService;
625
624
  function makeCaller(caller, objPath) {
626
- const path = objPath.concat('listXAttrs');
625
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'listXAttrs');
627
626
  return flags => caller
628
627
  .startPromiseCall(path, packVersionedReadFlagsRequest(flags))
629
628
  .then(buf => {
@@ -659,7 +658,7 @@ var vReadBytes;
659
658
  }
660
659
  vReadBytes.wrapService = wrapService;
661
660
  function makeCaller(caller, objPath) {
662
- const path = objPath.concat('readBytes');
661
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'readBytes');
663
662
  return (start, end, flags) => caller
664
663
  .startPromiseCall(path, requestType.pack({
665
664
  start: (0, protobuf_msg_1.toOptVal)(start), end: (0, protobuf_msg_1.toOptVal)(end),
@@ -682,7 +681,7 @@ var vReadTxt;
682
681
  }
683
682
  vReadTxt.wrapService = wrapService;
684
683
  function makeCaller(caller, objPath) {
685
- const path = objPath.concat('readTxt');
684
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'readTxt');
686
685
  return flags => caller
687
686
  .startPromiseCall(path, packVersionedReadFlagsRequest(flags))
688
687
  .then(buf => {
@@ -707,7 +706,7 @@ var vReadJSON;
707
706
  }
708
707
  vReadJSON.wrapService = wrapService;
709
708
  function makeCaller(caller, objPath) {
710
- const path = objPath.concat('readJSON');
709
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'readJSON');
711
710
  return flags => caller
712
711
  .startPromiseCall(path, packVersionedReadFlagsRequest(flags))
713
712
  .then(buf => {
@@ -738,7 +737,7 @@ var vGetByteSource;
738
737
  }
739
738
  vGetByteSource.wrapService = wrapService;
740
739
  function makeCaller(caller, objPath) {
741
- const path = objPath.concat('getByteSource');
740
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'getByteSource');
742
741
  return flags => caller
743
742
  .startPromiseCall(path, packVersionedReadFlagsRequest(flags))
744
743
  .then(buf => {
@@ -828,7 +827,7 @@ var updateXAttrs;
828
827
  }
829
828
  updateXAttrs.packXAttrsChanges = packXAttrsChanges;
830
829
  function makeCaller(caller, objPath) {
831
- const path = objPath.concat('updateXAttrs');
830
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'updateXAttrs');
832
831
  return async (changes) => {
833
832
  await caller.startPromiseCall(path, packXAttrsChanges(changes));
834
833
  };
@@ -848,7 +847,7 @@ var writeBytes;
848
847
  }
849
848
  writeBytes.wrapService = wrapService;
850
849
  function makeCaller(caller, objPath) {
851
- const path = objPath.concat('writeBytes');
850
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeBytes');
852
851
  return bytes => caller
853
852
  .startPromiseCall(path, requestType.pack({
854
853
  bytes: bytes
@@ -869,7 +868,7 @@ var writeTxt;
869
868
  }
870
869
  writeTxt.wrapService = wrapService;
871
870
  function makeCaller(caller, objPath) {
872
- const path = objPath.concat('writeTxt');
871
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeTxt');
873
872
  return txt => caller
874
873
  .startPromiseCall(path, requestType.pack({ txt }));
875
874
  }
@@ -888,7 +887,7 @@ var writeJSON;
888
887
  }
889
888
  writeJSON.wrapService = wrapService;
890
889
  function makeCaller(caller, objPath) {
891
- const path = objPath.concat('writeJSON');
890
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeJSON');
892
891
  return json => caller
893
892
  .startPromiseCall(path, requestType.pack({
894
893
  json: JSON.stringify(json)
@@ -913,7 +912,7 @@ var getByteSink;
913
912
  }
914
913
  getByteSink.wrapService = wrapService;
915
914
  function makeCaller(caller, objPath) {
916
- const path = objPath.concat('getByteSink');
915
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'getByteSink');
917
916
  return truncateFile => caller
918
917
  .startPromiseCall(path, requestType.pack({
919
918
  truncateFile: (0, protobuf_msg_1.toOptVal)(truncateFile)
@@ -939,7 +938,7 @@ var copy;
939
938
  }
940
939
  copy.wrapService = wrapService;
941
940
  function makeCaller(caller, objPath) {
942
- const path = objPath.concat('copy');
941
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'copy');
943
942
  return async (file) => {
944
943
  const fRef = caller.srvRefOf(file);
945
944
  await caller
@@ -962,7 +961,7 @@ var vCopy;
962
961
  }
963
962
  vCopy.wrapService = wrapService;
964
963
  function makeCaller(caller, objPath) {
965
- const path = objPath.concat('copy');
964
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'copy');
966
965
  return file => {
967
966
  const fRef = caller.srvRefOf(file);
968
967
  return caller
@@ -985,7 +984,7 @@ var vUpdateXAttrs;
985
984
  }
986
985
  vUpdateXAttrs.wrapService = wrapService;
987
986
  function makeCaller(caller, objPath) {
988
- const path = objPath.concat('updateXAttrs');
987
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'updateXAttrs');
989
988
  return changes => {
990
989
  const reqBody = updateXAttrs.packXAttrsChanges(changes);
991
990
  return caller.startPromiseCall(path, reqBody)
@@ -1008,7 +1007,7 @@ var vWriteBytes;
1008
1007
  }
1009
1008
  vWriteBytes.wrapService = wrapService;
1010
1009
  function makeCaller(caller, objPath) {
1011
- const path = objPath.concat('writeBytes');
1010
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeBytes');
1012
1011
  return bytes => caller
1013
1012
  .startPromiseCall(path, requestType.pack({ bytes: bytes }))
1014
1013
  .then(protobuf_msg_1.unpackInt);
@@ -1029,7 +1028,7 @@ var vWriteTxt;
1029
1028
  }
1030
1029
  vWriteTxt.wrapService = wrapService;
1031
1030
  function makeCaller(caller, objPath) {
1032
- const path = objPath.concat('writeTxt');
1031
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeTxt');
1033
1032
  return txt => caller
1034
1033
  .startPromiseCall(path, requestType.pack({ txt }))
1035
1034
  .then(protobuf_msg_1.unpackInt);
@@ -1050,7 +1049,7 @@ var vWriteJSON;
1050
1049
  }
1051
1050
  vWriteJSON.wrapService = wrapService;
1052
1051
  function makeCaller(caller, objPath) {
1053
- const path = objPath.concat('writeJSON');
1052
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeJSON');
1054
1053
  return json => caller
1055
1054
  .startPromiseCall(path, requestType.pack({ json: JSON.stringify(json) }))
1056
1055
  .then(protobuf_msg_1.unpackInt);
@@ -1075,7 +1074,7 @@ var vGetByteSink;
1075
1074
  }
1076
1075
  vGetByteSink.wrapService = wrapService;
1077
1076
  function makeCaller(caller, objPath) {
1078
- const path = objPath.concat('getByteSink');
1077
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'getByteSink');
1079
1078
  return (truncateFile, currentVersion) => caller
1080
1079
  .startPromiseCall(path, requestType.pack({
1081
1080
  truncateFile: (0, protobuf_msg_1.toOptVal)(truncateFile),
@@ -1100,7 +1099,7 @@ var vsStatus;
1100
1099
  }
1101
1100
  vsStatus.wrapService = wrapService;
1102
1101
  function makeCaller(caller, objPath) {
1103
- const path = objPath.concat('status');
1102
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'status');
1104
1103
  return () => caller
1105
1104
  .startPromiseCall(path, undefined)
1106
1105
  .then(unpackSyncStatus);
@@ -1119,7 +1118,7 @@ var vsUpdateStatusInfo;
1119
1118
  }
1120
1119
  vsUpdateStatusInfo.wrapService = wrapService;
1121
1120
  function makeCaller(caller, objPath) {
1122
- const path = objPath.concat('updateStatusInfo');
1121
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'updateStatusInfo');
1123
1122
  return () => caller
1124
1123
  .startPromiseCall(path, undefined)
1125
1124
  .then(unpackSyncStatus);
@@ -1141,7 +1140,7 @@ var vsIsRemoteVersionOnDisk;
1141
1140
  }
1142
1141
  vsIsRemoteVersionOnDisk.wrapService = wrapService;
1143
1142
  function makeCaller(caller, objPath) {
1144
- const path = objPath.concat('isRemoteVersionOnDisk');
1143
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'isRemoteVersionOnDisk');
1145
1144
  return version => caller
1146
1145
  .startPromiseCall(path, requestType.pack({ version }))
1147
1146
  .then(buf => replyType.unpack(buf).status);
@@ -1161,7 +1160,7 @@ var vsDownload;
1161
1160
  }
1162
1161
  vsDownload.wrapService = wrapService;
1163
1162
  function makeCaller(caller, objPath) {
1164
- const path = objPath.concat('download');
1163
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'download');
1165
1164
  return version => caller
1166
1165
  .startPromiseCall(path, requestType.pack({ version }));
1167
1166
  }
@@ -1191,20 +1190,25 @@ exports.optionsToUploadLocalFromMsg = optionsToUploadLocalFromMsg;
1191
1190
  var vsUpload;
1192
1191
  (function (vsUpload) {
1193
1192
  const requestType = protobuf_type_1.ProtoType.for(file_proto_1.file.FileSyncUploadRequestBody);
1193
+ const replyType = protobuf_type_1.ProtoType.for(file_proto_1.file.FileSyncUploadReplyBody);
1194
1194
  function wrapService(fn) {
1195
1195
  return buf => {
1196
1196
  const { opts } = requestType.unpack(buf);
1197
- const promise = fn(optionsToUploadLocalFromMsg(opts));
1197
+ const promise = fn(optionsToUploadLocalFromMsg(opts))
1198
+ .then(uploadedVersion => replyType.pack({
1199
+ uploadedVersion: (0, protobuf_msg_1.toOptVal)(uploadedVersion)
1200
+ }));
1198
1201
  return { promise };
1199
1202
  };
1200
1203
  }
1201
1204
  vsUpload.wrapService = wrapService;
1202
1205
  function makeCaller(caller, objPath) {
1203
- const path = objPath.concat('upload');
1206
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'upload');
1204
1207
  return opts => caller
1205
1208
  .startPromiseCall(path, requestType.pack({
1206
1209
  opts: optionsToUploadLocalToMsg(opts)
1207
- }));
1210
+ }))
1211
+ .then(buf => (0, protobuf_msg_1.valOfOptInt)(replyType.unpack(buf).uploadedVersion));
1208
1212
  }
1209
1213
  vsUpload.makeCaller = makeCaller;
1210
1214
  })(vsUpload || (vsUpload = {}));
@@ -1241,7 +1245,7 @@ var vsAdoptRemote;
1241
1245
  }
1242
1246
  vsAdoptRemote.wrapService = wrapService;
1243
1247
  function makeCaller(caller, objPath) {
1244
- const path = objPath.concat('adoptRemote');
1248
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'adoptRemote');
1245
1249
  return opts => caller
1246
1250
  .startPromiseCall(path, requestType.pack({
1247
1251
  opts: remoteAdoptionOptsToMsg(opts)
@@ -1278,7 +1282,7 @@ var vListVersions;
1278
1282
  }
1279
1283
  vListVersions.wrapService = wrapService;
1280
1284
  function makeCaller(caller, objPath) {
1281
- const path = objPath.concat('listVersions');
1285
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'listVersions');
1282
1286
  return () => caller
1283
1287
  .startPromiseCall(path)
1284
1288
  .then(unpackReply);
@@ -1299,7 +1303,7 @@ var vArchiveCurrent;
1299
1303
  }
1300
1304
  vArchiveCurrent.wrapService = wrapService;
1301
1305
  function makeCaller(caller, objPath) {
1302
- const path = objPath.concat('archiveCurrent');
1306
+ const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'archiveCurrent');
1303
1307
  return version => caller
1304
1308
  .startPromiseCall(path, requestType.pack({ version: (0, protobuf_msg_1.toOptVal)(version) }))
1305
1309
  .then(protobuf_msg_1.unpackInt);