@replit/protocol 0.4.32 → 0.6.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,20 +6,32 @@ import type { AddTombstoneResponse } from "./repl.js";
6
6
  import type { AddTombstoneRequest } from "./repl.js";
7
7
  import type { EvictReplResponse } from "./repl.js";
8
8
  import type { EvictReplRequest } from "./repl.js";
9
+ import type { RestoreReplResponse } from "./repl.js";
10
+ import type { RestoreReplRequest } from "./repl.js";
9
11
  import type { DeleteReplResponse } from "./repl.js";
10
12
  import type { DeleteReplRequest } from "./repl.js";
11
13
  import type { GetResourceGroupResponse } from "./repl.js";
12
14
  import type { GetResourceGroupRequest } from "./repl.js";
13
15
  import type { GetReplResponse } from "./repl.js";
14
16
  import type { GetReplRequest } from "./repl.js";
17
+ import type { PurgeResourceGroupResponse } from "./repl.js";
18
+ import type { PurgeResourceGroupRequest } from "./repl.js";
19
+ import type { RestoreResourceGroupResponse } from "./repl.js";
20
+ import type { RestoreResourceGroupRequest } from "./repl.js";
15
21
  import type { DeleteResourceGroupResponse } from "./repl.js";
16
22
  import type { DeleteResourceGroupRequest } from "./repl.js";
23
+ import type { BackfillLegacyResourceGroupResponse } from "./repl.js";
24
+ import type { BackfillLegacyResourceGroupRequest } from "./repl.js";
17
25
  import type { CreateResourceGroupResponse } from "./repl.js";
18
26
  import type { CreateResourceGroupRequest } from "./repl.js";
19
27
  import type { CreateReplResponse } from "./repl.js";
20
28
  import type { CreateReplRequest } from "./repl.js";
29
+ import type { RestoreSandboxResponse } from "./repl.js";
30
+ import type { RestoreSandboxRequest } from "./repl.js";
21
31
  import type { DeleteSandboxResponse } from "./repl.js";
22
32
  import type { DeleteSandboxRequest } from "./repl.js";
33
+ import type { PatchSandboxResponse } from "./repl.js";
34
+ import type { PatchSandboxRequest } from "./repl.js";
23
35
  import type { UpdateSandboxResponse } from "./repl.js";
24
36
  import type { UpdateSandboxRequest } from "./repl.js";
25
37
  import type { CreateSandboxResponse } from "./repl.js";
