@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.
- package/README.md +54 -0
- package/dist/api/client.d.ts +202 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +394 -0
- package/dist/api/features/features.d.ts +112 -0
- package/dist/api/features/features.d.ts.map +1 -0
- package/dist/api/features/features.js +199 -0
- package/dist/api/lore/lore.d.ts +543 -0
- package/dist/api/lore/lore.d.ts.map +1 -0
- package/dist/api/lore/lore.js +982 -0
- package/dist/api/lore/service.client.d.ts +283 -0
- package/dist/api/lore/service.client.d.ts.map +1 -0
- package/dist/api/lore/service.client.js +172 -0
- package/dist/api/lore/service.d.ts +1100 -0
- package/dist/api/lore/service.d.ts.map +1 -0
- package/dist/api/lore/service.js +2279 -0
- package/dist/api/powerup.d.ts +147 -0
- package/dist/api/powerup.d.ts.map +1 -0
- package/dist/api/powerup.js +286 -0
- package/dist/api/repl/repl.d.ts +552 -0
- package/dist/api/repl/repl.d.ts.map +1 -0
- package/dist/api/repl/repl.js +787 -0
- package/dist/api/signing.d.ts +618 -0
- package/dist/api/signing.d.ts.map +1 -0
- package/dist/api/signing.js +785 -0
- package/dist/api/token/token.d.ts +335 -0
- package/dist/api/token/token.d.ts.map +1 -0
- package/dist/api/token/token.js +463 -0
- package/dist/api/types.d.ts +8629 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +17225 -0
- package/dist/google/protobuf/empty.d.ts +31 -0
- package/dist/google/protobuf/empty.d.ts.map +1 -0
- package/dist/google/protobuf/empty.js +41 -0
- package/dist/google/protobuf/field_mask.d.ts +239 -0
- package/dist/google/protobuf/field_mask.d.ts.map +1 -0
- package/dist/google/protobuf/field_mask.js +83 -0
- package/dist/google/protobuf/struct.d.ts +186 -0
- package/dist/google/protobuf/struct.d.ts.map +1 -0
- package/dist/google/protobuf/struct.js +337 -0
- package/dist/google/protobuf/timestamp.d.ts +156 -0
- package/dist/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/google/protobuf/timestamp.js +132 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/package.json +3 -0
- package/iotester/index.d.ts +6 -6
- package/iotester/index.js +25 -12
- package/main/index.d.ts +6 -6
- package/main/index.js +25 -12
- package/package.json +43 -4
- package/gen.sh +0 -51
- package/jsdoc.js +0 -171
- package/pnpm-workspace.yaml +0 -6
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { Feature } from "../features/features.js";
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf message replit.goval.api.repl.Buckets
|
|
10
|
+
*/
|
|
11
|
+
export interface Buckets {
|
|
12
|
+
/**
|
|
13
|
+
* Snapshots is the GCS bucket where btrfs snapshots are stored.
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf field: string snapshots = 1
|
|
16
|
+
*/
|
|
17
|
+
snapshots: string;
|
|
18
|
+
/**
|
|
19
|
+
* Metadata is the GCS bucket where OT metadata is stored.
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf field: string metadata = 2
|
|
22
|
+
*/
|
|
23
|
+
metadata: string;
|
|
24
|
+
/**
|
|
25
|
+
* DiskBlocks is the name of the GCS bucket where block device blocks are
|
|
26
|
+
* stored for the repl.
|
|
27
|
+
*
|
|
28
|
+
* @generated from protobuf field: string disk_blocks = 3
|
|
29
|
+
*/
|
|
30
|
+
diskBlocks: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* This message constitutes the repl metadata and define the repl we're
|
|
34
|
+
* connecting to. All fields are required unless otherwise stated.
|
|
35
|
+
*
|
|
36
|
+
* @generated from protobuf message replit.goval.api.repl.Repl
|
|
37
|
+
*/
|
|
38
|
+
export interface Repl {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: string id = 1
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: string language = 2
|
|
45
|
+
*/
|
|
46
|
+
language: string;
|
|
47
|
+
/**
|
|
48
|
+
* Bucket is GCS bucket where repl files are stored.
|
|
49
|
+
*
|
|
50
|
+
* @generated from protobuf field: string bucket = 3
|
|
51
|
+
*/
|
|
52
|
+
bucket: string;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: string slug = 4
|
|
55
|
+
*/
|
|
56
|
+
slug: string;
|
|
57
|
+
/**
|
|
58
|
+
* User is the username of the user who owns the repl. This may change if a
|
|
59
|
+
* user changes their username.
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf field: string user = 5
|
|
62
|
+
*/
|
|
63
|
+
user: string;
|
|
64
|
+
/**
|
|
65
|
+
* (Optional) The Org information associated with this Repl, and used to pass
|
|
66
|
+
* to autocontainer to help determine what kind of GCP project to use. See
|
|
67
|
+
* message for more info.
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf field: replit.goval.api.repl.Org org = 14
|
|
70
|
+
*/
|
|
71
|
+
org?: Org;
|
|
72
|
+
/**
|
|
73
|
+
* (Optional) The replID of a repl to be used as the source filesystem. All
|
|
74
|
+
* writes will still go to the actual repl. This is intended to be a
|
|
75
|
+
* replacement for guest repls, giving us cheap COW semantics so all
|
|
76
|
+
* connections can have a real repl.
|
|
77
|
+
*
|
|
78
|
+
* One exception:
|
|
79
|
+
*
|
|
80
|
+
* It's important to note that data is not implicitly copied from src to
|
|
81
|
+
* dest. Only what is explicitly written when talking to pid1 (either
|
|
82
|
+
* gcsfiles or snapshots) will persist. This makes it slightly different
|
|
83
|
+
* than just forking.
|
|
84
|
+
*
|
|
85
|
+
* It's unclear what the behaviour should be if:
|
|
86
|
+
* - the dest and src repl both exist
|
|
87
|
+
* - the dest and src are the same
|
|
88
|
+
* - we have an src but no dest
|
|
89
|
+
*
|
|
90
|
+
* Consider these unsupported/undefined for now.
|
|
91
|
+
*
|
|
92
|
+
* @generated from protobuf field: string sourceRepl = 6
|
|
93
|
+
*/
|
|
94
|
+
sourceRepl: string;
|
|
95
|
+
/**
|
|
96
|
+
* Database is the ID for the repldb instance that is used for this repl. If
|
|
97
|
+
* let empty, the repl ID is used.
|
|
98
|
+
*
|
|
99
|
+
* @generated from protobuf field: string database = 7
|
|
100
|
+
*/
|
|
101
|
+
database: string;
|
|
102
|
+
/**
|
|
103
|
+
* Buckets are the GCS buckets where repl contents are stored.
|
|
104
|
+
*
|
|
105
|
+
* @generated from protobuf field: replit.goval.api.repl.Buckets buckets = 8
|
|
106
|
+
*/
|
|
107
|
+
buckets?: Buckets;
|
|
108
|
+
/**
|
|
109
|
+
* User ID is the user's ID from Replit web. A user's ID will never change.
|
|
110
|
+
*
|
|
111
|
+
* @generated from protobuf field: replit.goval.api.repl.UserId user_id = 9
|
|
112
|
+
*/
|
|
113
|
+
userId?: UserId;
|
|
114
|
+
/**
|
|
115
|
+
* A boolean indicating if the owner of the repl is a team.
|
|
116
|
+
*
|
|
117
|
+
* @generated from protobuf field: bool is_team = 10
|
|
118
|
+
*/
|
|
119
|
+
isTeam: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* A list of roles for the user who owns the repl.
|
|
122
|
+
*
|
|
123
|
+
* @generated from protobuf field: repeated string roles = 11
|
|
124
|
+
*/
|
|
125
|
+
roles: string[];
|
|
126
|
+
/**
|
|
127
|
+
* JSON of fields that should be added to logs
|
|
128
|
+
*
|
|
129
|
+
* @generated from protobuf field: string log_fields = 13
|
|
130
|
+
*/
|
|
131
|
+
logFields: string;
|
|
132
|
+
/**
|
|
133
|
+
* A boolean indicating if replshield should be enabled for this repl.
|
|
134
|
+
*
|
|
135
|
+
* @generated from protobuf field: bool use_repl_shield = 15
|
|
136
|
+
*/
|
|
137
|
+
useReplShield: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The host for which replspace should use to talk to OpenInt
|
|
140
|
+
*
|
|
141
|
+
* @generated from protobuf field: string connectors_host = 16
|
|
142
|
+
*/
|
|
143
|
+
connectorsHost: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* autocontainer needs to know if we are in a teams org
|
|
147
|
+
* so we can create a organization GCP project to host your deployments
|
|
148
|
+
* and cloud services. We do not support legacy org types, and a personal
|
|
149
|
+
* org should behave as a user GCP project (the existing behavior)
|
|
150
|
+
*
|
|
151
|
+
* @generated from protobuf message replit.goval.api.repl.Org
|
|
152
|
+
*/
|
|
153
|
+
export interface Org {
|
|
154
|
+
/**
|
|
155
|
+
* @generated from protobuf field: string id = 1
|
|
156
|
+
*/
|
|
157
|
+
id: string;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from protobuf field: replit.goval.api.repl.Org.OrgType type = 2
|
|
160
|
+
*/
|
|
161
|
+
type: Org_OrgType;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from protobuf field: string slug = 3
|
|
164
|
+
*/
|
|
165
|
+
slug: string;
|
|
166
|
+
/**
|
|
167
|
+
* Whether this org has an enterprise deal
|
|
168
|
+
*
|
|
169
|
+
* @generated from protobuf field: bool is_enterprise = 4
|
|
170
|
+
*/
|
|
171
|
+
isEnterprise: boolean;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Organization type. There are legacy types, but we are not
|
|
175
|
+
* supporting them, and they should not be getting passed.
|
|
176
|
+
*
|
|
177
|
+
* @generated from protobuf enum replit.goval.api.repl.Org.OrgType
|
|
178
|
+
*/
|
|
179
|
+
export declare enum Org_OrgType {
|
|
180
|
+
/**
|
|
181
|
+
* @generated from protobuf enum value: TYPE_UNSPECIFIED = 0;
|
|
182
|
+
*/
|
|
183
|
+
TYPE_UNSPECIFIED = 0,
|
|
184
|
+
/**
|
|
185
|
+
* @generated from protobuf enum value: PERSONAL = 1;
|
|
186
|
+
*/
|
|
187
|
+
PERSONAL = 1,
|
|
188
|
+
/**
|
|
189
|
+
* @generated from protobuf enum value: TEAM = 2;
|
|
190
|
+
*/
|
|
191
|
+
TEAM = 2
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @generated from protobuf message replit.goval.api.repl.UserId
|
|
195
|
+
*/
|
|
196
|
+
export interface UserId {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from protobuf field: int64 id = 1
|
|
199
|
+
*/
|
|
200
|
+
id: bigint;
|
|
201
|
+
/**
|
|
202
|
+
* @generated from protobuf field: replit.goval.api.repl.Environment environment = 2
|
|
203
|
+
*/
|
|
204
|
+
environment: Environment;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* The resource limits that should be applied to the Repl's container.
|
|
208
|
+
*
|
|
209
|
+
* @generated from protobuf message replit.goval.api.repl.ResourceLimits
|
|
210
|
+
*/
|
|
211
|
+
export interface ResourceLimits {
|
|
212
|
+
/**
|
|
213
|
+
* Whether the repl has network access.
|
|
214
|
+
*
|
|
215
|
+
* @generated from protobuf field: bool net = 1
|
|
216
|
+
*/
|
|
217
|
+
net: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* The amount of RAM in bytes that this repl will have.
|
|
220
|
+
*
|
|
221
|
+
* @generated from protobuf field: int64 memory = 2
|
|
222
|
+
*/
|
|
223
|
+
memory: bigint;
|
|
224
|
+
/**
|
|
225
|
+
* The number of cores that the container will be allowed to have.
|
|
226
|
+
*
|
|
227
|
+
* @generated from protobuf field: double threads = 3
|
|
228
|
+
*/
|
|
229
|
+
threads: number;
|
|
230
|
+
/**
|
|
231
|
+
* The Docker container weight factor for the scheduler. Similar to the
|
|
232
|
+
* `--cpu-shares` commandline flag.
|
|
233
|
+
*
|
|
234
|
+
* @generated from protobuf field: double shares = 4
|
|
235
|
+
*/
|
|
236
|
+
shares: number;
|
|
237
|
+
/**
|
|
238
|
+
* The size of the disk in bytes.
|
|
239
|
+
*
|
|
240
|
+
* @generated from protobuf field: int64 disk = 5
|
|
241
|
+
*/
|
|
242
|
+
disk: bigint;
|
|
243
|
+
/**
|
|
244
|
+
* The size of the disk in bytes.
|
|
245
|
+
*
|
|
246
|
+
* @generated from protobuf field: int64 minimum_disk = 10
|
|
247
|
+
*/
|
|
248
|
+
minimumDisk: bigint;
|
|
249
|
+
/**
|
|
250
|
+
* The size of the scratch_disk in bytes.
|
|
251
|
+
*
|
|
252
|
+
* @generated from protobuf field: int64 scratch_disk = 9
|
|
253
|
+
*/
|
|
254
|
+
scratchDisk: bigint;
|
|
255
|
+
/**
|
|
256
|
+
* @generated from protobuf field: replit.goval.api.repl.ResourceLimits.Cachability cache = 6
|
|
257
|
+
*/
|
|
258
|
+
cache: ResourceLimits_Cachability;
|
|
259
|
+
/**
|
|
260
|
+
* If set, apply a restrictive allowlist-based network policy to the container
|
|
261
|
+
* The container will only be able to communicate with the minimum domains
|
|
262
|
+
* necessary to make Replit work, such as package managers.
|
|
263
|
+
*
|
|
264
|
+
* @generated from protobuf field: bool restrictNetwork = 7
|
|
265
|
+
*/
|
|
266
|
+
restrictNetwork: boolean;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Whether these limits are cachable, and if they are, by what facet of the
|
|
270
|
+
* token.
|
|
271
|
+
*
|
|
272
|
+
* @generated from protobuf enum replit.goval.api.repl.ResourceLimits.Cachability
|
|
273
|
+
*/
|
|
274
|
+
export declare enum ResourceLimits_Cachability {
|
|
275
|
+
/**
|
|
276
|
+
* Do not cache these limits.
|
|
277
|
+
*
|
|
278
|
+
* @generated from protobuf enum value: NONE = 0;
|
|
279
|
+
*/
|
|
280
|
+
NONE = 0,
|
|
281
|
+
/**
|
|
282
|
+
* These limits can be cached and applied to this and any of the user's
|
|
283
|
+
* other repls.
|
|
284
|
+
*
|
|
285
|
+
* @generated from protobuf enum value: USER = 1;
|
|
286
|
+
*/
|
|
287
|
+
USER = 1,
|
|
288
|
+
/**
|
|
289
|
+
* These limits can be cached and applied only to this repl.
|
|
290
|
+
*
|
|
291
|
+
* @generated from protobuf enum value: REPL = 2;
|
|
292
|
+
*/
|
|
293
|
+
REPL = 2
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Metadata is a strict subset of ReplToken (with the same ordinals and
|
|
297
|
+
* everything).
|
|
298
|
+
*
|
|
299
|
+
* @generated from protobuf message replit.goval.api.repl.Metadata
|
|
300
|
+
*/
|
|
301
|
+
export interface Metadata {
|
|
302
|
+
/**
|
|
303
|
+
* Repl is the core metadata about the Repl. The Repl that matches the ID of
|
|
304
|
+
* this field will have all of its fields updated to match the rest of the
|
|
305
|
+
* contents of this message.
|
|
306
|
+
*
|
|
307
|
+
* @generated from protobuf field: replit.goval.api.repl.Repl repl = 7
|
|
308
|
+
*/
|
|
309
|
+
repl?: Repl;
|
|
310
|
+
/**
|
|
311
|
+
* The resource limits for the container.
|
|
312
|
+
*
|
|
313
|
+
* @generated from protobuf field: replit.goval.api.repl.ResourceLimits resourceLimits = 10
|
|
314
|
+
*/
|
|
315
|
+
resourceLimits?: ResourceLimits;
|
|
316
|
+
/**
|
|
317
|
+
* The resource limits for the container, when running in interactive mode.
|
|
318
|
+
* These limits have priority over `resourceLimits` if present, and are never
|
|
319
|
+
* cached.
|
|
320
|
+
*
|
|
321
|
+
* @generated from protobuf field: replit.goval.api.repl.ResourceLimits interactiveResourceLimits = 17
|
|
322
|
+
*/
|
|
323
|
+
interactiveResourceLimits?: ResourceLimits;
|
|
324
|
+
/**
|
|
325
|
+
* Whether to persist filesystem, metadata, or both. When connecting to an
|
|
326
|
+
* already running/existing repl, its settings will be updated to match this
|
|
327
|
+
* mode.
|
|
328
|
+
*
|
|
329
|
+
* @generated from protobuf field: replit.goval.api.repl.Persistence persistence = 6
|
|
330
|
+
*/
|
|
331
|
+
persistence: Persistence;
|
|
332
|
+
/**
|
|
333
|
+
* Flags are handy for passing arbitrary configs along. Mostly used so
|
|
334
|
+
* the client can try out new features
|
|
335
|
+
*
|
|
336
|
+
* @generated from protobuf field: repeated string flags = 14
|
|
337
|
+
*/
|
|
338
|
+
flags: string[];
|
|
339
|
+
/**
|
|
340
|
+
* Features enable certain capabilities that are not enabled by default,
|
|
341
|
+
* typically because they require specific support for the feature that needs
|
|
342
|
+
* additional setup. Not every feature can coexist with each other, and
|
|
343
|
+
* servers should reject acquires that mix features that are incompatible with
|
|
344
|
+
* each other. Some features also require placement (via PlaceRepl) to have
|
|
345
|
+
* used a certain subset to acquire a machine that supports the feature.
|
|
346
|
+
*
|
|
347
|
+
* @generated from protobuf field: repeated replit.goval.api.features.Feature features = 16
|
|
348
|
+
*/
|
|
349
|
+
features: Feature[];
|
|
350
|
+
/**
|
|
351
|
+
* BuildInfo is present if this is a build repl which is allowed to convert a
|
|
352
|
+
* repl to a container image and deploy it to Replit's deployment infra.
|
|
353
|
+
*
|
|
354
|
+
* @generated from protobuf field: replit.goval.api.repl.BuildInfo build_info = 18
|
|
355
|
+
*/
|
|
356
|
+
buildInfo?: BuildInfo;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* BuildInfo includes information about which deployment this repl is allowed to
|
|
360
|
+
* create or update.
|
|
361
|
+
*
|
|
362
|
+
* @generated from protobuf message replit.goval.api.repl.BuildInfo
|
|
363
|
+
*/
|
|
364
|
+
export interface BuildInfo {
|
|
365
|
+
/**
|
|
366
|
+
* ID is a unique identifier for the deployment that this builder repl is
|
|
367
|
+
* allowed to push to.
|
|
368
|
+
*
|
|
369
|
+
* @generated from protobuf field: string deployment_id = 1
|
|
370
|
+
*/
|
|
371
|
+
deploymentId: string;
|
|
372
|
+
/**
|
|
373
|
+
* URL is the replit.app URL that will be used for the deployment.
|
|
374
|
+
*
|
|
375
|
+
* @generated from protobuf field: string url = 2
|
|
376
|
+
*/
|
|
377
|
+
url: string;
|
|
378
|
+
/**
|
|
379
|
+
* Build ID is a unique identifier for this particular deployment build
|
|
380
|
+
*
|
|
381
|
+
* @generated from protobuf field: string build_id = 3
|
|
382
|
+
*/
|
|
383
|
+
buildId: string;
|
|
384
|
+
/**
|
|
385
|
+
* Tier refers to the GCE machine tier that will be used for the build
|
|
386
|
+
*
|
|
387
|
+
* @generated from protobuf field: string machine_tier = 4
|
|
388
|
+
*/
|
|
389
|
+
machineTier: string;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Pid2 includes information about the pid2 payload we want to use for this
|
|
393
|
+
* Repl. This is mostly used for development.
|
|
394
|
+
*
|
|
395
|
+
* @generated from protobuf message replit.goval.api.repl.Pid2Binary
|
|
396
|
+
*/
|
|
397
|
+
export interface Pid2Binary {
|
|
398
|
+
/**
|
|
399
|
+
* Version is the version that will be loaded. The full object URI is then
|
|
400
|
+
* `gs://${bucket}/${version}`
|
|
401
|
+
*
|
|
402
|
+
* @generated from protobuf field: string version = 1
|
|
403
|
+
*/
|
|
404
|
+
version: string;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Environment is used to namespace development Replit from production Replit
|
|
408
|
+
* since user ID collisions will occur between them.
|
|
409
|
+
*
|
|
410
|
+
* @generated from protobuf enum replit.goval.api.repl.Environment
|
|
411
|
+
*/
|
|
412
|
+
export declare enum Environment {
|
|
413
|
+
/**
|
|
414
|
+
* @generated from protobuf enum value: DEVELOPMENT = 0;
|
|
415
|
+
*/
|
|
416
|
+
DEVELOPMENT = 0,
|
|
417
|
+
/**
|
|
418
|
+
* @generated from protobuf enum value: PRODUCTION = 1;
|
|
419
|
+
*/
|
|
420
|
+
PRODUCTION = 1
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Whether to persist filesystem, metadata, or both.
|
|
424
|
+
*
|
|
425
|
+
* @generated from protobuf enum replit.goval.api.repl.Persistence
|
|
426
|
+
*/
|
|
427
|
+
export declare enum Persistence {
|
|
428
|
+
/**
|
|
429
|
+
* This is the usual mode of operation: both filesystem and metadata will be
|
|
430
|
+
* persisted.
|
|
431
|
+
*
|
|
432
|
+
* @generated from protobuf enum value: PERSISTENT = 0;
|
|
433
|
+
*/
|
|
434
|
+
PERSISTENT = 0,
|
|
435
|
+
/**
|
|
436
|
+
* The ephemeral flag indicates the repl being connected to will have a time
|
|
437
|
+
* restriction (~1h) on stored metadata: the records in all controlplane
|
|
438
|
+
* tables. This has the consequence that repl will be forcibly terminated
|
|
439
|
+
* and completely evicted from the cluster as-if it never existed, and will
|
|
440
|
+
* then be unable to wakeup or serve static traffic. This option does NOT
|
|
441
|
+
* affect filesystem and other data persistence.
|
|
442
|
+
*
|
|
443
|
+
* For context, this value is used on the client when repls are created for:
|
|
444
|
+
* - replrun
|
|
445
|
+
* - guests
|
|
446
|
+
* - anon users
|
|
447
|
+
* - temp vnc repls
|
|
448
|
+
* - users with non-verified emails
|
|
449
|
+
*
|
|
450
|
+
* @generated from protobuf enum value: EPHEMERAL = 1;
|
|
451
|
+
*/
|
|
452
|
+
EPHEMERAL = 1,
|
|
453
|
+
/**
|
|
454
|
+
* This indicates that the repl being connected does not have the ability to
|
|
455
|
+
* persist files or be woken up after the lifetime of this repl expires.
|
|
456
|
+
*
|
|
457
|
+
* For context, this value is used on the client when repls are created for:
|
|
458
|
+
* - replrun
|
|
459
|
+
* - guests
|
|
460
|
+
* - language pages
|
|
461
|
+
*
|
|
462
|
+
* @generated from protobuf enum value: NONE = 2;
|
|
463
|
+
*/
|
|
464
|
+
NONE = 2,
|
|
465
|
+
/**
|
|
466
|
+
* This indicates that the repl's filesystem should be mounted as read-only.
|
|
467
|
+
*
|
|
468
|
+
* @generated from protobuf enum value: READ_ONLY = 3;
|
|
469
|
+
*/
|
|
470
|
+
READ_ONLY = 3
|
|
471
|
+
}
|
|
472
|
+
declare class Buckets$Type extends MessageType<Buckets> {
|
|
473
|
+
constructor();
|
|
474
|
+
create(value?: PartialMessage<Buckets>): Buckets;
|
|
475
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Buckets): Buckets;
|
|
476
|
+
internalBinaryWrite(message: Buckets, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* @generated MessageType for protobuf message replit.goval.api.repl.Buckets
|
|
480
|
+
*/
|
|
481
|
+
export declare const Buckets: Buckets$Type;
|
|
482
|
+
declare class Repl$Type extends MessageType<Repl> {
|
|
483
|
+
constructor();
|
|
484
|
+
create(value?: PartialMessage<Repl>): Repl;
|
|
485
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Repl): Repl;
|
|
486
|
+
internalBinaryWrite(message: Repl, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* @generated MessageType for protobuf message replit.goval.api.repl.Repl
|
|
490
|
+
*/
|
|
491
|
+
export declare const Repl: Repl$Type;
|
|
492
|
+
declare class Org$Type extends MessageType<Org> {
|
|
493
|
+
constructor();
|
|
494
|
+
create(value?: PartialMessage<Org>): Org;
|
|
495
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Org): Org;
|
|
496
|
+
internalBinaryWrite(message: Org, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* @generated MessageType for protobuf message replit.goval.api.repl.Org
|
|
500
|
+
*/
|
|
501
|
+
export declare const Org: Org$Type;
|
|
502
|
+
declare class UserId$Type extends MessageType<UserId> {
|
|
503
|
+
constructor();
|
|
504
|
+
create(value?: PartialMessage<UserId>): UserId;
|
|
505
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserId): UserId;
|
|
506
|
+
internalBinaryWrite(message: UserId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* @generated MessageType for protobuf message replit.goval.api.repl.UserId
|
|
510
|
+
*/
|
|
511
|
+
export declare const UserId: UserId$Type;
|
|
512
|
+
declare class ResourceLimits$Type extends MessageType<ResourceLimits> {
|
|
513
|
+
constructor();
|
|
514
|
+
create(value?: PartialMessage<ResourceLimits>): ResourceLimits;
|
|
515
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceLimits): ResourceLimits;
|
|
516
|
+
internalBinaryWrite(message: ResourceLimits, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* @generated MessageType for protobuf message replit.goval.api.repl.ResourceLimits
|
|
520
|
+
*/
|
|
521
|
+
export declare const ResourceLimits: ResourceLimits$Type;
|
|
522
|
+
declare class Metadata$Type extends MessageType<Metadata> {
|
|
523
|
+
constructor();
|
|
524
|
+
create(value?: PartialMessage<Metadata>): Metadata;
|
|
525
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Metadata): Metadata;
|
|
526
|
+
internalBinaryWrite(message: Metadata, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* @generated MessageType for protobuf message replit.goval.api.repl.Metadata
|
|
530
|
+
*/
|
|
531
|
+
export declare const Metadata: Metadata$Type;
|
|
532
|
+
declare class BuildInfo$Type extends MessageType<BuildInfo> {
|
|
533
|
+
constructor();
|
|
534
|
+
create(value?: PartialMessage<BuildInfo>): BuildInfo;
|
|
535
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BuildInfo): BuildInfo;
|
|
536
|
+
internalBinaryWrite(message: BuildInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @generated MessageType for protobuf message replit.goval.api.repl.BuildInfo
|
|
540
|
+
*/
|
|
541
|
+
export declare const BuildInfo: BuildInfo$Type;
|
|
542
|
+
declare class Pid2Binary$Type extends MessageType<Pid2Binary> {
|
|
543
|
+
constructor();
|
|
544
|
+
create(value?: PartialMessage<Pid2Binary>): Pid2Binary;
|
|
545
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Pid2Binary): Pid2Binary;
|
|
546
|
+
internalBinaryWrite(message: Pid2Binary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* @generated MessageType for protobuf message replit.goval.api.repl.Pid2Binary
|
|
550
|
+
*/
|
|
551
|
+
export declare const Pid2Binary: Pid2Binary$Type;
|
|
552
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["repl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AACD;;;;;GAKG;AACH,MAAM,WAAW,IAAI;IACjB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAE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