@replit/protocol 0.4.29 → 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.
@@ -8,6 +8,8 @@ import type { EvictReplResponse } from "./repl.js";
8
8
  import type { EvictReplRequest } from "./repl.js";
9
9
  import type { DeleteReplResponse } from "./repl.js";
10
10
  import type { DeleteReplRequest } from "./repl.js";
11
+ import type { GetResourceGroupResponse } from "./repl.js";
12
+ import type { GetResourceGroupRequest } from "./repl.js";
11
13
  import type { GetReplResponse } from "./repl.js";
12
14
  import type { GetReplRequest } from "./repl.js";
13
15
  import type { DeleteResourceGroupResponse } from "./repl.js";
@@ -16,6 +18,10 @@ import type { CreateResourceGroupResponse } from "./repl.js";
16
18
  import type { CreateResourceGroupRequest } from "./repl.js";
17
19
  import type { CreateReplResponse } from "./repl.js";
18
20
  import type { CreateReplRequest } from "./repl.js";
21
+ import type { DeleteSandboxResponse } from "./repl.js";
22
+ import type { DeleteSandboxRequest } from "./repl.js";
23
+ import type { UpdateSandboxResponse } from "./repl.js";
24
+ import type { UpdateSandboxRequest } from "./repl.js";
19
25
  import type { CreateSandboxResponse } from "./repl.js";
20
26
  import type { CreateSandboxRequest } from "./repl.js";
21
27
  import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
