@replit/protocol 0.4.21 → 0.4.22

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.
Files changed (55) hide show
  1. package/README.md +54 -0
  2. package/dist/api/client.d.ts +202 -0
  3. package/dist/api/client.d.ts.map +1 -0
  4. package/dist/api/client.js +394 -0
  5. package/dist/api/features/features.d.ts +112 -0
  6. package/dist/api/features/features.d.ts.map +1 -0
  7. package/dist/api/features/features.js +199 -0
  8. package/dist/api/lore/lore.d.ts +543 -0
  9. package/dist/api/lore/lore.d.ts.map +1 -0
  10. package/dist/api/lore/lore.js +982 -0
  11. package/dist/api/lore/service.client.d.ts +283 -0
  12. package/dist/api/lore/service.client.d.ts.map +1 -0
  13. package/dist/api/lore/service.client.js +172 -0
  14. package/dist/api/lore/service.d.ts +1100 -0
  15. package/dist/api/lore/service.d.ts.map +1 -0
  16. package/dist/api/lore/service.js +2279 -0
  17. package/dist/api/powerup.d.ts +147 -0
  18. package/dist/api/powerup.d.ts.map +1 -0
  19. package/dist/api/powerup.js +286 -0
  20. package/dist/api/repl/repl.d.ts +552 -0
  21. package/dist/api/repl/repl.d.ts.map +1 -0
  22. package/dist/api/repl/repl.js +787 -0
  23. package/dist/api/signing.d.ts +618 -0
  24. package/dist/api/signing.d.ts.map +1 -0
  25. package/dist/api/signing.js +785 -0
  26. package/dist/api/token/token.d.ts +335 -0
  27. package/dist/api/token/token.d.ts.map +1 -0
  28. package/dist/api/token/token.js +463 -0
  29. package/dist/api/types.d.ts +8629 -0
  30. package/dist/api/types.d.ts.map +1 -0
  31. package/dist/api/types.js +17225 -0
  32. package/dist/google/protobuf/empty.d.ts +31 -0
  33. package/dist/google/protobuf/empty.d.ts.map +1 -0
  34. package/dist/google/protobuf/empty.js +41 -0
  35. package/dist/google/protobuf/field_mask.d.ts +239 -0
  36. package/dist/google/protobuf/field_mask.d.ts.map +1 -0
  37. package/dist/google/protobuf/field_mask.js +83 -0
  38. package/dist/google/protobuf/struct.d.ts +186 -0
  39. package/dist/google/protobuf/struct.d.ts.map +1 -0
  40. package/dist/google/protobuf/struct.js +337 -0
  41. package/dist/google/protobuf/timestamp.d.ts +156 -0
  42. package/dist/google/protobuf/timestamp.d.ts.map +1 -0
  43. package/dist/google/protobuf/timestamp.js +132 -0
  44. package/dist/index.d.ts +13 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +16 -0
  47. package/dist/package.json +3 -0
  48. package/iotester/index.d.ts +6 -6
  49. package/iotester/index.js +25 -12
  50. package/main/index.d.ts +6 -6
  51. package/main/index.js +25 -12
  52. package/package.json +43 -4
  53. package/gen.sh +0 -51
  54. package/jsdoc.js +0 -171
  55. package/pnpm-workspace.yaml +0 -6