@@ -47,12 +59,29 @@ export interface IReplServiceClient {
47
59
  * @generated from protobuf rpc: UpdateSandbox
48
60
  */
49
61
  updateSandbox(input: UpdateSandboxRequest, options?: RpcOptions): UnaryCall<UpdateSandboxRequest, UpdateSandboxResponse>;
62
+ /**
63
+ * PatchSandbox applies only the fields selected by the request's
64
+ * update_mask (currently just use_repl_shield). The patch updates the
65
+ * running repl in place and never restarts or re-places it. It will
66
+ * absorb UpdateSandbox's extra mount handling before UpdateSandbox is
67
+ * deprecated.
68
+ *
69
+ * @generated from protobuf rpc: PatchSandbox
70
+ */
71
+ patchSandbox(input: PatchSandboxRequest, options?: RpcOptions): UnaryCall<PatchSandboxRequest, PatchSandboxResponse>;
50
72
  /**
51
73
  * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
52
74
  *
53
75
  * @generated from protobuf rpc: DeleteSandbox
54
76
  */
55
77
  deleteSandbox(input: DeleteSandboxRequest, options?: RpcOptions): UnaryCall<DeleteSandboxRequest, DeleteSandboxResponse>;
78
+ /**
79
+ * RestoreSandbox has RestoreRepl semantics. The sandbox ID and
80
+ * resource-group ID are required.
81
+ *
82
+ * @generated from protobuf rpc: RestoreSandbox
83
+ */
84
+ restoreSandbox(input: RestoreSandboxRequest, options?: RpcOptions): UnaryCall<RestoreSandboxRequest, RestoreSandboxResponse>;
56
85
  /**
57
86
  * CreateRepl registers a new repl and creates its margarine manifests.
58
87
  * The source field determines how disks are initialized (empty, forked
@@ -67,12 +96,35 @@ export interface IReplServiceClient {
67
96
  * @generated from protobuf rpc: CreateResourceGroup
68
97
  */
69
98
  createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
99
+ /**
100
+ * @generated from protobuf rpc: BackfillLegacyResourceGroup
101
+ */
102
+ backfillLegacyResourceGroup(input: BackfillLegacyResourceGroupRequest, options?: RpcOptions): UnaryCall<BackfillLegacyResourceGroupRequest, BackfillLegacyResourceGroupResponse>;
70
103
  /**
71
104
  * DeleteResourceGroup soft-deletes a resource group and all its repls.
72
105
  *
73
106
  * @generated from protobuf rpc: DeleteResourceGroup
74
107
  */
75
108
  deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
109
+ /**
110
+ * RestoreResourceGroup clears only the group's deletion marker. Members
111
+ * deleted individually remain deleted. Tombstones are unchanged.
112
+ * Idempotent; returns NOT_FOUND when the group metadata is absent.
113
+ * Returns FAILED_PRECONDITION if the group was deleted more than 30 days ago.
114
+ * Metadata only: transfer-purged groups must never be restored.
115
+ *
116
+ * @generated from protobuf rpc: RestoreResourceGroup
117
+ */
118
+ restoreResourceGroup(input: RestoreResourceGroupRequest, options?: RpcOptions): UnaryCall<RestoreResourceGroupRequest, RestoreResourceGroupResponse>;
119
+ /**
120
+ * PurgeResourceGroup hard-deletes a soft-deleted resource group's
121
+ * contents: the members' workload CRs, their manifest objects, and their
122
+ * database rows. The soft-deleted group row itself is kept; the caller's
123
+ * lifecycle owns it. Refuses live groups; idempotent.
124
+ *
125
+ * @generated from protobuf rpc: PurgeResourceGroup
126
+ */
127
+ purgeResourceGroup(input: PurgeResourceGroupRequest, options?: RpcOptions): UnaryCall<PurgeResourceGroupRequest, PurgeResourceGroupResponse>;
76
128
  /**
77
129
  * GetRepl returns a repl and all its associated resource metadata.
78
130
  *
@@ -100,6 +152,21 @@ export interface IReplServiceClient {
100
152
  * @generated from protobuf rpc: DeleteRepl
101
153
  */
102
154
  deleteRepl(input: DeleteReplRequest, options?: RpcOptions): UnaryCall<DeleteReplRequest, DeleteReplResponse>;
155
+ /**
156
+ * RestoreRepl clears the named repl's deletion marker and reactivates its
157
+ * group if deleted, including when the named repl is the main repl.
158
+ * Other repls, images, and image checkouts are unchanged. Members deleted
159
+ * only through the group become accessible again; individually deleted
160
+ * members remain deleted.
161
+ * Tombstones are unchanged and workloads are not started.
162
+ * Idempotent; returns NOT_FOUND when repl metadata is absent, or
163
+ * ALREADY_EXISTS if another live main repl occupies the group.
164
+ * Returns FAILED_PRECONDITION if the repl or its group was deleted more
165
+ * than 30 days ago. Transfer-purged resources must never be restored.
166
+ *
167
+ * @generated from protobuf rpc: RestoreRepl
168
+ */
169
+ restoreRepl(input: RestoreReplRequest, options?: RpcOptions): UnaryCall<RestoreReplRequest, RestoreReplResponse>;
103
170
  /**
104
171
  * EvictRepl stops the currently running repl, if any, without tombstoning
105
172
  * or soft-deleting Jetplane metadata. The repl can be placed again
@@ -159,12 +226,29 @@ export declare class ReplServiceClient implements IReplServiceClient, ServiceInf
159
226
  * @generated from protobuf rpc: UpdateSandbox
160
227
  */
161
228
  updateSandbox(input: UpdateSandboxRequest, options?: RpcOptions): UnaryCall<UpdateSandboxRequest, UpdateSandboxResponse>;
229
+ /**
230
+ * PatchSandbox applies only the fields selected by the request's
231
+ * update_mask (currently just use_repl_shield). The patch updates the
232
+ * running repl in place and never restarts or re-places it. It will
233
+ * absorb UpdateSandbox's extra mount handling before UpdateSandbox is
234
+ * deprecated.
235
+ *
236
+ * @generated from protobuf rpc: PatchSandbox
237
+ */
238
+ patchSandbox(input: PatchSandboxRequest, options?: RpcOptions): UnaryCall<PatchSandboxRequest, PatchSandboxResponse>;
162
239
  /**
163
240
  * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
164
241
  *
165
242
  * @generated from protobuf rpc: DeleteSandbox
166
243
  */
167
244
  deleteSandbox(input: DeleteSandboxRequest, options?: RpcOptions): UnaryCall<DeleteSandboxRequest, DeleteSandboxResponse>;
245
+ /**
246
+ * RestoreSandbox has RestoreRepl semantics. The sandbox ID and
247
+ * resource-group ID are required.
248
+ *
249
+ * @generated from protobuf rpc: RestoreSandbox
250
+ */
251
+ restoreSandbox(input: RestoreSandboxRequest, options?: RpcOptions): UnaryCall<RestoreSandboxRequest, RestoreSandboxResponse>;
168
252
  /**
169
253
  * CreateRepl registers a new repl and creates its margarine manifests.
170
254
  * The source field determines how disks are initialized (empty, forked
@@ -179,12 +263,35 @@ export declare class ReplServiceClient implements IReplServiceClient, ServiceInf
179
263
  * @generated from protobuf rpc: CreateResourceGroup
180
264
  */
181
265
  createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
266
+ /**
267
+ * @generated from protobuf rpc: BackfillLegacyResourceGroup
268
+ */
269
+ backfillLegacyResourceGroup(input: BackfillLegacyResourceGroupRequest, options?: RpcOptions): UnaryCall<BackfillLegacyResourceGroupRequest, BackfillLegacyResourceGroupResponse>;
182
270
  /**
183
271
  * DeleteResourceGroup soft-deletes a resource group and all its repls.
184
272
  *
185
273
  * @generated from protobuf rpc: DeleteResourceGroup
186
274
  */
187
275
  deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
276
+ /**
277
+ * RestoreResourceGroup clears only the group's deletion marker. Members
278
+ * deleted individually remain deleted. Tombstones are unchanged.
279
+ * Idempotent; returns NOT_FOUND when the group metadata is absent.
280
+ * Returns FAILED_PRECONDITION if the group was deleted more than 30 days ago.
281
+ * Metadata only: transfer-purged groups must never be restored.
282
+ *
283
+ * @generated from protobuf rpc: RestoreResourceGroup
284
+ */
285
+ restoreResourceGroup(input: RestoreResourceGroupRequest, options?: RpcOptions): UnaryCall<RestoreResourceGroupRequest, RestoreResourceGroupResponse>;
286
+ /**
287
+ * PurgeResourceGroup hard-deletes a soft-deleted resource group's
288
+ * contents: the members' workload CRs, their manifest objects, and their
289
+ * database rows. The soft-deleted group row itself is kept; the caller's
290
+ * lifecycle owns it. Refuses live groups; idempotent.
291
+ *
292
+ * @generated from protobuf rpc: PurgeResourceGroup
293
+ */
294
+ purgeResourceGroup(input: PurgeResourceGroupRequest, options?: RpcOptions): UnaryCall<PurgeResourceGroupRequest, PurgeResourceGroupResponse>;
188
295
  /**
189
296
  * GetRepl returns a repl and all its associated resource metadata.
190
297
  *
@@ -212,6 +319,21 @@ export declare class ReplServiceClient implements IReplServiceClient, ServiceInf
212
319
  * @generated from protobuf rpc: DeleteRepl
213
320
  */
214
321
  deleteRepl(input: DeleteReplRequest, options?: RpcOptions): UnaryCall<DeleteReplRequest, DeleteReplResponse>;
322
+ /**
323
+ * RestoreRepl clears the named repl's deletion marker and reactivates its
324
+ * group if deleted, including when the named repl is the main repl.
325
+ * Other repls, images, and image checkouts are unchanged. Members deleted
326
+ * only through the group become accessible again; individually deleted
327
+ * members remain deleted.
328
+ * Tombstones are unchanged and workloads are not started.
329
+ * Idempotent; returns NOT_FOUND when repl metadata is absent, or
330
+ * ALREADY_EXISTS if another live main repl occupies the group.
331
+ * Returns FAILED_PRECONDITION if the repl or its group was deleted more
332
+ * than 30 days ago. Transfer-purged resources must never be restored.
333
+ *
334
+ * @generated from protobuf rpc: RestoreRepl
335
+ */
336
+ restoreRepl(input: RestoreReplRequest, options?: RpcOptions): UnaryCall<RestoreReplRequest, RestoreReplResponse>;
215
337
  /**
216
338
  * EvictRepl stops the currently running repl, if any, without tombstoning
217
339
  * or soft-deleting Jetplane metadata. The repl can be placed again
@@ -33,13 +33,36 @@ export class ReplServiceClient {
33
33
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
34
34
  return stackIntercept("unary", this._transport, method, opt, input);
35
35
  }
36
+ /**
37
+ * PatchSandbox applies only the fields selected by the request's
38
+ * update_mask (currently just use_repl_shield). The patch updates the
39
+ * running repl in place and never restarts or re-places it. It will
40
+ * absorb UpdateSandbox's extra mount handling before UpdateSandbox is
41
+ * deprecated.
42
+ *
43
+ * @generated from protobuf rpc: PatchSandbox
44
+ */
45
+ patchSandbox(input, options) {
46
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
47
+ return stackIntercept("unary", this._transport, method, opt, input);
48
+ }
36
49
  /**
37
50
  * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
38
51
  *
39
52
  * @generated from protobuf rpc: DeleteSandbox
40
53
  */
41
54
  deleteSandbox(input, options) {
42
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
55
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
56
+ return stackIntercept("unary", this._transport, method, opt, input);
57
+ }
58
+ /**
59
+ * RestoreSandbox has RestoreRepl semantics. The sandbox ID and
60
+ * resource-group ID are required.
61
+ *
62
+ * @generated from protobuf rpc: RestoreSandbox
63
+ */
64
+ restoreSandbox(input, options) {
65
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
43
66
  return stackIntercept("unary", this._transport, method, opt, input);
44
67
  }
45
68
  /**
@@ -50,7 +73,7 @@ export class ReplServiceClient {
50
73
  * @generated from protobuf rpc: CreateRepl
51
74
  */
52
75
  createRepl(input, options) {
53
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
76
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
54
77
  return stackIntercept("unary", this._transport, method, opt, input);
55
78
  }
56
79
  /**
@@ -59,7 +82,14 @@ export class ReplServiceClient {
59
82
  * @generated from protobuf rpc: CreateResourceGroup
60
83
  */
61
84
  createResourceGroup(input, options) {
62
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
85
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
86
+ return stackIntercept("unary", this._transport, method, opt, input);
87
+ }
88
+ /**
89
+ * @generated from protobuf rpc: BackfillLegacyResourceGroup
90
+ */
91
+ backfillLegacyResourceGroup(input, options) {
92
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
63
93
  return stackIntercept("unary", this._transport, method, opt, input);
64
94
  }
65
95
  /**
@@ -68,7 +98,32 @@ export class ReplServiceClient {
68
98
  * @generated from protobuf rpc: DeleteResourceGroup
69
99
  */
70
100
  deleteResourceGroup(input, options) {
71
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
101
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
102
+ return stackIntercept("unary", this._transport, method, opt, input);
103
+ }
104
+ /**
105
+ * RestoreResourceGroup clears only the group's deletion marker. Members
106
+ * deleted individually remain deleted. Tombstones are unchanged.
107
+ * Idempotent; returns NOT_FOUND when the group metadata is absent.
108
+ * Returns FAILED_PRECONDITION if the group was deleted more than 30 days ago.
109
+ * Metadata only: transfer-purged groups must never be restored.
110
+ *
111
+ * @generated from protobuf rpc: RestoreResourceGroup
112
+ */
113
+ restoreResourceGroup(input, options) {
114
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
115
+ return stackIntercept("unary", this._transport, method, opt, input);
116
+ }
117
+ /**
118
+ * PurgeResourceGroup hard-deletes a soft-deleted resource group's
119
+ * contents: the members' workload CRs, their manifest objects, and their
120
+ * database rows. The soft-deleted group row itself is kept; the caller's
121
+ * lifecycle owns it. Refuses live groups; idempotent.
122
+ *
123
+ * @generated from protobuf rpc: PurgeResourceGroup
124
+ */
125
+ purgeResourceGroup(input, options) {
126
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
72
127
  return stackIntercept("unary", this._transport, method, opt, input);
73
128
  }
74
129
  /**
@@ -77,7 +132,7 @@ export class ReplServiceClient {
77
132
  * @generated from protobuf rpc: GetRepl
78
133
  */
79
134
  getRepl(input, options) {
80
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
135
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
81
136
  return stackIntercept("unary", this._transport, method, opt, input);
82
137
  }
83
138
  /**
@@ -89,7 +144,7 @@ export class ReplServiceClient {
89
144
  * @generated from protobuf rpc: GetResourceGroup
90
145
  */
91
146
  getResourceGroup(input, options) {
92
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
147
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
93
148
  return stackIntercept("unary", this._transport, method, opt, input);
94
149
  }
95
150
  /**
@@ -104,7 +159,25 @@ export class ReplServiceClient {
104
159
  * @generated from protobuf rpc: DeleteRepl
105
160
  */
106
161
  deleteRepl(input, options) {
107
- const method = this.methods[8], opt = this._transport.mergeOptions(options);
162
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
163
+ return stackIntercept("unary", this._transport, method, opt, input);
164
+ }
165
+ /**
166
+ * RestoreRepl clears the named repl's deletion marker and reactivates its
167
+ * group if deleted, including when the named repl is the main repl.
168
+ * Other repls, images, and image checkouts are unchanged. Members deleted
169
+ * only through the group become accessible again; individually deleted
170
+ * members remain deleted.
171
+ * Tombstones are unchanged and workloads are not started.
172
+ * Idempotent; returns NOT_FOUND when repl metadata is absent, or
173
+ * ALREADY_EXISTS if another live main repl occupies the group.
174
+ * Returns FAILED_PRECONDITION if the repl or its group was deleted more
175
+ * than 30 days ago. Transfer-purged resources must never be restored.
176
+ *
177
+ * @generated from protobuf rpc: RestoreRepl
178
+ */
179
+ restoreRepl(input, options) {
180
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
108
181
  return stackIntercept("unary", this._transport, method, opt, input);
109
182
  }
110
183
  /**
@@ -115,7 +188,7 @@ export class ReplServiceClient {
115
188
  * @generated from protobuf rpc: EvictRepl
116
189
  */
117
190
  evictRepl(input, options) {
118
- const method = this.methods[9], opt = this._transport.mergeOptions(options);
191
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
119
192
  return stackIntercept("unary", this._transport, method, opt, input);
120
193
  }
121
194
  /**
@@ -130,7 +203,7 @@ export class ReplServiceClient {
130
203
  * @generated from protobuf rpc: AddTombstone
131
204
  */
132
205
  addTombstone(input, options) {
133
- const method = this.methods[10], opt = this._transport.mergeOptions(options);
206
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
134
207
  return stackIntercept("unary", this._transport, method, opt, input);
135
208
  }
136
209
  /**
@@ -143,7 +216,7 @@ export class ReplServiceClient {
143
216
  * @generated from protobuf rpc: RemoveTombstone
144
217
  */
145
218
  removeTombstone(input, options) {
146
- const method = this.methods[11], opt = this._transport.mergeOptions(options);
219
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
147
220
  return stackIntercept("unary", this._transport, method, opt, input);
148
221
  }
149
222
  }