@@ -34,6 +40,19 @@ export interface IReplServiceClient {
34
40
  * @generated from protobuf rpc: CreateSandbox
35
41
  */
36
42
  createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
43
+ /**
44
+ * UpdateSandbox replaces or removes a sandbox's extra mount. A running
45
+ * sandbox keeps its current mount until it is next placed.
46
+ *
47
+ * @generated from protobuf rpc: UpdateSandbox
48
+ */
49
+ updateSandbox(input: UpdateSandboxRequest, options?: RpcOptions): UnaryCall<UpdateSandboxRequest, UpdateSandboxResponse>;
50
+ /**
51
+ * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
52
+ *
53
+ * @generated from protobuf rpc: DeleteSandbox
54
+ */
55
+ deleteSandbox(input: DeleteSandboxRequest, options?: RpcOptions): UnaryCall<DeleteSandboxRequest, DeleteSandboxResponse>;
37
56
  /**
38
57
  * CreateRepl registers a new repl and creates its margarine manifests.
39
58
  * The source field determines how disks are initialized (empty, forked
@@ -60,6 +79,15 @@ export interface IReplServiceClient {
60
79
  * @generated from protobuf rpc: GetRepl
61
80
  */
62
81
  getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
82
+ /**
83
+ * GetResourceGroup names every repl in a resource group. Jetplane holds
84
+ * the only authoritative membership: a repl's ID only hints at its group,
85
+ * because CreateRepl accepts a resource_group_id that need not match it.
86
+ * Returns NOT_FOUND when the group is not registered.
87
+ *
88
+ * @generated from protobuf rpc: GetResourceGroup
89
+ */
90
+ getResourceGroup(input: GetResourceGroupRequest, options?: RpcOptions): UnaryCall<GetResourceGroupRequest, GetResourceGroupResponse>;
63
91
  /**
64
92
  * DeleteRepl synchronously soft-deletes a repl and its resources. GCS data
65
93
  * and database metadata remain available until a separate cleanup run
@@ -126,6 +154,19 @@ export declare class ReplServiceClient implements IReplServiceClient, ServiceInf
126
154
  * @generated from protobuf rpc: CreateSandbox
127
155
  */
128
156
  createSandbox(input: CreateSandboxRequest, options?: RpcOptions): UnaryCall<CreateSandboxRequest, CreateSandboxResponse>;
157
+ /**
158
+ * UpdateSandbox replaces or removes a sandbox's extra mount. A running
159
+ * sandbox keeps its current mount until it is next placed.
160
+ *
161
+ * @generated from protobuf rpc: UpdateSandbox
162
+ */
163
+ updateSandbox(input: UpdateSandboxRequest, options?: RpcOptions): UnaryCall<UpdateSandboxRequest, UpdateSandboxResponse>;
164
+ /**
165
+ * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
166
+ *
167
+ * @generated from protobuf rpc: DeleteSandbox
168
+ */
169
+ deleteSandbox(input: DeleteSandboxRequest, options?: RpcOptions): UnaryCall<DeleteSandboxRequest, DeleteSandboxResponse>;
129
170
  /**
130
171
  * CreateRepl registers a new repl and creates its margarine manifests.
131
172
  * The source field determines how disks are initialized (empty, forked
@@ -152,6 +193,15 @@ export declare class ReplServiceClient implements IReplServiceClient, ServiceInf
152
193
  * @generated from protobuf rpc: GetRepl
153
194
  */
154
195
  getRepl(input: GetReplRequest, options?: RpcOptions): UnaryCall<GetReplRequest, GetReplResponse>;
196
+ /**
197
+ * GetResourceGroup names every repl in a resource group. Jetplane holds
198
+ * the only authoritative membership: a repl's ID only hints at its group,
199
+ * because CreateRepl accepts a resource_group_id that need not match it.
200
+ * Returns NOT_FOUND when the group is not registered.
201
+ *
202
+ * @generated from protobuf rpc: GetResourceGroup
203
+ */
204
+ getResourceGroup(input: GetResourceGroupRequest, options?: RpcOptions): UnaryCall<GetResourceGroupRequest, GetResourceGroupResponse>;
155
205
  /**
156
206
  * DeleteRepl synchronously soft-deletes a repl and its resources. GCS data
157
207
  * and database metadata remain available until a separate cleanup run
@@ -23,6 +23,25 @@ export class ReplServiceClient {
23
23
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
24
24
  return stackIntercept("unary", this._transport, method, opt, input);
25
25
  }
26
+ /**
27
+ * UpdateSandbox replaces or removes a sandbox's extra mount. A running
28
+ * sandbox keeps its current mount until it is next placed.
29
+ *
30
+ * @generated from protobuf rpc: UpdateSandbox
31
+ */
32
+ updateSandbox(input, options) {
33
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
34
+ return stackIntercept("unary", this._transport, method, opt, input);
35
+ }
36
+ /**
37
+ * DeleteSandbox soft-deletes a sandbox and evicts its running workload.
38
+ *
39
+ * @generated from protobuf rpc: DeleteSandbox
40
+ */
41
+ deleteSandbox(input, options) {
42
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
43
+ return stackIntercept("unary", this._transport, method, opt, input);
44
+ }
26
45
  /**
27
46
  * CreateRepl registers a new repl and creates its margarine manifests.
28
47
  * The source field determines how disks are initialized (empty, forked
@@ -31,7 +50,7 @@ export class ReplServiceClient {
31
50
  * @generated from protobuf rpc: CreateRepl
32
51
  */
33
52
  createRepl(input, options) {
34
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
53
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
35
54
  return stackIntercept("unary", this._transport, method, opt, input);
36
55
  }
37
56
  /**
@@ -40,7 +59,7 @@ export class ReplServiceClient {
40
59
  * @generated from protobuf rpc: CreateResourceGroup
41
60
  */
42
61
  createResourceGroup(input, options) {
43
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
62
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
44
63
  return stackIntercept("unary", this._transport, method, opt, input);
45
64
  }
46
65
  /**
@@ -49,7 +68,7 @@ export class ReplServiceClient {
49
68
  * @generated from protobuf rpc: DeleteResourceGroup
50
69
  */
51
70
  deleteResourceGroup(input, options) {
52
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
71
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
53
72
  return stackIntercept("unary", this._transport, method, opt, input);
54
73
  }
55
74
  /**
@@ -58,7 +77,19 @@ export class ReplServiceClient {
58
77
  * @generated from protobuf rpc: GetRepl
59
78
  */
60
79
  getRepl(input, options) {
61
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
80
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
81
+ return stackIntercept("unary", this._transport, method, opt, input);
82
+ }
83
+ /**
84
+ * GetResourceGroup names every repl in a resource group. Jetplane holds
85
+ * the only authoritative membership: a repl's ID only hints at its group,
86
+ * because CreateRepl accepts a resource_group_id that need not match it.
87
+ * Returns NOT_FOUND when the group is not registered.
88
+ *
89
+ * @generated from protobuf rpc: GetResourceGroup
90
+ */
91
+ getResourceGroup(input, options) {
92
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
62
93
  return stackIntercept("unary", this._transport, method, opt, input);
63
94
  }
64
95
  /**
@@ -75,7 +106,7 @@ export class ReplServiceClient {
75
106
  * @generated from protobuf rpc: DeleteRepl
76
107
  */
77
108
  deleteRepl(input, options) {
78
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
109
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
79
110
  return stackIntercept("unary", this._transport, method, opt, input);
80
111
  }
81
112
  /**
@@ -86,7 +117,7 @@ export class ReplServiceClient {
86
117
  * @generated from protobuf rpc: EvictRepl
87
118
  */
88
119
  evictRepl(input, options) {
89
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
120
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
90
121
  return stackIntercept("unary", this._transport, method, opt, input);
91
122
  }
92
123
  /**
@@ -101,7 +132,7 @@ export class ReplServiceClient {
101
132
  * @generated from protobuf rpc: AddTombstone
102
133
  */
103
134
  addTombstone(input, options) {
104
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
135
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
105
136
  return stackIntercept("unary", this._transport, method, opt, input);
106
137
  }
107
138
  /**
@@ -114,7 +145,7 @@ export class ReplServiceClient {
114
145
  * @generated from protobuf rpc: RemoveTombstone
115
146
  */
116
147
  removeTombstone(input, options) {
117
- const method = this.methods[8], opt = this._transport.mergeOptions(options);
148
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
118
149
  return stackIntercept("unary", this._transport, method, opt, input);
119
150
  }
120
151
  }