@replit/protocol 0.2.77 → 0.2.79
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/gen.sh +1 -2
- package/iotester/index.js.flow +1 -1
- package/main/index.d.ts +309 -3
- package/main/index.js +760 -6
- package/main/index.js.flow +443 -5
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -213,6 +213,7 @@
|
|
|
213
213
|
* @property {replit.goval.api.NixChannelLatestStableResponse|replit.goval.api.INixChannelLatestStableResponse|null} [nixChannelLatestStableResponse] Command nixChannelLatestStableResponse
|
|
214
214
|
* @property {replit.goval.api.NixPackageSearchRequest|replit.goval.api.INixPackageSearchRequest|null} [nixPackageSearchRequest] Command nixPackageSearchRequest
|
|
215
215
|
* @property {replit.goval.api.NixPackageSearchResponse|replit.goval.api.INixPackageSearchResponse|null} [nixPackageSearchResponse] Command nixPackageSearchResponse
|
|
216
|
+
* @property {replit.goval.api.UserEvent|replit.goval.api.IUserEvent|null} [userEvent] Command userEvent
|
|
216
217
|
* @property {string|null} [ref] Command ref
|
|
217
218
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
218
219
|
*/
|
|
@@ -1544,6 +1545,14 @@
|
|
|
1544
1545
|
*/
|
|
1545
1546
|
Command.prototype.nixPackageSearchResponse = null;
|
|
1546
1547
|
|
|
1548
|
+
/**
|
|
1549
|
+
* Command userEvent.
|
|
1550
|
+
* @member {replit.goval.api.UserEvent|null|undefined} userEvent
|
|
1551
|
+
* @memberof replit.goval.api.Command
|
|
1552
|
+
* @instance
|
|
1553
|
+
*/
|
|
1554
|
+
Command.prototype.userEvent = null;
|
|
1555
|
+
|
|
1547
1556
|
/**
|
|
1548
1557
|
* Command ref.
|
|
1549
1558
|
* @member {string} ref
|
|
@@ -1565,12 +1574,12 @@
|
|
|
1565
1574
|
|
|
1566
1575
|
/**
|
|
1567
1576
|
* Command body.
|
|
1568
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|undefined} body
|
|
1577
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|undefined} body
|
|
1569
1578
|
* @memberof replit.goval.api.Command
|
|
1570
1579
|
* @instance
|
|
1571
1580
|
*/
|
|
1572
1581
|
Object.defineProperty(Command.prototype, "body", {
|
|
1573
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "record", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse"]),
|
|
1582
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "record", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent"]),
|
|
1574
1583
|
set: $util.oneOfSetter($oneOfFields)
|
|
1575
1584
|
});
|
|
1576
1585
|
|
|
@@ -1926,6 +1935,8 @@
|
|
|
1926
1935
|
$root.replit.goval.api.NixPackageSearchResponse.encode(message.nixPackageSearchResponse, writer.uint32(/* id 421, wireType 2 =*/3370).fork()).ldelim();
|
|
1927
1936
|
if (message.record != null && Object.hasOwnProperty.call(message, "record"))
|
|
1928
1937
|
writer.uint32(/* id 422, wireType 2 =*/3378).string(message.record);
|
|
1938
|
+
if (message.userEvent != null && Object.hasOwnProperty.call(message, "userEvent"))
|
|
1939
|
+
$root.replit.goval.api.UserEvent.encode(message.userEvent, writer.uint32(/* id 423, wireType 2 =*/3386).fork()).ldelim();
|
|
1929
1940
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
1930
1941
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
1931
1942
|
if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
|
|
@@ -2457,6 +2468,9 @@
|
|
|
2457
2468
|
case 421:
|
|
2458
2469
|
message.nixPackageSearchResponse = $root.replit.goval.api.NixPackageSearchResponse.decode(reader, reader.uint32());
|
|
2459
2470
|
break;
|
|
2471
|
+
case 423:
|
|
2472
|
+
message.userEvent = $root.replit.goval.api.UserEvent.decode(reader, reader.uint32());
|
|
2473
|
+
break;
|
|
2460
2474
|
case 1000:
|
|
2461
2475
|
message.ref = reader.string();
|
|
2462
2476
|
break;
|
|
@@ -4111,6 +4125,16 @@
|
|
|
4111
4125
|
return "nixPackageSearchResponse." + error;
|
|
4112
4126
|
}
|
|
4113
4127
|
}
|
|
4128
|
+
if (message.userEvent != null && message.hasOwnProperty("userEvent")) {
|
|
4129
|
+
if (properties.body === 1)
|
|
4130
|
+
return "body: multiple values";
|
|
4131
|
+
properties.body = 1;
|
|
4132
|
+
{
|
|
4133
|
+
var error = $root.replit.goval.api.UserEvent.verify(message.userEvent);
|
|
4134
|
+
if (error)
|
|
4135
|
+
return "userEvent." + error;
|
|
4136
|
+
}
|
|
4137
|
+
}
|
|
4114
4138
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
4115
4139
|
if (!$util.isString(message.ref))
|
|
4116
4140
|
return "ref: string expected";
|
|
@@ -4923,6 +4947,11 @@
|
|
|
4923
4947
|
throw TypeError(".replit.goval.api.Command.nixPackageSearchResponse: object expected");
|
|
4924
4948
|
message.nixPackageSearchResponse = $root.replit.goval.api.NixPackageSearchResponse.fromObject(object.nixPackageSearchResponse);
|
|
4925
4949
|
}
|
|
4950
|
+
if (object.userEvent != null) {
|
|
4951
|
+
if (typeof object.userEvent !== "object")
|
|
4952
|
+
throw TypeError(".replit.goval.api.Command.userEvent: object expected");
|
|
4953
|
+
message.userEvent = $root.replit.goval.api.UserEvent.fromObject(object.userEvent);
|
|
4954
|
+
}
|
|
4926
4955
|
if (object.ref != null)
|
|
4927
4956
|
message.ref = String(object.ref);
|
|
4928
4957
|
if (object.traceInfo) {
|
|
@@ -5769,6 +5798,11 @@
|
|
|
5769
5798
|
if (options.oneofs)
|
|
5770
5799
|
object.body = "record";
|
|
5771
5800
|
}
|
|
5801
|
+
if (message.userEvent != null && message.hasOwnProperty("userEvent")) {
|
|
5802
|
+
object.userEvent = $root.replit.goval.api.UserEvent.toObject(message.userEvent, options);
|
|
5803
|
+
if (options.oneofs)
|
|
5804
|
+
object.body = "userEvent";
|
|
5805
|
+
}
|
|
5772
5806
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
5773
5807
|
object.ref = message.ref;
|
|
5774
5808
|
var keys2;
|
|
@@ -44926,6 +44960,242 @@
|
|
|
44926
44960
|
return ReplLogMessage;
|
|
44927
44961
|
})();
|
|
44928
44962
|
|
|
44963
|
+
api.UserEvent = (function() {
|
|
44964
|
+
|
|
44965
|
+
/**
|
|
44966
|
+
* Properties of a UserEvent.
|
|
44967
|
+
* @memberof replit.goval.api
|
|
44968
|
+
* @interface IUserEvent
|
|
44969
|
+
* @property {string|null} [eventName] UserEvent eventName
|
|
44970
|
+
* @property {google.protobuf.Struct|google.protobuf.IStruct|null} [eventData] UserEvent eventData
|
|
44971
|
+
* @property {number|null} [version] UserEvent version
|
|
44972
|
+
*/
|
|
44973
|
+
|
|
44974
|
+
/**
|
|
44975
|
+
* Constructs a new UserEvent.
|
|
44976
|
+
* @memberof replit.goval.api
|
|
44977
|
+
* @classdesc Represents a UserEvent.
|
|
44978
|
+
* @constructor
|
|
44979
|
+
* @param {replit.goval.api.IUserEvent=} [properties] Properties to set
|
|
44980
|
+
*/
|
|
44981
|
+
function UserEvent(properties) {
|
|
44982
|
+
if (properties)
|
|
44983
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44984
|
+
if (properties[keys[i]] != null)
|
|
44985
|
+
this[keys[i]] = properties[keys[i]];
|
|
44986
|
+
}
|
|
44987
|
+
|
|
44988
|
+
/**
|
|
44989
|
+
* UserEvent eventName.
|
|
44990
|
+
* @member {string} eventName
|
|
44991
|
+
* @memberof replit.goval.api.UserEvent
|
|
44992
|
+
* @instance
|
|
44993
|
+
*/
|
|
44994
|
+
UserEvent.prototype.eventName = "";
|
|
44995
|
+
|
|
44996
|
+
/**
|
|
44997
|
+
* UserEvent eventData.
|
|
44998
|
+
* @member {google.protobuf.Struct|null|undefined} eventData
|
|
44999
|
+
* @memberof replit.goval.api.UserEvent
|
|
45000
|
+
* @instance
|
|
45001
|
+
*/
|
|
45002
|
+
UserEvent.prototype.eventData = null;
|
|
45003
|
+
|
|
45004
|
+
/**
|
|
45005
|
+
* UserEvent version.
|
|
45006
|
+
* @member {number} version
|
|
45007
|
+
* @memberof replit.goval.api.UserEvent
|
|
45008
|
+
* @instance
|
|
45009
|
+
*/
|
|
45010
|
+
UserEvent.prototype.version = 0;
|
|
45011
|
+
|
|
45012
|
+
/**
|
|
45013
|
+
* Creates a new UserEvent instance using the specified properties.
|
|
45014
|
+
* @function create
|
|
45015
|
+
* @memberof replit.goval.api.UserEvent
|
|
45016
|
+
* @static
|
|
45017
|
+
* @param {replit.goval.api.IUserEvent=} [properties] Properties to set
|
|
45018
|
+
* @returns {replit.goval.api.UserEvent} UserEvent instance
|
|
45019
|
+
*/
|
|
45020
|
+
UserEvent.create = function create(properties) {
|
|
45021
|
+
return UserEvent.fromObject(properties);
|
|
45022
|
+
};
|
|
45023
|
+
|
|
45024
|
+
/**
|
|
45025
|
+
* Encodes the specified UserEvent message. Does not implicitly {@link replit.goval.api.UserEvent.verify|verify} messages.
|
|
45026
|
+
* @function encode
|
|
45027
|
+
* @memberof replit.goval.api.UserEvent
|
|
45028
|
+
* @static
|
|
45029
|
+
* @param {replit.goval.api.UserEvent} message UserEvent message or plain object to encode
|
|
45030
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45031
|
+
* @returns {$protobuf.Writer} Writer
|
|
45032
|
+
*/
|
|
45033
|
+
UserEvent.encode = function encode(message, writer) {
|
|
45034
|
+
if (!writer)
|
|
45035
|
+
writer = $Writer.create();
|
|
45036
|
+
if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName"))
|
|
45037
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName);
|
|
45038
|
+
if (message.eventData != null && Object.hasOwnProperty.call(message, "eventData"))
|
|
45039
|
+
$root.google.protobuf.Struct.encode(message.eventData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
45040
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
45041
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.version);
|
|
45042
|
+
return writer;
|
|
45043
|
+
};
|
|
45044
|
+
|
|
45045
|
+
/**
|
|
45046
|
+
* Encodes the specified UserEvent message, length delimited. Does not implicitly {@link replit.goval.api.UserEvent.verify|verify} messages.
|
|
45047
|
+
* @function encodeDelimited
|
|
45048
|
+
* @memberof replit.goval.api.UserEvent
|
|
45049
|
+
* @static
|
|
45050
|
+
* @param {replit.goval.api.UserEvent} message UserEvent message or plain object to encode
|
|
45051
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45052
|
+
* @returns {$protobuf.Writer} Writer
|
|
45053
|
+
*/
|
|
45054
|
+
UserEvent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45055
|
+
return this.encode(message, writer).ldelim();
|
|
45056
|
+
};
|
|
45057
|
+
|
|
45058
|
+
/**
|
|
45059
|
+
* Decodes a UserEvent message from the specified reader or buffer.
|
|
45060
|
+
* @function decode
|
|
45061
|
+
* @memberof replit.goval.api.UserEvent
|
|
45062
|
+
* @static
|
|
45063
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45064
|
+
* @param {number} [length] Message length if known beforehand
|
|
45065
|
+
* @returns {replit.goval.api.UserEvent} UserEvent
|
|
45066
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45067
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45068
|
+
*/
|
|
45069
|
+
UserEvent.decode = function decode(reader, length) {
|
|
45070
|
+
if (!(reader instanceof $Reader))
|
|
45071
|
+
reader = $Reader.create(reader);
|
|
45072
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.UserEvent();
|
|
45073
|
+
while (reader.pos < end) {
|
|
45074
|
+
var tag = reader.uint32();
|
|
45075
|
+
switch (tag >>> 3) {
|
|
45076
|
+
case 1:
|
|
45077
|
+
message.eventName = reader.string();
|
|
45078
|
+
break;
|
|
45079
|
+
case 2:
|
|
45080
|
+
message.eventData = $root.google.protobuf.Struct.decode(reader, reader.uint32());
|
|
45081
|
+
break;
|
|
45082
|
+
case 3:
|
|
45083
|
+
message.version = reader.int32();
|
|
45084
|
+
break;
|
|
45085
|
+
default:
|
|
45086
|
+
reader.skipType(tag & 7);
|
|
45087
|
+
break;
|
|
45088
|
+
}
|
|
45089
|
+
}
|
|
45090
|
+
return message;
|
|
45091
|
+
};
|
|
45092
|
+
|
|
45093
|
+
/**
|
|
45094
|
+
* Decodes a UserEvent message from the specified reader or buffer, length delimited.
|
|
45095
|
+
* @function decodeDelimited
|
|
45096
|
+
* @memberof replit.goval.api.UserEvent
|
|
45097
|
+
* @static
|
|
45098
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45099
|
+
* @returns {replit.goval.api.UserEvent} UserEvent
|
|
45100
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45101
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45102
|
+
*/
|
|
45103
|
+
UserEvent.decodeDelimited = function decodeDelimited(reader) {
|
|
45104
|
+
if (!(reader instanceof $Reader))
|
|
45105
|
+
reader = new $Reader(reader);
|
|
45106
|
+
return this.decode(reader, reader.uint32());
|
|
45107
|
+
};
|
|
45108
|
+
|
|
45109
|
+
/**
|
|
45110
|
+
* Verifies a UserEvent message.
|
|
45111
|
+
* @function verify
|
|
45112
|
+
* @memberof replit.goval.api.UserEvent
|
|
45113
|
+
* @static
|
|
45114
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45115
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45116
|
+
*/
|
|
45117
|
+
UserEvent.verify = function verify(message) {
|
|
45118
|
+
if (typeof message !== "object" || message === null)
|
|
45119
|
+
return "object expected";
|
|
45120
|
+
if (message.eventName != null && message.hasOwnProperty("eventName"))
|
|
45121
|
+
if (!$util.isString(message.eventName))
|
|
45122
|
+
return "eventName: string expected";
|
|
45123
|
+
if (message.eventData != null && message.hasOwnProperty("eventData")) {
|
|
45124
|
+
var error = $root.google.protobuf.Struct.verify(message.eventData);
|
|
45125
|
+
if (error)
|
|
45126
|
+
return "eventData." + error;
|
|
45127
|
+
}
|
|
45128
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
45129
|
+
if (!$util.isInteger(message.version))
|
|
45130
|
+
return "version: integer expected";
|
|
45131
|
+
return null;
|
|
45132
|
+
};
|
|
45133
|
+
|
|
45134
|
+
/**
|
|
45135
|
+
* Creates a UserEvent message from a plain object. Also converts values to their respective internal types.
|
|
45136
|
+
* @function fromObject
|
|
45137
|
+
* @memberof replit.goval.api.UserEvent
|
|
45138
|
+
* @static
|
|
45139
|
+
* @param {Object.<string,*>} object Plain object
|
|
45140
|
+
* @returns {replit.goval.api.UserEvent} UserEvent
|
|
45141
|
+
*/
|
|
45142
|
+
UserEvent.fromObject = function fromObject(object) {
|
|
45143
|
+
if (object instanceof $root.replit.goval.api.UserEvent)
|
|
45144
|
+
return object;
|
|
45145
|
+
var message = new $root.replit.goval.api.UserEvent();
|
|
45146
|
+
if (object.eventName != null)
|
|
45147
|
+
message.eventName = String(object.eventName);
|
|
45148
|
+
if (object.eventData != null) {
|
|
45149
|
+
if (typeof object.eventData !== "object")
|
|
45150
|
+
throw TypeError(".replit.goval.api.UserEvent.eventData: object expected");
|
|
45151
|
+
message.eventData = $root.google.protobuf.Struct.fromObject(object.eventData);
|
|
45152
|
+
}
|
|
45153
|
+
if (object.version != null)
|
|
45154
|
+
message.version = object.version | 0;
|
|
45155
|
+
return message;
|
|
45156
|
+
};
|
|
45157
|
+
|
|
45158
|
+
/**
|
|
45159
|
+
* Creates a plain object from a UserEvent message. Also converts values to other types if specified.
|
|
45160
|
+
* @function toObject
|
|
45161
|
+
* @memberof replit.goval.api.UserEvent
|
|
45162
|
+
* @static
|
|
45163
|
+
* @param {replit.goval.api.UserEvent} message UserEvent
|
|
45164
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45165
|
+
* @returns {Object.<string,*>} Plain object
|
|
45166
|
+
*/
|
|
45167
|
+
UserEvent.toObject = function toObject(message, options) {
|
|
45168
|
+
if (!options)
|
|
45169
|
+
options = {};
|
|
45170
|
+
var object = {};
|
|
45171
|
+
if (options.defaults) {
|
|
45172
|
+
object.eventName = "";
|
|
45173
|
+
object.eventData = null;
|
|
45174
|
+
object.version = 0;
|
|
45175
|
+
}
|
|
45176
|
+
if (message.eventName != null && message.hasOwnProperty("eventName"))
|
|
45177
|
+
object.eventName = message.eventName;
|
|
45178
|
+
if (message.eventData != null && message.hasOwnProperty("eventData"))
|
|
45179
|
+
object.eventData = $root.google.protobuf.Struct.toObject(message.eventData, options);
|
|
45180
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
45181
|
+
object.version = message.version;
|
|
45182
|
+
return object;
|
|
45183
|
+
};
|
|
45184
|
+
|
|
45185
|
+
/**
|
|
45186
|
+
* Converts this UserEvent to JSON.
|
|
45187
|
+
* @function toJSON
|
|
45188
|
+
* @memberof replit.goval.api.UserEvent
|
|
45189
|
+
* @instance
|
|
45190
|
+
* @returns {Object.<string,*>} JSON object
|
|
45191
|
+
*/
|
|
45192
|
+
UserEvent.prototype.toJSON = function toJSON() {
|
|
45193
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
45194
|
+
};
|
|
45195
|
+
|
|
45196
|
+
return UserEvent;
|
|
45197
|
+
})();
|
|
45198
|
+
|
|
44929
45199
|
api.ReplToken = (function() {
|
|
44930
45200
|
|
|
44931
45201
|
/**
|
|
@@ -49230,6 +49500,7 @@
|
|
|
49230
49500
|
* @property {replit.goval.api.ClusterTransfer|replit.goval.api.IClusterTransfer|null} [clusterTransfer] LoreCommand clusterTransfer
|
|
49231
49501
|
* @property {replit.goval.api.SoftTakedown|replit.goval.api.ISoftTakedown|null} [softTakedown] LoreCommand softTakedown
|
|
49232
49502
|
* @property {replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand|null} [govalCommand] LoreCommand govalCommand
|
|
49503
|
+
* @property {replit.goval.api.MultiGovalCommand|replit.goval.api.IMultiGovalCommand|null} [multiGovalCommand] LoreCommand multiGovalCommand
|
|
49233
49504
|
* @property {replit.goval.api.Restore|replit.goval.api.IRestore|null} [restore] LoreCommand restore
|
|
49234
49505
|
*/
|
|
49235
49506
|
|
|
@@ -49271,6 +49542,14 @@
|
|
|
49271
49542
|
*/
|
|
49272
49543
|
LoreCommand.prototype.govalCommand = null;
|
|
49273
49544
|
|
|
49545
|
+
/**
|
|
49546
|
+
* LoreCommand multiGovalCommand.
|
|
49547
|
+
* @member {replit.goval.api.MultiGovalCommand|null|undefined} multiGovalCommand
|
|
49548
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49549
|
+
* @instance
|
|
49550
|
+
*/
|
|
49551
|
+
LoreCommand.prototype.multiGovalCommand = null;
|
|
49552
|
+
|
|
49274
49553
|
/**
|
|
49275
49554
|
* LoreCommand restore.
|
|
49276
49555
|
* @member {replit.goval.api.Restore|null|undefined} restore
|
|
@@ -49284,12 +49563,12 @@
|
|
|
49284
49563
|
|
|
49285
49564
|
/**
|
|
49286
49565
|
* LoreCommand command.
|
|
49287
|
-
* @member {"clusterTransfer"|"softTakedown"|"govalCommand"|"restore"|undefined} command
|
|
49566
|
+
* @member {"clusterTransfer"|"softTakedown"|"govalCommand"|"multiGovalCommand"|"restore"|undefined} command
|
|
49288
49567
|
* @memberof replit.goval.api.LoreCommand
|
|
49289
49568
|
* @instance
|
|
49290
49569
|
*/
|
|
49291
49570
|
Object.defineProperty(LoreCommand.prototype, "command", {
|
|
49292
|
-
get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "govalCommand", "restore"]),
|
|
49571
|
+
get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "govalCommand", "multiGovalCommand", "restore"]),
|
|
49293
49572
|
set: $util.oneOfSetter($oneOfFields)
|
|
49294
49573
|
});
|
|
49295
49574
|
|
|
@@ -49325,6 +49604,8 @@
|
|
|
49325
49604
|
$root.replit.goval.api.GovalCommand.encode(message.govalCommand, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
49326
49605
|
if (message.restore != null && Object.hasOwnProperty.call(message, "restore"))
|
|
49327
49606
|
$root.replit.goval.api.Restore.encode(message.restore, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
49607
|
+
if (message.multiGovalCommand != null && Object.hasOwnProperty.call(message, "multiGovalCommand"))
|
|
49608
|
+
$root.replit.goval.api.MultiGovalCommand.encode(message.multiGovalCommand, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
49328
49609
|
return writer;
|
|
49329
49610
|
};
|
|
49330
49611
|
|
|
@@ -49368,6 +49649,9 @@
|
|
|
49368
49649
|
case 3:
|
|
49369
49650
|
message.govalCommand = $root.replit.goval.api.GovalCommand.decode(reader, reader.uint32());
|
|
49370
49651
|
break;
|
|
49652
|
+
case 5:
|
|
49653
|
+
message.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.decode(reader, reader.uint32());
|
|
49654
|
+
break;
|
|
49371
49655
|
case 4:
|
|
49372
49656
|
message.restore = $root.replit.goval.api.Restore.decode(reader, reader.uint32());
|
|
49373
49657
|
break;
|
|
@@ -49435,6 +49719,16 @@
|
|
|
49435
49719
|
return "govalCommand." + error;
|
|
49436
49720
|
}
|
|
49437
49721
|
}
|
|
49722
|
+
if (message.multiGovalCommand != null && message.hasOwnProperty("multiGovalCommand")) {
|
|
49723
|
+
if (properties.command === 1)
|
|
49724
|
+
return "command: multiple values";
|
|
49725
|
+
properties.command = 1;
|
|
49726
|
+
{
|
|
49727
|
+
var error = $root.replit.goval.api.MultiGovalCommand.verify(message.multiGovalCommand);
|
|
49728
|
+
if (error)
|
|
49729
|
+
return "multiGovalCommand." + error;
|
|
49730
|
+
}
|
|
49731
|
+
}
|
|
49438
49732
|
if (message.restore != null && message.hasOwnProperty("restore")) {
|
|
49439
49733
|
if (properties.command === 1)
|
|
49440
49734
|
return "command: multiple values";
|
|
@@ -49475,6 +49769,11 @@
|
|
|
49475
49769
|
throw TypeError(".replit.goval.api.LoreCommand.govalCommand: object expected");
|
|
49476
49770
|
message.govalCommand = $root.replit.goval.api.GovalCommand.fromObject(object.govalCommand);
|
|
49477
49771
|
}
|
|
49772
|
+
if (object.multiGovalCommand != null) {
|
|
49773
|
+
if (typeof object.multiGovalCommand !== "object")
|
|
49774
|
+
throw TypeError(".replit.goval.api.LoreCommand.multiGovalCommand: object expected");
|
|
49775
|
+
message.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.fromObject(object.multiGovalCommand);
|
|
49776
|
+
}
|
|
49478
49777
|
if (object.restore != null) {
|
|
49479
49778
|
if (typeof object.restore !== "object")
|
|
49480
49779
|
throw TypeError(".replit.goval.api.LoreCommand.restore: object expected");
|
|
@@ -49516,6 +49815,11 @@
|
|
|
49516
49815
|
if (options.oneofs)
|
|
49517
49816
|
object.command = "restore";
|
|
49518
49817
|
}
|
|
49818
|
+
if (message.multiGovalCommand != null && message.hasOwnProperty("multiGovalCommand")) {
|
|
49819
|
+
object.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.toObject(message.multiGovalCommand, options);
|
|
49820
|
+
if (options.oneofs)
|
|
49821
|
+
object.command = "multiGovalCommand";
|
|
49822
|
+
}
|
|
49519
49823
|
return object;
|
|
49520
49824
|
};
|
|
49521
49825
|
|
|
@@ -50003,6 +50307,7 @@
|
|
|
50003
50307
|
* @interface IGovalCommand
|
|
50004
50308
|
* @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] GovalCommand updateMetadata
|
|
50005
50309
|
* @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
|
|
50310
|
+
* @property {replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null} [killRepl] GovalCommand killRepl
|
|
50006
50311
|
*/
|
|
50007
50312
|
|
|
50008
50313
|
/**
|
|
@@ -50035,17 +50340,25 @@
|
|
|
50035
50340
|
*/
|
|
50036
50341
|
GovalCommand.prototype.partialUpdateMetadata = null;
|
|
50037
50342
|
|
|
50343
|
+
/**
|
|
50344
|
+
* GovalCommand killRepl.
|
|
50345
|
+
* @member {replit.goval.api.KillRepl|null|undefined} killRepl
|
|
50346
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50347
|
+
* @instance
|
|
50348
|
+
*/
|
|
50349
|
+
GovalCommand.prototype.killRepl = null;
|
|
50350
|
+
|
|
50038
50351
|
// OneOf field names bound to virtual getters and setters
|
|
50039
50352
|
var $oneOfFields;
|
|
50040
50353
|
|
|
50041
50354
|
/**
|
|
50042
50355
|
* GovalCommand command.
|
|
50043
|
-
* @member {"updateMetadata"|"partialUpdateMetadata"|undefined} command
|
|
50356
|
+
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|undefined} command
|
|
50044
50357
|
* @memberof replit.goval.api.GovalCommand
|
|
50045
50358
|
* @instance
|
|
50046
50359
|
*/
|
|
50047
50360
|
Object.defineProperty(GovalCommand.prototype, "command", {
|
|
50048
|
-
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata"]),
|
|
50361
|
+
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl"]),
|
|
50049
50362
|
set: $util.oneOfSetter($oneOfFields)
|
|
50050
50363
|
});
|
|
50051
50364
|
|
|
@@ -50077,6 +50390,8 @@
|
|
|
50077
50390
|
$root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
50078
50391
|
if (message.partialUpdateMetadata != null && Object.hasOwnProperty.call(message, "partialUpdateMetadata"))
|
|
50079
50392
|
$root.replit.goval.api.PartialUpdateMetadata.encode(message.partialUpdateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50393
|
+
if (message.killRepl != null && Object.hasOwnProperty.call(message, "killRepl"))
|
|
50394
|
+
$root.replit.goval.api.KillRepl.encode(message.killRepl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
50080
50395
|
return writer;
|
|
50081
50396
|
};
|
|
50082
50397
|
|
|
@@ -50117,6 +50432,9 @@
|
|
|
50117
50432
|
case 2:
|
|
50118
50433
|
message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.decode(reader, reader.uint32());
|
|
50119
50434
|
break;
|
|
50435
|
+
case 3:
|
|
50436
|
+
message.killRepl = $root.replit.goval.api.KillRepl.decode(reader, reader.uint32());
|
|
50437
|
+
break;
|
|
50120
50438
|
default:
|
|
50121
50439
|
reader.skipType(tag & 7);
|
|
50122
50440
|
break;
|
|
@@ -50171,6 +50489,16 @@
|
|
|
50171
50489
|
return "partialUpdateMetadata." + error;
|
|
50172
50490
|
}
|
|
50173
50491
|
}
|
|
50492
|
+
if (message.killRepl != null && message.hasOwnProperty("killRepl")) {
|
|
50493
|
+
if (properties.command === 1)
|
|
50494
|
+
return "command: multiple values";
|
|
50495
|
+
properties.command = 1;
|
|
50496
|
+
{
|
|
50497
|
+
var error = $root.replit.goval.api.KillRepl.verify(message.killRepl);
|
|
50498
|
+
if (error)
|
|
50499
|
+
return "killRepl." + error;
|
|
50500
|
+
}
|
|
50501
|
+
}
|
|
50174
50502
|
return null;
|
|
50175
50503
|
};
|
|
50176
50504
|
|
|
@@ -50196,6 +50524,11 @@
|
|
|
50196
50524
|
throw TypeError(".replit.goval.api.GovalCommand.partialUpdateMetadata: object expected");
|
|
50197
50525
|
message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.fromObject(object.partialUpdateMetadata);
|
|
50198
50526
|
}
|
|
50527
|
+
if (object.killRepl != null) {
|
|
50528
|
+
if (typeof object.killRepl !== "object")
|
|
50529
|
+
throw TypeError(".replit.goval.api.GovalCommand.killRepl: object expected");
|
|
50530
|
+
message.killRepl = $root.replit.goval.api.KillRepl.fromObject(object.killRepl);
|
|
50531
|
+
}
|
|
50199
50532
|
return message;
|
|
50200
50533
|
};
|
|
50201
50534
|
|
|
@@ -50222,6 +50555,11 @@
|
|
|
50222
50555
|
if (options.oneofs)
|
|
50223
50556
|
object.command = "partialUpdateMetadata";
|
|
50224
50557
|
}
|
|
50558
|
+
if (message.killRepl != null && message.hasOwnProperty("killRepl")) {
|
|
50559
|
+
object.killRepl = $root.replit.goval.api.KillRepl.toObject(message.killRepl, options);
|
|
50560
|
+
if (options.oneofs)
|
|
50561
|
+
object.command = "killRepl";
|
|
50562
|
+
}
|
|
50225
50563
|
return object;
|
|
50226
50564
|
};
|
|
50227
50565
|
|
|
@@ -50458,6 +50796,422 @@
|
|
|
50458
50796
|
return PartialUpdateMetadata;
|
|
50459
50797
|
})();
|
|
50460
50798
|
|
|
50799
|
+
api.MultiGovalCommand = (function() {
|
|
50800
|
+
|
|
50801
|
+
/**
|
|
50802
|
+
* Properties of a MultiGovalCommand.
|
|
50803
|
+
* @memberof replit.goval.api
|
|
50804
|
+
* @interface IMultiGovalCommand
|
|
50805
|
+
* @property {string|null} [replId] MultiGovalCommand replId
|
|
50806
|
+
* @property {Array.<replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand>|null} [govalCommands] MultiGovalCommand govalCommands
|
|
50807
|
+
*/
|
|
50808
|
+
|
|
50809
|
+
/**
|
|
50810
|
+
* Constructs a new MultiGovalCommand.
|
|
50811
|
+
* @memberof replit.goval.api
|
|
50812
|
+
* @classdesc Represents a MultiGovalCommand.
|
|
50813
|
+
* @constructor
|
|
50814
|
+
* @param {replit.goval.api.IMultiGovalCommand=} [properties] Properties to set
|
|
50815
|
+
*/
|
|
50816
|
+
function MultiGovalCommand(properties) {
|
|
50817
|
+
this.govalCommands = [];
|
|
50818
|
+
if (properties)
|
|
50819
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50820
|
+
if (properties[keys[i]] != null)
|
|
50821
|
+
this[keys[i]] = properties[keys[i]];
|
|
50822
|
+
}
|
|
50823
|
+
|
|
50824
|
+
/**
|
|
50825
|
+
* MultiGovalCommand replId.
|
|
50826
|
+
* @member {string} replId
|
|
50827
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50828
|
+
* @instance
|
|
50829
|
+
*/
|
|
50830
|
+
MultiGovalCommand.prototype.replId = "";
|
|
50831
|
+
|
|
50832
|
+
/**
|
|
50833
|
+
* MultiGovalCommand govalCommands.
|
|
50834
|
+
* @member {Array.<replit.goval.api.GovalCommand>} govalCommands
|
|
50835
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50836
|
+
* @instance
|
|
50837
|
+
*/
|
|
50838
|
+
MultiGovalCommand.prototype.govalCommands = $util.emptyArray;
|
|
50839
|
+
|
|
50840
|
+
/**
|
|
50841
|
+
* Creates a new MultiGovalCommand instance using the specified properties.
|
|
50842
|
+
* @function create
|
|
50843
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50844
|
+
* @static
|
|
50845
|
+
* @param {replit.goval.api.IMultiGovalCommand=} [properties] Properties to set
|
|
50846
|
+
* @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand instance
|
|
50847
|
+
*/
|
|
50848
|
+
MultiGovalCommand.create = function create(properties) {
|
|
50849
|
+
return MultiGovalCommand.fromObject(properties);
|
|
50850
|
+
};
|
|
50851
|
+
|
|
50852
|
+
/**
|
|
50853
|
+
* Encodes the specified MultiGovalCommand message. Does not implicitly {@link replit.goval.api.MultiGovalCommand.verify|verify} messages.
|
|
50854
|
+
* @function encode
|
|
50855
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50856
|
+
* @static
|
|
50857
|
+
* @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand message or plain object to encode
|
|
50858
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50859
|
+
* @returns {$protobuf.Writer} Writer
|
|
50860
|
+
*/
|
|
50861
|
+
MultiGovalCommand.encode = function encode(message, writer) {
|
|
50862
|
+
if (!writer)
|
|
50863
|
+
writer = $Writer.create();
|
|
50864
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
50865
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
50866
|
+
if (message.govalCommands != null && message.govalCommands.length)
|
|
50867
|
+
for (var i = 0; i < message.govalCommands.length; ++i)
|
|
50868
|
+
$root.replit.goval.api.GovalCommand.encode(message.govalCommands[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50869
|
+
return writer;
|
|
50870
|
+
};
|
|
50871
|
+
|
|
50872
|
+
/**
|
|
50873
|
+
* Encodes the specified MultiGovalCommand message, length delimited. Does not implicitly {@link replit.goval.api.MultiGovalCommand.verify|verify} messages.
|
|
50874
|
+
* @function encodeDelimited
|
|
50875
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50876
|
+
* @static
|
|
50877
|
+
* @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand message or plain object to encode
|
|
50878
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50879
|
+
* @returns {$protobuf.Writer} Writer
|
|
50880
|
+
*/
|
|
50881
|
+
MultiGovalCommand.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50882
|
+
return this.encode(message, writer).ldelim();
|
|
50883
|
+
};
|
|
50884
|
+
|
|
50885
|
+
/**
|
|
50886
|
+
* Decodes a MultiGovalCommand message from the specified reader or buffer.
|
|
50887
|
+
* @function decode
|
|
50888
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50889
|
+
* @static
|
|
50890
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50891
|
+
* @param {number} [length] Message length if known beforehand
|
|
50892
|
+
* @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
|
|
50893
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50894
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50895
|
+
*/
|
|
50896
|
+
MultiGovalCommand.decode = function decode(reader, length) {
|
|
50897
|
+
if (!(reader instanceof $Reader))
|
|
50898
|
+
reader = $Reader.create(reader);
|
|
50899
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.MultiGovalCommand();
|
|
50900
|
+
while (reader.pos < end) {
|
|
50901
|
+
var tag = reader.uint32();
|
|
50902
|
+
switch (tag >>> 3) {
|
|
50903
|
+
case 1:
|
|
50904
|
+
message.replId = reader.string();
|
|
50905
|
+
break;
|
|
50906
|
+
case 2:
|
|
50907
|
+
if (!(message.govalCommands && message.govalCommands.length))
|
|
50908
|
+
message.govalCommands = [];
|
|
50909
|
+
message.govalCommands.push($root.replit.goval.api.GovalCommand.decode(reader, reader.uint32()));
|
|
50910
|
+
break;
|
|
50911
|
+
default:
|
|
50912
|
+
reader.skipType(tag & 7);
|
|
50913
|
+
break;
|
|
50914
|
+
}
|
|
50915
|
+
}
|
|
50916
|
+
return message;
|
|
50917
|
+
};
|
|
50918
|
+
|
|
50919
|
+
/**
|
|
50920
|
+
* Decodes a MultiGovalCommand message from the specified reader or buffer, length delimited.
|
|
50921
|
+
* @function decodeDelimited
|
|
50922
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50923
|
+
* @static
|
|
50924
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50925
|
+
* @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
|
|
50926
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50927
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50928
|
+
*/
|
|
50929
|
+
MultiGovalCommand.decodeDelimited = function decodeDelimited(reader) {
|
|
50930
|
+
if (!(reader instanceof $Reader))
|
|
50931
|
+
reader = new $Reader(reader);
|
|
50932
|
+
return this.decode(reader, reader.uint32());
|
|
50933
|
+
};
|
|
50934
|
+
|
|
50935
|
+
/**
|
|
50936
|
+
* Verifies a MultiGovalCommand message.
|
|
50937
|
+
* @function verify
|
|
50938
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50939
|
+
* @static
|
|
50940
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50941
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50942
|
+
*/
|
|
50943
|
+
MultiGovalCommand.verify = function verify(message) {
|
|
50944
|
+
if (typeof message !== "object" || message === null)
|
|
50945
|
+
return "object expected";
|
|
50946
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
50947
|
+
if (!$util.isString(message.replId))
|
|
50948
|
+
return "replId: string expected";
|
|
50949
|
+
if (message.govalCommands != null && message.hasOwnProperty("govalCommands")) {
|
|
50950
|
+
if (!Array.isArray(message.govalCommands))
|
|
50951
|
+
return "govalCommands: array expected";
|
|
50952
|
+
for (var i = 0; i < message.govalCommands.length; ++i) {
|
|
50953
|
+
var error = $root.replit.goval.api.GovalCommand.verify(message.govalCommands[i]);
|
|
50954
|
+
if (error)
|
|
50955
|
+
return "govalCommands." + error;
|
|
50956
|
+
}
|
|
50957
|
+
}
|
|
50958
|
+
return null;
|
|
50959
|
+
};
|
|
50960
|
+
|
|
50961
|
+
/**
|
|
50962
|
+
* Creates a MultiGovalCommand message from a plain object. Also converts values to their respective internal types.
|
|
50963
|
+
* @function fromObject
|
|
50964
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50965
|
+
* @static
|
|
50966
|
+
* @param {Object.<string,*>} object Plain object
|
|
50967
|
+
* @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
|
|
50968
|
+
*/
|
|
50969
|
+
MultiGovalCommand.fromObject = function fromObject(object) {
|
|
50970
|
+
if (object instanceof $root.replit.goval.api.MultiGovalCommand)
|
|
50971
|
+
return object;
|
|
50972
|
+
var message = new $root.replit.goval.api.MultiGovalCommand();
|
|
50973
|
+
if (object.replId != null)
|
|
50974
|
+
message.replId = String(object.replId);
|
|
50975
|
+
if (object.govalCommands) {
|
|
50976
|
+
if (!Array.isArray(object.govalCommands))
|
|
50977
|
+
throw TypeError(".replit.goval.api.MultiGovalCommand.govalCommands: array expected");
|
|
50978
|
+
message.govalCommands = [];
|
|
50979
|
+
for (var i = 0; i < object.govalCommands.length; ++i) {
|
|
50980
|
+
if (typeof object.govalCommands[i] !== "object")
|
|
50981
|
+
throw TypeError(".replit.goval.api.MultiGovalCommand.govalCommands: object expected");
|
|
50982
|
+
message.govalCommands[i] = $root.replit.goval.api.GovalCommand.fromObject(object.govalCommands[i]);
|
|
50983
|
+
}
|
|
50984
|
+
}
|
|
50985
|
+
return message;
|
|
50986
|
+
};
|
|
50987
|
+
|
|
50988
|
+
/**
|
|
50989
|
+
* Creates a plain object from a MultiGovalCommand message. Also converts values to other types if specified.
|
|
50990
|
+
* @function toObject
|
|
50991
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50992
|
+
* @static
|
|
50993
|
+
* @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand
|
|
50994
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50995
|
+
* @returns {Object.<string,*>} Plain object
|
|
50996
|
+
*/
|
|
50997
|
+
MultiGovalCommand.toObject = function toObject(message, options) {
|
|
50998
|
+
if (!options)
|
|
50999
|
+
options = {};
|
|
51000
|
+
var object = {};
|
|
51001
|
+
if (options.arrays || options.defaults)
|
|
51002
|
+
object.govalCommands = [];
|
|
51003
|
+
if (options.defaults)
|
|
51004
|
+
object.replId = "";
|
|
51005
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51006
|
+
object.replId = message.replId;
|
|
51007
|
+
if (message.govalCommands && message.govalCommands.length) {
|
|
51008
|
+
object.govalCommands = [];
|
|
51009
|
+
for (var j = 0; j < message.govalCommands.length; ++j)
|
|
51010
|
+
object.govalCommands[j] = $root.replit.goval.api.GovalCommand.toObject(message.govalCommands[j], options);
|
|
51011
|
+
}
|
|
51012
|
+
return object;
|
|
51013
|
+
};
|
|
51014
|
+
|
|
51015
|
+
/**
|
|
51016
|
+
* Converts this MultiGovalCommand to JSON.
|
|
51017
|
+
* @function toJSON
|
|
51018
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
51019
|
+
* @instance
|
|
51020
|
+
* @returns {Object.<string,*>} JSON object
|
|
51021
|
+
*/
|
|
51022
|
+
MultiGovalCommand.prototype.toJSON = function toJSON() {
|
|
51023
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51024
|
+
};
|
|
51025
|
+
|
|
51026
|
+
return MultiGovalCommand;
|
|
51027
|
+
})();
|
|
51028
|
+
|
|
51029
|
+
api.KillRepl = (function() {
|
|
51030
|
+
|
|
51031
|
+
/**
|
|
51032
|
+
* Properties of a KillRepl.
|
|
51033
|
+
* @memberof replit.goval.api
|
|
51034
|
+
* @interface IKillRepl
|
|
51035
|
+
* @property {string|null} [replId] KillRepl replId
|
|
51036
|
+
*/
|
|
51037
|
+
|
|
51038
|
+
/**
|
|
51039
|
+
* Constructs a new KillRepl.
|
|
51040
|
+
* @memberof replit.goval.api
|
|
51041
|
+
* @classdesc Represents a KillRepl.
|
|
51042
|
+
* @constructor
|
|
51043
|
+
* @param {replit.goval.api.IKillRepl=} [properties] Properties to set
|
|
51044
|
+
*/
|
|
51045
|
+
function KillRepl(properties) {
|
|
51046
|
+
if (properties)
|
|
51047
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51048
|
+
if (properties[keys[i]] != null)
|
|
51049
|
+
this[keys[i]] = properties[keys[i]];
|
|
51050
|
+
}
|
|
51051
|
+
|
|
51052
|
+
/**
|
|
51053
|
+
* KillRepl replId.
|
|
51054
|
+
* @member {string} replId
|
|
51055
|
+
* @memberof replit.goval.api.KillRepl
|
|
51056
|
+
* @instance
|
|
51057
|
+
*/
|
|
51058
|
+
KillRepl.prototype.replId = "";
|
|
51059
|
+
|
|
51060
|
+
/**
|
|
51061
|
+
* Creates a new KillRepl instance using the specified properties.
|
|
51062
|
+
* @function create
|
|
51063
|
+
* @memberof replit.goval.api.KillRepl
|
|
51064
|
+
* @static
|
|
51065
|
+
* @param {replit.goval.api.IKillRepl=} [properties] Properties to set
|
|
51066
|
+
* @returns {replit.goval.api.KillRepl} KillRepl instance
|
|
51067
|
+
*/
|
|
51068
|
+
KillRepl.create = function create(properties) {
|
|
51069
|
+
return KillRepl.fromObject(properties);
|
|
51070
|
+
};
|
|
51071
|
+
|
|
51072
|
+
/**
|
|
51073
|
+
* Encodes the specified KillRepl message. Does not implicitly {@link replit.goval.api.KillRepl.verify|verify} messages.
|
|
51074
|
+
* @function encode
|
|
51075
|
+
* @memberof replit.goval.api.KillRepl
|
|
51076
|
+
* @static
|
|
51077
|
+
* @param {replit.goval.api.KillRepl} message KillRepl message or plain object to encode
|
|
51078
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51079
|
+
* @returns {$protobuf.Writer} Writer
|
|
51080
|
+
*/
|
|
51081
|
+
KillRepl.encode = function encode(message, writer) {
|
|
51082
|
+
if (!writer)
|
|
51083
|
+
writer = $Writer.create();
|
|
51084
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
51085
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
51086
|
+
return writer;
|
|
51087
|
+
};
|
|
51088
|
+
|
|
51089
|
+
/**
|
|
51090
|
+
* Encodes the specified KillRepl message, length delimited. Does not implicitly {@link replit.goval.api.KillRepl.verify|verify} messages.
|
|
51091
|
+
* @function encodeDelimited
|
|
51092
|
+
* @memberof replit.goval.api.KillRepl
|
|
51093
|
+
* @static
|
|
51094
|
+
* @param {replit.goval.api.KillRepl} message KillRepl message or plain object to encode
|
|
51095
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51096
|
+
* @returns {$protobuf.Writer} Writer
|
|
51097
|
+
*/
|
|
51098
|
+
KillRepl.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51099
|
+
return this.encode(message, writer).ldelim();
|
|
51100
|
+
};
|
|
51101
|
+
|
|
51102
|
+
/**
|
|
51103
|
+
* Decodes a KillRepl message from the specified reader or buffer.
|
|
51104
|
+
* @function decode
|
|
51105
|
+
* @memberof replit.goval.api.KillRepl
|
|
51106
|
+
* @static
|
|
51107
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51108
|
+
* @param {number} [length] Message length if known beforehand
|
|
51109
|
+
* @returns {replit.goval.api.KillRepl} KillRepl
|
|
51110
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51111
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51112
|
+
*/
|
|
51113
|
+
KillRepl.decode = function decode(reader, length) {
|
|
51114
|
+
if (!(reader instanceof $Reader))
|
|
51115
|
+
reader = $Reader.create(reader);
|
|
51116
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.KillRepl();
|
|
51117
|
+
while (reader.pos < end) {
|
|
51118
|
+
var tag = reader.uint32();
|
|
51119
|
+
switch (tag >>> 3) {
|
|
51120
|
+
case 1:
|
|
51121
|
+
message.replId = reader.string();
|
|
51122
|
+
break;
|
|
51123
|
+
default:
|
|
51124
|
+
reader.skipType(tag & 7);
|
|
51125
|
+
break;
|
|
51126
|
+
}
|
|
51127
|
+
}
|
|
51128
|
+
return message;
|
|
51129
|
+
};
|
|
51130
|
+
|
|
51131
|
+
/**
|
|
51132
|
+
* Decodes a KillRepl message from the specified reader or buffer, length delimited.
|
|
51133
|
+
* @function decodeDelimited
|
|
51134
|
+
* @memberof replit.goval.api.KillRepl
|
|
51135
|
+
* @static
|
|
51136
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51137
|
+
* @returns {replit.goval.api.KillRepl} KillRepl
|
|
51138
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51139
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51140
|
+
*/
|
|
51141
|
+
KillRepl.decodeDelimited = function decodeDelimited(reader) {
|
|
51142
|
+
if (!(reader instanceof $Reader))
|
|
51143
|
+
reader = new $Reader(reader);
|
|
51144
|
+
return this.decode(reader, reader.uint32());
|
|
51145
|
+
};
|
|
51146
|
+
|
|
51147
|
+
/**
|
|
51148
|
+
* Verifies a KillRepl message.
|
|
51149
|
+
* @function verify
|
|
51150
|
+
* @memberof replit.goval.api.KillRepl
|
|
51151
|
+
* @static
|
|
51152
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51153
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51154
|
+
*/
|
|
51155
|
+
KillRepl.verify = function verify(message) {
|
|
51156
|
+
if (typeof message !== "object" || message === null)
|
|
51157
|
+
return "object expected";
|
|
51158
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51159
|
+
if (!$util.isString(message.replId))
|
|
51160
|
+
return "replId: string expected";
|
|
51161
|
+
return null;
|
|
51162
|
+
};
|
|
51163
|
+
|
|
51164
|
+
/**
|
|
51165
|
+
* Creates a KillRepl message from a plain object. Also converts values to their respective internal types.
|
|
51166
|
+
* @function fromObject
|
|
51167
|
+
* @memberof replit.goval.api.KillRepl
|
|
51168
|
+
* @static
|
|
51169
|
+
* @param {Object.<string,*>} object Plain object
|
|
51170
|
+
* @returns {replit.goval.api.KillRepl} KillRepl
|
|
51171
|
+
*/
|
|
51172
|
+
KillRepl.fromObject = function fromObject(object) {
|
|
51173
|
+
if (object instanceof $root.replit.goval.api.KillRepl)
|
|
51174
|
+
return object;
|
|
51175
|
+
var message = new $root.replit.goval.api.KillRepl();
|
|
51176
|
+
if (object.replId != null)
|
|
51177
|
+
message.replId = String(object.replId);
|
|
51178
|
+
return message;
|
|
51179
|
+
};
|
|
51180
|
+
|
|
51181
|
+
/**
|
|
51182
|
+
* Creates a plain object from a KillRepl message. Also converts values to other types if specified.
|
|
51183
|
+
* @function toObject
|
|
51184
|
+
* @memberof replit.goval.api.KillRepl
|
|
51185
|
+
* @static
|
|
51186
|
+
* @param {replit.goval.api.KillRepl} message KillRepl
|
|
51187
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51188
|
+
* @returns {Object.<string,*>} Plain object
|
|
51189
|
+
*/
|
|
51190
|
+
KillRepl.toObject = function toObject(message, options) {
|
|
51191
|
+
if (!options)
|
|
51192
|
+
options = {};
|
|
51193
|
+
var object = {};
|
|
51194
|
+
if (options.defaults)
|
|
51195
|
+
object.replId = "";
|
|
51196
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51197
|
+
object.replId = message.replId;
|
|
51198
|
+
return object;
|
|
51199
|
+
};
|
|
51200
|
+
|
|
51201
|
+
/**
|
|
51202
|
+
* Converts this KillRepl to JSON.
|
|
51203
|
+
* @function toJSON
|
|
51204
|
+
* @memberof replit.goval.api.KillRepl
|
|
51205
|
+
* @instance
|
|
51206
|
+
* @returns {Object.<string,*>} JSON object
|
|
51207
|
+
*/
|
|
51208
|
+
KillRepl.prototype.toJSON = function toJSON() {
|
|
51209
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51210
|
+
};
|
|
51211
|
+
|
|
51212
|
+
return KillRepl;
|
|
51213
|
+
})();
|
|
51214
|
+
|
|
50461
51215
|
api.Restore = (function() {
|
|
50462
51216
|
|
|
50463
51217
|
/**
|