@@ -0,0 +1,283 @@
1
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
2
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
3
+ import type { ImportReplResponse } from "./service.js";
4
+ import type { ImportReplRequest } from "./service.js";
5
+ import type { ExportReplResponse } from "./service.js";
6
+ import type { ExportReplRequest } from "./service.js";
7
+ import type { TransferReplFromOfflineClusterResponse } from "./service.js";
8
+ import type { TransferReplFromOfflineClusterRequest } from "./service.js";
9
+ import type { GetClustersResponse } from "./service.js";
10
+ import type { GetClustersRequest } from "./service.js";
11
+ import type { BulkRemoveResponse } from "./service.js";
12
+ import type { BulkRemoveRequest } from "./service.js";
13
+ import type { RestoreReplResponse } from "./service.js";
14
+ import type { RestoreReplRequest } from "./service.js";
15
+ import type { SoftTakedownReplResponse } from "./service.js";
16
+ import type { SoftTakedownReplRequest } from "./service.js";
17
+ import type { TakedownReplResponse } from "./service.js";
18
+ import type { TakedownReplRequest } from "./service.js";
19
+ import type { TransferUserResponse } from "./service.js";
20
+ import type { TransferUserRequest } from "./service.js";
21
+ import type { TransferReplsResponse } from "./service.js";
22
+ import type { TransferReplsRequest } from "./service.js";
23
+ import type { GetTransferStatusResponse } from "./service.js";
24
+ import type { GetTransferStatusRequest } from "./service.js";
25
+ import type { GetReplConnectionInfoResponse } from "./service.js";
26
+ import type { GetReplConnectionInfoRequest } from "./service.js";
27
+ import type { GetReplResponse } from "./service.js";
28
+ import type { GetReplRequest } from "./service.js";
29
+ import type { CreateReplResponse } from "./service.js";
30
+ import type { CreateReplRequest } from "./service.js";
31
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
32
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
33
+ /**
34
+ * Lore is the service that manages goval clusters. It maps repls to their
35
+ * cluster and provides a way to transfer repls between clusters.
36
+ *
37
+ * @generated from protobuf service replit.goval.api.lore.Lore
38
+ */
39
+ export interface ILoreClient {
40
+ /**
41
+ * CreateRepl will create a new repl in Lore. Its contents may be copied from
42
+ * a source repl or a specified list of files.
43
+ *
44
+ * @generated from protobuf rpc: CreateRepl
45
+ */
46
+ createRepl(input: CreateReplRequest, options?: RpcOptions): UnaryCall<CreateReplRequest, CreateReplResponse>;
47
+ /**
48
+ * GetRepl will return a repl and its associated cluster and GCS buckets.
49
+ *
50
+ * @generated from protobuf rpc: GetRepl
51
+ */
52
+ getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
53
+ /**
54
+ * GetReplConnectionInfo will return a repl and its associated cluster and
55
+ * GCE buckets. If the repl does not exist, the repl will be created; however,
56
+ * GCS contents will not be copied. This is only used for guest-fork repls
57
+ * which don't require GCS copies. For regular repls, `CreateRepl` must be
58
+ * called to copy the repl contents.
59
+ *
60
+ * @generated from protobuf rpc: GetReplConnectionInfo
61
+ */
62
+ getReplConnectionInfo(input: GetReplConnectionInfoRequest, options?: RpcOptions): UnaryCall<GetReplConnectionInfoRequest, GetReplConnectionInfoResponse>;
63
+ /**
64
+ * GetTransferStatus will return the status of the given repl transfer.
65
+ *
66
+ * @generated from protobuf rpc: GetTransferStatus
67
+ */
68
+ getTransferStatus(input: GetTransferStatusRequest, options?: RpcOptions): UnaryCall<GetTransferStatusRequest, GetTransferStatusResponse>;
69
+ /**
70
+ * TransferRepls will initiate a bulk transfer of repls to a new cluster and
71
+ * return the transfer id.
72
+ *
73
+ * @generated from protobuf rpc: TransferRepls
74
+ */
75
+ transferRepls(input: TransferReplsRequest, options?: RpcOptions): UnaryCall<TransferReplsRequest, TransferReplsResponse>;
76
+ /**
77
+ * TransferUser will initiate a bulk transfer of repls for the user
78
+ * to a new cluster and return the transfer id.
79
+ *
80
+ * @deprecated
81
+ * @generated from protobuf rpc: TransferUser
82
+ */
83
+ transferUser(input: TransferUserRequest, options?: RpcOptions): UnaryCall<TransferUserRequest, TransferUserResponse>;
84
+ /**
85
+ * TakedownRepl performs a hard takedown of a repl, which blocks a user from
86
+ * running it for an hour and prevents the repl from being woken up via
87
+ * requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
88
+ * workspace.
89
+ *
90
+ * @generated from protobuf rpc: TakedownRepl
91
+ */
92
+ takedownRepl(input: TakedownReplRequest, options?: RpcOptions): UnaryCall<TakedownReplRequest, TakedownReplResponse>;
93
+ /**
94
+ * SoftTakedownRepl performs a soft takedown of a repl, which allows a user to
95
+ * restart it immediately and prevents the repl from being woken up via
96
+ * requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
97
+ * workspace.
98
+ *
99
+ * @generated from protobuf rpc: SoftTakedownRepl
100
+ */
101
+ softTakedownRepl(input: SoftTakedownReplRequest, options?: RpcOptions): UnaryCall<SoftTakedownReplRequest, SoftTakedownReplResponse>;
102
+ /**
103
+ * RestoreRepl deletes a repl's tombstone.
104
+ *
105
+ * @generated from protobuf rpc: RestoreRepl
106
+ */
107
+ restoreRepl(input: RestoreReplRequest, options?: RpcOptions): UnaryCall<RestoreReplRequest, RestoreReplResponse>;
108
+ /**
109
+ * BulkRemove performs a soft takedown on the specified repls.
110
+ *
111
+ * @generated from protobuf rpc: BulkRemove
112
+ */
113
+ bulkRemove(input: BulkRemoveRequest, options?: RpcOptions): UnaryCall<BulkRemoveRequest, BulkRemoveResponse>;
114
+ /**
115
+ * GetClusters returns metadata for all clusters.
116
+ *
117
+ * @generated from protobuf rpc: GetClusters
118
+ */
119
+ getClusters(input: GetClustersRequest, options?: RpcOptions): UnaryCall<GetClustersRequest, GetClustersResponse>;
120
+ /**
121
+ * TransferReplFromOfflineCluster transfers a repl from an offline cluster to
122
+ * a new cluster.
123
+ * The key difference between this and TransferRepls is that this method
124
+ * doesn't require the source cluster to be online.
125
+ * Deprecated. TransferRepls will automatically handle offline clusters.
126
+ *
127
+ * @deprecated
128
+ * @generated from protobuf rpc: TransferReplFromOfflineCluster
129
+ */
130
+ transferReplFromOfflineCluster(input: TransferReplFromOfflineClusterRequest, options?: RpcOptions): UnaryCall<TransferReplFromOfflineClusterRequest, TransferReplFromOfflineClusterResponse>;
131
+ /**
132
+ * ExportRepl exports a bundle of signed object store URLs for exporting the
133
+ * full contents of a repl. Currently this only includes loose files and
134
+ * margarine blocks.
135
+ *
136
+ * The `ReplExport` can be passed to a call to another Lore's `ImportRepl` RPC
137
+ * to import the repl into another Lore.
138
+ *
139
+ * Exports are short lived and should be imported as soon as possible.
140
+ *
141
+ * @generated from protobuf rpc: ExportRepl
142
+ */
143
+ exportRepl(input: ExportReplRequest, options?: RpcOptions): UnaryCall<ExportReplRequest, ExportReplResponse>;
144
+ /**
145
+ * ImportRepl imports a repls contents into this Lore's domain. An export
146
+ * from another Lore's `ExportRepl` RPC must be provided.
147
+ *
148
+ * This will copy the data from the export's signed URLs into this Lore's
149
+ * set of object storage buckets.
150
+ *
151
+ * @generated from protobuf rpc: ImportRepl
152
+ */
153
+ importRepl(input: ImportReplRequest, options?: RpcOptions): UnaryCall<ImportReplRequest, ImportReplResponse>;
154
+ }
155
+ /**
156
+ * Lore is the service that manages goval clusters. It maps repls to their
157
+ * cluster and provides a way to transfer repls between clusters.
158
+ *
159
+ * @generated from protobuf service replit.goval.api.lore.Lore
160
+ */
161
+ export declare class LoreClient implements ILoreClient, ServiceInfo {
162
+ private readonly _transport;
163
+ typeName: string;
164
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
165
+ options: {
166
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
167
+ };
168
+ constructor(_transport: RpcTransport);
169
+ /**
170
+ * CreateRepl will create a new repl in Lore. Its contents may be copied from
171
+ * a source repl or a specified list of files.
172
+ *
173
+ * @generated from protobuf rpc: CreateRepl
174
+ */
175
+ createRepl(input: CreateReplRequest, options?: RpcOptions): UnaryCall<CreateReplRequest, CreateReplResponse>;
176
+ /**
177
+ * GetRepl will return a repl and its associated cluster and GCS buckets.
178
+ *
179
+ * @generated from protobuf rpc: GetRepl
180
+ */
181
+ getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
182
+ /**
183
+ * GetReplConnectionInfo will return a repl and its associated cluster and
184
+ * GCE buckets. If the repl does not exist, the repl will be created; however,
185
+ * GCS contents will not be copied. This is only used for guest-fork repls
186
+ * which don't require GCS copies. For regular repls, `CreateRepl` must be
187
+ * called to copy the repl contents.
188
+ *
189
+ * @generated from protobuf rpc: GetReplConnectionInfo
190
+ */
191
+ getReplConnectionInfo(input: GetReplConnectionInfoRequest, options?: RpcOptions): UnaryCall<GetReplConnectionInfoRequest, GetReplConnectionInfoResponse>;
192
+ /**
193
+ * GetTransferStatus will return the status of the given repl transfer.
194
+ *
195
+ * @generated from protobuf rpc: GetTransferStatus
196
+ */
197
+ getTransferStatus(input: GetTransferStatusRequest, options?: RpcOptions): UnaryCall<GetTransferStatusRequest, GetTransferStatusResponse>;
198
+ /**
199
+ * TransferRepls will initiate a bulk transfer of repls to a new cluster and
200
+ * return the transfer id.
201
+ *
202
+ * @generated from protobuf rpc: TransferRepls
203
+ */
204
+ transferRepls(input: TransferReplsRequest, options?: RpcOptions): UnaryCall<TransferReplsRequest, TransferReplsResponse>;
205
+ /**
206
+ * TransferUser will initiate a bulk transfer of repls for the user
207
+ * to a new cluster and return the transfer id.
208
+ *
209
+ * @deprecated
210
+ * @generated from protobuf rpc: TransferUser
211
+ */
212
+ transferUser(input: TransferUserRequest, options?: RpcOptions): UnaryCall<TransferUserRequest, TransferUserResponse>;
213
+ /**
214
+ * TakedownRepl performs a hard takedown of a repl, which blocks a user from
215
+ * running it for an hour and prevents the repl from being woken up via
216
+ * requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
217
+ * workspace.
218
+ *
219
+ * @generated from protobuf rpc: TakedownRepl
220
+ */
221
+ takedownRepl(input: TakedownReplRequest, options?: RpcOptions): UnaryCall<TakedownReplRequest, TakedownReplResponse>;
222
+ /**
223
+ * SoftTakedownRepl performs a soft takedown of a repl, which allows a user to
224
+ * restart it immediately and prevents the repl from being woken up via
225
+ * requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
226
+ * workspace.
227
+ *
228
+ * @generated from protobuf rpc: SoftTakedownRepl
229
+ */
230
+ softTakedownRepl(input: SoftTakedownReplRequest, options?: RpcOptions): UnaryCall<SoftTakedownReplRequest, SoftTakedownReplResponse>;
231
+ /**
232
+ * RestoreRepl deletes a repl's tombstone.
233
+ *
234
+ * @generated from protobuf rpc: RestoreRepl
235
+ */
236
+ restoreRepl(input: RestoreReplRequest, options?: RpcOptions): UnaryCall<RestoreReplRequest, RestoreReplResponse>;
237
+ /**
238
+ * BulkRemove performs a soft takedown on the specified repls.
239
+ *
240
+ * @generated from protobuf rpc: BulkRemove
241
+ */
242
+ bulkRemove(input: BulkRemoveRequest, options?: RpcOptions): UnaryCall<BulkRemoveRequest, BulkRemoveResponse>;
243
+ /**
244
+ * GetClusters returns metadata for all clusters.
245
+ *
246
+ * @generated from protobuf rpc: GetClusters
247
+ */
248
+ getClusters(input: GetClustersRequest, options?: RpcOptions): UnaryCall<GetClustersRequest, GetClustersResponse>;
249
+ /**
250
+ * TransferReplFromOfflineCluster transfers a repl from an offline cluster to
251
+ * a new cluster.
252
+ * The key difference between this and TransferRepls is that this method
253
+ * doesn't require the source cluster to be online.
254
+ * Deprecated. TransferRepls will automatically handle offline clusters.
255
+ *
256
+ * @deprecated
257
+ * @generated from protobuf rpc: TransferReplFromOfflineCluster
258
+ */
259
+ transferReplFromOfflineCluster(input: TransferReplFromOfflineClusterRequest, options?: RpcOptions): UnaryCall<TransferReplFromOfflineClusterRequest, TransferReplFromOfflineClusterResponse>;
260
+ /**
261
+ * ExportRepl exports a bundle of signed object store URLs for exporting the
262
+ * full contents of a repl. Currently this only includes loose files and
263
+ * margarine blocks.
264
+ *
265
+ * The `ReplExport` can be passed to a call to another Lore's `ImportRepl` RPC
266
+ * to import the repl into another Lore.
267
+ *
268
+ * Exports are short lived and should be imported as soon as possible.
269
+ *
270
+ * @generated from protobuf rpc: ExportRepl
271
+ */
272
+ exportRepl(input: ExportReplRequest, options?: RpcOptions): UnaryCall<ExportReplRequest, ExportReplResponse>;
273
+ /**
274
+ * ImportRepl imports a repls contents into this Lore's domain. An export
275
+ * from another Lore's `ExportRepl` RPC must be provided.
276
+ *
277
+ * This will copy the data from the export's signed URLs into this Lore's
278
+ * set of object storage buckets.
279
+ *
280
+ * @generated from protobuf rpc: ImportRepl
281
+ */
282
+ importRepl(input: ImportReplRequest, options?: RpcOptions): UnaryCall<ImportReplRequest, ImportReplResponse>;
283
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.client.d.ts","sourceRoot":"","sources":["service.client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,cAAc,CAAC;AAC3E,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OAIG;IACH,WAAW,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IAIhH;;;;;;;;;OASG;IACH,8BAA8B,CAAC,KAAK,EAAE,qCAAqC,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,qCAAqC,EAAE,sCAAsC,CAAC;IAI5L;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAI5G;;;;;;;;OAQG;IACH,UAAU,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;CAI/G"}
@@ -0,0 +1,172 @@
1
+ import { Lore } from "./service.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ /**
4
+ * Lore is the service that manages goval clusters. It maps repls to their
5
+ * cluster and provides a way to transfer repls between clusters.
6
+ *
7
+ * @generated from protobuf service replit.goval.api.lore.Lore
8
+ */
9
+ export class LoreClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = Lore.typeName;
13
+ this.methods = Lore.methods;
14
+ this.options = Lore.options;
15
+ }
16
+ /**
17
+ * CreateRepl will create a new repl in Lore. Its contents may be copied from
18
+ * a source repl or a specified list of files.
19
+ *
20
+ * @generated from protobuf rpc: CreateRepl
21
+ */
22
+ createRepl(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
+ * GetRepl will return a repl and its associated cluster and GCS buckets.
28
+ *
29
+ * @generated from protobuf rpc: GetRepl
30
+ */
31
+ getRepl(input, options) {
32
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
33
+ return stackIntercept("unary", this._transport, method, opt, input);
34
+ }
35
+ /**
36
+ * GetReplConnectionInfo will return a repl and its associated cluster and
37
+ * GCE buckets. If the repl does not exist, the repl will be created; however,
38
+ * GCS contents will not be copied. This is only used for guest-fork repls
39
+ * which don't require GCS copies. For regular repls, `CreateRepl` must be
40
+ * called to copy the repl contents.
41
+ *
42
+ * @generated from protobuf rpc: GetReplConnectionInfo
43
+ */
44
+ getReplConnectionInfo(input, options) {
45
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
46
+ return stackIntercept("unary", this._transport, method, opt, input);
47
+ }
48
+ /**
49
+ * GetTransferStatus will return the status of the given repl transfer.
50
+ *
51
+ * @generated from protobuf rpc: GetTransferStatus
52
+ */
53
+ getTransferStatus(input, options) {
54
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
55
+ return stackIntercept("unary", this._transport, method, opt, input);
56
+ }
57
+ /**
58
+ * TransferRepls will initiate a bulk transfer of repls to a new cluster and
59
+ * return the transfer id.
60
+ *
61
+ * @generated from protobuf rpc: TransferRepls
62
+ */
63
+ transferRepls(input, options) {
64
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
65
+ return stackIntercept("unary", this._transport, method, opt, input);
66
+ }
67
+ /**
68
+ * TransferUser will initiate a bulk transfer of repls for the user
69
+ * to a new cluster and return the transfer id.
70
+ *
71
+ * @deprecated
72
+ * @generated from protobuf rpc: TransferUser
73
+ */
74
+ transferUser(input, options) {
75
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
76
+ return stackIntercept("unary", this._transport, method, opt, input);
77
+ }
78
+ /**
79
+ * TakedownRepl performs a hard takedown of a repl, which blocks a user from
80
+ * running it for an hour and prevents the repl from being woken up via
81
+ * requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
82
+ * workspace.
83
+ *
84
+ * @generated from protobuf rpc: TakedownRepl
85
+ */
86
+ takedownRepl(input, options) {
87
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
88
+ return stackIntercept("unary", this._transport, method, opt, input);
89
+ }
90
+ /**
91
+ * SoftTakedownRepl performs a soft takedown of a repl, which allows a user to
92
+ * restart it immediately and prevents the repl from being woken up via
93
+ * requests to <repl>.<user>.repl.co, requiring the repl to be opened in the
94
+ * workspace.
95
+ *
96
+ * @generated from protobuf rpc: SoftTakedownRepl
97
+ */
98
+ softTakedownRepl(input, options) {
99
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
100
+ return stackIntercept("unary", this._transport, method, opt, input);
101
+ }
102
+ /**
103
+ * RestoreRepl deletes a repl's tombstone.
104
+ *
105
+ * @generated from protobuf rpc: RestoreRepl
106
+ */
107
+ restoreRepl(input, options) {
108
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
109
+ return stackIntercept("unary", this._transport, method, opt, input);
110
+ }
111
+ /**
112
+ * BulkRemove performs a soft takedown on the specified repls.
113
+ *
114
+ * @generated from protobuf rpc: BulkRemove
115
+ */
116
+ bulkRemove(input, options) {
117
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
118
+ return stackIntercept("unary", this._transport, method, opt, input);
119
+ }
120
+ /**
121
+ * GetClusters returns metadata for all clusters.
122
+ *
123
+ * @generated from protobuf rpc: GetClusters
124
+ */
125
+ getClusters(input, options) {
126
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
127
+ return stackIntercept("unary", this._transport, method, opt, input);
128
+ }
129
+ /**
130
+ * TransferReplFromOfflineCluster transfers a repl from an offline cluster to
131
+ * a new cluster.
132
+ * The key difference between this and TransferRepls is that this method
133
+ * doesn't require the source cluster to be online.
134
+ * Deprecated. TransferRepls will automatically handle offline clusters.
135
+ *
136
+ * @deprecated
137
+ * @generated from protobuf rpc: TransferReplFromOfflineCluster
138
+ */
139
+ transferReplFromOfflineCluster(input, options) {
140
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
141
+ return stackIntercept("unary", this._transport, method, opt, input);
142
+ }
143
+ /**
144
+ * ExportRepl exports a bundle of signed object store URLs for exporting the
145
+ * full contents of a repl. Currently this only includes loose files and
146
+ * margarine blocks.
147
+ *
148
+ * The `ReplExport` can be passed to a call to another Lore's `ImportRepl` RPC
149
+ * to import the repl into another Lore.
150
+ *
151
+ * Exports are short lived and should be imported as soon as possible.
152
+ *
153
+ * @generated from protobuf rpc: ExportRepl
154
+ */
155
+ exportRepl(input, options) {
156
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
157
+ return stackIntercept("unary", this._transport, method, opt, input);
158
+ }
159
+ /**
160
+ * ImportRepl imports a repls contents into this Lore's domain. An export
161
+ * from another Lore's `ExportRepl` RPC must be provided.
162
+ *
163
+ * This will copy the data from the export's signed URLs into this Lore's
164
+ * set of object storage buckets.
165
+ *
166
+ * @generated from protobuf rpc: ImportRepl
167
+ */
168
+ importRepl(input, options) {
169
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
170
+ return stackIntercept("unary", this._transport, method, opt, input);
171
+ }
172
+ }