@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.
@@ -5,10 +5,13 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
5
  import type { IBinaryReader } from "@protobuf-ts/runtime";
6
6
  import type { PartialMessage } from "@protobuf-ts/runtime";
7
7
  import { MessageType } from "@protobuf-ts/runtime";
8
+ import { OrgTransferPrincipal } from "./transfer/org_transfer.js";
8
9
  import { Duration } from "../../google/protobuf/duration.js";
9
10
  import { Status } from "../../google/rpc/status.js";
10
11
  import { Agent } from "../chateau/resources.js";
11
12
  import { CreateAgentRequest as CreateAgentRequest$ } from "../chateau/resources.js";
13
+ import { Timestamp } from "../../google/protobuf/timestamp.js";
14
+ import { FieldMask } from "../../google/protobuf/field_mask.js";
12
15
  import { Repl as Repl$ } from "../jetplane/repl/repl.js";
13
16
  import { ReplMode } from "../jetplane/repl/repl.js";
14
17
  import { SandboxSpec } from "../jetplane/repl/repl.js";
@@ -174,6 +177,42 @@ export interface Cluster {
174
177
  * @generated from protobuf field: string continent = 18
175
178
  */
176
179
  continent: string;
180
+ /**
181
+ * OpenintPublicUrl is the OpenInt origin reachable by browsers and user
182
+ * workloads. May be empty for clusters without an OpenInt deployment.
183
+ *
184
+ * @generated from protobuf field: string openint_public_url = 19
185
+ */
186
+ openintPublicUrl: string;
187
+ /**
188
+ * OpenintServerUrl is the OpenInt origin for privileged server-to-server
189
+ * calls. May be empty for clusters without an OpenInt deployment.
190
+ *
191
+ * @generated from protobuf field: string openint_server_url = 20
192
+ */
193
+ openintServerUrl: string;
194
+ /**
195
+ * BffUrl is the URL of the BFF service for this cluster. May be empty for
196
+ * clusters whose BFF deployment is not yet provisioned.
197
+ *
198
+ * @generated from protobuf field: string bff_url = 21
199
+ */
200
+ bffUrl: string;
201
+ /**
202
+ * TemplRpcTarget is the host:port of templ's in-cluster gRPC service. May
203
+ * be empty for clusters whose templ deployment is not yet provisioned.
204
+ *
205
+ * @generated from protobuf field: string templ_rpc_target = 22
206
+ */
207
+ templRpcTarget: string;
208
+ /**
209
+ * SlackAdapterRpcTarget is the host:port of Slack Adapter's mTLS gRPC
210
+ * ingress. Empty disables routing; advertise only after the cell's ingress is
211
+ * ready.
212
+ *
213
+ * @generated from protobuf field: string slack_adapter_rpc_target = 23
214
+ */
215
+ slackAdapterRpcTarget: string;
177
216
  }
178
217
  /**
179
218
  * @generated from protobuf message replit.goval.api.lore.CreateReplRequest
@@ -566,6 +605,64 @@ export interface UpdateSandboxResponse {
566
605
  */
567
606
  sandbox?: Repl$;
568
607
  }
608
+ /**
609
+ * PatchSandboxRequest applies only the fields selected by update_mask and
610
+ * leaves everything else untouched, unlike UpdateSandbox's absolute
611
+ * remove-on-unset contract.
612
+ *
613
+ * @generated from protobuf message replit.goval.api.lore.PatchSandboxRequest
614
+ */
615
+ export interface PatchSandboxRequest {
616
+ /**
617
+ * @generated from protobuf field: replit.goval.api.lore.PatchSandboxRequest.Sandbox sandbox = 1
618
+ */
619
+ sandbox?: PatchSandboxRequest_Sandbox;
620
+ /**
621
+ * Whether ReplShield (private dev URL) enforcement is enabled. Applied to
622
+ * the live Repl CR so dotdevproxy picks up toggles without waiting for the
623
+ * repl to be recreated; a no-op when the repl is not currently placed.
624
+ *
625
+ * @generated from protobuf field: bool use_repl_shield = 2
626
+ */
627
+ useReplShield: boolean;
628
+ /**
629
+ * Selects which fields to apply. Must be non-empty; the only path
630
+ * currently supported is "use_repl_shield".
631
+ *
632
+ * @generated from protobuf field: google.protobuf.FieldMask update_mask = 3
633
+ */
634
+ updateMask?: FieldMask;
635
+ /**
636
+ * Orders concurrent use_repl_shield patches: the cell drops a patch whose
637
+ * toggled_at is not newer than the last one it applied, so a delayed retry
638
+ * can never overwrite a later toggle. Unset applies unconditionally.
639
+ *
640
+ * @generated from protobuf field: google.protobuf.Timestamp toggled_at = 4
641
+ */
642
+ toggledAt?: Timestamp;
643
+ }
644
+ /**
645
+ * @generated from protobuf message replit.goval.api.lore.PatchSandboxRequest.Sandbox
646
+ */
647
+ export interface PatchSandboxRequest_Sandbox {
648
+ /**
649
+ * @generated from protobuf field: string id = 1
650
+ */
651
+ id: string;
652
+ /**
653
+ * @generated from protobuf field: string resource_group_id = 2
654
+ */
655
+ resourceGroupId: string;
656
+ }
657
+ /**
658
+ * @generated from protobuf message replit.goval.api.lore.PatchSandboxResponse
659
+ */
660
+ export interface PatchSandboxResponse {
661
+ /**
662
+ * @generated from protobuf field: replit.goval.api.jetplane.repl.Repl sandbox = 1
663
+ */
664
+ sandbox?: Repl$;
665
+ }
569
666
  /**
570
667
  * @generated from protobuf message replit.goval.api.lore.GetSandboxConnectionInfoRequest
571
668
  */
