@gadgetinc/dateilager 0.3.3 → 0.3.4

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Fs = exports.CloneToProjectResponse = exports.CloneToProjectRequest = exports.GcContentsResponse = exports.GcContentsRequest = exports.GcRandomProjectsResponse = exports.GcRandomProjectsRequest = exports.GcProjectResponse = exports.GcProjectRequest = exports.ResetResponse = exports.ResetRequest = exports.SnapshotResponse = exports.SnapshotRequest = exports.InspectResponse = exports.InspectRequest = exports.UpdateResponse = exports.UpdateRequest = exports.GetCompressResponse = exports.GetCompressRequest = exports.GetResponse = exports.GetRequest = exports.ObjectQuery = exports.Objekt = exports.ListProjectsResponse = exports.ListProjectsRequest = exports.Project = exports.DeleteProjectResponse = exports.DeleteProjectRequest = exports.NewProjectResponse = exports.NewProjectRequest = exports.GetCompressResponse_Format = void 0;
3
+ exports.Fs = exports.GetCacheResponse = exports.GetCacheRequest = exports.CloneToProjectResponse = exports.CloneToProjectRequest = exports.GcContentsResponse = exports.GcContentsRequest = exports.GcRandomProjectsResponse = exports.GcRandomProjectsRequest = exports.GcProjectResponse = exports.GcProjectRequest = exports.ResetResponse = exports.ResetRequest = exports.SnapshotResponse = exports.SnapshotRequest = exports.InspectResponse = exports.InspectRequest = exports.UpdateResponse = exports.UpdateRequest = exports.GetCompressResponse = exports.GetCompressRequest = exports.GetResponse = exports.GetRequest = exports.ObjectQuery = exports.Objekt = exports.ListProjectsResponse = exports.ListProjectsRequest = exports.Project = exports.DeleteProjectResponse = exports.DeleteProjectRequest = exports.NewProjectResponse = exports.NewProjectRequest = exports.GetCacheResponse_Format = exports.GetCompressResponse_Format = void 0;
4
4
  /* eslint-disable */
5
5
  // @generated by protobuf-ts 2.8.1 with parameter long_type_bigint,ts_nocheck,eslint_disable,add_pb_suffix
6
6
  // @generated from protobuf file "fs.proto" (package "pb", syntax proto3)
@@ -22,6 +22,16 @@ var GetCompressResponse_Format;
22
22
  */
23
23
  GetCompressResponse_Format[GetCompressResponse_Format["S2_TAR"] = 0] = "S2_TAR";
24
24
  })(GetCompressResponse_Format = exports.GetCompressResponse_Format || (exports.GetCompressResponse_Format = {}));
25
+ /**
26
+ * @generated from protobuf enum pb.GetCacheResponse.Format
27
+ */
28
+ var GetCacheResponse_Format;
29
+ (function (GetCacheResponse_Format) {
30
+ /**
31
+ * @generated from protobuf enum value: S2_TAR = 0;
32
+ */
33
+ GetCacheResponse_Format[GetCacheResponse_Format["S2_TAR"] = 0] = "S2_TAR";
34
+ })(GetCacheResponse_Format = exports.GetCacheResponse_Format || (exports.GetCacheResponse_Format = {}));
25
35
  // @generated message type with reflection information, may provide speed optimized methods
