@replit/protocol 0.4.32 → 0.5.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.
@@ -11,6 +11,8 @@ import { Duration } from "../../google/protobuf/duration.js";
11
11
  import { Status } from "../../google/rpc/status.js";
12
12
  import { Agent } from "../chateau/resources.js";
13
13
  import { CreateAgentRequest as CreateAgentRequest$ } from "../chateau/resources.js";
14
+ import { Timestamp } from "../../google/protobuf/timestamp.js";
15
+ import { FieldMask } from "../../google/protobuf/field_mask.js";
14
16
  import { Repl as Repl$ } from "../jetplane/repl/repl.js";
15
17
  import { ReplMode } from "../jetplane/repl/repl.js";
16
18
  import { SandboxSpec } from "../jetplane/repl/repl.js";
@@ -50,28 +52,6 @@ export var GetReplResponse_TombstoneStatus;
50
52
  */
51
53
  GetReplResponse_TombstoneStatus[GetReplResponse_TombstoneStatus["NOT_TOMBSTONED"] = 2] = "NOT_TOMBSTONED";
52
54
  })(GetReplResponse_TombstoneStatus || (GetReplResponse_TombstoneStatus = {}));
53
- /**
54
- * @generated from protobuf enum replit.goval.api.lore.TransferOrgHomeCellResponse.Status
55
- */
56
- export var TransferOrgHomeCellResponse_Status;
57
- (function (TransferOrgHomeCellResponse_Status) {
58
- /**
59
- * @generated from protobuf enum value: STATUS_UNSPECIFIED = 0;
60
- */
61
- TransferOrgHomeCellResponse_Status[TransferOrgHomeCellResponse_Status["UNSPECIFIED"] = 0] = "UNSPECIFIED";
62
- /**
63
- * @generated from protobuf enum value: STATUS_PENDING = 1;
64
- */
65
- TransferOrgHomeCellResponse_Status[TransferOrgHomeCellResponse_Status["PENDING"] = 1] = "PENDING";
66
- /**
67
- * @generated from protobuf enum value: STATUS_COMPLETED = 2;
68
- */
69
- TransferOrgHomeCellResponse_Status[TransferOrgHomeCellResponse_Status["COMPLETED"] = 2] = "COMPLETED";
70
- /**
71
- * @generated from protobuf enum value: STATUS_FAILED = 3;
72
- */
73
- TransferOrgHomeCellResponse_Status[TransferOrgHomeCellResponse_Status["FAILED"] = 3] = "FAILED";
74
- })(TransferOrgHomeCellResponse_Status || (TransferOrgHomeCellResponse_Status = {}));
75
55
  // @generated message type with reflection information, may provide speed optimized methods
