@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.
@@ -13,13 +13,53 @@ export class LoreClient {
13
13
  this.methods = Lore.methods;
14
14
  this.options = Lore.options;
15
15
  }
16
+ /**
17
+ * CreateSandbox routes creation to the Jetplane cell placed for the
18
+ * destination resource group. Lore does not persist a sandbox mapping.
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 routes to the Jetplane cell placed for the sandbox's
28
+ * resource group to replace or remove the sandbox's extra mount. A running
29
+ * sandbox keeps its current mount until it is next placed.
30
+ *
31
+ * @generated from protobuf rpc: UpdateSandbox
32
+ */
33
+ updateSandbox(input, options) {
34
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
35
+ return stackIntercept("unary", this._transport, method, opt, input);
36
+ }
37
+ /**
38
+ * GetSandboxConnectionInfo resolves the cell from resource-group placement
39
+ * and reads the Jetplane-authoritative sandbox metadata.
40
+ *
41
+ * @generated from protobuf rpc: GetSandboxConnectionInfo
42
+ */
43
+ getSandboxConnectionInfo(input, options) {
44
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
45
+ return stackIntercept("unary", this._transport, method, opt, input);
46
+ }
16
47
  /**
17
48
  * CreateResourceGroup registers an empty resource group in Jetplane.
18
49
  *
19
50
  * @generated from protobuf rpc: CreateResourceGroup
20
51
  */
21
52
  createResourceGroup(input, options) {
22
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
53
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
54
+ return stackIntercept("unary", this._transport, method, opt, input);
55
+ }
56
+ /**
57
+ * DeleteResourceGroup removes a resource group from Jetplane.
58
+ *
59
+ * @generated from protobuf rpc: DeleteResourceGroup
60
+ */
61
+ deleteResourceGroup(input, options) {
62
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
23
63
  return stackIntercept("unary", this._transport, method, opt, input);
24
64
  }
25
65
  /**
@@ -28,7 +68,7 @@ export class LoreClient {
28
68
  * @generated from protobuf rpc: CreateAgent
29
69
  */
30
70
  createAgent(input, options) {
31
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
71
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
32
72
  return stackIntercept("unary", this._transport, method, opt, input);
33
73
  }
34
74
  /**
@@ -38,7 +78,7 @@ export class LoreClient {
38
78
  * @generated from protobuf rpc: CreateRepl
39
79
  */
40
80
  createRepl(input, options) {
41
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
81
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
42
82
  return stackIntercept("unary", this._transport, method, opt, input);
43
83
  }
44
84
  /**
@@ -47,7 +87,54 @@ export class LoreClient {
47
87
  * @generated from protobuf rpc: GetRepl
48
88
  */
49
89
  getRepl(input, options) {
50
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
90
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
91
+ return stackIntercept("unary", this._transport, method, opt, input);
92
+ }
93
+ /**
94
+ * GetCellByRepl returns a cell without consulting Jetplane.
95
+ *
96
+ * @generated from protobuf rpc: GetCellByRepl
97
+ */
98
+ getCellByRepl(input, options) {
99
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
100
+ return stackIntercept("unary", this._transport, method, opt, input);
101
+ }
102
+ /**
103
+ * BatchGetCellByRepl resolves repl cells independently.
104
+ *
105
+ * @generated from protobuf rpc: BatchGetCellByRepl
106
+ */
107
+ batchGetCellByRepl(input, options) {
108
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
109
+ return stackIntercept("unary", this._transport, method, opt, input);
110
+ }
111
+ /**
112
+ * GetCheckpointPreviewCapability reports whether a checkpoint can seed a
113
+ * native preview. False means callers should use their legacy preview path.
114
+ *
115
+ * @generated from protobuf rpc: GetCheckpointPreviewCapability
116
+ */
117
+ getCheckpointPreviewCapability(input, options) {
118
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
119
+ return stackIntercept("unary", this._transport, method, opt, input);
120
+ }
121
+ /**
122
+ * GetClusterByResourceGroup returns the cluster a resource group is placed
123
+ * in.
124
+ *
125
+ * @generated from protobuf rpc: GetClusterByResourceGroup
126
+ */
127
+ getClusterByResourceGroup(input, options) {
128
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
129
+ return stackIntercept("unary", this._transport, method, opt, input);
130
+ }
131
+ /**
132
+ * BatchGetCellByResourceGroup resolves resource groups independently.
133
+ *
134
+ * @generated from protobuf rpc: BatchGetCellByResourceGroup
135
+ */
136
+ batchGetCellByResourceGroup(input, options) {
137
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
51
138
  return stackIntercept("unary", this._transport, method, opt, input);
52
139
  }
