@replit/protocol 0.2.82 → 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 +12 -0
- package/main/index.js +54 -0
- package/main/index.js.flow +26 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -18192,6 +18192,9 @@ export namespace replit {
|
|
|
18192
18192
|
/** ReplToken resourceLimits */
|
|
18193
18193
|
resourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
18194
18194
|
|
|
18195
|
+
/** ReplToken interactiveResourceLimits */
|
|
18196
|
+
interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
18197
|
+
|
|
18195
18198
|
/** ReplToken format */
|
|
18196
18199
|
format?: (replit.goval.api.ReplToken.WireFormat|null);
|
|
18197
18200
|
|
|
@@ -18244,6 +18247,9 @@ export namespace replit {
|
|
|
18244
18247
|
/** ReplToken resourceLimits. */
|
|
18245
18248
|
public resourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
18246
18249
|
|
|
18250
|
+
/** ReplToken interactiveResourceLimits. */
|
|
18251
|
+
public interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
18252
|
+
|
|
18247
18253
|
/** ReplToken format. */
|
|
18248
18254
|
public format: replit.goval.api.ReplToken.WireFormat;
|
|
18249
18255
|
|
|
@@ -21387,6 +21393,9 @@ export namespace replit {
|
|
|
21387
21393
|
/** Metadata resourceLimits */
|
|
21388
21394
|
resourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
21389
21395
|
|
|
21396
|
+
/** Metadata interactiveResourceLimits */
|
|
21397
|
+
interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
21398
|
+
|
|
21390
21399
|
/** Metadata persistence */
|
|
21391
21400
|
persistence?: (replit.goval.api.repl.Persistence|null);
|
|
21392
21401
|
|
|
@@ -21415,6 +21424,9 @@ export namespace replit {
|
|
|
21415
21424
|
/** Metadata resourceLimits. */
|
|
21416
21425
|
public resourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
21417
21426
|
|
|
21427
|
+
/** Metadata interactiveResourceLimits. */
|
|
21428
|
+
public interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
21429
|
+
|
|
21418
21430
|
/** Metadata persistence. */
|
|
21419
21431
|
public persistence: replit.goval.api.repl.Persistence;
|
|
21420
21432
|
|
package/main/index.js
CHANGED
|
@@ -45211,6 +45211,7 @@
|
|
|
45211
45211
|
* @property {replit.goval.api.ReplToken.ReplID|replit.goval.api.ReplToken.IReplID|null} [id] ReplToken id
|
|
45212
45212
|
* @property {replit.goval.api.ReplToken.ClassroomMetadata|replit.goval.api.ReplToken.IClassroomMetadata|null} [classroom] ReplToken classroom
|
|
45213
45213
|
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [resourceLimits] ReplToken resourceLimits
|
|
45214
|
+
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [interactiveResourceLimits] ReplToken interactiveResourceLimits
|
|
45214
45215
|
* @property {replit.goval.api.ReplToken.WireFormat|null} [format] ReplToken format
|
|
45215
45216
|
* @property {replit.goval.api.ReplToken.Presenced|replit.goval.api.ReplToken.IPresenced|null} [presenced] ReplToken presenced
|
|
45216
45217
|
* @property {Array.<string>|null} [flags] ReplToken flags
|
|
@@ -45306,6 +45307,14 @@
|
|
|
45306
45307
|
*/
|
|
45307
45308
|
ReplToken.prototype.resourceLimits = null;
|
|
45308
45309
|
|
|
45310
|
+
/**
|
|
45311
|
+
* ReplToken interactiveResourceLimits.
|
|
45312
|
+
* @member {replit.goval.api.repl.ResourceLimits|null|undefined} interactiveResourceLimits
|
|
45313
|
+
* @memberof replit.goval.api.ReplToken
|
|
45314
|
+
* @instance
|
|
45315
|
+
*/
|
|
45316
|
+
ReplToken.prototype.interactiveResourceLimits = null;
|
|
45317
|
+
|
|
45309
45318
|
/**
|
|
45310
45319
|
* ReplToken format.
|
|
45311
45320
|
* @member {replit.goval.api.ReplToken.WireFormat} format
|
|
@@ -45414,6 +45423,8 @@
|
|
|
45414
45423
|
if (message.features != null && message.features.length)
|
|
45415
45424
|
for (var i = 0; i < message.features.length; ++i)
|
|
45416
45425
|
$root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
45426
|
+
if (message.interactiveResourceLimits != null && Object.hasOwnProperty.call(message, "interactiveResourceLimits"))
|
|
45427
|
+
$root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
45417
45428
|
return writer;
|
|
45418
45429
|
};
|
|
45419
45430
|
|
|
@@ -45475,6 +45486,9 @@
|
|
|
45475
45486
|
case 10:
|
|
45476
45487
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
45477
45488
|
break;
|
|
45489
|
+
case 17:
|
|
45490
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
45491
|
+
break;
|
|
45478
45492
|
case 12:
|
|
45479
45493
|
message.format = reader.int32();
|
|
45480
45494
|
break;
|
|
@@ -45589,6 +45603,11 @@
|
|
|
45589
45603
|
if (error)
|
|
45590
45604
|
return "resourceLimits." + error;
|
|
45591
45605
|
}
|
|
45606
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits")) {
|
|
45607
|
+
var error = $root.replit.goval.api.repl.ResourceLimits.verify(message.interactiveResourceLimits);
|
|
45608
|
+
if (error)
|
|
45609
|
+
return "interactiveResourceLimits." + error;
|
|
45610
|
+
}
|
|
45592
45611
|
if (message.format != null && message.hasOwnProperty("format"))
|
|
45593
45612
|
switch (message.format) {
|
|
45594
45613
|
default:
|
|
@@ -45690,6 +45709,11 @@
|
|
|
45690
45709
|
throw TypeError(".replit.goval.api.ReplToken.resourceLimits: object expected");
|
|
45691
45710
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.resourceLimits);
|
|
45692
45711
|
}
|
|
45712
|
+
if (object.interactiveResourceLimits != null) {
|
|
45713
|
+
if (typeof object.interactiveResourceLimits !== "object")
|
|
45714
|
+
throw TypeError(".replit.goval.api.ReplToken.interactiveResourceLimits: object expected");
|
|
45715
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.interactiveResourceLimits);
|
|
45716
|
+
}
|
|
45693
45717
|
switch (object.format) {
|
|
45694
45718
|
case "PROTOBUF":
|
|
45695
45719
|
case 0:
|
|
@@ -45757,6 +45781,7 @@
|
|
|
45757
45781
|
object.format = options.enums === String ? "PROTOBUF" : 0;
|
|
45758
45782
|
object.presenced = null;
|
|
45759
45783
|
object.permissions = null;
|
|
45784
|
+
object.interactiveResourceLimits = null;
|
|
45760
45785
|
}
|
|
45761
45786
|
if (message.iat != null && message.hasOwnProperty("iat"))
|
|
45762
45787
|
object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
|
|
@@ -45801,6 +45826,8 @@
|
|
|
45801
45826
|
for (var j = 0; j < message.features.length; ++j)
|
|
45802
45827
|
object.features[j] = $root.replit.goval.api.features.Feature.toObject(message.features[j], options);
|
|
45803
45828
|
}
|
|
45829
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
|
|
45830
|
+
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
45804
45831
|
return object;
|
|
45805
45832
|
};
|
|
45806
45833
|
|
|
@@ -53209,6 +53236,7 @@
|
|
|
53209
53236
|
* @interface IMetadata
|
|
53210
53237
|
* @property {replit.goval.api.repl.Repl|replit.goval.api.repl.IRepl|null} [repl] Metadata repl
|
|
53211
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
|
|
53212
53240
|
* @property {replit.goval.api.repl.Persistence|null} [persistence] Metadata persistence
|
|
53213
53241
|
* @property {Array.<string>|null} [flags] Metadata flags
|
|
53214
53242
|
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] Metadata permissions
|
|
@@ -53247,6 +53275,14 @@
|
|
|
53247
53275
|
*/
|
|
53248
53276
|
Metadata.prototype.resourceLimits = null;
|
|
53249
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
|
+
|
|
53250
53286
|
/**
|
|
53251
53287
|
* Metadata persistence.
|
|
53252
53288
|
* @member {replit.goval.api.repl.Persistence} persistence
|
|
@@ -53317,6 +53353,8 @@
|
|
|
53317
53353
|
if (message.features != null && message.features.length)
|
|
53318
53354
|
for (var i = 0; i < message.features.length; ++i)
|
|
53319
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();
|
|
53320
53358
|
return writer;
|
|
53321
53359
|
};
|
|
53322
53360
|
|
|
@@ -53357,6 +53395,9 @@
|
|
|
53357
53395
|
case 10:
|
|
53358
53396
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
53359
53397
|
break;
|
|
53398
|
+
case 17:
|
|
53399
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
53400
|
+
break;
|
|
53360
53401
|
case 6:
|
|
53361
53402
|
message.persistence = reader.int32();
|
|
53362
53403
|
break;
|
|
@@ -53418,6 +53459,11 @@
|
|
|
53418
53459
|
if (error)
|
|
53419
53460
|
return "resourceLimits." + error;
|
|
53420
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
|
+
}
|
|
53421
53467
|
if (message.persistence != null && message.hasOwnProperty("persistence"))
|
|
53422
53468
|
switch (message.persistence) {
|
|
53423
53469
|
default:
|
|
@@ -53474,6 +53520,11 @@
|
|
|
53474
53520
|
throw TypeError(".replit.goval.api.repl.Metadata.resourceLimits: object expected");
|
|
53475
53521
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.resourceLimits);
|
|
53476
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
|
+
}
|
|
53477
53528
|
switch (object.persistence) {
|
|
53478
53529
|
case "PERSISTENT":
|
|
53479
53530
|
case 0:
|
|
@@ -53539,6 +53590,7 @@
|
|
|
53539
53590
|
object.repl = null;
|
|
53540
53591
|
object.resourceLimits = null;
|
|
53541
53592
|
object.permissions = null;
|
|
53593
|
+
object.interactiveResourceLimits = null;
|
|
53542
53594
|
}
|
|
53543
53595
|
if (message.persistence != null && message.hasOwnProperty("persistence"))
|
|
53544
53596
|
object.persistence = options.enums === String ? $root.replit.goval.api.repl.Persistence[message.persistence] : message.persistence;
|
|
@@ -53558,6 +53610,8 @@
|
|
|
53558
53610
|
for (var j = 0; j < message.features.length; ++j)
|
|
53559
53611
|
object.features[j] = $root.replit.goval.api.features.Feature.toObject(message.features[j], options);
|
|
53560
53612
|
}
|
|
53613
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
|
|
53614
|
+
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
53561
53615
|
return object;
|
|
53562
53616
|
};
|
|
53563
53617
|
|
package/main/index.js.flow
CHANGED
|
@@ -25930,6 +25930,14 @@ declare type replit$goval$api$IReplToken = {|
|
|
|
25930
25930
|
| replit$goval$api$repl$IResourceLimits
|
|
25931
25931
|
| null,
|
|
25932
25932
|
|
|
25933
|
+
/**
|
|
25934
|
+
* ReplToken interactiveResourceLimits
|
|
25935
|
+
*/
|
|
25936
|
+
interactiveResourceLimits?:
|
|
25937
|
+
| replit$goval$api$repl$ResourceLimits
|
|
25938
|
+
| replit$goval$api$repl$IResourceLimits
|
|
25939
|
+
| null,
|
|
25940
|
+
|
|
25933
25941
|
/**
|
|
25934
25942
|
* ReplToken format
|
|
25935
25943
|
*/
|
|
@@ -26019,6 +26027,11 @@ declare class replit$goval$api$ReplToken {
|
|
|
26019
26027
|
*/
|
|
26020
26028
|
resourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
26021
26029
|
|
|
26030
|
+
/**
|
|
26031
|
+
* ReplToken interactiveResourceLimits.
|
|
26032
|
+
*/
|
|
26033
|
+
interactiveResourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
26034
|
+
|
|
26022
26035
|
/**
|
|
26023
26036
|
* ReplToken format.
|
|
26024
26037
|
*/
|
|
@@ -30425,6 +30438,14 @@ declare type replit$goval$api$repl$IMetadata = {|
|
|
|
30425
30438
|
| replit$goval$api$repl$IResourceLimits
|
|
30426
30439
|
| null,
|
|
30427
30440
|
|
|
30441
|
+
/**
|
|
30442
|
+
* Metadata interactiveResourceLimits
|
|
30443
|
+
*/
|
|
30444
|
+
interactiveResourceLimits?:
|
|
30445
|
+
| replit$goval$api$repl$ResourceLimits
|
|
30446
|
+
| replit$goval$api$repl$IResourceLimits
|
|
30447
|
+
| null,
|
|
30448
|
+
|
|
30428
30449
|
/**
|
|
30429
30450
|
* Metadata persistence
|
|
30430
30451
|
*/
|
|
@@ -30471,6 +30492,11 @@ declare class replit$goval$api$repl$Metadata {
|
|
|
30471
30492
|
*/
|
|
30472
30493
|
resourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
30473
30494
|
|
|
30495
|
+
/**
|
|
30496
|
+
* Metadata interactiveResourceLimits.
|
|
30497
|
+
*/
|
|
30498
|
+
interactiveResourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
30499
|
+
|
|
30474
30500
|
/**
|
|
30475
30501
|
* Metadata persistence.
|
|
30476
30502
|
*/
|