@@ -599,6 +696,10 @@ export interface GetSandboxConnectionInfoResponse {
599
696
  * @generated from protobuf field: replit.goval.api.jetplane.repl.ReplMode mode = 3
600
697
  */
601
698
  mode: ReplMode;
699
+ /**
700
+ * @generated from protobuf field: optional string suggested_size = 4
701
+ */
702
+ suggestedSize?: string;
602
703
  }
603
704
  /**
604
705
  * @generated from protobuf message replit.goval.api.lore.CreateResourceGroupRequest
@@ -885,6 +986,36 @@ export interface GetClusterByResourceGroupResponse {
885
986
  */
886
987
  cluster?: Cluster;
887
988
  }
989
+ /**
990
+ * @generated from protobuf message replit.goval.api.lore.RestoreResourceGroupPlacementRequest
991
+ */
992
+ export interface RestoreResourceGroupPlacementRequest {
993
+ /**
994
+ * The existing resource group whose Lore placement is being repaired.
995
+ *
996
+ * @generated from protobuf field: string resource_group_id = 1
997
+ */
998
+ resourceGroupId: string;
999
+ /**
1000
+ * The cell where Jetplane already holds the resource group.
1001
+ *
1002
+ * @generated from protobuf field: string target_cell_name = 2
1003
+ */
1004
+ targetCellName: string;
1005
+ }
1006
+ /**
1007
+ * @generated from protobuf message replit.goval.api.lore.RestoreResourceGroupPlacementResponse
1008
+ */
1009
+ export interface RestoreResourceGroupPlacementResponse {
1010
+ /**
1011
+ * @generated from protobuf field: replit.goval.api.lore.Cluster cluster = 1
1012
+ */
1013
+ cluster?: Cluster;
1014
+ /**
1015
+ * @generated from protobuf field: repeated string repl_ids = 2
1016
+ */
1017
+ replIds: string[];
1018
+ }
888
1019
  /**
889
1020
  * @generated from protobuf message replit.goval.api.lore.BatchGetCellByResourceGroupRequest
890
1021
  */
@@ -1424,6 +1555,20 @@ export interface SetOrgHomeCellResponse {
1424
1555
  */
1425
1556
  cluster?: Cluster;
1426
1557
  }
1558
+ /**
1559
+ * @generated from protobuf message replit.goval.api.lore.DeleteOrgHomeCellRequest
1560
+ */
1561
+ export interface DeleteOrgHomeCellRequest {
1562
+ /**
1563
+ * @generated from protobuf field: string org_id = 1
1564
+ */
1565
+ orgId: string;
1566
+ }
1567
+ /**
1568
+ * @generated from protobuf message replit.goval.api.lore.DeleteOrgHomeCellResponse
1569
+ */
1570
+ export interface DeleteOrgHomeCellResponse {
1571
+ }
1427
1572
  /**
1428
1573
  * @generated from protobuf message replit.goval.api.lore.TransferOrgHomeCellRequest
1429
1574
  */
@@ -1439,11 +1584,12 @@ export interface TransferOrgHomeCellRequest {
1439
1584
  */
1440
1585
  targetCellName: string;
1441
1586
  /**
1442
- * ForceRetry starts a new transfer after a previous transfer failed.
1587
+ * Principal the transfer runs on behalf of. Lore forwards it unchanged to
1588
+ * each per-cell phase so the cell service can authorize the operation.
1443
1589
  *
1444
- * @generated from protobuf field: bool force_retry = 3
1590
+ * @generated from protobuf field: replit.goval.api.lore.transfer.OrgTransferPrincipal principal = 4
1445
1591
  */
1446
- forceRetry: boolean;
1592
+ principal?: OrgTransferPrincipal;
1447
1593
  }