53
140
  /**
@@ -60,7 +147,7 @@ export class LoreClient {
60
147
  * @generated from protobuf rpc: GetReplConnectionInfo
61
148
  */
62
149
  getReplConnectionInfo(input, options) {
63
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
150
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
64
151
  return stackIntercept("unary", this._transport, method, opt, input);
65
152
  }
66
153
  /**
@@ -69,7 +156,24 @@ export class LoreClient {
69
156
  * @generated from protobuf rpc: GetTransferStatus
70
157
  */
71
158
  getTransferStatus(input, options) {
72
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
159
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
160
+ return stackIntercept("unary", this._transport, method, opt, input);
161
+ }
162
+ /**
163
+ * TransferResourceGroup starts the cell-transfer coordinator workflow for a
164
+ * resource group and returns immediately with its transfer id; the transfer
165
+ * runs asynchronously.
166
+ *
167
+ * The destination is not a parameter: a group is only ever transferred into
168
+ * the home cell of the org that owns it.
169
+ *
170
+ * The coordinator is currently a skeleton that runs no transfer phases, so
171
+ * this starts a workflow that completes without moving anything.
172
+ *
173
+ * @generated from protobuf rpc: TransferResourceGroup
174
+ */
175
+ transferResourceGroup(input, options) {
176
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
73
177
  return stackIntercept("unary", this._transport, method, opt, input);
74
178
  }
75
179
  /**
@@ -79,7 +183,7 @@ export class LoreClient {
79
183
  * @generated from protobuf rpc: TransferRepls
80
184
  */
81
185
  transferRepls(input, options) {
82
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
186
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
83
187
  return stackIntercept("unary", this._transport, method, opt, input);
84
188
  }
85
189
  /**
@@ -90,7 +194,7 @@ export class LoreClient {
90
194
  * @generated from protobuf rpc: TransferUser
91
195
  */
92
196
  transferUser(input, options) {
93
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
197
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
94
198
  return stackIntercept("unary", this._transport, method, opt, input);
95
199
  }
96
200
  /**
@@ -102,19 +206,17 @@ export class LoreClient {
102
206
  * @generated from protobuf rpc: TakedownRepl
103
207
  */
104
208
  takedownRepl(input, options) {
105
- const method = this.methods[8], opt = this._transport.mergeOptions(options);
209
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
106
210
  return stackIntercept("unary", this._transport, method, opt, input);
107
211
  }
108
212
  /**
109
- * SoftTakedownRepl performs a soft takedown of a repl, which allows a user to
110
- * restart it immediately and prevents the repl from being woken up via
111
- * requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
112
- * workspace.
213
+ * SoftTakedownRepl stops a repl's running instance without blocking future
214
+ * placement, so it can be restarted immediately.
113
215
  *
114
216
  * @generated from protobuf rpc: SoftTakedownRepl
115
217
  */
116
218
  softTakedownRepl(input, options) {
117
- const method = this.methods[9], opt = this._transport.mergeOptions(options);
219
+ const method = this.methods[19], opt = this._transport.mergeOptions(options);
118
220
  return stackIntercept("unary", this._transport, method, opt, input);
119
221
  }
120
222
  /**
@@ -123,7 +225,25 @@ export class LoreClient {
123
225
  * @generated from protobuf rpc: RestoreRepl
124
226
  */
125
227
  restoreRepl(input, options) {
126
- const method = this.methods[10], opt = this._transport.mergeOptions(options);
228
+ const method = this.methods[20], opt = this._transport.mergeOptions(options);
229
+ return stackIntercept("unary", this._transport, method, opt, input);
230
+ }
231
+ /**
232
+ * AddTombstone prevents a repl from being placed until its tombstone expires.
233
+ *
234
+ * @generated from protobuf rpc: AddTombstone
235
+ */
236
+ addTombstone(input, options) {
237
+ const method = this.methods[21], opt = this._transport.mergeOptions(options);
238
+ return stackIntercept("unary", this._transport, method, opt, input);
239
+ }
240
+ /**
241
+ * RemoveTombstone allows a tombstoned repl to be placed again.
242
+ *
243
+ * @generated from protobuf rpc: RemoveTombstone
244
+ */
245
+ removeTombstone(input, options) {
246
+ const method = this.methods[22], opt = this._transport.mergeOptions(options);
127
247
  return stackIntercept("unary", this._transport, method, opt, input);
128
248
  }
129
249
  /**
@@ -132,22 +252,20 @@ export class LoreClient {
132
252
  * @generated from protobuf rpc: BulkRemove
133
253
  */
