@replit/protocol 0.2.83 → 0.2.84
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/main/index.d.ts +6 -0
- package/main/index.js +27 -0
- package/main/index.js.flow +13 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -21393,6 +21393,9 @@ export namespace replit {
|
|
|
21393
21393
|
/** Metadata resourceLimits */
|
|
21394
21394
|
resourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
21395
21395
|
|
|
21396
|
+
/** Metadata interactiveResourceLimits */
|
|
21397
|
+
interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
21398
|
+
|
|
21396
21399
|
/** Metadata persistence */
|
|
21397
21400
|
persistence?: (replit.goval.api.repl.Persistence|null);
|
|
21398
21401
|
|
|
@@ -21421,6 +21424,9 @@ export namespace replit {
|
|
|
21421
21424
|
/** Metadata resourceLimits. */
|
|
21422
21425
|
public resourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
21423
21426
|
|
|
21427
|
+
/** Metadata interactiveResourceLimits. */
|
|
21428
|
+
public interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
21429
|
+
|
|
21424
21430
|
/** Metadata persistence. */
|
|
21425
21431
|
public persistence: replit.goval.api.repl.Persistence;
|
|
21426
21432
|
|
package/main/index.js
CHANGED
|
@@ -53236,6 +53236,7 @@
|
|
|
53236
53236
|
* @interface IMetadata
|
|
53237
53237
|
* @property {replit.goval.api.repl.Repl|replit.goval.api.repl.IRepl|null} [repl] Metadata repl
|
|
53238
53238
|
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [resourceLimits] Metadata resourceLimits
|
|
53239
|
+
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [interactiveResourceLimits] Metadata interactiveResourceLimits
|
|
53239
53240
|
* @property {replit.goval.api.repl.Persistence|null} [persistence] Metadata persistence
|
|
53240
53241
|
* @property {Array.<string>|null} [flags] Metadata flags
|
|
53241
53242
|
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] Metadata permissions
|
|
@@ -53274,6 +53275,14 @@
|
|
|
53274
53275
|
*/
|
|
53275
53276
|
Metadata.prototype.resourceLimits = null;
|
|
53276
53277
|
|
|
53278
|
+
/**
|
|
53279
|
+
* Metadata interactiveResourceLimits.
|
|
53280
|
+
* @member {replit.goval.api.repl.ResourceLimits|null|undefined} interactiveResourceLimits
|
|
53281
|
+
* @memberof replit.goval.api.repl.Metadata
|
|
53282
|
+
* @instance
|
|
53283
|
+
*/
|
|
53284
|
+
Metadata.prototype.interactiveResourceLimits = null;
|
|
53285
|
+
|
|
53277
53286
|
/**
|
|
53278
53287
|
* Metadata persistence.
|
|
53279
53288
|
* @member {replit.goval.api.repl.Persistence} persistence
|
|
@@ -53344,6 +53353,8 @@
|
|
|
53344
53353
|
if (message.features != null && message.features.length)
|
|
53345
53354
|
for (var i = 0; i < message.features.length; ++i)
|
|
53346
53355
|
$root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
53356
|
+
if (message.interactiveResourceLimits != null && Object.hasOwnProperty.call(message, "interactiveResourceLimits"))
|
|
53357
|
+
$root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
53347
53358
|
return writer;
|
|
53348
53359
|
};
|
|
53349
53360
|
|
|
@@ -53384,6 +53395,9 @@
|
|
|
53384
53395
|
case 10:
|
|
53385
53396
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
53386
53397
|
break;
|
|
53398
|
+
case 17:
|
|
53399
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
53400
|
+
break;
|
|
53387
53401
|
case 6:
|
|
53388
53402
|
message.persistence = reader.int32();
|
|
53389
53403
|
break;
|
|
@@ -53445,6 +53459,11 @@
|
|
|
53445
53459
|
if (error)
|
|
53446
53460
|
return "resourceLimits." + error;
|
|
53447
53461
|
}
|
|
53462
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits")) {
|
|
53463
|
+
var error = $root.replit.goval.api.repl.ResourceLimits.verify(message.interactiveResourceLimits);
|
|
53464
|
+
if (error)
|
|
53465
|
+
return "interactiveResourceLimits." + error;
|
|
53466
|
+
}
|
|
53448
53467
|
if (message.persistence != null && message.hasOwnProperty("persistence"))
|
|
53449
53468
|
switch (message.persistence) {
|
|
53450
53469
|
default:
|
|
@@ -53501,6 +53520,11 @@
|
|
|
53501
53520
|
throw TypeError(".replit.goval.api.repl.Metadata.resourceLimits: object expected");
|
|
53502
53521
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.resourceLimits);
|
|
53503
53522
|
}
|
|
53523
|
+
if (object.interactiveResourceLimits != null) {
|
|
53524
|
+
if (typeof object.interactiveResourceLimits !== "object")
|
|
53525
|
+
throw TypeError(".replit.goval.api.repl.Metadata.interactiveResourceLimits: object expected");
|
|
53526
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.interactiveResourceLimits);
|
|
53527
|
+
}
|
|
53504
53528
|
switch (object.persistence) {
|
|
53505
53529
|
case "PERSISTENT":
|
|
53506
53530
|
case 0:
|
|
@@ -53566,6 +53590,7 @@
|
|
|
53566
53590
|
object.repl = null;
|
|
53567
53591
|
object.resourceLimits = null;
|
|
53568
53592
|
object.permissions = null;
|
|
53593
|
+
object.interactiveResourceLimits = null;
|
|
53569
53594
|
}
|
|
53570
53595
|
if (message.persistence != null && message.hasOwnProperty("persistence"))
|
|
53571
53596
|
object.persistence = options.enums === String ? $root.replit.goval.api.repl.Persistence[message.persistence] : message.persistence;
|
|
@@ -53585,6 +53610,8 @@
|
|
|
53585
53610
|
for (var j = 0; j < message.features.length; ++j)
|
|
53586
53611
|
object.features[j] = $root.replit.goval.api.features.Feature.toObject(message.features[j], options);
|
|
53587
53612
|
}
|
|
53613
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
|
|
53614
|
+
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
53588
53615
|
return object;
|
|
53589
53616
|
};
|
|
53590
53617
|
|
package/main/index.js.flow
CHANGED
|
@@ -30438,6 +30438,14 @@ declare type replit$goval$api$repl$IMetadata = {|
|
|
|
30438
30438
|
| replit$goval$api$repl$IResourceLimits
|
|
30439
30439
|
| null,
|
|
30440
30440
|
|
|
30441
|
+
/**
|
|
30442
|
+
* Metadata interactiveResourceLimits
|
|
30443
|
+
*/
|
|
30444
|
+
interactiveResourceLimits?:
|
|
30445
|
+
| replit$goval$api$repl$ResourceLimits
|
|
30446
|
+
| replit$goval$api$repl$IResourceLimits
|
|
30447
|
+
| null,
|
|
30448
|
+
|
|
30441
30449
|
/**
|
|
30442
30450
|
* Metadata persistence
|
|
30443
30451
|
*/
|
|
@@ -30484,6 +30492,11 @@ declare class replit$goval$api$repl$Metadata {
|
|
|
30484
30492
|
*/
|
|
30485
30493
|
resourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
30486
30494
|
|
|
30495
|
+
/**
|
|
30496
|
+
* Metadata interactiveResourceLimits.
|
|
30497
|
+
*/
|
|
30498
|
+
interactiveResourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
30499
|
+
|
|
30487
30500
|
/**
|
|
30488
30501
|
* Metadata persistence.
|
|
30489
30502
|
*/
|