@replit/protocol 0.4.27 → 0.4.29
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.
- package/dist/api/chateau/resources.client.d.ts +51 -0
- package/dist/api/chateau/resources.client.js +34 -0
- package/dist/api/chateau/resources.d.ts +337 -0
- package/dist/api/chateau/resources.js +734 -0
- package/dist/api/features/features.d.ts +0 -28
- package/dist/api/features/features.js +0 -49
- package/dist/api/jetplane/repl/repl.client.d.ts +199 -0
- package/dist/api/jetplane/repl/repl.client.js +120 -0
- package/dist/api/jetplane/repl/repl.d.ts +1313 -0
- package/dist/api/jetplane/repl/repl.js +2295 -0
- package/dist/api/lore/lore.d.ts +0 -27
- package/dist/api/lore/lore.js +0 -57
- package/dist/api/lore/service.client.d.ts +156 -18
- package/dist/api/lore/service.client.js +113 -24
- package/dist/api/lore/service.d.ts +900 -5
- package/dist/api/lore/service.js +2094 -416
- package/dist/api/repl/repl.d.ts +22 -0
- package/dist/api/repl/repl.js +26 -2
- package/dist/api/token/token.d.ts +28 -3
- package/dist/api/token/token.js +29 -1
- package/dist/google/protobuf/field_mask.d.ts +16 -18
- package/dist/google/protobuf/struct.d.ts +33 -22
- package/dist/google/protobuf/struct.js +8 -3
- package/dist/google/protobuf/timestamp.d.ts +9 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/iotester/index.d.ts +10674 -2035
- package/iotester/index.js +41039 -12022
- package/main/index.d.ts +10674 -2035
- package/main/index.js +41039 -12022
- package/package.json +1 -1
package/dist/api/lore/lore.d.ts
CHANGED
|
@@ -155,15 +155,6 @@ export interface Takedown {
|
|
|
155
155
|
*/
|
|
156
156
|
replId: string;
|
|
157
157
|
}
|
|
158
|
-
/**
|
|
159
|
-
* @generated from protobuf message replit.goval.api.lore.StartViktor
|
|
160
|
-
*/
|
|
161
|
-
export interface StartViktor {
|
|
162
|
-
/**
|
|
163
|
-
* @generated from protobuf field: string repl_id = 1
|
|
164
|
-
*/
|
|
165
|
-
replId: string;
|
|
166
|
-
}
|
|
167
158
|
/**
|
|
168
159
|
* @generated from protobuf message replit.goval.api.lore.GovalCommand
|
|
169
160
|
*/
|
|
@@ -237,14 +228,6 @@ export interface GovalCommand {
|
|
|
237
228
|
* @generated from protobuf field: replit.goval.api.lore.Takedown takedown = 7
|
|
238
229
|
*/
|
|
239
230
|
takedown: Takedown;
|
|
240
|
-
} | {
|
|
241
|
-
oneofKind: "startViktor";
|
|
242
|
-
/**
|
|
243
|
-
* StartViktor is necessary when upgrading to core while editing a repl.
|
|
244
|
-
*
|
|
245
|
-
* @generated from protobuf field: replit.goval.api.lore.StartViktor start_viktor = 9
|
|
246
|
-
*/
|
|
247
|
-
startViktor: StartViktor;
|
|
248
231
|
} | {
|
|
249
232
|
oneofKind: "addTokenToReplShieldAllowList";
|
|
250
233
|
/**
|
|
@@ -430,16 +413,6 @@ declare class Takedown$Type extends MessageType<Takedown> {
|
|
|
430
413
|
* @generated MessageType for protobuf message replit.goval.api.lore.Takedown
|
|
431
414
|
*/
|
|
432
415
|
export declare const Takedown: Takedown$Type;
|
|
433
|
-
declare class StartViktor$Type extends MessageType<StartViktor> {
|
|
434
|
-
constructor();
|
|
435
|
-
create(value?: PartialMessage<StartViktor>): StartViktor;
|
|
436
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartViktor): StartViktor;
|
|
437
|
-
internalBinaryWrite(message: StartViktor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* @generated MessageType for protobuf message replit.goval.api.lore.StartViktor
|
|
441
|
-
*/
|
|
442
|
-
export declare const StartViktor: StartViktor$Type;
|
|
443
416
|
declare class GovalCommand$Type extends MessageType<GovalCommand> {
|
|
444
417
|
constructor();
|
|
445
418
|
create(value?: PartialMessage<GovalCommand>): GovalCommand;
|
package/dist/api/lore/lore.js
CHANGED
|
@@ -299,53 +299,6 @@ class Takedown$Type extends MessageType {
|
|
|
299
299
|
*/
|
|
300
300
|
export const Takedown = new Takedown$Type();
|
|
301
301
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
302
|
-
class StartViktor$Type extends MessageType {
|
|
303
|
-
constructor() {
|
|
304
|
-
super("replit.goval.api.lore.StartViktor", [
|
|
305
|
-
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
306
|
-
]);
|
|
307
|
-
}
|
|
308
|
-
create(value) {
|
|
309
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
310
|
-
message.replId = "";
|
|
311
|
-
if (value !== undefined)
|
|
312
|
-
reflectionMergePartial(this, message, value);
|
|
313
|
-
return message;
|
|
314
|
-
}
|
|
315
|
-
internalBinaryRead(reader, length, options, target) {
|
|
316
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
317
|
-
while (reader.pos < end) {
|
|
318
|
-
let [fieldNo, wireType] = reader.tag();
|
|
319
|
-
switch (fieldNo) {
|
|
320
|
-
case /* string repl_id */ 1:
|
|
321
|
-
message.replId = reader.string();
|
|
322
|
-
break;
|
|
323
|
-
default:
|
|
324
|
-
let u = options.readUnknownField;
|
|
325
|
-
if (u === "throw")
|
|
326
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
327
|
-
let d = reader.skip(wireType);
|
|
328
|
-
if (u !== false)
|
|
329
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return message;
|
|
333
|
-
}
|
|
334
|
-
internalBinaryWrite(message, writer, options) {
|
|
335
|
-
/* string repl_id = 1; */
|
|
336
|
-
if (message.replId !== "")
|
|
337
|
-
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
338
|
-
let u = options.writeUnknownFields;
|
|
339
|
-
if (u !== false)
|
|
340
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
341
|
-
return writer;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* @generated MessageType for protobuf message replit.goval.api.lore.StartViktor
|
|
346
|
-
*/
|
|
347
|
-
export const StartViktor = new StartViktor$Type();
|
|
348
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
349
302
|
class GovalCommand$Type extends MessageType {
|
|
350
303
|
constructor() {
|
|
351
304
|
super("replit.goval.api.lore.GovalCommand", [
|
|
@@ -356,7 +309,6 @@ class GovalCommand$Type extends MessageType {
|
|
|
356
309
|
{ no: 5, name: "update_repl_flags", kind: "message", oneof: "command", T: () => UpdateReplFlags },
|
|
357
310
|
{ no: 6, name: "soft_takedown", kind: "message", oneof: "command", T: () => SoftTakedown },
|
|
358
311
|
{ no: 7, name: "takedown", kind: "message", oneof: "command", T: () => Takedown },
|
|
359
|
-
{ no: 9, name: "start_viktor", kind: "message", oneof: "command", T: () => StartViktor },
|
|
360
312
|
{ no: 10, name: "add_token_to_repl_shield_allow_list", kind: "message", oneof: "command", T: () => AddTokenToReplShieldAllowList },
|
|
361
313
|
{ no: 11, name: "revoke_user_repl_shield_tokens", kind: "message", oneof: "command", T: () => RevokeUserReplShieldTokens },
|
|
362
314
|
{ no: 12, name: "set_replit_badge", kind: "message", oneof: "command", T: () => SetReplitBadge }
|
|
@@ -416,12 +368,6 @@ class GovalCommand$Type extends MessageType {
|
|
|
416
368
|
takedown: Takedown.internalBinaryRead(reader, reader.uint32(), options, message.command.takedown)
|
|
417
369
|
};
|
|
418
370
|
break;
|
|
419
|
-
case /* replit.goval.api.lore.StartViktor start_viktor */ 9:
|
|
420
|
-
message.command = {
|
|
421
|
-
oneofKind: "startViktor",
|
|
422
|
-
startViktor: StartViktor.internalBinaryRead(reader, reader.uint32(), options, message.command.startViktor)
|
|
423
|
-
};
|
|
424
|
-
break;
|
|
425
371
|
case /* replit.goval.api.lore.AddTokenToReplShieldAllowList add_token_to_repl_shield_allow_list */ 10:
|
|
426
372
|
message.command = {
|
|
427
373
|
oneofKind: "addTokenToReplShieldAllowList",
|
|
@@ -473,9 +419,6 @@ class GovalCommand$Type extends MessageType {
|
|
|
473
419
|
/* replit.goval.api.lore.Takedown takedown = 7; */
|
|
474
420
|
if (message.command.oneofKind === "takedown")
|
|
475
421
|
Takedown.internalBinaryWrite(message.command.takedown, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
476
|
-
/* replit.goval.api.lore.StartViktor start_viktor = 9; */
|
|
477
|
-
if (message.command.oneofKind === "startViktor")
|
|
478
|
-
StartViktor.internalBinaryWrite(message.command.startViktor, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
479
422
|
/* replit.goval.api.lore.AddTokenToReplShieldAllowList add_token_to_repl_shield_allow_list = 10; */
|
|
480
423
|
if (message.command.oneofKind === "addTokenToReplShieldAllowList")
|
|
481
424
|
AddTokenToReplShieldAllowList.internalBinaryWrite(message.command.addTokenToReplShieldAllowList, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -6,12 +6,20 @@ import type { ExportReplResponse } from "./service.js";
|
|
|
6
6
|
import type { ExportReplRequest } from "./service.js";
|
|
7
7
|
import type { TransferReplFromOfflineClusterResponse } from "./service.js";
|
|
8
8
|
import type { TransferReplFromOfflineClusterRequest } from "./service.js";
|
|
9
|
+
import type { SetOrgHomeCellResponse } from "./service.js";
|
|
10
|
+
import type { SetOrgHomeCellRequest } from "./service.js";
|
|
11
|
+
import type { GetOrgHomeCellResponse } from "./service.js";
|
|
12
|
+
import type { GetOrgHomeCellRequest } from "./service.js";
|
|
9
13
|
import type { GetClustersResponse } from "./service.js";
|
|
10
14
|
import type { GetClustersRequest } from "./service.js";
|
|
11
15
|
import type { DeleteReplResponse } from "./service.js";
|
|
12
16
|
import type { DeleteReplRequest } from "./service.js";
|
|
13
17
|
import type { BulkRemoveResponse } from "./service.js";
|
|
14
18
|
import type { BulkRemoveRequest } from "./service.js";
|
|
19
|
+
import type { RemoveTombstoneResponse } from "./service.js";
|
|
20
|
+
import type { RemoveTombstoneRequest } from "./service.js";
|
|
21
|
+
import type { AddTombstoneResponse } from "./service.js";
|
|
22
|
+
import type { AddTombstoneRequest } from "./service.js";
|
|
15
23
|
import type { RestoreReplResponse } from "./service.js";
|
|
16
24
|
import type { RestoreReplRequest } from "./service.js";
|
|
17
25
|
import type { SoftTakedownReplResponse } from "./service.js";
|
|
@@ -26,10 +34,22 @@ import type { GetTransferStatusResponse } from "./service.js";
|
|
|
26
34
|
import type { GetTransferStatusRequest } from "./service.js";
|
|
27
35
|
import type { GetReplConnectionInfoResponse } from "./service.js";
|
|
28
36
|
import type { GetReplConnectionInfoRequest } from "./service.js";
|
|
37
|
+
import type { GetClusterByResourceGroupResponse } from "./service.js";
|
|
38
|
+
import type { GetClusterByResourceGroupRequest } from "./service.js";
|
|
29
39
|
import type { GetReplResponse } from "./service.js";
|
|
30
40
|
import type { GetReplRequest } from "./service.js";
|
|
31
41
|
import type { CreateReplResponse } from "./service.js";
|
|
32
42
|
import type { CreateReplRequest } from "./service.js";
|
|
43
|
+
import type { CreateAgentResponse } from "./service.js";
|
|
44
|
+
import type { CreateAgentRequest } from "./service.js";
|
|
45
|
+
import type { DeleteResourceGroupResponse } from "./service.js";
|
|
46
|
+
import type { DeleteResourceGroupRequest } from "./service.js";
|
|
47
|
+
import type { CreateResourceGroupResponse } from "./service.js";
|
|
48
|
+
import type { CreateResourceGroupRequest } from "./service.js";
|
|
49
|
+
import type { GetSandboxConnectionInfoResponse } from "./service.js";
|
|
50
|
+
import type { GetSandboxConnectionInfoRequest } from "./service.js";
|
|
51
|
+
import type { CreateSandboxResponse } from "./service.js";
|
|
52
|
+
import type { CreateSandboxRequest } from "./service.js";
|
|
33
53
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
34
54
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
35
55
|
/**
|
|
@@ -39,6 +59,38 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
39
59
|
* @generated from protobuf service replit.goval.api.lore.Lore
|
|
40
60
|
*/
|
|
41
61
|
export interface ILoreClient {
|
|
62
|
+
/**
|
|
63
|
+
* CreateSandbox routes creation to the Jetplane cell placed for the
|
|
64
|
+
* destination resource group. Lore does not persist a sandbox mapping.
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf rpc: CreateSandbox
|
|
67
|
+
*/
|
|
68
|
+
createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* GetSandboxConnectionInfo resolves the cell from resource-group placement
|
|
71
|
+
* and reads the Jetplane-authoritative sandbox metadata.
|
|
72
|
+
*
|
|
73
|
+
* @generated from protobuf rpc: GetSandboxConnectionInfo
|
|
74
|
+
*/
|
|
75
|
+
getSandboxConnectionInfo(input: GetSandboxConnectionInfoRequest, options?: RpcOptions): UnaryCall<GetSandboxConnectionInfoRequest, GetSandboxConnectionInfoResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* CreateResourceGroup registers an empty resource group in Jetplane.
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf rpc: CreateResourceGroup
|
|
80
|
+
*/
|
|
81
|
+
createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* DeleteResourceGroup removes a resource group from Jetplane.
|
|
84
|
+
*
|
|
85
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
86
|
+
*/
|
|
87
|
+
deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
|
|
88
|
+
/**
|
|
89
|
+
* CreateAgent creates an agent through the selected cluster's Chateau.
|
|
90
|
+
*
|
|
91
|
+
* @generated from protobuf rpc: CreateAgent
|
|
92
|
+
*/
|
|
93
|
+
createAgent(input: CreateAgentRequest, options?: RpcOptions): UnaryCall<CreateAgentRequest, CreateAgentResponse>;
|
|
42
94
|
/**
|
|
43
95
|
* CreateRepl will create a new repl in Lore. Its contents may be copied from
|
|
44
96
|
* a source repl or a specified list of files.
|
|
@@ -52,6 +104,13 @@ export interface ILoreClient {
|
|
|
52
104
|
* @generated from protobuf rpc: GetRepl
|
|
53
105
|
*/
|
|
54
106
|
getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* GetClusterByResourceGroup returns the cluster a resource group is placed
|
|
109
|
+
* in.
|
|
110
|
+
*
|
|
111
|
+
* @generated from protobuf rpc: GetClusterByResourceGroup
|
|
112
|
+
*/
|
|
113
|
+
getClusterByResourceGroup(input: GetClusterByResourceGroupRequest, options?: RpcOptions): UnaryCall<GetClusterByResourceGroupRequest, GetClusterByResourceGroupResponse>;
|
|
55
114
|
/**
|
|
56
115
|
* GetReplConnectionInfo will return a repl and its associated cluster and
|
|
57
116
|
* GCE buckets. If the repl does not exist, the repl will be created; however,
|
|
@@ -93,10 +152,8 @@ export interface ILoreClient {
|
|
|
93
152
|
*/
|
|
94
153
|
takedownRepl(input: TakedownReplRequest, options?: RpcOptions): UnaryCall<TakedownReplRequest, TakedownReplResponse>;
|
|
95
154
|
/**
|
|
96
|
-
* SoftTakedownRepl
|
|
97
|
-
*
|
|
98
|
-
* requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
|
|
99
|
-
* workspace.
|
|
155
|
+
* SoftTakedownRepl stops a repl's running instance without blocking future
|
|
156
|
+
* placement, so it can be restarted immediately.
|
|
100
157
|
*
|
|
101
158
|
* @generated from protobuf rpc: SoftTakedownRepl
|
|
102
159
|
*/
|
|
@@ -107,6 +164,18 @@ export interface ILoreClient {
|
|
|
107
164
|
* @generated from protobuf rpc: RestoreRepl
|
|
108
165
|
*/
|
|
109
166
|
restoreRepl(input: RestoreReplRequest, options?: RpcOptions): UnaryCall<RestoreReplRequest, RestoreReplResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* AddTombstone prevents a repl from being placed until its tombstone expires.
|
|
169
|
+
*
|
|
170
|
+
* @generated from protobuf rpc: AddTombstone
|
|
171
|
+
*/
|
|
172
|
+
addTombstone(input: AddTombstoneRequest, options?: RpcOptions): UnaryCall<AddTombstoneRequest, AddTombstoneResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* RemoveTombstone allows a tombstoned repl to be placed again.
|
|
175
|
+
*
|
|
176
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
177
|
+
*/
|
|
178
|
+
removeTombstone(input: RemoveTombstoneRequest, options?: RpcOptions): UnaryCall<RemoveTombstoneRequest, RemoveTombstoneResponse>;
|
|
110
179
|
/**
|
|
111
180
|
* BulkRemove performs a soft takedown on the specified repls.
|
|
112
181
|
*
|
|
@@ -115,11 +184,9 @@ export interface ILoreClient {
|
|
|
115
184
|
bulkRemove(input: BulkRemoveRequest, options?: RpcOptions): UnaryCall<BulkRemoveRequest, BulkRemoveResponse>;
|
|
116
185
|
/**
|
|
117
186
|
* DeleteRepl permanently deletes a repl.
|
|
118
|
-
* This
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* lore database. GCS cleanup failures are logged but do not block deletion;
|
|
122
|
-
* orphaned storage can be cleaned up separately.
|
|
187
|
+
* This asks Jetplane to soft delete the repl and prevent it from running,
|
|
188
|
+
* then soft deletes the repl from the Lore database. Storage cleanup is
|
|
189
|
+
* handled separately.
|
|
123
190
|
* This operation is irreversible and idempotent.
|
|
124
191
|
*
|
|
125
192
|
* @generated from protobuf rpc: DeleteRepl
|
|
@@ -131,6 +198,18 @@ export interface ILoreClient {
|
|
|
131
198
|
* @generated from protobuf rpc: GetClusters
|
|
132
199
|
*/
|
|
133
200
|
getClusters(input: GetClustersRequest, options?: RpcOptions): UnaryCall<GetClustersRequest, GetClustersResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* GetOrgHomeCell returns the persisted home cell for an org.
|
|
203
|
+
*
|
|
204
|
+
* @generated from protobuf rpc: GetOrgHomeCell
|
|
205
|
+
*/
|
|
206
|
+
getOrgHomeCell(input: GetOrgHomeCellRequest, options?: RpcOptions): UnaryCall<GetOrgHomeCellRequest, GetOrgHomeCellResponse>;
|
|
207
|
+
/**
|
|
208
|
+
* SetOrgHomeCell sets the persisted home cell for an org.
|
|
209
|
+
*
|
|
210
|
+
* @generated from protobuf rpc: SetOrgHomeCell
|
|
211
|
+
*/
|
|
212
|
+
setOrgHomeCell(input: SetOrgHomeCellRequest, options?: RpcOptions): UnaryCall<SetOrgHomeCellRequest, SetOrgHomeCellResponse>;
|
|
134
213
|
/**
|
|
135
214
|
* TransferReplFromOfflineCluster transfers a repl from an offline cluster to
|
|
136
215
|
* a new cluster.
|
|
@@ -180,6 +259,38 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
180
259
|
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
181
260
|
};
|
|
182
261
|
constructor(_transport: RpcTransport);
|
|
262
|
+
/**
|
|
263
|
+
* CreateSandbox routes creation to the Jetplane cell placed for the
|
|
264
|
+
* destination resource group. Lore does not persist a sandbox mapping.
|
|
265
|
+
*
|
|
266
|
+
* @generated from protobuf rpc: CreateSandbox
|
|
267
|
+
*/
|
|
268
|
+
createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
|
|
269
|
+
/**
|
|
270
|
+
* GetSandboxConnectionInfo resolves the cell from resource-group placement
|
|
271
|
+
* and reads the Jetplane-authoritative sandbox metadata.
|
|
272
|
+
*
|
|
273
|
+
* @generated from protobuf rpc: GetSandboxConnectionInfo
|
|
274
|
+
*/
|
|
275
|
+
getSandboxConnectionInfo(input: GetSandboxConnectionInfoRequest, options?: RpcOptions): UnaryCall<GetSandboxConnectionInfoRequest, GetSandboxConnectionInfoResponse>;
|
|
276
|
+
/**
|
|
277
|
+
* CreateResourceGroup registers an empty resource group in Jetplane.
|
|
278
|
+
*
|
|
279
|
+
* @generated from protobuf rpc: CreateResourceGroup
|
|
280
|
+
*/
|
|
281
|
+
createResourceGroup(input: CreateResourceGroupRequest, options?: RpcOptions): UnaryCall<CreateResourceGroupRequest, CreateResourceGroupResponse>;
|
|
282
|
+
/**
|
|
283
|
+
* DeleteResourceGroup removes a resource group from Jetplane.
|
|
284
|
+
*
|
|
285
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
286
|
+
*/
|
|
287
|
+
deleteResourceGroup(input: DeleteResourceGroupRequest, options?: RpcOptions): UnaryCall<DeleteResourceGroupRequest, DeleteResourceGroupResponse>;
|
|
288
|
+
/**
|
|
289
|
+
* CreateAgent creates an agent through the selected cluster's Chateau.
|
|
290
|
+
*
|
|
291
|
+
* @generated from protobuf rpc: CreateAgent
|
|
292
|
+
*/
|
|
293
|
+
createAgent(input: CreateAgentRequest, options?: RpcOptions): UnaryCall<CreateAgentRequest, CreateAgentResponse>;
|
|
183
294
|
/**
|
|
184
295
|
* CreateRepl will create a new repl in Lore. Its contents may be copied from
|
|
185
296
|
* a source repl or a specified list of files.
|
|
@@ -193,6 +304,13 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
193
304
|
* @generated from protobuf rpc: GetRepl
|
|
194
305
|
*/
|
|
195
306
|
getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
|
|
307
|
+
/**
|
|
308
|
+
* GetClusterByResourceGroup returns the cluster a resource group is placed
|
|
309
|
+
* in.
|
|
310
|
+
*
|
|
311
|
+
* @generated from protobuf rpc: GetClusterByResourceGroup
|
|
312
|
+
*/
|
|
313
|
+
getClusterByResourceGroup(input: GetClusterByResourceGroupRequest, options?: RpcOptions): UnaryCall<GetClusterByResourceGroupRequest, GetClusterByResourceGroupResponse>;
|
|
196
314
|
/**
|
|
197
315
|
* GetReplConnectionInfo will return a repl and its associated cluster and
|
|
198
316
|
* GCE buckets. If the repl does not exist, the repl will be created; however,
|
|
@@ -234,10 +352,8 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
234
352
|
*/
|
|
235
353
|
takedownRepl(input: TakedownReplRequest, options?: RpcOptions): UnaryCall<TakedownReplRequest, TakedownReplResponse>;
|
|
236
354
|
/**
|
|
237
|
-
* SoftTakedownRepl
|
|
238
|
-
*
|
|
239
|
-
* requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
|
|
240
|
-
* workspace.
|
|
355
|
+
* SoftTakedownRepl stops a repl's running instance without blocking future
|
|
356
|
+
* placement, so it can be restarted immediately.
|
|
241
357
|
*
|
|
242
358
|
* @generated from protobuf rpc: SoftTakedownRepl
|
|
243
359
|
*/
|
|
@@ -248,6 +364,18 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
248
364
|
* @generated from protobuf rpc: RestoreRepl
|
|
249
365
|
*/
|
|
250
366
|
restoreRepl(input: RestoreReplRequest, options?: RpcOptions): UnaryCall<RestoreReplRequest, RestoreReplResponse>;
|
|
367
|
+
/**
|
|
368
|
+
* AddTombstone prevents a repl from being placed until its tombstone expires.
|
|
369
|
+
*
|
|
370
|
+
* @generated from protobuf rpc: AddTombstone
|
|
371
|
+
*/
|
|
372
|
+
addTombstone(input: AddTombstoneRequest, options?: RpcOptions): UnaryCall<AddTombstoneRequest, AddTombstoneResponse>;
|
|
373
|
+
/**
|
|
374
|
+
* RemoveTombstone allows a tombstoned repl to be placed again.
|
|
375
|
+
*
|
|
376
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
377
|
+
*/
|
|
378
|
+
removeTombstone(input: RemoveTombstoneRequest, options?: RpcOptions): UnaryCall<RemoveTombstoneRequest, RemoveTombstoneResponse>;
|
|
251
379
|
/**
|
|
252
380
|
* BulkRemove performs a soft takedown on the specified repls.
|
|
253
381
|
*
|
|
@@ -256,11 +384,9 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
256
384
|
bulkRemove(input: BulkRemoveRequest, options?: RpcOptions): UnaryCall<BulkRemoveRequest, BulkRemoveResponse>;
|
|
257
385
|
/**
|
|
258
386
|
* DeleteRepl permanently deletes a repl.
|
|
259
|
-
* This
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* lore database. GCS cleanup failures are logged but do not block deletion;
|
|
263
|
-
* orphaned storage can be cleaned up separately.
|
|
387
|
+
* This asks Jetplane to soft delete the repl and prevent it from running,
|
|
388
|
+
* then soft deletes the repl from the Lore database. Storage cleanup is
|
|
389
|
+
* handled separately.
|
|
264
390
|
* This operation is irreversible and idempotent.
|
|
265
391
|
*
|
|
266
392
|
* @generated from protobuf rpc: DeleteRepl
|
|
@@ -272,6 +398,18 @@ export declare class LoreClient implements ILoreClient, ServiceInfo {
|
|
|
272
398
|
* @generated from protobuf rpc: GetClusters
|
|
273
399
|
*/
|
|
274
400
|
getClusters(input: GetClustersRequest, options?: RpcOptions): UnaryCall<GetClustersRequest, GetClustersResponse>;
|
|
401
|
+
/**
|
|
402
|
+
* GetOrgHomeCell returns the persisted home cell for an org.
|
|
403
|
+
*
|
|
404
|
+
* @generated from protobuf rpc: GetOrgHomeCell
|
|
405
|
+
*/
|
|
406
|
+
getOrgHomeCell(input: GetOrgHomeCellRequest, options?: RpcOptions): UnaryCall<GetOrgHomeCellRequest, GetOrgHomeCellResponse>;
|
|
407
|
+
/**
|
|
408
|
+
* SetOrgHomeCell sets the persisted home cell for an org.
|
|
409
|
+
*
|
|
410
|
+
* @generated from protobuf rpc: SetOrgHomeCell
|
|
411
|
+
*/
|
|
412
|
+
setOrgHomeCell(input: SetOrgHomeCellRequest, options?: RpcOptions): UnaryCall<SetOrgHomeCellRequest, SetOrgHomeCellResponse>;
|
|
275
413
|
/**
|
|
276
414
|
* TransferReplFromOfflineCluster transfers a repl from an offline cluster to
|
|
277
415
|
* a new cluster.
|
|
@@ -13,6 +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
|
+
* GetSandboxConnectionInfo resolves the cell from resource-group placement
|
|
28
|
+
* and reads the Jetplane-authoritative sandbox metadata.
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf rpc: GetSandboxConnectionInfo
|
|
31
|
+
*/
|
|
32
|
+
getSandboxConnectionInfo(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
|
+
* CreateResourceGroup registers an empty resource group in Jetplane.
|
|
38
|
+
*
|
|
39
|
+
* @generated from protobuf rpc: CreateResourceGroup
|
|
40
|
+
*/
|
|
41
|
+
createResourceGroup(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
|
+
* DeleteResourceGroup removes a resource group from Jetplane.
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf rpc: DeleteResourceGroup
|
|
49
|
+
*/
|
|
50
|
+
deleteResourceGroup(input, options) {
|
|
51
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
52
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* CreateAgent creates an agent through the selected cluster's Chateau.
|
|
56
|
+
*
|
|
57
|
+
* @generated from protobuf rpc: CreateAgent
|
|
58
|
+
*/
|
|
59
|
+
createAgent(input, options) {
|
|
60
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
61
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
62
|
+
}
|
|
16
63
|
/**
|
|
17
64
|
* CreateRepl will create a new repl in Lore. Its contents may be copied from
|
|
18
65
|
* a source repl or a specified list of files.
|
|
@@ -20,7 +67,7 @@ export class LoreClient {
|
|
|
20
67
|
* @generated from protobuf rpc: CreateRepl
|
|
21
68
|
*/
|
|
22
69
|
createRepl(input, options) {
|
|
23
|
-
const method = this.methods[
|
|
70
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
24
71
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
25
72
|
}
|
|
26
73
|
/**
|
|
@@ -29,7 +76,17 @@ export class LoreClient {
|
|
|
29
76
|
* @generated from protobuf rpc: GetRepl
|
|
30
77
|
*/
|
|
31
78
|
getRepl(input, options) {
|
|
32
|
-
const method = this.methods[
|
|
79
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
80
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* GetClusterByResourceGroup returns the cluster a resource group is placed
|
|
84
|
+
* in.
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf rpc: GetClusterByResourceGroup
|
|
87
|
+
*/
|
|
88
|
+
getClusterByResourceGroup(input, options) {
|
|
89
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
33
90
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
34
91
|
}
|
|
35
92
|
/**
|
|
@@ -42,7 +99,7 @@ export class LoreClient {
|
|
|
42
99
|
* @generated from protobuf rpc: GetReplConnectionInfo
|
|
43
100
|
*/
|
|
44
101
|
getReplConnectionInfo(input, options) {
|
|
45
|
-
const method = this.methods[
|
|
102
|
+
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
46
103
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
47
104
|
}
|
|
48
105
|
/**
|
|
@@ -51,7 +108,7 @@ export class LoreClient {
|
|
|
51
108
|
* @generated from protobuf rpc: GetTransferStatus
|
|
52
109
|
*/
|
|
53
110
|
getTransferStatus(input, options) {
|
|
54
|
-
const method = this.methods[
|
|
111
|
+
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
55
112
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
56
113
|
}
|
|
57
114
|
/**
|
|
@@ -61,7 +118,7 @@ export class LoreClient {
|
|
|
61
118
|
* @generated from protobuf rpc: TransferRepls
|
|
62
119
|
*/
|
|
63
120
|
transferRepls(input, options) {
|
|
64
|
-
const method = this.methods[
|
|
121
|
+
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
65
122
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
66
123
|
}
|
|
67
124
|
/**
|
|
@@ -72,7 +129,7 @@ export class LoreClient {
|
|
|
72
129
|
* @generated from protobuf rpc: TransferUser
|
|
73
130
|
*/
|
|
74
131
|
transferUser(input, options) {
|
|
75
|
-
const method = this.methods[
|
|
132
|
+
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
76
133
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
77
134
|
}
|
|
78
135
|
/**
|
|
@@ -84,19 +141,17 @@ export class LoreClient {
|
|
|
84
141
|
* @generated from protobuf rpc: TakedownRepl
|
|
85
142
|
*/
|
|
86
143
|
takedownRepl(input, options) {
|
|
87
|
-
const method = this.methods[
|
|
144
|
+
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
88
145
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
89
146
|
}
|
|
90
147
|
/**
|
|
91
|
-
* SoftTakedownRepl
|
|
92
|
-
*
|
|
93
|
-
* requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
|
|
94
|
-
* workspace.
|
|
148
|
+
* SoftTakedownRepl stops a repl's running instance without blocking future
|
|
149
|
+
* placement, so it can be restarted immediately.
|
|
95
150
|
*
|
|
96
151
|
* @generated from protobuf rpc: SoftTakedownRepl
|
|
97
152
|
*/
|
|
98
153
|
softTakedownRepl(input, options) {
|
|
99
|
-
const method = this.methods[
|
|
154
|
+
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
100
155
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
101
156
|
}
|
|
102
157
|
/**
|
|
@@ -105,7 +160,25 @@ export class LoreClient {
|
|
|
105
160
|
* @generated from protobuf rpc: RestoreRepl
|
|
106
161
|
*/
|
|
107
162
|
restoreRepl(input, options) {
|
|
108
|
-
const method = this.methods[
|
|
163
|
+
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
164
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* AddTombstone prevents a repl from being placed until its tombstone expires.
|
|
168
|
+
*
|
|
169
|
+
* @generated from protobuf rpc: AddTombstone
|
|
170
|
+
*/
|
|
171
|
+
addTombstone(input, options) {
|
|
172
|
+
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
173
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* RemoveTombstone allows a tombstoned repl to be placed again.
|
|
177
|
+
*
|
|
178
|
+
* @generated from protobuf rpc: RemoveTombstone
|
|
179
|
+
*/
|
|
180
|
+
removeTombstone(input, options) {
|
|
181
|
+
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
109
182
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
110
183
|
}
|
|
111
184
|
/**
|
|
@@ -114,22 +187,20 @@ export class LoreClient {
|
|
|
114
187
|
* @generated from protobuf rpc: BulkRemove
|
|
115
188
|
*/
|
|
116
189
|
bulkRemove(input, options) {
|
|
117
|
-
const method = this.methods[
|
|
190
|
+
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
118
191
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
119
192
|
}
|
|
120
193
|
/**
|
|
121
194
|
* DeleteRepl permanently deletes a repl.
|
|
122
|
-
* This
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* lore database. GCS cleanup failures are logged but do not block deletion;
|
|
126
|
-
* orphaned storage can be cleaned up separately.
|
|
195
|
+
* This asks Jetplane to soft delete the repl and prevent it from running,
|
|
196
|
+
* then soft deletes the repl from the Lore database. Storage cleanup is
|
|
197
|
+
* handled separately.
|
|
127
198
|
* This operation is irreversible and idempotent.
|
|
128
199
|
*
|
|
129
200
|
* @generated from protobuf rpc: DeleteRepl
|
|
130
201
|
*/
|
|
131
202
|
deleteRepl(input, options) {
|
|
132
|
-
const method = this.methods[
|
|
203
|
+
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
133
204
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
134
205
|
}
|
|
135
206
|
/**
|
|
@@ -138,7 +209,25 @@ export class LoreClient {
|
|
|
138
209
|
* @generated from protobuf rpc: GetClusters
|
|
139
210
|
*/
|
|
140
211
|
getClusters(input, options) {
|
|
141
|
-
const method = this.methods[
|
|
212
|
+
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
|
213
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* GetOrgHomeCell returns the persisted home cell for an org.
|
|
217
|
+
*
|
|
218
|
+
* @generated from protobuf rpc: GetOrgHomeCell
|
|
219
|
+
*/
|
|
220
|
+
getOrgHomeCell(input, options) {
|
|
221
|
+
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
|
222
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* SetOrgHomeCell sets the persisted home cell for an org.
|
|
226
|
+
*
|
|
227
|
+
* @generated from protobuf rpc: SetOrgHomeCell
|
|
228
|
+
*/
|
|
229
|
+
setOrgHomeCell(input, options) {
|
|
230
|
+
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
|
142
231
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
143
232
|
}
|
|
144
233
|
/**
|
|
@@ -152,7 +241,7 @@ export class LoreClient {
|
|
|
152
241
|
* @generated from protobuf rpc: TransferReplFromOfflineCluster
|
|
153
242
|
*/
|
|
154
243
|
transferReplFromOfflineCluster(input, options) {
|
|
155
|
-
const method = this.methods[
|
|
244
|
+
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
|
156
245
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
157
246
|
}
|
|
158
247
|
/**
|
|
@@ -168,7 +257,7 @@ export class LoreClient {
|
|
|
168
257
|
* @generated from protobuf rpc: ExportRepl
|
|
169
258
|
*/
|
|
170
259
|
exportRepl(input, options) {
|
|
171
|
-
const method = this.methods[
|
|
260
|
+
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
|
172
261
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
173
262
|
}
|
|
174
263
|
/**
|
|
@@ -181,7 +270,7 @@ export class LoreClient {
|
|
|
181
270
|
* @generated from protobuf rpc: ImportRepl
|
|
182
271
|
*/
|
|
183
272
|
importRepl(input, options) {
|
|
184
|
-
const method = this.methods[
|
|
273
|
+
const method = this.methods[24], opt = this._transport.mergeOptions(options);
|
|
185
274
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
186
275
|
}
|
|
187
276
|
}
|