134
254
  bulkRemove(input, options) {
135
- const method = this.methods[11], opt = this._transport.mergeOptions(options);
255
+ const method = this.methods[23], opt = this._transport.mergeOptions(options);
136
256
  return stackIntercept("unary", this._transport, method, opt, input);
137
257
  }
138
258
  /**
139
259
  * DeleteRepl permanently deletes a repl.
140
- * This adds a tombstone to prevent the repl from running, attempts to delete
141
- * GCS resources (margarine disk, helium margarine disk + snapshots, gcsfiles,
142
- * OT metadata) on a best-effort basis, and soft deletes the repl from the
143
- * lore database. GCS cleanup failures are logged but do not block deletion;
144
- * orphaned storage can be cleaned up separately.
260
+ * This asks Jetplane to soft delete the repl and prevent it from running,
261
+ * then soft deletes the repl from the Lore database. Storage cleanup is
262
+ * handled separately.
145
263
  * This operation is irreversible and idempotent.
146
264
  *
147
265
  * @generated from protobuf rpc: DeleteRepl
148
266
  */
149
267
  deleteRepl(input, options) {
150
- const method = this.methods[12], opt = this._transport.mergeOptions(options);
268
+ const method = this.methods[24], opt = this._transport.mergeOptions(options);
151
269
  return stackIntercept("unary", this._transport, method, opt, input);
152
270
  }
153
271
  /**
@@ -156,7 +274,7 @@ export class LoreClient {
156
274
  * @generated from protobuf rpc: GetClusters
157
275
  */
158
276
  getClusters(input, options) {
159
- const method = this.methods[13], opt = this._transport.mergeOptions(options);
277
+ const method = this.methods[25], opt = this._transport.mergeOptions(options);
160
278
  return stackIntercept("unary", this._transport, method, opt, input);
161
279
  }
162
280
  /**
@@ -165,7 +283,7 @@ export class LoreClient {
165
283
  * @generated from protobuf rpc: GetOrgHomeCell
166
284
  */
167
285
  getOrgHomeCell(input, options) {
168
- const method = this.methods[14], opt = this._transport.mergeOptions(options);
286
+ const method = this.methods[26], opt = this._transport.mergeOptions(options);
169
287
  return stackIntercept("unary", this._transport, method, opt, input);
170
288
  }
171
289
  /**
@@ -174,7 +292,16 @@ export class LoreClient {
174
292
  * @generated from protobuf rpc: SetOrgHomeCell
175
293
  */
176
294
  setOrgHomeCell(input, options) {
177
- const method = this.methods[15], opt = this._transport.mergeOptions(options);
295
+ const method = this.methods[27], opt = this._transport.mergeOptions(options);
296
+ return stackIntercept("unary", this._transport, method, opt, input);
297
+ }
298
+ /**
299
+ * TransferOrgHomeCell starts an asynchronous transfer to a new home cell.
300
+ *
301
+ * @generated from protobuf rpc: TransferOrgHomeCell
302
+ */
303
+ transferOrgHomeCell(input, options) {
304
+ const method = this.methods[28], opt = this._transport.mergeOptions(options);
178
305
  return stackIntercept("unary", this._transport, method, opt, input);
179
306
  }
180
307
  /**
@@ -188,7 +315,7 @@ export class LoreClient {
188
315
  * @generated from protobuf rpc: TransferReplFromOfflineCluster
189
316
  */
190
317
  transferReplFromOfflineCluster(input, options) {
191
- const method = this.methods[16], opt = this._transport.mergeOptions(options);
318
+ const method = this.methods[29], opt = this._transport.mergeOptions(options);
192
319
  return stackIntercept("unary", this._transport, method, opt, input);
193
320
  }
194
321
  /**
@@ -204,7 +331,7 @@ export class LoreClient {
204
331
  * @generated from protobuf rpc: ExportRepl
205
332
  */
206
333
  exportRepl(input, options) {
207
- const method = this.methods[17], opt = this._transport.mergeOptions(options);
334
+ const method = this.methods[30], opt = this._transport.mergeOptions(options);
208
335
  return stackIntercept("unary", this._transport, method, opt, input);
209
336
  }
210
337
  /**
@@ -217,7 +344,7 @@ export class LoreClient {
217
344
  * @generated from protobuf rpc: ImportRepl
218
345
  */
219
346
  importRepl(input, options) {
220
- const method = this.methods[18], opt = this._transport.mergeOptions(options);
347
+ const method = this.methods[31], opt = this._transport.mergeOptions(options);
221
348
  return stackIntercept("unary", this._transport, method, opt, input);
222
349
  }
223
350
  }