76
56
  class Buckets$Type extends MessageType {
77
57
  constructor() {
@@ -220,7 +200,10 @@ class Cluster$Type extends MessageType {
220
200
  { no: 17, name: "chronicle_rpc_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
221
201
  { no: 18, name: "continent", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
222
202
  { no: 19, name: "openint_public_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
223
- { no: 20, name: "openint_server_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
203
+ { no: 20, name: "openint_server_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
204
+ { no: 21, name: "bff_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
205
+ { no: 22, name: "templ_rpc_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
206
+ { no: 23, name: "slack_adapter_rpc_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
224
207
  ]);
225
208
  }
226
209
  create(value) {
@@ -244,6 +227,9 @@ class Cluster$Type extends MessageType {
244
227
  message.continent = "";
245
228
  message.openintPublicUrl = "";
246
229
  message.openintServerUrl = "";
230
+ message.bffUrl = "";
231
+ message.templRpcTarget = "";
232
+ message.slackAdapterRpcTarget = "";
247
233
  if (value !== undefined)
248
234
  reflectionMergePartial(this, message, value);
249
235
  return message;
@@ -310,6 +296,15 @@ class Cluster$Type extends MessageType {
310
296
  case /* string openint_server_url */ 20:
311
297
  message.openintServerUrl = reader.string();
312
298
  break;
299
+ case /* string bff_url */ 21:
300
+ message.bffUrl = reader.string();
301
+ break;
302
+ case /* string templ_rpc_target */ 22:
303
+ message.templRpcTarget = reader.string();
304
+ break;
305
+ case /* string slack_adapter_rpc_target */ 23:
306
+ message.slackAdapterRpcTarget = reader.string();
307
+ break;
313
308
  default:
314
309
  let u = options.readUnknownField;
315
310
  if (u === "throw")
@@ -379,6 +374,15 @@ class Cluster$Type extends MessageType {
379
374
  /* string openint_server_url = 20; */
380
375
  if (message.openintServerUrl !== "")
381
376
  writer.tag(20, WireType.LengthDelimited).string(message.openintServerUrl);
377
+ /* string bff_url = 21; */
378
+ if (message.bffUrl !== "")
379
+ writer.tag(21, WireType.LengthDelimited).string(message.bffUrl);
380
+ /* string templ_rpc_target = 22; */
381
+ if (message.templRpcTarget !== "")
382
+ writer.tag(22, WireType.LengthDelimited).string(message.templRpcTarget);
383
+ /* string slack_adapter_rpc_target = 23; */
384
+ if (message.slackAdapterRpcTarget !== "")
385
+ writer.tag(23, WireType.LengthDelimited).string(message.slackAdapterRpcTarget);
382
386
  let u = options.writeUnknownFields;
383
387
  if (u !== false)
384
388
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1446,6 +1450,175 @@ class UpdateSandboxResponse$Type extends MessageType {
1446
1450
  */
1447
1451
  export const UpdateSandboxResponse = new UpdateSandboxResponse$Type();
1448
1452
  // @generated message type with reflection information, may provide speed optimized methods
1453
+ class PatchSandboxRequest$Type extends MessageType {
1454
+ constructor() {
1455
+ super("replit.goval.api.lore.PatchSandboxRequest", [
1456
+ { no: 1, name: "sandbox", kind: "message", T: () => PatchSandboxRequest_Sandbox },
1457
+ { no: 2, name: "use_repl_shield", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1458
+ { no: 3, name: "update_mask", kind: "message", T: () => FieldMask },
1459
+ { no: 4, name: "toggled_at", kind: "message", T: () => Timestamp }
1460
+ ]);
1461
+ }
1462
+ create(value) {
1463
+ const message = globalThis.Object.create((this.messagePrototype));
1464
+ message.useReplShield = false;
1465
+ if (value !== undefined)
1466
+ reflectionMergePartial(this, message, value);
1467
+ return message;
1468
+ }
1469
+ internalBinaryRead(reader, length, options, target) {
1470
+ let message = target ?? this.create(), end = reader.pos + length;
1471
+ while (reader.pos < end) {
1472
+ let [fieldNo, wireType] = reader.tag();
1473
+ switch (fieldNo) {
1474
+ case /* replit.goval.api.lore.PatchSandboxRequest.Sandbox sandbox */ 1:
1475
+ message.sandbox = PatchSandboxRequest_Sandbox.internalBinaryRead(reader, reader.uint32(), options, message.sandbox);
1476
+ break;
1477
+ case /* bool use_repl_shield */ 2:
1478
+ message.useReplShield = reader.bool();
1479
+ break;
1480
+ case /* google.protobuf.FieldMask update_mask */ 3:
1481
+ message.updateMask = FieldMask.internalBinaryRead(reader, reader.uint32(), options, message.updateMask);
1482
+ break;
1483
+ case /* google.protobuf.Timestamp toggled_at */ 4:
1484
+ message.toggledAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.toggledAt);
1485
+ break;
1486
+ default:
1487
+ let u = options.readUnknownField;
1488
+ if (u === "throw")
1489
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1490
+ let d = reader.skip(wireType);
1491
+ if (u !== false)
1492
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1493
+ }
1494
+ }
1495
+ return message;
1496
+ }
1497
+ internalBinaryWrite(message, writer, options) {
1498
+ /* replit.goval.api.lore.PatchSandboxRequest.Sandbox sandbox = 1; */
1499
+ if (message.sandbox)
1500
+ PatchSandboxRequest_Sandbox.internalBinaryWrite(message.sandbox, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1501
+ /* bool use_repl_shield = 2; */
1502
+ if (message.useReplShield !== false)
1503
+ writer.tag(2, WireType.Varint).bool(message.useReplShield);
1504
+ /* google.protobuf.FieldMask update_mask = 3; */
1505
+ if (message.updateMask)
1506
+ FieldMask.internalBinaryWrite(message.updateMask, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1507
+ /* google.protobuf.Timestamp toggled_at = 4; */
1508
+ if (message.toggledAt)
1509
+ Timestamp.internalBinaryWrite(message.toggledAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
1510
+ let u = options.writeUnknownFields;
1511
+ if (u !== false)
1512
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1513
+ return writer;
1514
+ }
1515
+ }
1516
+ /**
1517
+ * @generated MessageType for protobuf message replit.goval.api.lore.PatchSandboxRequest
1518
+ */
1519
+ export const PatchSandboxRequest = new PatchSandboxRequest$Type();
1520
+ // @generated message type with reflection information, may provide speed optimized methods
1521
+ class PatchSandboxRequest_Sandbox$Type extends MessageType {
1522
+ constructor() {
1523
+ super("replit.goval.api.lore.PatchSandboxRequest.Sandbox", [
1524
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1525
+ { no: 2, name: "resource_group_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1526
+ ]);
1527
+ }
1528
+ create(value) {
1529
+ const message = globalThis.Object.create((this.messagePrototype));
1530
+ message.id = "";
1531
+ message.resourceGroupId = "";
1532
+ if (value !== undefined)
1533
+ reflectionMergePartial(this, message, value);
1534
+ return message;
1535
+ }
1536
+ internalBinaryRead(reader, length, options, target) {
1537
+ let message = target ?? this.create(), end = reader.pos + length;
1538
+ while (reader.pos < end) {
1539
+ let [fieldNo, wireType] = reader.tag();
1540
+ switch (fieldNo) {
1541
+ case /* string id */ 1:
1542
+ message.id = reader.string();
1543
+ break;
1544
+ case /* string resource_group_id */ 2:
1545
+ message.resourceGroupId = reader.string();
1546
+ break;
1547
+ default:
1548
+ let u = options.readUnknownField;
1549
+ if (u === "throw")
1550
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1551
+ let d = reader.skip(wireType);
1552
+ if (u !== false)
1553
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1554
+ }
1555
+ }
1556
+ return message;
1557
+ }
1558
+ internalBinaryWrite(message, writer, options) {
1559
+ /* string id = 1; */
1560
+ if (message.id !== "")
1561
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1562
+ /* string resource_group_id = 2; */
1563
+ if (message.resourceGroupId !== "")
1564
+ writer.tag(2, WireType.LengthDelimited).string(message.resourceGroupId);
1565
+ let u = options.writeUnknownFields;
1566
+ if (u !== false)
1567
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1568
+ return writer;
1569
+ }
1570
+ }
1571
+ /**
1572
+ * @generated MessageType for protobuf message replit.goval.api.lore.PatchSandboxRequest.Sandbox
1573
+ */
1574
+ export const PatchSandboxRequest_Sandbox = new PatchSandboxRequest_Sandbox$Type();
1575
+ // @generated message type with reflection information, may provide speed optimized methods
1576
+ class PatchSandboxResponse$Type extends MessageType {
1577
+ constructor() {
1578
+ super("replit.goval.api.lore.PatchSandboxResponse", [
1579
+ { no: 1, name: "sandbox", kind: "message", T: () => Repl$ }
1580
+ ]);
1581
+ }
1582
+ create(value) {
1583
+ const message = globalThis.Object.create((this.messagePrototype));
1584
+ if (value !== undefined)
1585
+ reflectionMergePartial(this, message, value);
1586
+ return message;
1587
+ }
1588
+ internalBinaryRead(reader, length, options, target) {
1589
+ let message = target ?? this.create(), end = reader.pos + length;
1590
+ while (reader.pos < end) {
1591
+ let [fieldNo, wireType] = reader.tag();
1592
+ switch (fieldNo) {
1593
+ case /* replit.goval.api.jetplane.repl.Repl sandbox */ 1:
1594
+ message.sandbox = Repl$.internalBinaryRead(reader, reader.uint32(), options, message.sandbox);
1595
+ break;
1596
+ default:
1597
+ let u = options.readUnknownField;
1598
+ if (u === "throw")
1599
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1600
+ let d = reader.skip(wireType);
1601
+ if (u !== false)
1602
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1603
+ }
1604
+ }
1605
+ return message;
1606
+ }
1607
+ internalBinaryWrite(message, writer, options) {
1608
+ /* replit.goval.api.jetplane.repl.Repl sandbox = 1; */
1609
+ if (message.sandbox)
1610
+ Repl$.internalBinaryWrite(message.sandbox, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1611
+ let u = options.writeUnknownFields;
1612
+ if (u !== false)
1613
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1614
+ return writer;
1615
+ }
1616
+ }
1617
+ /**
1618
+ * @generated MessageType for protobuf message replit.goval.api.lore.PatchSandboxResponse
1619
+ */
1620
+ export const PatchSandboxResponse = new PatchSandboxResponse$Type();
1621
+ // @generated message type with reflection information, may provide speed optimized methods
1449
1622
  class GetSandboxConnectionInfoRequest$Type extends MessageType {
1450
1623
  constructor() {
1451
1624
  super("replit.goval.api.lore.GetSandboxConnectionInfoRequest", [
@@ -1514,7 +1687,8 @@ class GetSandboxConnectionInfoResponse$Type extends MessageType {
1514
1687
  super("replit.goval.api.lore.GetSandboxConnectionInfoResponse", [
1515
1688
  { no: 1, name: "cluster", kind: "message", T: () => Cluster },
1516
1689
  { no: 2, name: "dotdev_hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1517
- { no: 3, name: "mode", kind: "enum", T: () => ["replit.goval.api.jetplane.repl.ReplMode", ReplMode, "REPL_MODE_"] }
1690
+ { no: 3, name: "mode", kind: "enum", T: () => ["replit.goval.api.jetplane.repl.ReplMode", ReplMode, "REPL_MODE_"] },
1691
+ { no: 4, name: "suggested_size", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
1518
1692
  ]);
1519
1693
  }
1520
1694
  create(value) {
@@ -1539,6 +1713,9 @@ class GetSandboxConnectionInfoResponse$Type extends MessageType {
1539
1713
  case /* replit.goval.api.jetplane.repl.ReplMode mode */ 3:
1540
1714
  message.mode = reader.int32();
1541
1715
  break;
1716
+ case /* optional string suggested_size */ 4:
1717
+ message.suggestedSize = reader.string();
1718
+ break;
1542
1719
  default:
1543
1720
  let u = options.readUnknownField;
1544
1721
  if (u === "throw")
@@ -1560,6 +1737,9 @@ class GetSandboxConnectionInfoResponse$Type extends MessageType {
1560
1737
  /* replit.goval.api.jetplane.repl.ReplMode mode = 3; */
1561
1738
  if (message.mode !== 0)
1562
1739
  writer.tag(3, WireType.Varint).int32(message.mode);
1740
+ /* optional string suggested_size = 4; */
1741
+ if (message.suggestedSize !== undefined)
1742
+ writer.tag(4, WireType.LengthDelimited).string(message.suggestedSize);
1563
1743
  let u = options.writeUnknownFields;
1564
1744
  if (u !== false)
1565
1745
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2381,6 +2561,115 @@ class GetClusterByResourceGroupResponse$Type extends MessageType {
2381
2561
  */
2382
2562
  export const GetClusterByResourceGroupResponse = new GetClusterByResourceGroupResponse$Type();
2383
2563
  // @generated message type with reflection information, may provide speed optimized methods
2564
+ class RestoreResourceGroupPlacementRequest$Type extends MessageType {
2565
+ constructor() {
2566
+ super("replit.goval.api.lore.RestoreResourceGroupPlacementRequest", [
2567
+ { no: 1, name: "resource_group_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2568
+ { no: 2, name: "target_cell_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2569
+ ]);
2570
+ }
2571
+ create(value) {
2572
+ const message = globalThis.Object.create((this.messagePrototype));
2573
+ message.resourceGroupId = "";
2574
+ message.targetCellName = "";
2575
+ if (value !== undefined)
2576
+ reflectionMergePartial(this, message, value);
2577
+ return message;
2578
+ }
2579
+ internalBinaryRead(reader, length, options, target) {
2580
+ let message = target ?? this.create(), end = reader.pos + length;
2581
+ while (reader.pos < end) {
2582
+ let [fieldNo, wireType] = reader.tag();
2583
+ switch (fieldNo) {
2584
+ case /* string resource_group_id */ 1:
2585
+ message.resourceGroupId = reader.string();
2586
+ break;
2587
+ case /* string target_cell_name */ 2:
2588
+ message.targetCellName = reader.string();
2589
+ break;
2590
+ default:
2591
+ let u = options.readUnknownField;
2592
+ if (u === "throw")
2593
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2594
+ let d = reader.skip(wireType);
2595
+ if (u !== false)
2596
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2597
+ }
2598
+ }
2599
+ return message;
2600
+ }
2601
+ internalBinaryWrite(message, writer, options) {
2602
+ /* string resource_group_id = 1; */
2603
+ if (message.resourceGroupId !== "")
2604
+ writer.tag(1, WireType.LengthDelimited).string(message.resourceGroupId);
2605
+ /* string target_cell_name = 2; */
2606
+ if (message.targetCellName !== "")
2607
+ writer.tag(2, WireType.LengthDelimited).string(message.targetCellName);
2608
+ let u = options.writeUnknownFields;
2609
+ if (u !== false)
2610
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2611
+ return writer;
2612
+ }
2613
+ }
2614
+ /**
2615
+ * @generated MessageType for protobuf message replit.goval.api.lore.RestoreResourceGroupPlacementRequest
2616
+ */
2617
+ export const RestoreResourceGroupPlacementRequest = new RestoreResourceGroupPlacementRequest$Type();
2618
+ // @generated message type with reflection information, may provide speed optimized methods
2619
+ class RestoreResourceGroupPlacementResponse$Type extends MessageType {
2620
+ constructor() {
2621
+ super("replit.goval.api.lore.RestoreResourceGroupPlacementResponse", [
2622
+ { no: 1, name: "cluster", kind: "message", T: () => Cluster },
2623
+ { no: 2, name: "repl_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
2624
+ ]);
2625
+ }
2626
+ create(value) {
2627
+ const message = globalThis.Object.create((this.messagePrototype));
2628
+ message.replIds = [];
2629
+ if (value !== undefined)
2630
+ reflectionMergePartial(this, message, value);
2631
+ return message;
2632
+ }
2633
+ internalBinaryRead(reader, length, options, target) {
2634
+ let message = target ?? this.create(), end = reader.pos + length;
2635
+ while (reader.pos < end) {
2636
+ let [fieldNo, wireType] = reader.tag();
2637
+ switch (fieldNo) {
2638
+ case /* replit.goval.api.lore.Cluster cluster */ 1:
2639
+ message.cluster = Cluster.internalBinaryRead(reader, reader.uint32(), options, message.cluster);
2640
+ break;
2641
+ case /* repeated string repl_ids */ 2:
2642
+ message.replIds.push(reader.string());
2643
+ break;
2644
+ default:
2645
+ let u = options.readUnknownField;
2646
+ if (u === "throw")
2647
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2648
+ let d = reader.skip(wireType);
2649
+ if (u !== false)
2650
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2651
+ }
2652
+ }
2653
+ return message;
2654
+ }
2655
+ internalBinaryWrite(message, writer, options) {
2656
+ /* replit.goval.api.lore.Cluster cluster = 1; */
2657
+ if (message.cluster)
2658
+ Cluster.internalBinaryWrite(message.cluster, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2659
+ /* repeated string repl_ids = 2; */
2660
+ for (let i = 0; i < message.replIds.length; i++)
2661
+ writer.tag(2, WireType.LengthDelimited).string(message.replIds[i]);
2662
+ let u = options.writeUnknownFields;
2663
+ if (u !== false)
2664
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2665
+ return writer;
2666
+ }
2667
+ }
2668
+ /**
2669
+ * @generated MessageType for protobuf message replit.goval.api.lore.RestoreResourceGroupPlacementResponse
2670
+ */
2671
+ export const RestoreResourceGroupPlacementResponse = new RestoreResourceGroupPlacementResponse$Type();
2672
+ // @generated message type with reflection information, may provide speed optimized methods
2384
2673
  class BatchGetCellByResourceGroupRequest$Type extends MessageType {
2385
2674
  constructor() {
2386
2675
  super("replit.goval.api.lore.BatchGetCellByResourceGroupRequest", [
@@ -4389,7 +4678,6 @@ class TransferOrgHomeCellRequest$Type extends MessageType {
4389
4678
  super("replit.goval.api.lore.TransferOrgHomeCellRequest", [
4390
4679
  { no: 1, name: "org_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4391
4680
  { no: 2, name: "target_cell_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4392
- { no: 3, name: "force_retry", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
4393
4681
  { no: 4, name: "principal", kind: "message", T: () => OrgTransferPrincipal }
4394
4682
  ]);
4395
4683
  }
@@ -4397,7 +4685,6 @@ class TransferOrgHomeCellRequest$Type extends MessageType {
4397
4685
  const message = globalThis.Object.create((this.messagePrototype));
4398
4686
  message.orgId = "";
4399
4687
  message.targetCellName = "";
4400
- message.forceRetry = false;
4401
4688
  if (value !== undefined)
4402
4689
  reflectionMergePartial(this, message, value);
4403
4690
  return message;
@@ -4413,9 +4700,6 @@ class TransferOrgHomeCellRequest$Type extends MessageType {
4413
4700
  case /* string target_cell_name */ 2:
4414
4701
  message.targetCellName = reader.string();
4415
4702
  break;
4416
- case /* bool force_retry */ 3:
4417
- message.forceRetry = reader.bool();
4418
- break;
4419
4703
  case /* replit.goval.api.lore.transfer.OrgTransferPrincipal principal */ 4:
4420
4704
  message.principal = OrgTransferPrincipal.internalBinaryRead(reader, reader.uint32(), options, message.principal);
4421
4705
  break;
@@ -4437,9 +4721,6 @@ class TransferOrgHomeCellRequest$Type extends MessageType {
4437
4721
  /* string target_cell_name = 2; */
4438
4722
  if (message.targetCellName !== "")
4439
4723
  writer.tag(2, WireType.LengthDelimited).string(message.targetCellName);
4440
- /* bool force_retry = 3; */
4441
- if (message.forceRetry !== false)
4442
- writer.tag(3, WireType.Varint).bool(message.forceRetry);
4443
4724
  /* replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 4; */
4444
4725
  if (message.principal)
4445
4726
  OrgTransferPrincipal.internalBinaryWrite(message.principal, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
@@ -4457,14 +4738,12 @@ export const TransferOrgHomeCellRequest = new TransferOrgHomeCellRequest$Type();
4457
4738
  class TransferOrgHomeCellResponse$Type extends MessageType {
4458
4739
  constructor() {
4459
4740
  super("replit.goval.api.lore.TransferOrgHomeCellResponse", [
4460
- { no: 1, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4461
- { no: 2, name: "status", kind: "enum", T: () => ["replit.goval.api.lore.TransferOrgHomeCellResponse.Status", TransferOrgHomeCellResponse_Status, "STATUS_"] }
4741
+ { no: 1, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4462
4742
  ]);
4463
4743
  }
4464
4744
  create(value) {
4465
4745
  const message = globalThis.Object.create((this.messagePrototype));
4466
4746
  message.transferId = "";
4467
- message.status = 0;
4468
4747
  if (value !== undefined)
4469
4748
  reflectionMergePartial(this, message, value);
4470
4749
  return message;
@@ -4477,9 +4756,6 @@ class TransferOrgHomeCellResponse$Type extends MessageType {
4477
4756
  case /* string transfer_id */ 1:
4478
4757
  message.transferId = reader.string();
4479
4758
  break;
4480
- case /* replit.goval.api.lore.TransferOrgHomeCellResponse.Status status */ 2:
4481
- message.status = reader.int32();
4482
- break;
4483
4759
  default:
4484
4760
  let u = options.readUnknownField;
4485
4761
  if (u === "throw")
@@ -4495,9 +4771,6 @@ class TransferOrgHomeCellResponse$Type extends MessageType {
4495
4771
  /* string transfer_id = 1; */
4496
4772
  if (message.transferId !== "")
4497
4773
  writer.tag(1, WireType.LengthDelimited).string(message.transferId);
4498
- /* replit.goval.api.lore.TransferOrgHomeCellResponse.Status status = 2; */
4499
- if (message.status !== 0)
4500
- writer.tag(2, WireType.Varint).int32(message.status);
4501
4774
  let u = options.writeUnknownFields;
4502
4775
  if (u !== false)
4503
4776
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4622,12 +4895,14 @@ export const MargarineBlock = new MargarineBlock$Type();
4622
4895
  class MargarineExport$Type extends MessageType {
4623
4896
  constructor() {
4624
4897
  super("replit.goval.api.lore.MargarineExport", [
4625
- { no: 2, name: "blocks", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MargarineBlock }
4898
+ { no: 2, name: "blocks", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MargarineBlock },
4899
+ { no: 3, name: "device_size", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
4626
4900
  ]);
4627
4901
  }
4628
4902
  create(value) {
4629
4903
  const message = globalThis.Object.create((this.messagePrototype));
4630
4904
  message.blocks = [];
4905
+ message.deviceSize = 0n;
4631
4906
  if (value !== undefined)
4632
4907
  reflectionMergePartial(this, message, value);
4633
4908
  return message;
@@ -4640,6 +4915,9 @@ class MargarineExport$Type extends MessageType {
4640
4915
  case /* repeated replit.goval.api.lore.MargarineBlock blocks */ 2:
4641
4916
  message.blocks.push(MargarineBlock.internalBinaryRead(reader, reader.uint32(), options));
4642
4917
  break;
4918
+ case /* uint64 device_size */ 3:
4919
+ message.deviceSize = reader.uint64().toBigInt();
4920
+ break;
4643
4921
  default:
4644
4922
  let u = options.readUnknownField;
4645
4923
  if (u === "throw")
@@ -4655,6 +4933,9 @@ class MargarineExport$Type extends MessageType {
4655
4933
  /* repeated replit.goval.api.lore.MargarineBlock blocks = 2; */
4656
4934
  for (let i = 0; i < message.blocks.length; i++)
4657
4935
  MargarineBlock.internalBinaryWrite(message.blocks[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
4936
+ /* uint64 device_size = 3; */
4937
+ if (message.deviceSize !== 0n)
4938
+ writer.tag(3, WireType.Varint).uint64(message.deviceSize);
4658
4939
  let u = options.writeUnknownFields;
4659
4940
  if (u !== false)
4660
4941
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -5065,6 +5346,7 @@ export const GetCheckpointPreviewCapabilityResponse = new GetCheckpointPreviewCa
5065
5346
  export const Lore = new ServiceType("replit.goval.api.lore.Lore", [
5066
5347
  { name: "CreateSandbox", options: {}, I: CreateSandboxRequest, O: CreateSandboxResponse },
5067
5348
  { name: "UpdateSandbox", options: {}, I: UpdateSandboxRequest, O: UpdateSandboxResponse },
5349
+ { name: "PatchSandbox", options: {}, I: PatchSandboxRequest, O: PatchSandboxResponse },
5068
5350
  { name: "GetSandboxConnectionInfo", options: {}, I: GetSandboxConnectionInfoRequest, O: GetSandboxConnectionInfoResponse },
5069
5351
  { name: "CreateResourceGroup", options: {}, I: CreateResourceGroupRequest, O: CreateResourceGroupResponse },
5070
5352
  { name: "DeleteResourceGroup", options: {}, I: DeleteResourceGroupRequest, O: DeleteResourceGroupResponse },
@@ -5075,6 +5357,7 @@ export const Lore = new ServiceType("replit.goval.api.lore.Lore", [
5075
5357
  { name: "BatchGetCellByRepl", options: {}, I: BatchGetCellByReplRequest, O: BatchGetCellByReplResponse },
5076
5358
  { name: "GetCheckpointPreviewCapability", options: {}, I: GetCheckpointPreviewCapabilityRequest, O: GetCheckpointPreviewCapabilityResponse },
5077
5359
  { name: "GetClusterByResourceGroup", options: {}, I: GetClusterByResourceGroupRequest, O: GetClusterByResourceGroupResponse },
5360
+ { name: "RestoreResourceGroupPlacement", options: {}, I: RestoreResourceGroupPlacementRequest, O: RestoreResourceGroupPlacementResponse },
5078
5361
  { name: "BatchGetCellByResourceGroup", options: {}, I: BatchGetCellByResourceGroupRequest, O: BatchGetCellByResourceGroupResponse },
5079
5362
  { name: "GetReplConnectionInfo", options: {}, I: GetReplConnectionInfoRequest, O: GetReplConnectionInfoResponse },
5080
5363
  { name: "GetTransferStatus", options: {}, I: GetTransferStatusRequest, O: GetTransferStatusResponse },
@@ -22,6 +22,13 @@ import type { OrgIsSourceFullyDrainedResponse } from "./org_transfer.js";
22
22
  import type { OrgIsSourceFullyDrainedRequest } from "./org_transfer.js";
23
23
  import type { OrgSourceStopAndDrainResponse } from "./org_transfer.js";
24
24
  import type { OrgSourceStopAndDrainRequest } from "./org_transfer.js";
25
+ import type { OrgDstAbortDiscardImportRequest } from "./org_transfer.js";
26
+ import type { OrgTransferRequest } from "./org_transfer.js";
27
+ import type { OrgDstTransferInRequest } from "./org_transfer.js";
28
+ import type { OrgSrcTransferOutResponse } from "./org_transfer.js";
29
+ import type { OrgSrcTransferOutRequest } from "./org_transfer.js";
30
+ import type { PhaseResponse } from "./transfer.js";
31
+ import type { OrgSrcStopAndDrainRequest } from "./org_transfer.js";
25
32
  import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
26
33
  import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
27
34
  /**
@@ -31,6 +38,58 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
31
38
  */
32
39
  export interface ITransferOrgHomeCellClient {
33
40
  /**
41
+ * Either success guarantees a fenced, fully drained source, even if absent.
42
+ *
43
+ * @generated from protobuf rpc: SrcStopAndDrain
44
+ */
45
+ srcStopAndDrain(input: OrgSrcStopAndDrainRequest, options?: RpcOptions): UnaryCall<OrgSrcStopAndDrainRequest, PhaseResponse>;
46
+ /**
47
+ * Upload the existing opaque payload; return its receipt or explicit absence.
48
+ *
49
+ * @generated from protobuf rpc: SrcTransferOut
50
+ */
51
+ srcTransferOut(input: OrgSrcTransferOutRequest, options?: RpcOptions): UnaryCall<OrgSrcTransferOutRequest, OrgSrcTransferOutResponse>;
52
+ /**
53
+ * SUCCESS means import completed behind the arrival fence.
54
+ *
55
+ * @generated from protobuf rpc: DstTransferIn
56
+ */
57
+ dstTransferIn(input: OrgDstTransferInRequest, options?: RpcOptions): UnaryCall<OrgDstTransferInRequest, PhaseResponse>;
58
+ /**
59
+ * Stop export work while preserving source data and the fence.
60
+ *
61
+ * @generated from protobuf rpc: SrcCancelExport
62
+ */
63
+ srcCancelExport(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
64
+ /**
65
+ * Pre-activation only, after all destination discards and source
66
+ * cancellations.
67
+ *
68
+ * @generated from protobuf rpc: SrcResume
69
+ */
70
+ srcResume(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
71
+ /**
72
+ * Pre-activation only, after import has stopped; preserve unrelated data.
73
+ *
74
+ * @generated from protobuf rpc: DstAbortDiscardImport
75
+ */
76
+ dstAbortDiscardImport(input: OrgDstAbortDiscardImportRequest, options?: RpcOptions): UnaryCall<OrgDstAbortDiscardImportRequest, PhaseResponse>;
77
+ /**
78
+ * One-way activation; after the first attempt Lore recovers forward only.
79
+ *
80
+ * @generated from protobuf rpc: DstActivate
81
+ */
82
+ dstActivate(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
83
+ /**
84
+ * After verified cutover, retire the source without deleting shared backing
85
+ * data.
86
+ *
87
+ * @generated from protobuf rpc: SrcDelete
88
+ */
89
+ srcDelete(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
90
+ /**
91
+ * Legacy methods remain unchanged until all participants migrate.
92
+ *
34
93
  * @generated from protobuf rpc: SourceStopAndDrain
35
94
  */
36
95
  sourceStopAndDrain(input: OrgSourceStopAndDrainRequest, options?: RpcOptions): UnaryCall<OrgSourceStopAndDrainRequest, OrgSourceStopAndDrainResponse>;
@@ -89,6 +148,58 @@ export declare class TransferOrgHomeCellClient implements ITransferOrgHomeCellCl
89
148
  };
90
149
  constructor(_transport: RpcTransport);
91
150
  /**
151
+ * Either success guarantees a fenced, fully drained source, even if absent.
152
+ *
153
+ * @generated from protobuf rpc: SrcStopAndDrain
154
+ */
155
+ srcStopAndDrain(input: OrgSrcStopAndDrainRequest, options?: RpcOptions): UnaryCall<OrgSrcStopAndDrainRequest, PhaseResponse>;
156
+ /**
157
+ * Upload the existing opaque payload; return its receipt or explicit absence.
158
+ *
159
+ * @generated from protobuf rpc: SrcTransferOut
160
+ */
161
+ srcTransferOut(input: OrgSrcTransferOutRequest, options?: RpcOptions): UnaryCall<OrgSrcTransferOutRequest, OrgSrcTransferOutResponse>;
162
+ /**
163
+ * SUCCESS means import completed behind the arrival fence.
164
+ *
165
+ * @generated from protobuf rpc: DstTransferIn
166
+ */
167
+ dstTransferIn(input: OrgDstTransferInRequest, options?: RpcOptions): UnaryCall<OrgDstTransferInRequest, PhaseResponse>;
168
+ /**
169
+ * Stop export work while preserving source data and the fence.
170
+ *
171
+ * @generated from protobuf rpc: SrcCancelExport
172
+ */
173
+ srcCancelExport(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
174
+ /**
175
+ * Pre-activation only, after all destination discards and source
176
+ * cancellations.
177
+ *
178
+ * @generated from protobuf rpc: SrcResume
179
+ */
180
+ srcResume(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
181
+ /**
182
+ * Pre-activation only, after import has stopped; preserve unrelated data.
183
+ *
184
+ * @generated from protobuf rpc: DstAbortDiscardImport
185
+ */
186
+ dstAbortDiscardImport(input: OrgDstAbortDiscardImportRequest, options?: RpcOptions): UnaryCall<OrgDstAbortDiscardImportRequest, PhaseResponse>;
187
+ /**
188
+ * One-way activation; after the first attempt Lore recovers forward only.
189
+ *
190
+ * @generated from protobuf rpc: DstActivate
191
+ */
192
+ dstActivate(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
193
+ /**
194
+ * After verified cutover, retire the source without deleting shared backing
195
+ * data.
196
+ *
197
+ * @generated from protobuf rpc: SrcDelete
198
+ */
199
+ srcDelete(input: OrgTransferRequest, options?: RpcOptions): UnaryCall<OrgTransferRequest, PhaseResponse>;
200
+ /**
201
+ * Legacy methods remain unchanged until all participants migrate.
202
+ *
92
203
  * @generated from protobuf rpc: SourceStopAndDrain
93
204
  */
94
205
  sourceStopAndDrain(input: OrgSourceStopAndDrainRequest, options?: RpcOptions): UnaryCall<OrgSourceStopAndDrainRequest, OrgSourceStopAndDrainResponse>;