@replit/protocol 0.4.31 → 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.
@@ -6,10 +6,13 @@ import { WireType } from "@protobuf-ts/runtime";
6
6
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
7
7
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
8
8
  import { MessageType } from "@protobuf-ts/runtime";
9
+ import { OrgTransferPrincipal } from "./transfer/org_transfer.js";
9
10
  import { Duration } from "../../google/protobuf/duration.js";
10
11
  import { Status } from "../../google/rpc/status.js";
11
12
  import { Agent } from "../chateau/resources.js";
12
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";
13
16
  import { Repl as Repl$ } from "../jetplane/repl/repl.js";
14
17
  import { ReplMode } from "../jetplane/repl/repl.js";
15
18
  import { SandboxSpec } from "../jetplane/repl/repl.js";
@@ -49,28 +52,6 @@ export var GetReplResponse_TombstoneStatus;
49
52
  */
50
53
  GetReplResponse_TombstoneStatus[GetReplResponse_TombstoneStatus["NOT_TOMBSTONED"] = 2] = "NOT_TOMBSTONED";
51
54
  })(GetReplResponse_TombstoneStatus || (GetReplResponse_TombstoneStatus = {}));
52
- /**
53
- * @generated from protobuf enum replit.goval.api.lore.TransferOrgHomeCellResponse.Status
54
- */
55
- export var TransferOrgHomeCellResponse_Status;
56
- (function (TransferOrgHomeCellResponse_Status) {
57
- /**
58
- * @generated from protobuf enum value: STATUS_UNSPECIFIED = 0;
59
- */
60
- TransferOrgHomeCellResponse_Status[TransferOrgHomeCellResponse_Status["UNSPECIFIED"] = 0] = "UNSPECIFIED";
61
- /**
62
- * @generated from protobuf enum value: STATUS_PENDING = 1;
63
- */
64
- TransferOrgHomeCellResponse_Status[TransferOrgHomeCellResponse_Status["PENDING"] = 1] = "PENDING";
65
- /**
66
- * @generated from protobuf enum value: STATUS_COMPLETED = 2;
67
- */
68
- TransferOrgHomeCellResponse_Status[TransferOrgHomeCellResponse_Status["COMPLETED"] = 2] = "COMPLETED";
69
- /**
70
- * @generated from protobuf enum value: STATUS_FAILED = 3;
71
- */
72
- TransferOrgHomeCellResponse_Status[TransferOrgHomeCellResponse_Status["FAILED"] = 3] = "FAILED";
73
- })(TransferOrgHomeCellResponse_Status || (TransferOrgHomeCellResponse_Status = {}));
74
55
  // @generated message type with reflection information, may provide speed optimized methods