1448
1594
  /**
1449
1595
  * @generated from protobuf message replit.goval.api.lore.TransferOrgHomeCellResponse
@@ -1453,31 +1599,6 @@ export interface TransferOrgHomeCellResponse {
1453
1599
  * @generated from protobuf field: string transfer_id = 1
1454
1600
  */
1455
1601
  transferId: string;
1456
- /**
1457
- * @generated from protobuf field: replit.goval.api.lore.TransferOrgHomeCellResponse.Status status = 2
1458
- */
1459
- status: TransferOrgHomeCellResponse_Status;
1460
- }
1461
- /**
1462
- * @generated from protobuf enum replit.goval.api.lore.TransferOrgHomeCellResponse.Status
1463
- */
1464
- export declare enum TransferOrgHomeCellResponse_Status {
1465
- /**
1466
- * @generated from protobuf enum value: STATUS_UNSPECIFIED = 0;
1467
- */
1468
- UNSPECIFIED = 0,
1469
- /**
1470
- * @generated from protobuf enum value: STATUS_PENDING = 1;
1471
- */
1472
- PENDING = 1,
1473
- /**
1474
- * @generated from protobuf enum value: STATUS_COMPLETED = 2;
1475
- */
1476
- COMPLETED = 2,
1477
- /**
1478
- * @generated from protobuf enum value: STATUS_FAILED = 3;
1479
- */
1480
- FAILED = 3
1481
1602
  }
1482
1603
  /**
1483
1604
  * @generated from protobuf message replit.goval.api.lore.ExportReplRequest
@@ -1513,6 +1634,13 @@ export interface MargarineExport {
1513
1634
  * @generated from protobuf field: repeated replit.goval.api.lore.MargarineBlock blocks = 2
1514
1635
  */
1515
1636
  blocks: MargarineBlock[];
1637
+ /**
1638
+ * The logical device size in bytes. A zero value represents a legacy
1639
+ * 256 GiB device.
1640
+ *
1641
+ * @generated from protobuf field: uint64 device_size = 3
1642
+ */
1643
+ deviceSize: bigint;
1516
1644
  }
1517
1645
  /**
1518
1646
  * @generated from protobuf message replit.goval.api.lore.ReplFile
@@ -1830,6 +1958,36 @@ declare class UpdateSandboxResponse$Type extends MessageType<UpdateSandboxRespon
1830
1958
  * @generated MessageType for protobuf message replit.goval.api.lore.UpdateSandboxResponse
1831
1959
  */
1832
1960
  export declare const UpdateSandboxResponse: UpdateSandboxResponse$Type;
