@replit/protocol 0.2.83 → 0.2.85
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 +109 -1
- package/main/index.js +288 -2
- package/main/index.js.flow +160 -1
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -20167,6 +20167,9 @@ export namespace replit {
|
|
|
20167
20167
|
|
|
20168
20168
|
/** GovalCommand updateSourceRepl */
|
|
20169
20169
|
updateSourceRepl?: (replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null);
|
|
20170
|
+
|
|
20171
|
+
/** GovalCommand updateReplFlags */
|
|
20172
|
+
updateReplFlags?: (replit.goval.api.UpdateReplFlags|replit.goval.api.IUpdateReplFlags|null);
|
|
20170
20173
|
}
|
|
20171
20174
|
|
|
20172
20175
|
/** Represents a GovalCommand. */
|
|
@@ -20190,8 +20193,11 @@ export namespace replit {
|
|
|
20190
20193
|
/** GovalCommand updateSourceRepl. */
|
|
20191
20194
|
public updateSourceRepl?: (replit.goval.api.UpdateSourceRepl|null);
|
|
20192
20195
|
|
|
20196
|
+
/** GovalCommand updateReplFlags. */
|
|
20197
|
+
public updateReplFlags?: (replit.goval.api.UpdateReplFlags|null);
|
|
20198
|
+
|
|
20193
20199
|
/** GovalCommand command. */
|
|
20194
|
-
public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl");
|
|
20200
|
+
public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags");
|
|
20195
20201
|
|
|
20196
20202
|
/**
|
|
20197
20203
|
* Creates a new GovalCommand instance using the specified properties.
|
|
@@ -20738,6 +20744,102 @@ export namespace replit {
|
|
|
20738
20744
|
public toJSON(): { [k: string]: any };
|
|
20739
20745
|
}
|
|
20740
20746
|
|
|
20747
|
+
/** Properties of an UpdateReplFlags. */
|
|
20748
|
+
interface IUpdateReplFlags {
|
|
20749
|
+
|
|
20750
|
+
/** UpdateReplFlags replId */
|
|
20751
|
+
replId?: (string|null);
|
|
20752
|
+
|
|
20753
|
+
/** UpdateReplFlags flags */
|
|
20754
|
+
flags?: (string[]|null);
|
|
20755
|
+
}
|
|
20756
|
+
|
|
20757
|
+
/** Represents an UpdateReplFlags. */
|
|
20758
|
+
class UpdateReplFlags {
|
|
20759
|
+
|
|
20760
|
+
/**
|
|
20761
|
+
* Constructs a new UpdateReplFlags.
|
|
20762
|
+
* @param [properties] Properties to set
|
|
20763
|
+
*/
|
|
20764
|
+
private constructor(properties?: replit.goval.api.IUpdateReplFlags);
|
|
20765
|
+
|
|
20766
|
+
/** UpdateReplFlags replId. */
|
|
20767
|
+
public replId: string;
|
|
20768
|
+
|
|
20769
|
+
/** UpdateReplFlags flags. */
|
|
20770
|
+
public flags: string[];
|
|
20771
|
+
|
|
20772
|
+
/**
|
|
20773
|
+
* Creates a new UpdateReplFlags instance using the specified properties.
|
|
20774
|
+
* @param [properties] Properties to set
|
|
20775
|
+
* @returns UpdateReplFlags instance
|
|
20776
|
+
*/
|
|
20777
|
+
public static create(properties?: replit.goval.api.IUpdateReplFlags): replit.goval.api.UpdateReplFlags;
|
|
20778
|
+
|
|
20779
|
+
/**
|
|
20780
|
+
* Encodes the specified UpdateReplFlags message. Does not implicitly {@link replit.goval.api.UpdateReplFlags.verify|verify} messages.
|
|
20781
|
+
* @param message UpdateReplFlags message or plain object to encode
|
|
20782
|
+
* @param [writer] Writer to encode to
|
|
20783
|
+
* @returns Writer
|
|
20784
|
+
*/
|
|
20785
|
+
public static encode(message: replit.goval.api.UpdateReplFlags, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
20786
|
+
|
|
20787
|
+
/**
|
|
20788
|
+
* Encodes the specified UpdateReplFlags message, length delimited. Does not implicitly {@link replit.goval.api.UpdateReplFlags.verify|verify} messages.
|
|
20789
|
+
* @param message UpdateReplFlags message or plain object to encode
|
|
20790
|
+
* @param [writer] Writer to encode to
|
|
20791
|
+
* @returns Writer
|
|
20792
|
+
*/
|
|
20793
|
+
public static encodeDelimited(message: replit.goval.api.UpdateReplFlags, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
20794
|
+
|
|
20795
|
+
/**
|
|
20796
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer.
|
|
20797
|
+
* @param reader Reader or buffer to decode from
|
|
20798
|
+
* @param [length] Message length if known beforehand
|
|
20799
|
+
* @returns UpdateReplFlags
|
|
20800
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20801
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20802
|
+
*/
|
|
20803
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.UpdateReplFlags;
|
|
20804
|
+
|
|
20805
|
+
/**
|
|
20806
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer, length delimited.
|
|
20807
|
+
* @param reader Reader or buffer to decode from
|
|
20808
|
+
* @returns UpdateReplFlags
|
|
20809
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20810
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20811
|
+
*/
|
|
20812
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.UpdateReplFlags;
|
|
20813
|
+
|
|
20814
|
+
/**
|
|
20815
|
+
* Verifies an UpdateReplFlags message.
|
|
20816
|
+
* @param message Plain object to verify
|
|
20817
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
20818
|
+
*/
|
|
20819
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
20820
|
+
|
|
20821
|
+
/**
|
|
20822
|
+
* Creates an UpdateReplFlags message from a plain object. Also converts values to their respective internal types.
|
|
20823
|
+
* @param object Plain object
|
|
20824
|
+
* @returns UpdateReplFlags
|
|
20825
|
+
*/
|
|
20826
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.UpdateReplFlags;
|
|
20827
|
+
|
|
20828
|
+
/**
|
|
20829
|
+
* Creates a plain object from an UpdateReplFlags message. Also converts values to other types if specified.
|
|
20830
|
+
* @param message UpdateReplFlags
|
|
20831
|
+
* @param [options] Conversion options
|
|
20832
|
+
* @returns Plain object
|
|
20833
|
+
*/
|
|
20834
|
+
public static toObject(message: replit.goval.api.UpdateReplFlags, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
20835
|
+
|
|
20836
|
+
/**
|
|
20837
|
+
* Converts this UpdateReplFlags to JSON.
|
|
20838
|
+
* @returns JSON object
|
|
20839
|
+
*/
|
|
20840
|
+
public toJSON(): { [k: string]: any };
|
|
20841
|
+
}
|
|
20842
|
+
|
|
20741
20843
|
/** Namespace features. */
|
|
20742
20844
|
namespace features {
|
|
20743
20845
|
|
|
@@ -21393,6 +21495,9 @@ export namespace replit {
|
|
|
21393
21495
|
/** Metadata resourceLimits */
|
|
21394
21496
|
resourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
21395
21497
|
|
|
21498
|
+
/** Metadata interactiveResourceLimits */
|
|
21499
|
+
interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
21500
|
+
|
|
21396
21501
|
/** Metadata persistence */
|
|
21397
21502
|
persistence?: (replit.goval.api.repl.Persistence|null);
|
|
21398
21503
|
|
|
@@ -21421,6 +21526,9 @@ export namespace replit {
|
|
|
21421
21526
|
/** Metadata resourceLimits. */
|
|
21422
21527
|
public resourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
21423
21528
|
|
|
21529
|
+
/** Metadata interactiveResourceLimits. */
|
|
21530
|
+
public interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
21531
|
+
|
|
21424
21532
|
/** Metadata persistence. */
|
|
21425
21533
|
public persistence: replit.goval.api.repl.Persistence;
|
|
21426
21534
|
|
package/main/index.js
CHANGED
|
@@ -50341,6 +50341,7 @@
|
|
|
50341
50341
|
* @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
|
|
50342
50342
|
* @property {replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null} [killRepl] GovalCommand killRepl
|
|
50343
50343
|
* @property {replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null} [updateSourceRepl] GovalCommand updateSourceRepl
|
|
50344
|
+
* @property {replit.goval.api.UpdateReplFlags|replit.goval.api.IUpdateReplFlags|null} [updateReplFlags] GovalCommand updateReplFlags
|
|
50344
50345
|
*/
|
|
50345
50346
|
|
|
50346
50347
|
/**
|
|
@@ -50389,17 +50390,25 @@
|
|
|
50389
50390
|
*/
|
|
50390
50391
|
GovalCommand.prototype.updateSourceRepl = null;
|
|
50391
50392
|
|
|
50393
|
+
/**
|
|
50394
|
+
* GovalCommand updateReplFlags.
|
|
50395
|
+
* @member {replit.goval.api.UpdateReplFlags|null|undefined} updateReplFlags
|
|
50396
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50397
|
+
* @instance
|
|
50398
|
+
*/
|
|
50399
|
+
GovalCommand.prototype.updateReplFlags = null;
|
|
50400
|
+
|
|
50392
50401
|
// OneOf field names bound to virtual getters and setters
|
|
50393
50402
|
var $oneOfFields;
|
|
50394
50403
|
|
|
50395
50404
|
/**
|
|
50396
50405
|
* GovalCommand command.
|
|
50397
|
-
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|undefined} command
|
|
50406
|
+
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|undefined} command
|
|
50398
50407
|
* @memberof replit.goval.api.GovalCommand
|
|
50399
50408
|
* @instance
|
|
50400
50409
|
*/
|
|
50401
50410
|
Object.defineProperty(GovalCommand.prototype, "command", {
|
|
50402
|
-
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl"]),
|
|
50411
|
+
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl", "updateReplFlags"]),
|
|
50403
50412
|
set: $util.oneOfSetter($oneOfFields)
|
|
50404
50413
|
});
|
|
50405
50414
|
|
|
@@ -50435,6 +50444,8 @@
|
|
|
50435
50444
|
$root.replit.goval.api.KillRepl.encode(message.killRepl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
50436
50445
|
if (message.updateSourceRepl != null && Object.hasOwnProperty.call(message, "updateSourceRepl"))
|
|
50437
50446
|
$root.replit.goval.api.UpdateSourceRepl.encode(message.updateSourceRepl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
50447
|
+
if (message.updateReplFlags != null && Object.hasOwnProperty.call(message, "updateReplFlags"))
|
|
50448
|
+
$root.replit.goval.api.UpdateReplFlags.encode(message.updateReplFlags, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
50438
50449
|
return writer;
|
|
50439
50450
|
};
|
|
50440
50451
|
|
|
@@ -50481,6 +50492,9 @@
|
|
|
50481
50492
|
case 4:
|
|
50482
50493
|
message.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.decode(reader, reader.uint32());
|
|
50483
50494
|
break;
|
|
50495
|
+
case 5:
|
|
50496
|
+
message.updateReplFlags = $root.replit.goval.api.UpdateReplFlags.decode(reader, reader.uint32());
|
|
50497
|
+
break;
|
|
50484
50498
|
default:
|
|
50485
50499
|
reader.skipType(tag & 7);
|
|
50486
50500
|
break;
|
|
@@ -50555,6 +50569,16 @@
|
|
|
50555
50569
|
return "updateSourceRepl." + error;
|
|
50556
50570
|
}
|
|
50557
50571
|
}
|
|
50572
|
+
if (message.updateReplFlags != null && message.hasOwnProperty("updateReplFlags")) {
|
|
50573
|
+
if (properties.command === 1)
|
|
50574
|
+
return "command: multiple values";
|
|
50575
|
+
properties.command = 1;
|
|
50576
|
+
{
|
|
50577
|
+
var error = $root.replit.goval.api.UpdateReplFlags.verify(message.updateReplFlags);
|
|
50578
|
+
if (error)
|
|
50579
|
+
return "updateReplFlags." + error;
|
|
50580
|
+
}
|
|
50581
|
+
}
|
|
50558
50582
|
return null;
|
|
50559
50583
|
};
|
|
50560
50584
|
|
|
@@ -50590,6 +50614,11 @@
|
|
|
50590
50614
|
throw TypeError(".replit.goval.api.GovalCommand.updateSourceRepl: object expected");
|
|
50591
50615
|
message.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.fromObject(object.updateSourceRepl);
|
|
50592
50616
|
}
|
|
50617
|
+
if (object.updateReplFlags != null) {
|
|
50618
|
+
if (typeof object.updateReplFlags !== "object")
|
|
50619
|
+
throw TypeError(".replit.goval.api.GovalCommand.updateReplFlags: object expected");
|
|
50620
|
+
message.updateReplFlags = $root.replit.goval.api.UpdateReplFlags.fromObject(object.updateReplFlags);
|
|
50621
|
+
}
|
|
50593
50622
|
return message;
|
|
50594
50623
|
};
|
|
50595
50624
|
|
|
@@ -50626,6 +50655,11 @@
|
|
|
50626
50655
|
if (options.oneofs)
|
|
50627
50656
|
object.command = "updateSourceRepl";
|
|
50628
50657
|
}
|
|
50658
|
+
if (message.updateReplFlags != null && message.hasOwnProperty("updateReplFlags")) {
|
|
50659
|
+
object.updateReplFlags = $root.replit.goval.api.UpdateReplFlags.toObject(message.updateReplFlags, options);
|
|
50660
|
+
if (options.oneofs)
|
|
50661
|
+
object.command = "updateReplFlags";
|
|
50662
|
+
}
|
|
50629
50663
|
return object;
|
|
50630
50664
|
};
|
|
50631
50665
|
|
|
@@ -51696,6 +51730,231 @@
|
|
|
51696
51730
|
return UpdateSourceRepl;
|
|
51697
51731
|
})();
|
|
51698
51732
|
|
|
51733
|
+
api.UpdateReplFlags = (function() {
|
|
51734
|
+
|
|
51735
|
+
/**
|
|
51736
|
+
* Properties of an UpdateReplFlags.
|
|
51737
|
+
* @memberof replit.goval.api
|
|
51738
|
+
* @interface IUpdateReplFlags
|
|
51739
|
+
* @property {string|null} [replId] UpdateReplFlags replId
|
|
51740
|
+
* @property {Array.<string>|null} [flags] UpdateReplFlags flags
|
|
51741
|
+
*/
|
|
51742
|
+
|
|
51743
|
+
/**
|
|
51744
|
+
* Constructs a new UpdateReplFlags.
|
|
51745
|
+
* @memberof replit.goval.api
|
|
51746
|
+
* @classdesc Represents an UpdateReplFlags.
|
|
51747
|
+
* @constructor
|
|
51748
|
+
* @param {replit.goval.api.IUpdateReplFlags=} [properties] Properties to set
|
|
51749
|
+
*/
|
|
51750
|
+
function UpdateReplFlags(properties) {
|
|
51751
|
+
this.flags = [];
|
|
51752
|
+
if (properties)
|
|
51753
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51754
|
+
if (properties[keys[i]] != null)
|
|
51755
|
+
this[keys[i]] = properties[keys[i]];
|
|
51756
|
+
}
|
|
51757
|
+
|
|
51758
|
+
/**
|
|
51759
|
+
* UpdateReplFlags replId.
|
|
51760
|
+
* @member {string} replId
|
|
51761
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51762
|
+
* @instance
|
|
51763
|
+
*/
|
|
51764
|
+
UpdateReplFlags.prototype.replId = "";
|
|
51765
|
+
|
|
51766
|
+
/**
|
|
51767
|
+
* UpdateReplFlags flags.
|
|
51768
|
+
* @member {Array.<string>} flags
|
|
51769
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51770
|
+
* @instance
|
|
51771
|
+
*/
|
|
51772
|
+
UpdateReplFlags.prototype.flags = $util.emptyArray;
|
|
51773
|
+
|
|
51774
|
+
/**
|
|
51775
|
+
* Creates a new UpdateReplFlags instance using the specified properties.
|
|
51776
|
+
* @function create
|
|
51777
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51778
|
+
* @static
|
|
51779
|
+
* @param {replit.goval.api.IUpdateReplFlags=} [properties] Properties to set
|
|
51780
|
+
* @returns {replit.goval.api.UpdateReplFlags} UpdateReplFlags instance
|
|
51781
|
+
*/
|
|
51782
|
+
UpdateReplFlags.create = function create(properties) {
|
|
51783
|
+
return UpdateReplFlags.fromObject(properties);
|
|
51784
|
+
};
|
|
51785
|
+
|
|
51786
|
+
/**
|
|
51787
|
+
* Encodes the specified UpdateReplFlags message. Does not implicitly {@link replit.goval.api.UpdateReplFlags.verify|verify} messages.
|
|
51788
|
+
* @function encode
|
|
51789
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51790
|
+
* @static
|
|
51791
|
+
* @param {replit.goval.api.UpdateReplFlags} message UpdateReplFlags message or plain object to encode
|
|
51792
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51793
|
+
* @returns {$protobuf.Writer} Writer
|
|
51794
|
+
*/
|
|
51795
|
+
UpdateReplFlags.encode = function encode(message, writer) {
|
|
51796
|
+
if (!writer)
|
|
51797
|
+
writer = $Writer.create();
|
|
51798
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
51799
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
51800
|
+
if (message.flags != null && message.flags.length)
|
|
51801
|
+
for (var i = 0; i < message.flags.length; ++i)
|
|
51802
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.flags[i]);
|
|
51803
|
+
return writer;
|
|
51804
|
+
};
|
|
51805
|
+
|
|
51806
|
+
/**
|
|
51807
|
+
* Encodes the specified UpdateReplFlags message, length delimited. Does not implicitly {@link replit.goval.api.UpdateReplFlags.verify|verify} messages.
|
|
51808
|
+
* @function encodeDelimited
|
|
51809
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51810
|
+
* @static
|
|
51811
|
+
* @param {replit.goval.api.UpdateReplFlags} message UpdateReplFlags message or plain object to encode
|
|
51812
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51813
|
+
* @returns {$protobuf.Writer} Writer
|
|
51814
|
+
*/
|
|
51815
|
+
UpdateReplFlags.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51816
|
+
return this.encode(message, writer).ldelim();
|
|
51817
|
+
};
|
|
51818
|
+
|
|
51819
|
+
/**
|
|
51820
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer.
|
|
51821
|
+
* @function decode
|
|
51822
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51823
|
+
* @static
|
|
51824
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51825
|
+
* @param {number} [length] Message length if known beforehand
|
|
51826
|
+
* @returns {replit.goval.api.UpdateReplFlags} UpdateReplFlags
|
|
51827
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51828
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51829
|
+
*/
|
|
51830
|
+
UpdateReplFlags.decode = function decode(reader, length) {
|
|
51831
|
+
if (!(reader instanceof $Reader))
|
|
51832
|
+
reader = $Reader.create(reader);
|
|
51833
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.UpdateReplFlags();
|
|
51834
|
+
while (reader.pos < end) {
|
|
51835
|
+
var tag = reader.uint32();
|
|
51836
|
+
switch (tag >>> 3) {
|
|
51837
|
+
case 1:
|
|
51838
|
+
message.replId = reader.string();
|
|
51839
|
+
break;
|
|
51840
|
+
case 2:
|
|
51841
|
+
if (!(message.flags && message.flags.length))
|
|
51842
|
+
message.flags = [];
|
|
51843
|
+
message.flags.push(reader.string());
|
|
51844
|
+
break;
|
|
51845
|
+
default:
|
|
51846
|
+
reader.skipType(tag & 7);
|
|
51847
|
+
break;
|
|
51848
|
+
}
|
|
51849
|
+
}
|
|
51850
|
+
return message;
|
|
51851
|
+
};
|
|
51852
|
+
|
|
51853
|
+
/**
|
|
51854
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer, length delimited.
|
|
51855
|
+
* @function decodeDelimited
|
|
51856
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51857
|
+
* @static
|
|
51858
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51859
|
+
* @returns {replit.goval.api.UpdateReplFlags} UpdateReplFlags
|
|
51860
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51861
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51862
|
+
*/
|
|
51863
|
+
UpdateReplFlags.decodeDelimited = function decodeDelimited(reader) {
|
|
51864
|
+
if (!(reader instanceof $Reader))
|
|
51865
|
+
reader = new $Reader(reader);
|
|
51866
|
+
return this.decode(reader, reader.uint32());
|
|
51867
|
+
};
|
|
51868
|
+
|
|
51869
|
+
/**
|
|
51870
|
+
* Verifies an UpdateReplFlags message.
|
|
51871
|
+
* @function verify
|
|
51872
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51873
|
+
* @static
|
|
51874
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51875
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51876
|
+
*/
|
|
51877
|
+
UpdateReplFlags.verify = function verify(message) {
|
|
51878
|
+
if (typeof message !== "object" || message === null)
|
|
51879
|
+
return "object expected";
|
|
51880
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51881
|
+
if (!$util.isString(message.replId))
|
|
51882
|
+
return "replId: string expected";
|
|
51883
|
+
if (message.flags != null && message.hasOwnProperty("flags")) {
|
|
51884
|
+
if (!Array.isArray(message.flags))
|
|
51885
|
+
return "flags: array expected";
|
|
51886
|
+
for (var i = 0; i < message.flags.length; ++i)
|
|
51887
|
+
if (!$util.isString(message.flags[i]))
|
|
51888
|
+
return "flags: string[] expected";
|
|
51889
|
+
}
|
|
51890
|
+
return null;
|
|
51891
|
+
};
|
|
51892
|
+
|
|
51893
|
+
/**
|
|
51894
|
+
* Creates an UpdateReplFlags message from a plain object. Also converts values to their respective internal types.
|
|
51895
|
+
* @function fromObject
|
|
51896
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51897
|
+
* @static
|
|
51898
|
+
* @param {Object.<string,*>} object Plain object
|
|
51899
|
+
* @returns {replit.goval.api.UpdateReplFlags} UpdateReplFlags
|
|
51900
|
+
*/
|
|
51901
|
+
UpdateReplFlags.fromObject = function fromObject(object) {
|
|
51902
|
+
if (object instanceof $root.replit.goval.api.UpdateReplFlags)
|
|
51903
|
+
return object;
|
|
51904
|
+
var message = new $root.replit.goval.api.UpdateReplFlags();
|
|
51905
|
+
if (object.replId != null)
|
|
51906
|
+
message.replId = String(object.replId);
|
|
51907
|
+
if (object.flags) {
|
|
51908
|
+
if (!Array.isArray(object.flags))
|
|
51909
|
+
throw TypeError(".replit.goval.api.UpdateReplFlags.flags: array expected");
|
|
51910
|
+
message.flags = [];
|
|
51911
|
+
for (var i = 0; i < object.flags.length; ++i)
|
|
51912
|
+
message.flags[i] = String(object.flags[i]);
|
|
51913
|
+
}
|
|
51914
|
+
return message;
|
|
51915
|
+
};
|
|
51916
|
+
|
|
51917
|
+
/**
|
|
51918
|
+
* Creates a plain object from an UpdateReplFlags message. Also converts values to other types if specified.
|
|
51919
|
+
* @function toObject
|
|
51920
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51921
|
+
* @static
|
|
51922
|
+
* @param {replit.goval.api.UpdateReplFlags} message UpdateReplFlags
|
|
51923
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51924
|
+
* @returns {Object.<string,*>} Plain object
|
|
51925
|
+
*/
|
|
51926
|
+
UpdateReplFlags.toObject = function toObject(message, options) {
|
|
51927
|
+
if (!options)
|
|
51928
|
+
options = {};
|
|
51929
|
+
var object = {};
|
|
51930
|
+
if (options.arrays || options.defaults)
|
|
51931
|
+
object.flags = [];
|
|
51932
|
+
if (options.defaults)
|
|
51933
|
+
object.replId = "";
|
|
51934
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51935
|
+
object.replId = message.replId;
|
|
51936
|
+
if (message.flags && message.flags.length) {
|
|
51937
|
+
object.flags = [];
|
|
51938
|
+
for (var j = 0; j < message.flags.length; ++j)
|
|
51939
|
+
object.flags[j] = message.flags[j];
|
|
51940
|
+
}
|
|
51941
|
+
return object;
|
|
51942
|
+
};
|
|
51943
|
+
|
|
51944
|
+
/**
|
|
51945
|
+
* Converts this UpdateReplFlags to JSON.
|
|
51946
|
+
* @function toJSON
|
|
51947
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51948
|
+
* @instance
|
|
51949
|
+
* @returns {Object.<string,*>} JSON object
|
|
51950
|
+
*/
|
|
51951
|
+
UpdateReplFlags.prototype.toJSON = function toJSON() {
|
|
51952
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51953
|
+
};
|
|
51954
|
+
|
|
51955
|
+
return UpdateReplFlags;
|
|
51956
|
+
})();
|
|
51957
|
+
|
|
51699
51958
|
api.features = (function() {
|
|
51700
51959
|
|
|
51701
51960
|
/**
|
|
@@ -53236,6 +53495,7 @@
|
|
|
53236
53495
|
* @interface IMetadata
|
|
53237
53496
|
* @property {replit.goval.api.repl.Repl|replit.goval.api.repl.IRepl|null} [repl] Metadata repl
|
|
53238
53497
|
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [resourceLimits] Metadata resourceLimits
|
|
53498
|
+
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [interactiveResourceLimits] Metadata interactiveResourceLimits
|
|
53239
53499
|
* @property {replit.goval.api.repl.Persistence|null} [persistence] Metadata persistence
|
|
53240
53500
|
* @property {Array.<string>|null} [flags] Metadata flags
|
|
53241
53501
|
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] Metadata permissions
|
|
@@ -53274,6 +53534,14 @@
|
|
|
53274
53534
|
*/
|
|
53275
53535
|
Metadata.prototype.resourceLimits = null;
|
|
53276
53536
|
|
|
53537
|
+
/**
|
|
53538
|
+
* Metadata interactiveResourceLimits.
|
|
53539
|
+
* @member {replit.goval.api.repl.ResourceLimits|null|undefined} interactiveResourceLimits
|
|
53540
|
+
* @memberof replit.goval.api.repl.Metadata
|
|
53541
|
+
* @instance
|
|
53542
|
+
*/
|
|
53543
|
+
Metadata.prototype.interactiveResourceLimits = null;
|
|
53544
|
+
|
|
53277
53545
|
/**
|
|
53278
53546
|
* Metadata persistence.
|
|
53279
53547
|
* @member {replit.goval.api.repl.Persistence} persistence
|
|
@@ -53344,6 +53612,8 @@
|
|
|
53344
53612
|
if (message.features != null && message.features.length)
|
|
53345
53613
|
for (var i = 0; i < message.features.length; ++i)
|
|
53346
53614
|
$root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
53615
|
+
if (message.interactiveResourceLimits != null && Object.hasOwnProperty.call(message, "interactiveResourceLimits"))
|
|
53616
|
+
$root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
53347
53617
|
return writer;
|
|
53348
53618
|
};
|
|
53349
53619
|
|
|
@@ -53384,6 +53654,9 @@
|
|
|
53384
53654
|
case 10:
|
|
53385
53655
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
53386
53656
|
break;
|
|
53657
|
+
case 17:
|
|
53658
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
53659
|
+
break;
|
|
53387
53660
|
case 6:
|
|
53388
53661
|
message.persistence = reader.int32();
|
|
53389
53662
|
break;
|
|
@@ -53445,6 +53718,11 @@
|
|
|
53445
53718
|
if (error)
|
|
53446
53719
|
return "resourceLimits." + error;
|
|
53447
53720
|
}
|
|
53721
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits")) {
|
|
53722
|
+
var error = $root.replit.goval.api.repl.ResourceLimits.verify(message.interactiveResourceLimits);
|
|
53723
|
+
if (error)
|
|
53724
|
+
return "interactiveResourceLimits." + error;
|
|
53725
|
+
}
|
|
53448
53726
|
if (message.persistence != null && message.hasOwnProperty("persistence"))
|
|
53449
53727
|
switch (message.persistence) {
|
|
53450
53728
|
default:
|
|
@@ -53501,6 +53779,11 @@
|
|
|
53501
53779
|
throw TypeError(".replit.goval.api.repl.Metadata.resourceLimits: object expected");
|
|
53502
53780
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.resourceLimits);
|
|
53503
53781
|
}
|
|
53782
|
+
if (object.interactiveResourceLimits != null) {
|
|
53783
|
+
if (typeof object.interactiveResourceLimits !== "object")
|
|
53784
|
+
throw TypeError(".replit.goval.api.repl.Metadata.interactiveResourceLimits: object expected");
|
|
53785
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.interactiveResourceLimits);
|
|
53786
|
+
}
|
|
53504
53787
|
switch (object.persistence) {
|
|
53505
53788
|
case "PERSISTENT":
|
|
53506
53789
|
case 0:
|
|
@@ -53566,6 +53849,7 @@
|
|
|
53566
53849
|
object.repl = null;
|
|
53567
53850
|
object.resourceLimits = null;
|
|
53568
53851
|
object.permissions = null;
|
|
53852
|
+
object.interactiveResourceLimits = null;
|
|
53569
53853
|
}
|
|
53570
53854
|
if (message.persistence != null && message.hasOwnProperty("persistence"))
|
|
53571
53855
|
object.persistence = options.enums === String ? $root.replit.goval.api.repl.Persistence[message.persistence] : message.persistence;
|
|
@@ -53585,6 +53869,8 @@
|
|
|
53585
53869
|
for (var j = 0; j < message.features.length; ++j)
|
|
53586
53870
|
object.features[j] = $root.replit.goval.api.features.Feature.toObject(message.features[j], options);
|
|
53587
53871
|
}
|
|
53872
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
|
|
53873
|
+
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
53588
53874
|
return object;
|
|
53589
53875
|
};
|
|
53590
53876
|
|
package/main/index.js.flow
CHANGED
|
@@ -216,6 +216,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
216
216
|
IKillRepl: Class<replit$goval$api$IKillRepl>,
|
|
217
217
|
IRestore: Class<replit$goval$api$IRestore>,
|
|
218
218
|
IUpdateSourceRepl: Class<replit$goval$api$IUpdateSourceRepl>,
|
|
219
|
+
IUpdateReplFlags: Class<replit$goval$api$IUpdateReplFlags>,
|
|
219
220
|
Command: typeof replit$goval$api$Command,
|
|
220
221
|
NixPackageAddRequest: typeof replit$goval$api$NixPackageAddRequest,
|
|
221
222
|
NixPackageAddResponse: typeof replit$goval$api$NixPackageAddResponse,
|
|
@@ -411,6 +412,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
411
412
|
KillRepl: typeof replit$goval$api$KillRepl,
|
|
412
413
|
Restore: typeof replit$goval$api$Restore,
|
|
413
414
|
UpdateSourceRepl: typeof replit$goval$api$UpdateSourceRepl,
|
|
415
|
+
UpdateReplFlags: typeof replit$goval$api$UpdateReplFlags,
|
|
414
416
|
features: typeof npm$namespace$replit$goval$api$features,
|
|
415
417
|
repl: typeof npm$namespace$replit$goval$api$repl,
|
|
416
418
|
|};
|
|
@@ -28737,6 +28739,14 @@ declare type replit$goval$api$IGovalCommand = {|
|
|
|
28737
28739
|
| replit$goval$api$UpdateSourceRepl
|
|
28738
28740
|
| replit$goval$api$IUpdateSourceRepl
|
|
28739
28741
|
| null,
|
|
28742
|
+
|
|
28743
|
+
/**
|
|
28744
|
+
* GovalCommand updateReplFlags
|
|
28745
|
+
*/
|
|
28746
|
+
updateReplFlags?:
|
|
28747
|
+
| replit$goval$api$UpdateReplFlags
|
|
28748
|
+
| replit$goval$api$IUpdateReplFlags
|
|
28749
|
+
| null,
|
|
28740
28750
|
|};
|
|
28741
28751
|
|
|
28742
28752
|
/**
|
|
@@ -28769,6 +28779,11 @@ declare class replit$goval$api$GovalCommand {
|
|
|
28769
28779
|
*/
|
|
28770
28780
|
updateSourceRepl?: replit$goval$api$UpdateSourceRepl | null;
|
|
28771
28781
|
|
|
28782
|
+
/**
|
|
28783
|
+
* GovalCommand updateReplFlags.
|
|
28784
|
+
*/
|
|
28785
|
+
updateReplFlags?: replit$goval$api$UpdateReplFlags | null;
|
|
28786
|
+
|
|
28772
28787
|
/**
|
|
28773
28788
|
* GovalCommand command.
|
|
28774
28789
|
*/
|
|
@@ -28776,7 +28791,8 @@ declare class replit$goval$api$GovalCommand {
|
|
|
28776
28791
|
| "updateMetadata"
|
|
28777
28792
|
| "partialUpdateMetadata"
|
|
28778
28793
|
| "killRepl"
|
|
28779
|
-
| "updateSourceRepl"
|
|
28794
|
+
| "updateSourceRepl"
|
|
28795
|
+
| "updateReplFlags";
|
|
28780
28796
|
|
|
28781
28797
|
/**
|
|
28782
28798
|
* Creates a new GovalCommand instance using the specified properties.
|
|
@@ -29518,6 +29534,136 @@ declare class replit$goval$api$UpdateSourceRepl {
|
|
|
29518
29534
|
|};
|
|
29519
29535
|
}
|
|
29520
29536
|
|
|
29537
|
+
/**
|
|
29538
|
+
* Properties of an UpdateReplFlags.
|
|
29539
|
+
*/
|
|
29540
|
+
declare type replit$goval$api$IUpdateReplFlags = {|
|
|
29541
|
+
/**
|
|
29542
|
+
* UpdateReplFlags replId
|
|
29543
|
+
*/
|
|
29544
|
+
replId?: string | null,
|
|
29545
|
+
|
|
29546
|
+
/**
|
|
29547
|
+
* UpdateReplFlags flags
|
|
29548
|
+
*/
|
|
29549
|
+
flags?: string[] | null,
|
|
29550
|
+
|};
|
|
29551
|
+
|
|
29552
|
+
/**
|
|
29553
|
+
* Represents an UpdateReplFlags.
|
|
29554
|
+
*/
|
|
29555
|
+
declare class replit$goval$api$UpdateReplFlags {
|
|
29556
|
+
/**
|
|
29557
|
+
* Constructs a new UpdateReplFlags.
|
|
29558
|
+
* @param [properties] Properties to set
|
|
29559
|
+
*/
|
|
29560
|
+
constructor(properties?: replit$goval$api$IUpdateReplFlags): this;
|
|
29561
|
+
|
|
29562
|
+
/**
|
|
29563
|
+
* UpdateReplFlags replId.
|
|
29564
|
+
*/
|
|
29565
|
+
replId: string;
|
|
29566
|
+
|
|
29567
|
+
/**
|
|
29568
|
+
* UpdateReplFlags flags.
|
|
29569
|
+
*/
|
|
29570
|
+
flags: string[];
|
|
29571
|
+
|
|
29572
|
+
/**
|
|
29573
|
+
* Creates a new UpdateReplFlags instance using the specified properties.
|
|
29574
|
+
* @param [properties] Properties to set
|
|
29575
|
+
* @returns UpdateReplFlags instance
|
|
29576
|
+
*/
|
|
29577
|
+
static create(
|
|
29578
|
+
properties?: replit$goval$api$IUpdateReplFlags
|
|
29579
|
+
): replit$goval$api$UpdateReplFlags;
|
|
29580
|
+
|
|
29581
|
+
/**
|
|
29582
|
+
* [object Object],[object Object],[object Object]
|
|
29583
|
+
* @param message UpdateReplFlags message or plain object to encode
|
|
29584
|
+
* @param [writer] Writer to encode to
|
|
29585
|
+
* @returns Writer
|
|
29586
|
+
*/
|
|
29587
|
+
static encode(
|
|
29588
|
+
message: replit$goval$api$UpdateReplFlags,
|
|
29589
|
+
writer?: $protobuf.Writer
|
|
29590
|
+
): $protobuf.Writer;
|
|
29591
|
+
|
|
29592
|
+
/**
|
|
29593
|
+
* [object Object],[object Object],[object Object]
|
|
29594
|
+
* @param message UpdateReplFlags message or plain object to encode
|
|
29595
|
+
* @param [writer] Writer to encode to
|
|
29596
|
+
* @returns Writer
|
|
29597
|
+
*/
|
|
29598
|
+
static encodeDelimited(
|
|
29599
|
+
message: replit$goval$api$UpdateReplFlags,
|
|
29600
|
+
writer?: $protobuf.Writer
|
|
29601
|
+
): $protobuf.Writer;
|
|
29602
|
+
|
|
29603
|
+
/**
|
|
29604
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer.
|
|
29605
|
+
* @param reader Reader or buffer to decode from
|
|
29606
|
+
* @param [length] Message length if known beforehand
|
|
29607
|
+
* @returns UpdateReplFlags
|
|
29608
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29609
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29610
|
+
*/
|
|
29611
|
+
static decode(
|
|
29612
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
29613
|
+
length?: number
|
|
29614
|
+
): replit$goval$api$UpdateReplFlags;
|
|
29615
|
+
|
|
29616
|
+
/**
|
|
29617
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer, length delimited.
|
|
29618
|
+
* @param reader Reader or buffer to decode from
|
|
29619
|
+
* @returns UpdateReplFlags
|
|
29620
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29621
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29622
|
+
*/
|
|
29623
|
+
static decodeDelimited(
|
|
29624
|
+
reader: $protobuf.Reader | Uint8Array
|
|
29625
|
+
): replit$goval$api$UpdateReplFlags;
|
|
29626
|
+
|
|
29627
|
+
/**
|
|
29628
|
+
* Verifies an UpdateReplFlags message.
|
|
29629
|
+
* @param message Plain object to verify
|
|
29630
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
29631
|
+
*/
|
|
29632
|
+
static verify(message: {|
|
|
29633
|
+
[k: string]: any,
|
|
29634
|
+
|}): string | null;
|
|
29635
|
+
|
|
29636
|
+
/**
|
|
29637
|
+
* Creates an UpdateReplFlags message from a plain object. Also converts values to their respective internal types.
|
|
29638
|
+
* @param object Plain object
|
|
29639
|
+
* @returns UpdateReplFlags
|
|
29640
|
+
*/
|
|
29641
|
+
static fromObject(object: {|
|
|
29642
|
+
[k: string]: any,
|
|
29643
|
+
|}): replit$goval$api$UpdateReplFlags;
|
|
29644
|
+
|
|
29645
|
+
/**
|
|
29646
|
+
* Creates a plain object from an UpdateReplFlags message. Also converts values to other types if specified.
|
|
29647
|
+
* @param message UpdateReplFlags
|
|
29648
|
+
* @param [options] Conversion options
|
|
29649
|
+
* @returns Plain object
|
|
29650
|
+
*/
|
|
29651
|
+
static toObject(
|
|
29652
|
+
message: replit$goval$api$UpdateReplFlags,
|
|
29653
|
+
options?: $protobuf.IConversionOptions
|
|
29654
|
+
): {|
|
|
29655
|
+
[k: string]: any,
|
|
29656
|
+
|};
|
|
29657
|
+
|
|
29658
|
+
/**
|
|
29659
|
+
* Converts this UpdateReplFlags to JSON.
|
|
29660
|
+
* @returns JSON object
|
|
29661
|
+
*/
|
|
29662
|
+
toJSON(): {|
|
|
29663
|
+
[k: string]: any,
|
|
29664
|
+
|};
|
|
29665
|
+
}
|
|
29666
|
+
|
|
29521
29667
|
declare var npm$namespace$replit$goval$api$features: {|
|
|
29522
29668
|
IGpu: Class<replit$goval$api$features$IGpu>,
|
|
29523
29669
|
IBoosted: Class<replit$goval$api$features$IBoosted>,
|
|
@@ -30438,6 +30584,14 @@ declare type replit$goval$api$repl$IMetadata = {|
|
|
|
30438
30584
|
| replit$goval$api$repl$IResourceLimits
|
|
30439
30585
|
| null,
|
|
30440
30586
|
|
|
30587
|
+
/**
|
|
30588
|
+
* Metadata interactiveResourceLimits
|
|
30589
|
+
*/
|
|
30590
|
+
interactiveResourceLimits?:
|
|
30591
|
+
| replit$goval$api$repl$ResourceLimits
|
|
30592
|
+
| replit$goval$api$repl$IResourceLimits
|
|
30593
|
+
| null,
|
|
30594
|
+
|
|
30441
30595
|
/**
|
|
30442
30596
|
* Metadata persistence
|
|
30443
30597
|
*/
|
|
@@ -30484,6 +30638,11 @@ declare class replit$goval$api$repl$Metadata {
|
|
|
30484
30638
|
*/
|
|
30485
30639
|
resourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
30486
30640
|
|
|
30641
|
+
/**
|
|
30642
|
+
* Metadata interactiveResourceLimits.
|
|
30643
|
+
*/
|
|
30644
|
+
interactiveResourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
30645
|
+
|
|
30487
30646
|
/**
|
|
30488
30647
|
* Metadata persistence.
|
|
30489
30648
|
*/
|