75
56
  class Buckets$Type extends MessageType {
76
57
  constructor() {
@@ -217,7 +198,12 @@ class Cluster$Type extends MessageType {
217
198
  { no: 15, name: "rams_rpc_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
218
199
  { no: 16, name: "muse_rpc_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
219
200
  { no: 17, name: "chronicle_rpc_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
220
- { no: 18, name: "continent", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
201
+ { no: 18, name: "continent", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
202
+ { no: 19, name: "openint_public_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*/ }
221
207
  ]);
222
208
  }
223
209
  create(value) {
@@ -239,6 +225,11 @@ class Cluster$Type extends MessageType {
239
225
  message.museRpcTarget = "";
240
226
  message.chronicleRpcTarget = "";
241
227
  message.continent = "";
228
+ message.openintPublicUrl = "";
229
+ message.openintServerUrl = "";
230
+ message.bffUrl = "";
231
+ message.templRpcTarget = "";
232
+ message.slackAdapterRpcTarget = "";
242
233
  if (value !== undefined)
243
234
  reflectionMergePartial(this, message, value);
244
235
  return message;
@@ -299,6 +290,21 @@ class Cluster$Type extends MessageType {
299
290
  case /* string continent */ 18:
300
291
  message.continent = reader.string();
301
292
  break;
293
+ case /* string openint_public_url */ 19:
294
+ message.openintPublicUrl = reader.string();
295
+ break;
296
+ case /* string openint_server_url */ 20:
297
+ message.openintServerUrl = reader.string();
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;
302
308
  default:
303
309
  let u = options.readUnknownField;
304
310
  if (u === "throw")
@@ -362,6 +368,21 @@ class Cluster$Type extends MessageType {
362
368
  /* string continent = 18; */
363
369
  if (message.continent !== "")
364
370
  writer.tag(18, WireType.LengthDelimited).string(message.continent);
371
+ /* string openint_public_url = 19; */
372
+ if (message.openintPublicUrl !== "")
373
+ writer.tag(19, WireType.LengthDelimited).string(message.openintPublicUrl);
374
+ /* string openint_server_url = 20; */
375
+ if (message.openintServerUrl !== "")
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);
365
386
  let u = options.writeUnknownFields;
366
387
  if (u !== false)
367
388
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1429,6 +1450,175 @@ class UpdateSandboxResponse$Type extends MessageType {
1429
1450
  */
1430
1451
  export const UpdateSandboxResponse = new UpdateSandboxResponse$Type();
1431
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
1432
1622
  class GetSandboxConnectionInfoRequest$Type extends MessageType {
1433
1623
  constructor() {
1434
1624
  super("replit.goval.api.lore.GetSandboxConnectionInfoRequest", [
@@ -1497,7 +1687,8 @@ class GetSandboxConnectionInfoResponse$Type extends MessageType {
1497
1687
  super("replit.goval.api.lore.GetSandboxConnectionInfoResponse", [
1498
1688
  { no: 1, name: "cluster", kind: "message", T: () => Cluster },
1499
1689
  { no: 2, name: "dotdev_hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1500
- { 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*/ }
1501
1692
  ]);
1502
1693
  }
1503
1694
  create(value) {
@@ -1522,6 +1713,9 @@ class GetSandboxConnectionInfoResponse$Type extends MessageType {
1522
1713
  case /* replit.goval.api.jetplane.repl.ReplMode mode */ 3:
1523
1714
  message.mode = reader.int32();
1524
1715
  break;
1716
+ case /* optional string suggested_size */ 4:
1717
+ message.suggestedSize = reader.string();
1718
+ break;
1525
1719
  default:
1526
1720
  let u = options.readUnknownField;
1527
1721
  if (u === "throw")
@@ -1543,6 +1737,9 @@ class GetSandboxConnectionInfoResponse$Type extends MessageType {
1543
1737
  /* replit.goval.api.jetplane.repl.ReplMode mode = 3; */
1544
1738
  if (message.mode !== 0)
1545
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);
1546
1743
  let u = options.writeUnknownFields;
1547
1744
  if (u !== false)
1548
1745
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2364,6 +2561,115 @@ class GetClusterByResourceGroupResponse$Type extends MessageType {
2364
2561
  */
2365
2562
  export const GetClusterByResourceGroupResponse = new GetClusterByResourceGroupResponse$Type();
2366
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
2367
2673
  class BatchGetCellByResourceGroupRequest$Type extends MessageType {
2368
2674
  constructor() {
2369
2675
  super("replit.goval.api.lore.BatchGetCellByResourceGroupRequest", [
@@ -4282,19 +4588,103 @@ class SetOrgHomeCellResponse$Type extends MessageType {
4282
4588
  */
4283
4589
  export const SetOrgHomeCellResponse = new SetOrgHomeCellResponse$Type();
4284
4590
  // @generated message type with reflection information, may provide speed optimized methods
4591
+ class DeleteOrgHomeCellRequest$Type extends MessageType {
4592
+ constructor() {
4593
+ super("replit.goval.api.lore.DeleteOrgHomeCellRequest", [
4594
+ { no: 1, name: "org_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4595
+ ]);
4596
+ }
4597
+ create(value) {
4598
+ const message = globalThis.Object.create((this.messagePrototype));
4599
+ message.orgId = "";
4600
+ if (value !== undefined)
4601
+ reflectionMergePartial(this, message, value);
4602
+ return message;
4603
+ }
4604
+ internalBinaryRead(reader, length, options, target) {
4605
+ let message = target ?? this.create(), end = reader.pos + length;
4606
+ while (reader.pos < end) {
4607
+ let [fieldNo, wireType] = reader.tag();
4608
+ switch (fieldNo) {
4609
+ case /* string org_id */ 1:
4610
+ message.orgId = reader.string();
4611
+ break;
4612
+ default:
4613
+ let u = options.readUnknownField;
4614
+ if (u === "throw")
4615
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4616
+ let d = reader.skip(wireType);
4617
+ if (u !== false)
4618
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4619
+ }
4620
+ }
4621
+ return message;
4622
+ }
4623
+ internalBinaryWrite(message, writer, options) {
4624
+ /* string org_id = 1; */
4625
+ if (message.orgId !== "")
4626
+ writer.tag(1, WireType.LengthDelimited).string(message.orgId);
4627
+ let u = options.writeUnknownFields;
4628
+ if (u !== false)
4629
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4630
+ return writer;
4631
+ }
4632
+ }
4633
+ /**
4634
+ * @generated MessageType for protobuf message replit.goval.api.lore.DeleteOrgHomeCellRequest
4635
+ */
4636
+ export const DeleteOrgHomeCellRequest = new DeleteOrgHomeCellRequest$Type();
4637
+ // @generated message type with reflection information, may provide speed optimized methods
4638
+ class DeleteOrgHomeCellResponse$Type extends MessageType {
4639
+ constructor() {
4640
+ super("replit.goval.api.lore.DeleteOrgHomeCellResponse", []);
4641
+ }
4642
+ create(value) {
4643
+ const message = globalThis.Object.create((this.messagePrototype));
4644
+ if (value !== undefined)
4645
+ reflectionMergePartial(this, message, value);
4646
+ return message;
4647
+ }
4648
+ internalBinaryRead(reader, length, options, target) {
4649
+ let message = target ?? this.create(), end = reader.pos + length;
4650
+ while (reader.pos < end) {
4651
+ let [fieldNo, wireType] = reader.tag();
4652
+ switch (fieldNo) {
4653
+ default:
4654
+ let u = options.readUnknownField;
4655
+ if (u === "throw")
4656
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4657
+ let d = reader.skip(wireType);
4658
+ if (u !== false)
4659
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4660
+ }
4661
+ }
4662
+ return message;
4663
+ }
4664
+ internalBinaryWrite(message, writer, options) {
4665
+ let u = options.writeUnknownFields;
4666
+ if (u !== false)
4667
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4668
+ return writer;
4669
+ }
4670
+ }
4671
+ /**
4672
+ * @generated MessageType for protobuf message replit.goval.api.lore.DeleteOrgHomeCellResponse
4673
+ */
4674
+ export const DeleteOrgHomeCellResponse = new DeleteOrgHomeCellResponse$Type();
4675
+ // @generated message type with reflection information, may provide speed optimized methods
4285
4676
  class TransferOrgHomeCellRequest$Type extends MessageType {
4286
4677
  constructor() {
4287
4678
  super("replit.goval.api.lore.TransferOrgHomeCellRequest", [
4288
4679
  { no: 1, name: "org_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4289
4680
  { no: 2, name: "target_cell_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4290
- { no: 3, name: "force_retry", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
4681
+ { no: 4, name: "principal", kind: "message", T: () => OrgTransferPrincipal }
4291
4682
  ]);
4292
4683
  }
4293
4684
  create(value) {
4294
4685
  const message = globalThis.Object.create((this.messagePrototype));
4295
4686
  message.orgId = "";
4296
4687
  message.targetCellName = "";
4297
- message.forceRetry = false;
4298
4688
  if (value !== undefined)
4299
4689
  reflectionMergePartial(this, message, value);
4300
4690
  return message;
@@ -4310,8 +4700,8 @@ class TransferOrgHomeCellRequest$Type extends MessageType {
4310
4700
  case /* string target_cell_name */ 2:
4311
4701
  message.targetCellName = reader.string();
4312
4702
  break;
4313
- case /* bool force_retry */ 3:
4314
- message.forceRetry = reader.bool();
4703
+ case /* replit.goval.api.lore.transfer.OrgTransferPrincipal principal */ 4:
4704
+ message.principal = OrgTransferPrincipal.internalBinaryRead(reader, reader.uint32(), options, message.principal);
4315
4705
  break;
4316
4706
  default:
4317
4707
  let u = options.readUnknownField;
@@ -4331,9 +4721,9 @@ class TransferOrgHomeCellRequest$Type extends MessageType {
4331
4721
  /* string target_cell_name = 2; */
4332
4722
  if (message.targetCellName !== "")
4333
4723
  writer.tag(2, WireType.LengthDelimited).string(message.targetCellName);
4334
- /* bool force_retry = 3; */
4335
- if (message.forceRetry !== false)
4336
- writer.tag(3, WireType.Varint).bool(message.forceRetry);
4724
+ /* replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 4; */
4725
+ if (message.principal)
4726
+ OrgTransferPrincipal.internalBinaryWrite(message.principal, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
4337
4727
  let u = options.writeUnknownFields;
4338
4728
  if (u !== false)
4339
4729
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4348,14 +4738,12 @@ export const TransferOrgHomeCellRequest = new TransferOrgHomeCellRequest$Type();
4348
4738
  class TransferOrgHomeCellResponse$Type extends MessageType {
4349
4739
  constructor() {
4350
4740
  super("replit.goval.api.lore.TransferOrgHomeCellResponse", [
4351
- { no: 1, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4352
- { 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*/ }
4353
4742
  ]);
4354
4743
  }
4355
4744
  create(value) {
4356
4745
  const message = globalThis.Object.create((this.messagePrototype));
4357
4746
  message.transferId = "";
4358
- message.status = 0;
4359
4747
  if (value !== undefined)
4360
4748
  reflectionMergePartial(this, message, value);
4361
4749
  return message;
@@ -4368,9 +4756,6 @@ class TransferOrgHomeCellResponse$Type extends MessageType {
4368
4756
  case /* string transfer_id */ 1:
4369
4757
  message.transferId = reader.string();
4370
4758
  break;
4371
- case /* replit.goval.api.lore.TransferOrgHomeCellResponse.Status status */ 2:
4372
- message.status = reader.int32();
4373
- break;
4374
4759
  default:
4375
4760
  let u = options.readUnknownField;
4376
4761
  if (u === "throw")
@@ -4386,9 +4771,6 @@ class TransferOrgHomeCellResponse$Type extends MessageType {
4386
4771
  /* string transfer_id = 1; */
4387
4772
  if (message.transferId !== "")
4388
4773
  writer.tag(1, WireType.LengthDelimited).string(message.transferId);
4389
- /* replit.goval.api.lore.TransferOrgHomeCellResponse.Status status = 2; */
4390
- if (message.status !== 0)
4391
- writer.tag(2, WireType.Varint).int32(message.status);
4392
4774
  let u = options.writeUnknownFields;
4393
4775
  if (u !== false)
4394
4776
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4513,12 +4895,14 @@ export const MargarineBlock = new MargarineBlock$Type();
4513
4895
  class MargarineExport$Type extends MessageType {
4514
4896
  constructor() {
4515
4897
  super("replit.goval.api.lore.MargarineExport", [
4516
- { 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*/ }
4517
4900
  ]);
4518
4901
  }
4519
4902
  create(value) {
4520
4903
  const message = globalThis.Object.create((this.messagePrototype));
4521
4904
  message.blocks = [];
4905
+ message.deviceSize = 0n;
4522
4906
  if (value !== undefined)
4523
4907
  reflectionMergePartial(this, message, value);
4524
4908
  return message;
@@ -4531,6 +4915,9 @@ class MargarineExport$Type extends MessageType {
4531
4915
  case /* repeated replit.goval.api.lore.MargarineBlock blocks */ 2:
4532
4916
  message.blocks.push(MargarineBlock.internalBinaryRead(reader, reader.uint32(), options));
4533
4917
  break;
4918
+ case /* uint64 device_size */ 3:
4919
+ message.deviceSize = reader.uint64().toBigInt();
4920
+ break;
4534
4921
  default:
4535
4922
  let u = options.readUnknownField;
4536
4923
  if (u === "throw")
@@ -4546,6 +4933,9 @@ class MargarineExport$Type extends MessageType {
4546
4933
  /* repeated replit.goval.api.lore.MargarineBlock blocks = 2; */
4547
4934
  for (let i = 0; i < message.blocks.length; i++)
4548
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);
4549
4939
  let u = options.writeUnknownFields;
4550
4940
  if (u !== false)
4551
4941
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4956,6 +5346,7 @@ export const GetCheckpointPreviewCapabilityResponse = new GetCheckpointPreviewCa
4956
5346
  export const Lore = new ServiceType("replit.goval.api.lore.Lore", [
4957
5347
  { name: "CreateSandbox", options: {}, I: CreateSandboxRequest, O: CreateSandboxResponse },
4958
5348
  { name: "UpdateSandbox", options: {}, I: UpdateSandboxRequest, O: UpdateSandboxResponse },
5349
+ { name: "PatchSandbox", options: {}, I: PatchSandboxRequest, O: PatchSandboxResponse },
4959
5350
  { name: "GetSandboxConnectionInfo", options: {}, I: GetSandboxConnectionInfoRequest, O: GetSandboxConnectionInfoResponse },
4960
5351
  { name: "CreateResourceGroup", options: {}, I: CreateResourceGroupRequest, O: CreateResourceGroupResponse },
4961
5352
  { name: "DeleteResourceGroup", options: {}, I: DeleteResourceGroupRequest, O: DeleteResourceGroupResponse },
@@ -4966,6 +5357,7 @@ export const Lore = new ServiceType("replit.goval.api.lore.Lore", [
4966
5357
  { name: "BatchGetCellByRepl", options: {}, I: BatchGetCellByReplRequest, O: BatchGetCellByReplResponse },
4967
5358
  { name: "GetCheckpointPreviewCapability", options: {}, I: GetCheckpointPreviewCapabilityRequest, O: GetCheckpointPreviewCapabilityResponse },
4968
5359
  { name: "GetClusterByResourceGroup", options: {}, I: GetClusterByResourceGroupRequest, O: GetClusterByResourceGroupResponse },
5360
+ { name: "RestoreResourceGroupPlacement", options: {}, I: RestoreResourceGroupPlacementRequest, O: RestoreResourceGroupPlacementResponse },
4969
5361
  { name: "BatchGetCellByResourceGroup", options: {}, I: BatchGetCellByResourceGroupRequest, O: BatchGetCellByResourceGroupResponse },
4970
5362
  { name: "GetReplConnectionInfo", options: {}, I: GetReplConnectionInfoRequest, O: GetReplConnectionInfoResponse },
4971
5363
  { name: "GetTransferStatus", options: {}, I: GetTransferStatusRequest, O: GetTransferStatusResponse },
@@ -4982,6 +5374,7 @@ export const Lore = new ServiceType("replit.goval.api.lore.Lore", [
4982
5374
  { name: "GetClusters", options: {}, I: GetClustersRequest, O: GetClustersResponse },
4983
5375
  { name: "GetOrgHomeCell", options: {}, I: GetOrgHomeCellRequest, O: GetOrgHomeCellResponse },
4984
5376
  { name: "SetOrgHomeCell", options: {}, I: SetOrgHomeCellRequest, O: SetOrgHomeCellResponse },
5377
+ { name: "DeleteOrgHomeCell", options: {}, I: DeleteOrgHomeCellRequest, O: DeleteOrgHomeCellResponse },
4985
5378
  { name: "TransferOrgHomeCell", options: {}, I: TransferOrgHomeCellRequest, O: TransferOrgHomeCellResponse },
4986
5379
  { name: "TransferReplFromOfflineCluster", options: {}, I: TransferReplFromOfflineClusterRequest, O: TransferReplFromOfflineClusterResponse },
4987
5380
  { name: "ExportRepl", options: {}, I: ExportReplRequest, O: ExportReplResponse },