1961
+ declare class PatchSandboxRequest$Type extends MessageType<PatchSandboxRequest> {
1962
+ constructor();
1963
+ create(value?: PartialMessage<PatchSandboxRequest>): PatchSandboxRequest;
1964
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PatchSandboxRequest): PatchSandboxRequest;
1965
+ internalBinaryWrite(message: PatchSandboxRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1966
+ }
1967
+ /**
1968
+ * @generated MessageType for protobuf message replit.goval.api.lore.PatchSandboxRequest
1969
+ */
1970
+ export declare const PatchSandboxRequest: PatchSandboxRequest$Type;
1971
+ declare class PatchSandboxRequest_Sandbox$Type extends MessageType<PatchSandboxRequest_Sandbox> {
1972
+ constructor();
1973
+ create(value?: PartialMessage<PatchSandboxRequest_Sandbox>): PatchSandboxRequest_Sandbox;
1974
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PatchSandboxRequest_Sandbox): PatchSandboxRequest_Sandbox;
1975
+ internalBinaryWrite(message: PatchSandboxRequest_Sandbox, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1976
+ }
1977
+ /**
1978
+ * @generated MessageType for protobuf message replit.goval.api.lore.PatchSandboxRequest.Sandbox
1979
+ */
1980
+ export declare const PatchSandboxRequest_Sandbox: PatchSandboxRequest_Sandbox$Type;
1981
+ declare class PatchSandboxResponse$Type extends MessageType<PatchSandboxResponse> {
1982
+ constructor();
1983
+ create(value?: PartialMessage<PatchSandboxResponse>): PatchSandboxResponse;
1984
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PatchSandboxResponse): PatchSandboxResponse;
1985
+ internalBinaryWrite(message: PatchSandboxResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1986
+ }
1987
+ /**
1988
+ * @generated MessageType for protobuf message replit.goval.api.lore.PatchSandboxResponse
1989
+ */
1990
+ export declare const PatchSandboxResponse: PatchSandboxResponse$Type;
1833
1991
  declare class GetSandboxConnectionInfoRequest$Type extends MessageType<GetSandboxConnectionInfoRequest> {
1834
1992
  constructor();
1835
1993
  create(value?: PartialMessage<GetSandboxConnectionInfoRequest>): GetSandboxConnectionInfoRequest;
@@ -2000,6 +2158,26 @@ declare class GetClusterByResourceGroupResponse$Type extends MessageType<GetClus
2000
2158
  * @generated MessageType for protobuf message replit.goval.api.lore.GetClusterByResourceGroupResponse
2001
2159
  */
2002
2160
  export declare const GetClusterByResourceGroupResponse: GetClusterByResourceGroupResponse$Type;
2161
+ declare class RestoreResourceGroupPlacementRequest$Type extends MessageType<RestoreResourceGroupPlacementRequest> {
2162
+ constructor();
2163
+ create(value?: PartialMessage<RestoreResourceGroupPlacementRequest>): RestoreResourceGroupPlacementRequest;
2164
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestoreResourceGroupPlacementRequest): RestoreResourceGroupPlacementRequest;
2165
+ internalBinaryWrite(message: RestoreResourceGroupPlacementRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2166
+ }
2167
+ /**
2168
+ * @generated MessageType for protobuf message replit.goval.api.lore.RestoreResourceGroupPlacementRequest
2169
+ */
2170
+ export declare const RestoreResourceGroupPlacementRequest: RestoreResourceGroupPlacementRequest$Type;
2171
+ declare class RestoreResourceGroupPlacementResponse$Type extends MessageType<RestoreResourceGroupPlacementResponse> {
2172
+ constructor();
2173
+ create(value?: PartialMessage<RestoreResourceGroupPlacementResponse>): RestoreResourceGroupPlacementResponse;
2174
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestoreResourceGroupPlacementResponse): RestoreResourceGroupPlacementResponse;
2175
+ internalBinaryWrite(message: RestoreResourceGroupPlacementResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2176
+ }
2177
+ /**
2178
+ * @generated MessageType for protobuf message replit.goval.api.lore.RestoreResourceGroupPlacementResponse
2179
+ */
2180
+ export declare const RestoreResourceGroupPlacementResponse: RestoreResourceGroupPlacementResponse$Type;
2003
2181
  declare class BatchGetCellByResourceGroupRequest$Type extends MessageType<BatchGetCellByResourceGroupRequest> {
2004
2182
  constructor();
2005
2183
  create(value?: PartialMessage<BatchGetCellByResourceGroupRequest>): BatchGetCellByResourceGroupRequest;
@@ -2370,6 +2548,26 @@ declare class SetOrgHomeCellResponse$Type extends MessageType<SetOrgHomeCellResp
2370
2548
  * @generated MessageType for protobuf message replit.goval.api.lore.SetOrgHomeCellResponse
2371
2549
  */
2372
2550
  export declare const SetOrgHomeCellResponse: SetOrgHomeCellResponse$Type;
2551
+ declare class DeleteOrgHomeCellRequest$Type extends MessageType<DeleteOrgHomeCellRequest> {
2552
+ constructor();
2553
+ create(value?: PartialMessage<DeleteOrgHomeCellRequest>): DeleteOrgHomeCellRequest;
2554
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOrgHomeCellRequest): DeleteOrgHomeCellRequest;
2555
+ internalBinaryWrite(message: DeleteOrgHomeCellRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2556
+ }
2557
+ /**
2558
+ * @generated MessageType for protobuf message replit.goval.api.lore.DeleteOrgHomeCellRequest
2559
+ */
2560
+ export declare const DeleteOrgHomeCellRequest: DeleteOrgHomeCellRequest$Type;
2561
+ declare class DeleteOrgHomeCellResponse$Type extends MessageType<DeleteOrgHomeCellResponse> {
2562
+ constructor();
2563
+ create(value?: PartialMessage<DeleteOrgHomeCellResponse>): DeleteOrgHomeCellResponse;
2564
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOrgHomeCellResponse): DeleteOrgHomeCellResponse;
2565
+ internalBinaryWrite(message: DeleteOrgHomeCellResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2566
+ }
2567
+ /**
2568
+ * @generated MessageType for protobuf message replit.goval.api.lore.DeleteOrgHomeCellResponse
2569
+ */
2570
+ export declare const DeleteOrgHomeCellResponse: DeleteOrgHomeCellResponse$Type;
2373
2571
  declare class TransferOrgHomeCellRequest$Type extends MessageType<TransferOrgHomeCellRequest> {
2374
2572
  constructor();
2375
2573
  create(value?: PartialMessage<TransferOrgHomeCellRequest>): TransferOrgHomeCellRequest;