26
36
  class NewProjectRequest$Type extends runtime_5.MessageType {
27
37
  constructor() {
@@ -390,12 +400,11 @@ class ObjectQuery$Type extends runtime_5.MessageType {
390
400
  super("pb.ObjectQuery", [
391
401
  { no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
392
402
  { no: 2, name: "is_prefix", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
393
- { no: 3, name: "with_content", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
394
403
  { no: 4, name: "ignores", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
395
404
  ]);
396
405
  }
397
406
  create(value) {
398
- const message = { path: "", isPrefix: false, withContent: false, ignores: [] };
407
+ const message = { path: "", isPrefix: false, ignores: [] };
399
408
  globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
400
409
  if (value !== undefined)
401
410
  (0, runtime_3.reflectionMergePartial)(this, message, value);
@@ -412,9 +421,6 @@ class ObjectQuery$Type extends runtime_5.MessageType {
412
421
  case /* bool is_prefix */ 2:
413
422
  message.isPrefix = reader.bool();
414
423
  break;
415
- case /* bool with_content */ 3:
416
- message.withContent = reader.bool();
417
- break;
418
424
  case /* repeated string ignores */ 4:
419
425
  message.ignores.push(reader.string());
420
426
  break;
@@ -436,9 +442,6 @@ class ObjectQuery$Type extends runtime_5.MessageType {
436
442
  /* bool is_prefix = 2; */
437
443
  if (message.isPrefix !== false)
438
444
  writer.tag(2, runtime_1.WireType.Varint).bool(message.isPrefix);
439
- /* bool with_content = 3; */
440
- if (message.withContent !== false)
441
- writer.tag(3, runtime_1.WireType.Varint).bool(message.withContent);
442
445
  /* repeated string ignores = 4; */
443
446
  for (let i = 0; i < message.ignores.length; i++)
444
447
  writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.ignores[i]);
@@ -581,11 +584,12 @@ class GetCompressRequest$Type extends runtime_5.MessageType {
581
584
  { no: 1, name: "project", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
582
585
  { no: 2, name: "from_version", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
583
586
  { no: 3, name: "to_version", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
584
- { no: 5, name: "queries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.ObjectQuery }
587
+ { no: 5, name: "queries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.ObjectQuery },
588
+ { no: 6, name: "available_cache_versions", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
585
589
  ]);
586
590
  }
587
591
  create(value) {
588
- const message = { project: 0n, queries: [] };
592
+ const message = { project: 0n, queries: [], availableCacheVersions: [] };
589
593
  globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
590
594
  if (value !== undefined)
591
595
  (0, runtime_3.reflectionMergePartial)(this, message, value);
@@ -608,6 +612,13 @@ class GetCompressRequest$Type extends runtime_5.MessageType {
608
612
  case /* repeated pb.ObjectQuery queries */ 5:
609
613
  message.queries.push(exports.ObjectQuery.internalBinaryRead(reader, reader.uint32(), options));
610
614
  break;
615
+ case /* repeated int64 available_cache_versions */ 6:
616
+ if (wireType === runtime_1.WireType.LengthDelimited)
617
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
618
+ message.availableCacheVersions.push(reader.int64().toBigInt());
619
+ else
620
+ message.availableCacheVersions.push(reader.int64().toBigInt());
621
+ break;
611
622
  default:
612
623
  let u = options.readUnknownField;
613
624
  if (u === "throw")
@@ -632,6 +643,13 @@ class GetCompressRequest$Type extends runtime_5.MessageType {
632
643
  /* repeated pb.ObjectQuery queries = 5; */
633
644
  for (let i = 0; i < message.queries.length; i++)
634
645
  exports.ObjectQuery.internalBinaryWrite(message.queries[i], writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
646
+ /* repeated int64 available_cache_versions = 6; */
647
+ if (message.availableCacheVersions.length) {
648
+ writer.tag(6, runtime_1.WireType.LengthDelimited).fork();
649
+ for (let i = 0; i < message.availableCacheVersions.length; i++)
650
+ writer.int64(message.availableCacheVersions[i]);
651
+ writer.join();
652
+ }
635
653
  let u = options.writeUnknownFields;
636
654
  if (u !== false)
637
655
  (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1409,13 +1427,12 @@ class CloneToProjectRequest$Type extends runtime_5.MessageType {
1409
1427
  constructor() {
1410
1428
  super("pb.CloneToProjectRequest", [
1411
1429
  { no: 1, name: "source", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
1412
- { no: 2, name: "from_version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
1413
- { no: 3, name: "to_version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
1414
- { no: 4, name: "target", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
1430
+ { no: 2, name: "version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
1431
+ { no: 3, name: "target", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
1415
1432
  ]);
1416
1433
  }
1417
1434
  create(value) {
1418
- const message = { source: 0n, fromVersion: 0n, toVersion: 0n, target: 0n };
1435
+ const message = { source: 0n, version: 0n, target: 0n };
1419
1436
  globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
1420
1437
  if (value !== undefined)
1421
1438
  (0, runtime_3.reflectionMergePartial)(this, message, value);
@@ -1429,13 +1446,10 @@ class CloneToProjectRequest$Type extends runtime_5.MessageType {
1429
1446
  case /* int64 source */ 1:
1430
1447
  message.source = reader.int64().toBigInt();
1431
1448
  break;
1432
- case /* int64 from_version */ 2:
1433
- message.fromVersion = reader.int64().toBigInt();
1434
- break;
1435
- case /* int64 to_version */ 3:
1436
- message.toVersion = reader.int64().toBigInt();
1449
+ case /* int64 version */ 2:
1450
+ message.version = reader.int64().toBigInt();
1437
1451
  break;
1438
- case /* int64 target */ 4:
1452
+ case /* int64 target */ 3:
1439
1453
  message.target = reader.int64().toBigInt();
1440
1454
  break;
1441
1455
  default:
@@ -1453,15 +1467,12 @@ class CloneToProjectRequest$Type extends runtime_5.MessageType {
1453
1467
  /* int64 source = 1; */
1454
1468
  if (message.source !== 0n)
1455
1469
  writer.tag(1, runtime_1.WireType.Varint).int64(message.source);
1456
- /* int64 from_version = 2; */
1457
- if (message.fromVersion !== 0n)
1458
- writer.tag(2, runtime_1.WireType.Varint).int64(message.fromVersion);
1459
- /* int64 to_version = 3; */
1460
- if (message.toVersion !== 0n)
1461
- writer.tag(3, runtime_1.WireType.Varint).int64(message.toVersion);
1462
- /* int64 target = 4; */
1470
+ /* int64 version = 2; */
1471
+ if (message.version !== 0n)
1472
+ writer.tag(2, runtime_1.WireType.Varint).int64(message.version);
1473
+ /* int64 target = 3; */
1463
1474
  if (message.target !== 0n)
1464
- writer.tag(4, runtime_1.WireType.Varint).int64(message.target);
1475
+ writer.tag(3, runtime_1.WireType.Varint).int64(message.target);
1465
1476
  let u = options.writeUnknownFields;
1466
1477
  if (u !== false)
1467
1478
  (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1519,6 +1530,100 @@ class CloneToProjectResponse$Type extends runtime_5.MessageType {
1519
1530
  * @generated MessageType for protobuf message pb.CloneToProjectResponse
1520
1531
  */
1521
1532
  exports.CloneToProjectResponse = new CloneToProjectResponse$Type();
1533
+ // @generated message type with reflection information, may provide speed optimized methods
1534
+ class GetCacheRequest$Type extends runtime_5.MessageType {
1535
+ constructor() {
1536
+ super("pb.GetCacheRequest", []);
1537
+ }
1538
+ create(value) {
1539
+ const message = {};
1540
+ globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
1541
+ if (value !== undefined)
1542
+ (0, runtime_3.reflectionMergePartial)(this, message, value);
1543
+ return message;
1544
+ }
1545
+ internalBinaryRead(reader, length, options, target) {
1546
+ return target ?? this.create();
1547
+ }
1548
+ internalBinaryWrite(message, writer, options) {
1549
+ let u = options.writeUnknownFields;
1550
+ if (u !== false)
1551
+ (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1552
+ return writer;
1553
+ }
1554
+ }
1555
+ /**
1556
+ * @generated MessageType for protobuf message pb.GetCacheRequest
1557
+ */
1558
+ exports.GetCacheRequest = new GetCacheRequest$Type();
1559
+ // @generated message type with reflection information, may provide speed optimized methods
1560
+ class GetCacheResponse$Type extends runtime_5.MessageType {
1561
+ constructor() {
1562
+ super("pb.GetCacheResponse", [
1563
+ { no: 1, name: "version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
1564
+ { no: 2, name: "format", kind: "enum", T: () => ["pb.GetCacheResponse.Format", GetCacheResponse_Format] },
1565
+ { no: 3, name: "bytes", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
1566
+ { no: 4, name: "hash", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
1567
+ ]);
1568
+ }
1569
+ create(value) {
1570
+ const message = { version: 0n, format: 0, bytes: new Uint8Array(0), hash: new Uint8Array(0) };
1571
+ globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
1572
+ if (value !== undefined)
1573
+ (0, runtime_3.reflectionMergePartial)(this, message, value);
1574
+ return message;
1575
+ }
1576
+ internalBinaryRead(reader, length, options, target) {
1577
+ let message = target ?? this.create(), end = reader.pos + length;
1578
+ while (reader.pos < end) {
1579
+ let [fieldNo, wireType] = reader.tag();
1580
+ switch (fieldNo) {
1581
+ case /* int64 version */ 1:
1582
+ message.version = reader.int64().toBigInt();
1583
+ break;
1584
+ case /* pb.GetCacheResponse.Format format */ 2:
1585
+ message.format = reader.int32();
1586
+ break;
1587
+ case /* bytes bytes */ 3:
1588
+ message.bytes = reader.bytes();
1589
+ break;
1590
+ case /* bytes hash */ 4:
1591
+ message.hash = reader.bytes();
1592
+ break;
1593
+ default:
1594
+ let u = options.readUnknownField;
1595
+ if (u === "throw")
1596
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1597
+ let d = reader.skip(wireType);
1598
+ if (u !== false)
1599
+ (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1600
+ }
1601
+ }
1602
+ return message;
1603
+ }
1604
+ internalBinaryWrite(message, writer, options) {
1605
+ /* int64 version = 1; */
1606
+ if (message.version !== 0n)
1607
+ writer.tag(1, runtime_1.WireType.Varint).int64(message.version);
1608
+ /* pb.GetCacheResponse.Format format = 2; */
1609
+ if (message.format !== 0)
1610
+ writer.tag(2, runtime_1.WireType.Varint).int32(message.format);
1611
+ /* bytes bytes = 3; */
1612
+ if (message.bytes.length)
1613
+ writer.tag(3, runtime_1.WireType.LengthDelimited).bytes(message.bytes);
1614
+ /* bytes hash = 4; */
1615
+ if (message.hash.length)
1616
+ writer.tag(4, runtime_1.WireType.LengthDelimited).bytes(message.hash);
1617
+ let u = options.writeUnknownFields;
1618
+ if (u !== false)
1619
+ (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1620
+ return writer;
1621
+ }
1622
+ }
1623
+ /**
1624
+ * @generated MessageType for protobuf message pb.GetCacheResponse
1625
+ */
1626
+ exports.GetCacheResponse = new GetCacheResponse$Type();
1522
1627
  /**
1523
1628
  * @generated ServiceType for protobuf service pb.Fs
1524
1629
  */
@@ -1535,6 +1640,7 @@ exports.Fs = new runtime_rpc_1.ServiceType("pb.Fs", [
1535
1640
  { name: "GcProject", options: {}, I: exports.GcProjectRequest, O: exports.GcProjectResponse },
1536
1641
  { name: "GcRandomProjects", options: {}, I: exports.GcRandomProjectsRequest, O: exports.GcRandomProjectsResponse },
1537
1642
  { name: "GcContents", options: {}, I: exports.GcContentsRequest, O: exports.GcContentsResponse },
1538
- { name: "CloneToProject", options: {}, I: exports.CloneToProjectRequest, O: exports.CloneToProjectResponse }
1643
+ { name: "CloneToProject", options: {}, I: exports.CloneToProjectRequest, O: exports.CloneToProjectResponse },
1644
+ { name: "GetCache", serverStreaming: true, options: {}, I: exports.GetCacheRequest, O: exports.GetCacheResponse }
1539
1645
  ]);
1540
1646
  //# sourceMappingURL=fs_pb.js.map