@replit/protocol 0.4.28 → 0.4.31

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.
@@ -42,6 +42,10 @@ export interface CreateAgentRequest {
42
42
  * @generated from protobuf field: string statsig_ctx = 8
43
43
  */
44
44
  statsigCtx: string;
45
+ /**
46
+ * @generated from protobuf field: optional string org_id = 15
47
+ */
48
+ orgId?: string;
45
49
  /**
46
50
  * @generated from protobuf oneof: config
47
51
  */
@@ -19,6 +19,7 @@ class CreateAgentRequest$Type extends MessageType {
19
19
  { no: 6, name: "created_by_user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
20
20
  { no: 7, name: "customer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
21
21
  { no: 8, name: "statsig_ctx", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
22
+ { no: 15, name: "org_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
22
23
  { no: 9, name: "code", kind: "message", oneof: "config", T: () => CreateAgentRequest_CodeConfig },
23
24
  { no: 10, name: "mission", kind: "message", oneof: "config", T: () => CreateAgentRequest_MissionConfig },
24
25
  { no: 11, name: "planning", kind: "message", oneof: "config", T: () => CreateAgentRequest_PlanningConfig },
@@ -67,6 +68,9 @@ class CreateAgentRequest$Type extends MessageType {
67
68
  case /* string statsig_ctx */ 8:
68
69
  message.statsigCtx = reader.string();
69
70
  break;
71
+ case /* optional string org_id */ 15:
72
+ message.orgId = reader.string();
73
+ break;
70
74
  case /* chateau.resources.v1.CreateAgentRequest.CodeConfig code */ 9:
71
75
  message.config = {
72
76
  oneofKind: "code",
@@ -148,6 +152,9 @@ class CreateAgentRequest$Type extends MessageType {
148
152
  /* chateau.resources.v1.CreateAgentRequest.TaskConfig task = 13; */
149
153
  if (message.config.oneofKind === "task")
150
154
  CreateAgentRequest_TaskConfig.internalBinaryWrite(message.config.task, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
155
+ /* optional string org_id = 15; */
156
+ if (message.orgId !== undefined)
157
+ writer.tag(15, WireType.LengthDelimited).string(message.orgId);
151
158
  let u = options.writeUnknownFields;
152
159
  if (u !== false)
153
160
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -11,14 +11,6 @@ import { MessageType } from "@protobuf-ts/runtime";
11
11
  */
12
12
  export interface Boosted {
13
13
  }
14
- /**
15
- * Deprecated: Viktor is no longer evaluated; the feature was removed.
16
- *
17
- * @deprecated
18
- * @generated from protobuf message replit.goval.api.features.Viktor
19
- */
20
- export interface Viktor {
21
- }
22
14
  /**
23
15
  * Deprecated: Notary is now always enabled; this feature is no longer
24
16
  * evaluated.
@@ -44,15 +36,6 @@ export interface Feature {
44
36
  * @generated from protobuf field: replit.goval.api.features.Boosted boosted = 2
45
37
  */
46
38
  boosted: Boosted;
47
- } | {
48
- oneofKind: "viktor";
49
- /**
50
- * Deprecated: Viktor is no longer evaluated; the feature was removed.
51
- *
52
- * @deprecated
53
- * @generated from protobuf field: replit.goval.api.features.Viktor viktor = 5 [deprecated = true]
54
- */
55
- viktor: Viktor;
56
39
  } | {
57
40
  oneofKind: "notary";
58
41
  /**
@@ -85,17 +68,6 @@ declare class Boosted$Type extends MessageType<Boosted> {
85
68
  * @generated MessageType for protobuf message replit.goval.api.features.Boosted
86
69
  */
87
70
  export declare const Boosted: Boosted$Type;
88
- declare class Viktor$Type extends MessageType<Viktor> {
89
- constructor();
90
- create(value?: PartialMessage<Viktor>): Viktor;
91
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Viktor): Viktor;
92
- internalBinaryWrite(message: Viktor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
93
- }
94
- /**
95
- * @deprecated
96
- * @generated MessageType for protobuf message replit.goval.api.features.Viktor
97
- */
98
- export declare const Viktor: Viktor$Type;
99
71
  declare class Notary$Type extends MessageType<Notary> {
100
72
  constructor();
101
73
  create(value?: PartialMessage<Notary>): Notary;
@@ -44,45 +44,6 @@ class Boosted$Type extends MessageType {
44
44
  */
45
45
  export const Boosted = new Boosted$Type();
46
46
  // @generated message type with reflection information, may provide speed optimized methods
47
- class Viktor$Type extends MessageType {
48
- constructor() {
49
- super("replit.goval.api.features.Viktor", []);
50
- }
51
- create(value) {
52
- const message = globalThis.Object.create((this.messagePrototype));
53
- if (value !== undefined)
54
- reflectionMergePartial(this, message, value);
55
- return message;
56
- }
57
- internalBinaryRead(reader, length, options, target) {
58
- let message = target ?? this.create(), end = reader.pos + length;
59
- while (reader.pos < end) {
60
- let [fieldNo, wireType] = reader.tag();
61
- switch (fieldNo) {
62
- default:
63
- let u = options.readUnknownField;
64
- if (u === "throw")
65
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
66
- let d = reader.skip(wireType);
67
- if (u !== false)
68
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
69
- }
70
- }
71
- return message;
72
- }
73
- internalBinaryWrite(message, writer, options) {
74
- let u = options.writeUnknownFields;
75
- if (u !== false)
76
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
77
- return writer;
78
- }
79
- }
80
- /**
81
- * @deprecated
82
- * @generated MessageType for protobuf message replit.goval.api.features.Viktor
83
- */
84
- export const Viktor = new Viktor$Type();
85
- // @generated message type with reflection information, may provide speed optimized methods
86
47
  class Notary$Type extends MessageType {
87
48
  constructor() {
88
49
  super("replit.goval.api.features.Notary", []);
@@ -126,7 +87,6 @@ class Feature$Type extends MessageType {
126
87
  constructor() {
127
88
  super("replit.goval.api.features.Feature", [
128
89
  { no: 2, name: "boosted", kind: "message", oneof: "feature", T: () => Boosted },
129
- { no: 5, name: "viktor", kind: "message", oneof: "feature", T: () => Viktor },
130
90
  { no: 6, name: "notary", kind: "message", oneof: "feature", T: () => Notary },
131
91
  { no: 3, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
132
92
  ]);
@@ -150,12 +110,6 @@ class Feature$Type extends MessageType {
150
110
  boosted: Boosted.internalBinaryRead(reader, reader.uint32(), options, message.feature.boosted)
151
111
  };
152
112
  break;
153
- case /* replit.goval.api.features.Viktor viktor = 5 [deprecated = true] */ 5:
154
- message.feature = {
155
- oneofKind: "viktor",
156
- viktor: Viktor.internalBinaryRead(reader, reader.uint32(), options, message.feature.viktor)
157
- };
158
- break;
159
113
  case /* replit.goval.api.features.Notary notary = 6 [deprecated = true] */ 6:
160
114
  message.feature = {
161
115
  oneofKind: "notary",
@@ -183,9 +137,6 @@ class Feature$Type extends MessageType {
183
137
  /* bool required = 3; */
184
138
  if (message.required !== false)
185
139
  writer.tag(3, WireType.Varint).bool(message.required);
186
- /* replit.goval.api.features.Viktor viktor = 5 [deprecated = true]; */
187
- if (message.feature.oneofKind === "viktor")
188
- Viktor.internalBinaryWrite(message.feature.viktor, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
189
140
  /* replit.goval.api.features.Notary notary = 6 [deprecated = true]; */
190
141
  if (message.feature.oneofKind === "notary")
191
142
  Notary.internalBinaryWrite(message.feature.notary, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
@@ -0,0 +1,249 @@
1
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
2
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
3
+ import type { RemoveTombstoneResponse } from "./repl.js";
4
+ import type { RemoveTombstoneRequest } from "./repl.js";
5
+ import type { AddTombstoneResponse } from "./repl.js";
6
+ import type { AddTombstoneRequest } from "./repl.js";
7
+ import type { EvictReplResponse } from "./repl.js";
8
+ import type { EvictReplRequest } from "./repl.js";
9
+ import type { DeleteReplResponse } from "./repl.js";
10
+ import type { DeleteReplRequest } from "./repl.js";
11
+ import type { GetResourceGroupResponse } from "./repl.js";
12
+ import type { GetResourceGroupRequest } from "./repl.js";
13
+ import type { GetReplResponse } from "./repl.js";
14
+ import type { GetReplRequest } from "./repl.js";
15
+ import type { DeleteResourceGroupResponse } from "./repl.js";
16
+ import type { DeleteResourceGroupRequest } from "./repl.js";
17
+ import type { CreateResourceGroupResponse } from "./repl.js";
18
+ import type { CreateResourceGroupRequest } from "./repl.js";
19
+ import type { CreateReplResponse } from "./repl.js";
20
+ import type { CreateReplRequest } from "./repl.js";
21
+ import type { DeleteSandboxResponse } from "./repl.js";
22
+ import type { DeleteSandboxRequest } from "./repl.js";
23
+ import type { UpdateSandboxResponse } from "./repl.js";
24
+ import type { UpdateSandboxRequest } from "./repl.js";
25
+ import type { CreateSandboxResponse } from "./repl.js";
26
+ import type { CreateSandboxRequest } from "./repl.js";
27
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
28
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
29
+ /**
30
+ * ReplService manages the lifecycle of repls and their resources within a
31
+ * Jetplane cluster. Called by lore for repl creation, fork, and deletion.
32
+ *
33
+ * @generated from protobuf service replit.goval.api.jetplane.repl.ReplService
34
+ */
35
+ export interface IReplServiceClient {
36
+ /**
37
+ * CreateSandbox creates a Jetplane-authoritative sandbox in an existing
38
+ * resource group. It is the successor to CreateRepl for new callers.
39
+ *
40
+ * @generated from protobuf rpc: CreateSandbox
41
+ */
42
+ createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
43
+ /**
44
+ * UpdateSandbox replaces or removes a sandbox's extra mount. A running
45
+ * sandbox keeps its current mount until it is next placed.
46
+ *
47
+ * @generated from protobuf rpc: UpdateSandbox
48
+ */
49
+ updateSandbox(input: UpdateSandboxRequest, options?: RpcOptions): UnaryCall<UpdateSandboxRequest, UpdateSandboxResponse>;
50
+ /**
51
+ * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
52
+ *
53
+ * @generated from protobuf rpc: DeleteSandbox
54
+ */
55
+ deleteSandbox(input: DeleteSandboxRequest, options?: RpcOptions): UnaryCall<DeleteSandboxRequest, DeleteSandboxResponse>;
56
+ /**
57
+ * CreateRepl registers a new repl and creates its margarine manifests.
58
+ * The source field determines how disks are initialized (empty, forked
59
+ * from another repl, or forked from a base disk image).
60
+ *
61
+ * @generated from protobuf rpc: CreateRepl
62
+ */
63
+ createRepl(input: CreateReplRequest, options?: RpcOptions): UnaryCall<CreateReplRequest, CreateReplResponse>;
64
+ /**
65
+ * CreateResourceGroup registers an empty resource group.
66
+ *
67
+ * @generated from protobuf rpc: CreateResourceGroup
68
+ */
69
+ createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
70
+ /**
71
+ * DeleteResourceGroup soft-deletes a resource group and all its repls.
72
+ *
73
+ * @generated from protobuf rpc: DeleteResourceGroup
74
+ */
75
+ deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
76
+ /**
77
+ * GetRepl returns a repl and all its associated resource metadata.
78
+ *
79
+ * @generated from protobuf rpc: GetRepl
80
+ */
81
+ getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
82
+ /**
83
+ * GetResourceGroup names every repl in a resource group. Jetplane holds
84
+ * the only authoritative membership: a repl's ID only hints at its group,
85
+ * because CreateRepl accepts a resource_group_id that need not match it.
86
+ * Returns NOT_FOUND when the group is not registered.
87
+ *
88
+ * @generated from protobuf rpc: GetResourceGroup
89
+ */
90
+ getResourceGroup(input: GetResourceGroupRequest, options?: RpcOptions): UnaryCall<GetResourceGroupRequest, GetResourceGroupResponse>;
91
+ /**
92
+ * DeleteRepl synchronously soft-deletes a repl and its resources. GCS data
93
+ * and database metadata remain available until a separate cleanup run
94
+ * removes them after its configured retention period. After this RPC returns
95
+ * the repl is no longer visible to GetRepl or other queries.
96
+ *
97
+ * Idempotency: returns OK when the repl is live or still represented by
98
+ * retained soft-deleted metadata. Returns NOT_FOUND when no row remains,
99
+ * including repls that were never registered or were permanently removed
100
+ * after the retention period.
101
+ *
102
+ * @generated from protobuf rpc: DeleteRepl
103
+ */
104
+ deleteRepl(input: DeleteReplRequest, options?: RpcOptions): UnaryCall<DeleteReplRequest, DeleteReplResponse>;
105
+ /**
106
+ * EvictRepl stops the currently running repl, if any, without tombstoning
107
+ * or soft-deleting Jetplane metadata. The repl can be placed again
108
+ * immediately by RuntimeService.PlaceRepl.
109
+ *
110
+ * @generated from protobuf rpc: EvictRepl
111
+ */
112
+ evictRepl(input: EvictReplRequest, options?: RpcOptions): UnaryCall<EvictReplRequest, EvictReplResponse>;
113
+ /**
114
+ * AddTombstone marks a repl as tombstoned, preventing it from being placed
115
+ * via RuntimeService.PlaceRepl until the tombstone expires (now + ttl).
116
+ * Also best-effort deletes the Kubernetes Repl CR to stop any running
117
+ * instance. Called by lore during transfer-out (before manifest copy) and
118
+ * during repl deletion. Idempotent: re-tombstoning an already-tombstoned
119
+ * repl updates the reason and expiration, and returns success. Returns
120
+ * NOT_FOUND if the repl does not exist or is already soft-deleted.
121
+ *
122
+ * @generated from protobuf rpc: AddTombstone
123
+ */
124
+ addTombstone(input: AddTombstoneRequest, options?: RpcOptions): UnaryCall<AddTombstoneRequest, AddTombstoneResponse>;
125
+ /**
126
+ * RemoveTombstone clears the tombstone on a repl, allowing it to be placed
127
+ * again via RuntimeService.PlaceRepl. Called by lore when a transfer fails
128
+ * after tombstoning, to restore the source repl. Idempotent: removing a
129
+ * tombstone from a non-tombstoned repl returns success. Returns NOT_FOUND
130
+ * if the repl does not exist or is already soft-deleted.
131
+ *
132
+ * @generated from protobuf rpc: RemoveTombstone
133
+ */
134
+ removeTombstone(input: RemoveTombstoneRequest, options?: RpcOptions): UnaryCall<RemoveTombstoneRequest, RemoveTombstoneResponse>;
135
+ }
136
+ /**
137
+ * ReplService manages the lifecycle of repls and their resources within a
138
+ * Jetplane cluster. Called by lore for repl creation, fork, and deletion.
139
+ *
140
+ * @generated from protobuf service replit.goval.api.jetplane.repl.ReplService
141
+ */
142
+ export declare class ReplServiceClient implements IReplServiceClient, ServiceInfo {
143
+ private readonly _transport;
144
+ typeName: string;
145
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
146
+ options: {
147
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
148
+ };
149
+ constructor(_transport: RpcTransport);
150
+ /**
151
+ * CreateSandbox creates a Jetplane-authoritative sandbox in an existing
152
+ * resource group. It is the successor to CreateRepl for new callers.
153
+ *
154
+ * @generated from protobuf rpc: CreateSandbox
155
+ */
156
+ createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
157
+ /**
158
+ * UpdateSandbox replaces or removes a sandbox's extra mount. A running
159
+ * sandbox keeps its current mount until it is next placed.
160
+ *
161
+ * @generated from protobuf rpc: UpdateSandbox
162
+ */
163
+ updateSandbox(input: UpdateSandboxRequest, options?: RpcOptions): UnaryCall<UpdateSandboxRequest, UpdateSandboxResponse>;
164
+ /**
165
+ * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
166
+ *
167
+ * @generated from protobuf rpc: DeleteSandbox
168
+ */
169
+ deleteSandbox(input: DeleteSandboxRequest, options?: RpcOptions): UnaryCall<DeleteSandboxRequest, DeleteSandboxResponse>;
170
+ /**
171
+ * CreateRepl registers a new repl and creates its margarine manifests.
172
+ * The source field determines how disks are initialized (empty, forked
173
+ * from another repl, or forked from a base disk image).
174
+ *
175
+ * @generated from protobuf rpc: CreateRepl
176
+ */
177
+ createRepl(input: CreateReplRequest, options?: RpcOptions): UnaryCall<CreateReplRequest, CreateReplResponse>;
178
+ /**
179
+ * CreateResourceGroup registers an empty resource group.
180
+ *
181
+ * @generated from protobuf rpc: CreateResourceGroup
182
+ */
183
+ createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
184
+ /**
185
+ * DeleteResourceGroup soft-deletes a resource group and all its repls.
186
+ *
187
+ * @generated from protobuf rpc: DeleteResourceGroup
188
+ */
189
+ deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
190
+ /**
191
+ * GetRepl returns a repl and all its associated resource metadata.
192
+ *
193
+ * @generated from protobuf rpc: GetRepl
194
+ */
195
+ getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
196
+ /**
197
+ * GetResourceGroup names every repl in a resource group. Jetplane holds
198
+ * the only authoritative membership: a repl's ID only hints at its group,
199
+ * because CreateRepl accepts a resource_group_id that need not match it.
200
+ * Returns NOT_FOUND when the group is not registered.
201
+ *
202
+ * @generated from protobuf rpc: GetResourceGroup
203
+ */
204
+ getResourceGroup(input: GetResourceGroupRequest, options?: RpcOptions): UnaryCall<GetResourceGroupRequest, GetResourceGroupResponse>;
205
+ /**
206
+ * DeleteRepl synchronously soft-deletes a repl and its resources. GCS data
207
+ * and database metadata remain available until a separate cleanup run
208
+ * removes them after its configured retention period. After this RPC returns
209
+ * the repl is no longer visible to GetRepl or other queries.
210
+ *
211
+ * Idempotency: returns OK when the repl is live or still represented by
212
+ * retained soft-deleted metadata. Returns NOT_FOUND when no row remains,
213
+ * including repls that were never registered or were permanently removed
214
+ * after the retention period.
215
+ *
216
+ * @generated from protobuf rpc: DeleteRepl
217
+ */
218
+ deleteRepl(input: DeleteReplRequest, options?: RpcOptions): UnaryCall<DeleteReplRequest, DeleteReplResponse>;
219
+ /**
220
+ * EvictRepl stops the currently running repl, if any, without tombstoning
221
+ * or soft-deleting Jetplane metadata. The repl can be placed again
222
+ * immediately by RuntimeService.PlaceRepl.
223
+ *
224
+ * @generated from protobuf rpc: EvictRepl
225
+ */
226
+ evictRepl(input: EvictReplRequest, options?: RpcOptions): UnaryCall<EvictReplRequest, EvictReplResponse>;
227
+ /**
228
+ * AddTombstone marks a repl as tombstoned, preventing it from being placed
229
+ * via RuntimeService.PlaceRepl until the tombstone expires (now + ttl).
230
+ * Also best-effort deletes the Kubernetes Repl CR to stop any running
231
+ * instance. Called by lore during transfer-out (before manifest copy) and
232
+ * during repl deletion. Idempotent: re-tombstoning an already-tombstoned
233
+ * repl updates the reason and expiration, and returns success. Returns
234
+ * NOT_FOUND if the repl does not exist or is already soft-deleted.
235
+ *
236
+ * @generated from protobuf rpc: AddTombstone
237
+ */
238
+ addTombstone(input: AddTombstoneRequest, options?: RpcOptions): UnaryCall<AddTombstoneRequest, AddTombstoneResponse>;
239
+ /**
240
+ * RemoveTombstone clears the tombstone on a repl, allowing it to be placed
241
+ * again via RuntimeService.PlaceRepl. Called by lore when a transfer fails
242
+ * after tombstoning, to restore the source repl. Idempotent: removing a
243
+ * tombstone from a non-tombstoned repl returns success. Returns NOT_FOUND
244
+ * if the repl does not exist or is already soft-deleted.
245
+ *
246
+ * @generated from protobuf rpc: RemoveTombstone
247
+ */
248
+ removeTombstone(input: RemoveTombstoneRequest, options?: RpcOptions): UnaryCall<RemoveTombstoneRequest, RemoveTombstoneResponse>;
249
+ }
@@ -0,0 +1,151 @@
1
+ import { ReplService } from "./repl.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ /**
4
+ * ReplService manages the lifecycle of repls and their resources within a
5
+ * Jetplane cluster. Called by lore for repl creation, fork, and deletion.
6
+ *
7
+ * @generated from protobuf service replit.goval.api.jetplane.repl.ReplService
8
+ */
9
+ export class ReplServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = ReplService.typeName;
13
+ this.methods = ReplService.methods;
14
+ this.options = ReplService.options;
15
+ }
16
+ /**
17
+ * CreateSandbox creates a Jetplane-authoritative sandbox in an existing
18
+ * resource group. It is the successor to CreateRepl for new callers.
19
+ *
20
+ * @generated from protobuf rpc: CreateSandbox
21
+ */
22
+ createSandbox(input, options) {
23
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
24
+ return stackIntercept("unary", this._transport, method, opt, input);
25
+ }
26
+ /**
27
+ * UpdateSandbox replaces or removes a sandbox's extra mount. A running
28
+ * sandbox keeps its current mount until it is next placed.
29
+ *
30
+ * @generated from protobuf rpc: UpdateSandbox
31
+ */
32
+ updateSandbox(input, options) {
33
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
34
+ return stackIntercept("unary", this._transport, method, opt, input);
35
+ }
36
+ /**
37
+ * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
38
+ *
39
+ * @generated from protobuf rpc: DeleteSandbox
40
+ */
41
+ deleteSandbox(input, options) {
42
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
43
+ return stackIntercept("unary", this._transport, method, opt, input);
44
+ }
45
+ /**
46
+ * CreateRepl registers a new repl and creates its margarine manifests.
47
+ * The source field determines how disks are initialized (empty, forked
48
+ * from another repl, or forked from a base disk image).
49
+ *
50
+ * @generated from protobuf rpc: CreateRepl
51
+ */
52
+ createRepl(input, options) {
53
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
54
+ return stackIntercept("unary", this._transport, method, opt, input);
55
+ }
56
+ /**
57
+ * CreateResourceGroup registers an empty resource group.
58
+ *
59
+ * @generated from protobuf rpc: CreateResourceGroup
60
+ */
61
+ createResourceGroup(input, options) {
62
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
63
+ return stackIntercept("unary", this._transport, method, opt, input);
64
+ }
65
+ /**
66
+ * DeleteResourceGroup soft-deletes a resource group and all its repls.
67
+ *
68
+ * @generated from protobuf rpc: DeleteResourceGroup
69
+ */
70
+ deleteResourceGroup(input, options) {
71
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
72
+ return stackIntercept("unary", this._transport, method, opt, input);
73
+ }
74
+ /**
75
+ * GetRepl returns a repl and all its associated resource metadata.
76
+ *
77
+ * @generated from protobuf rpc: GetRepl
78
+ */
79
+ getRepl(input, options) {
80
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
81
+ return stackIntercept("unary", this._transport, method, opt, input);
82
+ }
83
+ /**
84
+ * GetResourceGroup names every repl in a resource group. Jetplane holds
85
+ * the only authoritative membership: a repl's ID only hints at its group,
86
+ * because CreateRepl accepts a resource_group_id that need not match it.
87
+ * Returns NOT_FOUND when the group is not registered.
88
+ *
89
+ * @generated from protobuf rpc: GetResourceGroup
90
+ */
91
+ getResourceGroup(input, options) {
92
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
93
+ return stackIntercept("unary", this._transport, method, opt, input);
94
+ }
95
+ /**
96
+ * DeleteRepl synchronously soft-deletes a repl and its resources. GCS data
97
+ * and database metadata remain available until a separate cleanup run
98
+ * removes them after its configured retention period. After this RPC returns
99
+ * the repl is no longer visible to GetRepl or other queries.
100
+ *
101
+ * Idempotency: returns OK when the repl is live or still represented by
102
+ * retained soft-deleted metadata. Returns NOT_FOUND when no row remains,
103
+ * including repls that were never registered or were permanently removed
104
+ * after the retention period.
105
+ *
106
+ * @generated from protobuf rpc: DeleteRepl
107
+ */
108
+ deleteRepl(input, options) {
109
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
110
+ return stackIntercept("unary", this._transport, method, opt, input);
111
+ }
112
+ /**
113
+ * EvictRepl stops the currently running repl, if any, without tombstoning
114
+ * or soft-deleting Jetplane metadata. The repl can be placed again
115
+ * immediately by RuntimeService.PlaceRepl.
116
+ *
117
+ * @generated from protobuf rpc: EvictRepl
118
+ */
119
+ evictRepl(input, options) {
120
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
121
+ return stackIntercept("unary", this._transport, method, opt, input);
122
+ }
123
+ /**
124
+ * AddTombstone marks a repl as tombstoned, preventing it from being placed
125
+ * via RuntimeService.PlaceRepl until the tombstone expires (now + ttl).
126
+ * Also best-effort deletes the Kubernetes Repl CR to stop any running
127
+ * instance. Called by lore during transfer-out (before manifest copy) and
128
+ * during repl deletion. Idempotent: re-tombstoning an already-tombstoned
129
+ * repl updates the reason and expiration, and returns success. Returns
130
+ * NOT_FOUND if the repl does not exist or is already soft-deleted.
131
+ *
132
+ * @generated from protobuf rpc: AddTombstone
133
+ */
134
+ addTombstone(input, options) {
135
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
136
+ return stackIntercept("unary", this._transport, method, opt, input);
137
+ }
138
+ /**
139
+ * RemoveTombstone clears the tombstone on a repl, allowing it to be placed
140
+ * again via RuntimeService.PlaceRepl. Called by lore when a transfer fails
141
+ * after tombstoning, to restore the source repl. Idempotent: removing a
142
+ * tombstone from a non-tombstoned repl returns success. Returns NOT_FOUND
143
+ * if the repl does not exist or is already soft-deleted.
144
+ *
145
+ * @generated from protobuf rpc: RemoveTombstone
146
+ */
147
+ removeTombstone(input, options) {
148
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
149
+ return stackIntercept("unary", this._transport, method, opt, input);
150
+ }
151
+ }