@replit/protocol 0.2.85 → 0.2.87
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 -1
- package/main/index.d.ts +313 -1
- package/main/index.js +746 -2
- package/main/index.js.flow +448 -1
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -214,6 +214,8 @@
|
|
|
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
216
|
* @property {replit.goval.api.UserEvent|replit.goval.api.IUserEvent|null} [userEvent] Command userEvent
|
|
217
|
+
* @property {replit.goval.api.ReplspaceApiOpenFile|replit.goval.api.IReplspaceApiOpenFile|null} [replspaceApiOpenFile] Command replspaceApiOpenFile
|
|
218
|
+
* @property {replit.goval.api.ReplspaceApiCloseFile|replit.goval.api.IReplspaceApiCloseFile|null} [replspaceApiCloseFile] Command replspaceApiCloseFile
|
|
217
219
|
* @property {string|null} [ref] Command ref
|
|
218
220
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
219
221
|
*/
|
|
@@ -1553,6 +1555,22 @@
|
|
|
1553
1555
|
*/
|
|
1554
1556
|
Command.prototype.userEvent = null;
|
|
1555
1557
|
|
|
1558
|
+
/**
|
|
1559
|
+
* Command replspaceApiOpenFile.
|
|
1560
|
+
* @member {replit.goval.api.ReplspaceApiOpenFile|null|undefined} replspaceApiOpenFile
|
|
1561
|
+
* @memberof replit.goval.api.Command
|
|
1562
|
+
* @instance
|
|
1563
|
+
*/
|
|
1564
|
+
Command.prototype.replspaceApiOpenFile = null;
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* Command replspaceApiCloseFile.
|
|
1568
|
+
* @member {replit.goval.api.ReplspaceApiCloseFile|null|undefined} replspaceApiCloseFile
|
|
1569
|
+
* @memberof replit.goval.api.Command
|
|
1570
|
+
* @instance
|
|
1571
|
+
*/
|
|
1572
|
+
Command.prototype.replspaceApiCloseFile = null;
|
|
1573
|
+
|
|
1556
1574
|
/**
|
|
1557
1575
|
* Command ref.
|
|
1558
1576
|
* @member {string} ref
|
|
@@ -1574,12 +1592,12 @@
|
|
|
1574
1592
|
|
|
1575
1593
|
/**
|
|
1576
1594
|
* Command 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
|
|
1595
|
+
* @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"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|undefined} body
|
|
1578
1596
|
* @memberof replit.goval.api.Command
|
|
1579
1597
|
* @instance
|
|
1580
1598
|
*/
|
|
1581
1599
|
Object.defineProperty(Command.prototype, "body", {
|
|
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"]),
|
|
1600
|
+
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", "replspaceApiOpenFile", "replspaceApiCloseFile"]),
|
|
1583
1601
|
set: $util.oneOfSetter($oneOfFields)
|
|
1584
1602
|
});
|
|
1585
1603
|
|
|
@@ -1937,6 +1955,10 @@
|
|
|
1937
1955
|
writer.uint32(/* id 422, wireType 2 =*/3378).string(message.record);
|
|
1938
1956
|
if (message.userEvent != null && Object.hasOwnProperty.call(message, "userEvent"))
|
|
1939
1957
|
$root.replit.goval.api.UserEvent.encode(message.userEvent, writer.uint32(/* id 423, wireType 2 =*/3386).fork()).ldelim();
|
|
1958
|
+
if (message.replspaceApiOpenFile != null && Object.hasOwnProperty.call(message, "replspaceApiOpenFile"))
|
|
1959
|
+
$root.replit.goval.api.ReplspaceApiOpenFile.encode(message.replspaceApiOpenFile, writer.uint32(/* id 424, wireType 2 =*/3394).fork()).ldelim();
|
|
1960
|
+
if (message.replspaceApiCloseFile != null && Object.hasOwnProperty.call(message, "replspaceApiCloseFile"))
|
|
1961
|
+
$root.replit.goval.api.ReplspaceApiCloseFile.encode(message.replspaceApiCloseFile, writer.uint32(/* id 425, wireType 2 =*/3402).fork()).ldelim();
|
|
1940
1962
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
1941
1963
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
1942
1964
|
if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
|
|
@@ -2471,6 +2493,12 @@
|
|
|
2471
2493
|
case 423:
|
|
2472
2494
|
message.userEvent = $root.replit.goval.api.UserEvent.decode(reader, reader.uint32());
|
|
2473
2495
|
break;
|
|
2496
|
+
case 424:
|
|
2497
|
+
message.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.decode(reader, reader.uint32());
|
|
2498
|
+
break;
|
|
2499
|
+
case 425:
|
|
2500
|
+
message.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.decode(reader, reader.uint32());
|
|
2501
|
+
break;
|
|
2474
2502
|
case 1000:
|
|
2475
2503
|
message.ref = reader.string();
|
|
2476
2504
|
break;
|
|
@@ -4135,6 +4163,26 @@
|
|
|
4135
4163
|
return "userEvent." + error;
|
|
4136
4164
|
}
|
|
4137
4165
|
}
|
|
4166
|
+
if (message.replspaceApiOpenFile != null && message.hasOwnProperty("replspaceApiOpenFile")) {
|
|
4167
|
+
if (properties.body === 1)
|
|
4168
|
+
return "body: multiple values";
|
|
4169
|
+
properties.body = 1;
|
|
4170
|
+
{
|
|
4171
|
+
var error = $root.replit.goval.api.ReplspaceApiOpenFile.verify(message.replspaceApiOpenFile);
|
|
4172
|
+
if (error)
|
|
4173
|
+
return "replspaceApiOpenFile." + error;
|
|
4174
|
+
}
|
|
4175
|
+
}
|
|
4176
|
+
if (message.replspaceApiCloseFile != null && message.hasOwnProperty("replspaceApiCloseFile")) {
|
|
4177
|
+
if (properties.body === 1)
|
|
4178
|
+
return "body: multiple values";
|
|
4179
|
+
properties.body = 1;
|
|
4180
|
+
{
|
|
4181
|
+
var error = $root.replit.goval.api.ReplspaceApiCloseFile.verify(message.replspaceApiCloseFile);
|
|
4182
|
+
if (error)
|
|
4183
|
+
return "replspaceApiCloseFile." + error;
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4138
4186
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
4139
4187
|
if (!$util.isString(message.ref))
|
|
4140
4188
|
return "ref: string expected";
|
|
@@ -4952,6 +5000,16 @@
|
|
|
4952
5000
|
throw TypeError(".replit.goval.api.Command.userEvent: object expected");
|
|
4953
5001
|
message.userEvent = $root.replit.goval.api.UserEvent.fromObject(object.userEvent);
|
|
4954
5002
|
}
|
|
5003
|
+
if (object.replspaceApiOpenFile != null) {
|
|
5004
|
+
if (typeof object.replspaceApiOpenFile !== "object")
|
|
5005
|
+
throw TypeError(".replit.goval.api.Command.replspaceApiOpenFile: object expected");
|
|
5006
|
+
message.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.fromObject(object.replspaceApiOpenFile);
|
|
5007
|
+
}
|
|
5008
|
+
if (object.replspaceApiCloseFile != null) {
|
|
5009
|
+
if (typeof object.replspaceApiCloseFile !== "object")
|
|
5010
|
+
throw TypeError(".replit.goval.api.Command.replspaceApiCloseFile: object expected");
|
|
5011
|
+
message.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.fromObject(object.replspaceApiCloseFile);
|
|
5012
|
+
}
|
|
4955
5013
|
if (object.ref != null)
|
|
4956
5014
|
message.ref = String(object.ref);
|
|
4957
5015
|
if (object.traceInfo) {
|
|
@@ -5803,6 +5861,16 @@
|
|
|
5803
5861
|
if (options.oneofs)
|
|
5804
5862
|
object.body = "userEvent";
|
|
5805
5863
|
}
|
|
5864
|
+
if (message.replspaceApiOpenFile != null && message.hasOwnProperty("replspaceApiOpenFile")) {
|
|
5865
|
+
object.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.toObject(message.replspaceApiOpenFile, options);
|
|
5866
|
+
if (options.oneofs)
|
|
5867
|
+
object.body = "replspaceApiOpenFile";
|
|
5868
|
+
}
|
|
5869
|
+
if (message.replspaceApiCloseFile != null && message.hasOwnProperty("replspaceApiCloseFile")) {
|
|
5870
|
+
object.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.toObject(message.replspaceApiCloseFile, options);
|
|
5871
|
+
if (options.oneofs)
|
|
5872
|
+
object.body = "replspaceApiCloseFile";
|
|
5873
|
+
}
|
|
5806
5874
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
5807
5875
|
object.ref = message.ref;
|
|
5808
5876
|
var keys2;
|
|
@@ -28667,6 +28735,446 @@
|
|
|
28667
28735
|
return FileOpened;
|
|
28668
28736
|
})();
|
|
28669
28737
|
|
|
28738
|
+
api.ReplspaceApiOpenFile = (function() {
|
|
28739
|
+
|
|
28740
|
+
/**
|
|
28741
|
+
* Properties of a ReplspaceApiOpenFile.
|
|
28742
|
+
* @memberof replit.goval.api
|
|
28743
|
+
* @interface IReplspaceApiOpenFile
|
|
28744
|
+
* @property {string|null} [file] ReplspaceApiOpenFile file
|
|
28745
|
+
* @property {boolean|null} [waitForClose] ReplspaceApiOpenFile waitForClose
|
|
28746
|
+
* @property {string|null} [nonce] ReplspaceApiOpenFile nonce
|
|
28747
|
+
*/
|
|
28748
|
+
|
|
28749
|
+
/**
|
|
28750
|
+
* Constructs a new ReplspaceApiOpenFile.
|
|
28751
|
+
* @memberof replit.goval.api
|
|
28752
|
+
* @classdesc Represents a ReplspaceApiOpenFile.
|
|
28753
|
+
* @constructor
|
|
28754
|
+
* @param {replit.goval.api.IReplspaceApiOpenFile=} [properties] Properties to set
|
|
28755
|
+
*/
|
|
28756
|
+
function ReplspaceApiOpenFile(properties) {
|
|
28757
|
+
if (properties)
|
|
28758
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28759
|
+
if (properties[keys[i]] != null)
|
|
28760
|
+
this[keys[i]] = properties[keys[i]];
|
|
28761
|
+
}
|
|
28762
|
+
|
|
28763
|
+
/**
|
|
28764
|
+
* ReplspaceApiOpenFile file.
|
|
28765
|
+
* @member {string} file
|
|
28766
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28767
|
+
* @instance
|
|
28768
|
+
*/
|
|
28769
|
+
ReplspaceApiOpenFile.prototype.file = "";
|
|
28770
|
+
|
|
28771
|
+
/**
|
|
28772
|
+
* ReplspaceApiOpenFile waitForClose.
|
|
28773
|
+
* @member {boolean} waitForClose
|
|
28774
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28775
|
+
* @instance
|
|
28776
|
+
*/
|
|
28777
|
+
ReplspaceApiOpenFile.prototype.waitForClose = false;
|
|
28778
|
+
|
|
28779
|
+
/**
|
|
28780
|
+
* ReplspaceApiOpenFile nonce.
|
|
28781
|
+
* @member {string} nonce
|
|
28782
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28783
|
+
* @instance
|
|
28784
|
+
*/
|
|
28785
|
+
ReplspaceApiOpenFile.prototype.nonce = "";
|
|
28786
|
+
|
|
28787
|
+
/**
|
|
28788
|
+
* Creates a new ReplspaceApiOpenFile instance using the specified properties.
|
|
28789
|
+
* @function create
|
|
28790
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28791
|
+
* @static
|
|
28792
|
+
* @param {replit.goval.api.IReplspaceApiOpenFile=} [properties] Properties to set
|
|
28793
|
+
* @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile instance
|
|
28794
|
+
*/
|
|
28795
|
+
ReplspaceApiOpenFile.create = function create(properties) {
|
|
28796
|
+
return ReplspaceApiOpenFile.fromObject(properties);
|
|
28797
|
+
};
|
|
28798
|
+
|
|
28799
|
+
/**
|
|
28800
|
+
* Encodes the specified ReplspaceApiOpenFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
|
|
28801
|
+
* @function encode
|
|
28802
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28803
|
+
* @static
|
|
28804
|
+
* @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile message or plain object to encode
|
|
28805
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28806
|
+
* @returns {$protobuf.Writer} Writer
|
|
28807
|
+
*/
|
|
28808
|
+
ReplspaceApiOpenFile.encode = function encode(message, writer) {
|
|
28809
|
+
if (!writer)
|
|
28810
|
+
writer = $Writer.create();
|
|
28811
|
+
if (message.file != null && Object.hasOwnProperty.call(message, "file"))
|
|
28812
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.file);
|
|
28813
|
+
if (message.waitForClose != null && Object.hasOwnProperty.call(message, "waitForClose"))
|
|
28814
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.waitForClose);
|
|
28815
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
28816
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nonce);
|
|
28817
|
+
return writer;
|
|
28818
|
+
};
|
|
28819
|
+
|
|
28820
|
+
/**
|
|
28821
|
+
* Encodes the specified ReplspaceApiOpenFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
|
|
28822
|
+
* @function encodeDelimited
|
|
28823
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28824
|
+
* @static
|
|
28825
|
+
* @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile message or plain object to encode
|
|
28826
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28827
|
+
* @returns {$protobuf.Writer} Writer
|
|
28828
|
+
*/
|
|
28829
|
+
ReplspaceApiOpenFile.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28830
|
+
return this.encode(message, writer).ldelim();
|
|
28831
|
+
};
|
|
28832
|
+
|
|
28833
|
+
/**
|
|
28834
|
+
* Decodes a ReplspaceApiOpenFile message from the specified reader or buffer.
|
|
28835
|
+
* @function decode
|
|
28836
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28837
|
+
* @static
|
|
28838
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28839
|
+
* @param {number} [length] Message length if known beforehand
|
|
28840
|
+
* @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
|
|
28841
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28842
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28843
|
+
*/
|
|
28844
|
+
ReplspaceApiOpenFile.decode = function decode(reader, length) {
|
|
28845
|
+
if (!(reader instanceof $Reader))
|
|
28846
|
+
reader = $Reader.create(reader);
|
|
28847
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplspaceApiOpenFile();
|
|
28848
|
+
while (reader.pos < end) {
|
|
28849
|
+
var tag = reader.uint32();
|
|
28850
|
+
switch (tag >>> 3) {
|
|
28851
|
+
case 1:
|
|
28852
|
+
message.file = reader.string();
|
|
28853
|
+
break;
|
|
28854
|
+
case 2:
|
|
28855
|
+
message.waitForClose = reader.bool();
|
|
28856
|
+
break;
|
|
28857
|
+
case 3:
|
|
28858
|
+
message.nonce = reader.string();
|
|
28859
|
+
break;
|
|
28860
|
+
default:
|
|
28861
|
+
reader.skipType(tag & 7);
|
|
28862
|
+
break;
|
|
28863
|
+
}
|
|
28864
|
+
}
|
|
28865
|
+
return message;
|
|
28866
|
+
};
|
|
28867
|
+
|
|
28868
|
+
/**
|
|
28869
|
+
* Decodes a ReplspaceApiOpenFile message from the specified reader or buffer, length delimited.
|
|
28870
|
+
* @function decodeDelimited
|
|
28871
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28872
|
+
* @static
|
|
28873
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28874
|
+
* @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
|
|
28875
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28876
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28877
|
+
*/
|
|
28878
|
+
ReplspaceApiOpenFile.decodeDelimited = function decodeDelimited(reader) {
|
|
28879
|
+
if (!(reader instanceof $Reader))
|
|
28880
|
+
reader = new $Reader(reader);
|
|
28881
|
+
return this.decode(reader, reader.uint32());
|
|
28882
|
+
};
|
|
28883
|
+
|
|
28884
|
+
/**
|
|
28885
|
+
* Verifies a ReplspaceApiOpenFile message.
|
|
28886
|
+
* @function verify
|
|
28887
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28888
|
+
* @static
|
|
28889
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28890
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28891
|
+
*/
|
|
28892
|
+
ReplspaceApiOpenFile.verify = function verify(message) {
|
|
28893
|
+
if (typeof message !== "object" || message === null)
|
|
28894
|
+
return "object expected";
|
|
28895
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
28896
|
+
if (!$util.isString(message.file))
|
|
28897
|
+
return "file: string expected";
|
|
28898
|
+
if (message.waitForClose != null && message.hasOwnProperty("waitForClose"))
|
|
28899
|
+
if (typeof message.waitForClose !== "boolean")
|
|
28900
|
+
return "waitForClose: boolean expected";
|
|
28901
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
28902
|
+
if (!$util.isString(message.nonce))
|
|
28903
|
+
return "nonce: string expected";
|
|
28904
|
+
return null;
|
|
28905
|
+
};
|
|
28906
|
+
|
|
28907
|
+
/**
|
|
28908
|
+
* Creates a ReplspaceApiOpenFile message from a plain object. Also converts values to their respective internal types.
|
|
28909
|
+
* @function fromObject
|
|
28910
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28911
|
+
* @static
|
|
28912
|
+
* @param {Object.<string,*>} object Plain object
|
|
28913
|
+
* @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
|
|
28914
|
+
*/
|
|
28915
|
+
ReplspaceApiOpenFile.fromObject = function fromObject(object) {
|
|
28916
|
+
if (object instanceof $root.replit.goval.api.ReplspaceApiOpenFile)
|
|
28917
|
+
return object;
|
|
28918
|
+
var message = new $root.replit.goval.api.ReplspaceApiOpenFile();
|
|
28919
|
+
if (object.file != null)
|
|
28920
|
+
message.file = String(object.file);
|
|
28921
|
+
if (object.waitForClose != null)
|
|
28922
|
+
message.waitForClose = Boolean(object.waitForClose);
|
|
28923
|
+
if (object.nonce != null)
|
|
28924
|
+
message.nonce = String(object.nonce);
|
|
28925
|
+
return message;
|
|
28926
|
+
};
|
|
28927
|
+
|
|
28928
|
+
/**
|
|
28929
|
+
* Creates a plain object from a ReplspaceApiOpenFile message. Also converts values to other types if specified.
|
|
28930
|
+
* @function toObject
|
|
28931
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28932
|
+
* @static
|
|
28933
|
+
* @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile
|
|
28934
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28935
|
+
* @returns {Object.<string,*>} Plain object
|
|
28936
|
+
*/
|
|
28937
|
+
ReplspaceApiOpenFile.toObject = function toObject(message, options) {
|
|
28938
|
+
if (!options)
|
|
28939
|
+
options = {};
|
|
28940
|
+
var object = {};
|
|
28941
|
+
if (options.defaults) {
|
|
28942
|
+
object.file = "";
|
|
28943
|
+
object.waitForClose = false;
|
|
28944
|
+
object.nonce = "";
|
|
28945
|
+
}
|
|
28946
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
28947
|
+
object.file = message.file;
|
|
28948
|
+
if (message.waitForClose != null && message.hasOwnProperty("waitForClose"))
|
|
28949
|
+
object.waitForClose = message.waitForClose;
|
|
28950
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
28951
|
+
object.nonce = message.nonce;
|
|
28952
|
+
return object;
|
|
28953
|
+
};
|
|
28954
|
+
|
|
28955
|
+
/**
|
|
28956
|
+
* Converts this ReplspaceApiOpenFile to JSON.
|
|
28957
|
+
* @function toJSON
|
|
28958
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28959
|
+
* @instance
|
|
28960
|
+
* @returns {Object.<string,*>} JSON object
|
|
28961
|
+
*/
|
|
28962
|
+
ReplspaceApiOpenFile.prototype.toJSON = function toJSON() {
|
|
28963
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28964
|
+
};
|
|
28965
|
+
|
|
28966
|
+
return ReplspaceApiOpenFile;
|
|
28967
|
+
})();
|
|
28968
|
+
|
|
28969
|
+
api.ReplspaceApiCloseFile = (function() {
|
|
28970
|
+
|
|
28971
|
+
/**
|
|
28972
|
+
* Properties of a ReplspaceApiCloseFile.
|
|
28973
|
+
* @memberof replit.goval.api
|
|
28974
|
+
* @interface IReplspaceApiCloseFile
|
|
28975
|
+
* @property {string|null} [file] ReplspaceApiCloseFile file
|
|
28976
|
+
* @property {string|null} [nonce] ReplspaceApiCloseFile nonce
|
|
28977
|
+
*/
|
|
28978
|
+
|
|
28979
|
+
/**
|
|
28980
|
+
* Constructs a new ReplspaceApiCloseFile.
|
|
28981
|
+
* @memberof replit.goval.api
|
|
28982
|
+
* @classdesc Represents a ReplspaceApiCloseFile.
|
|
28983
|
+
* @constructor
|
|
28984
|
+
* @param {replit.goval.api.IReplspaceApiCloseFile=} [properties] Properties to set
|
|
28985
|
+
*/
|
|
28986
|
+
function ReplspaceApiCloseFile(properties) {
|
|
28987
|
+
if (properties)
|
|
28988
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28989
|
+
if (properties[keys[i]] != null)
|
|
28990
|
+
this[keys[i]] = properties[keys[i]];
|
|
28991
|
+
}
|
|
28992
|
+
|
|
28993
|
+
/**
|
|
28994
|
+
* ReplspaceApiCloseFile file.
|
|
28995
|
+
* @member {string} file
|
|
28996
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
28997
|
+
* @instance
|
|
28998
|
+
*/
|
|
28999
|
+
ReplspaceApiCloseFile.prototype.file = "";
|
|
29000
|
+
|
|
29001
|
+
/**
|
|
29002
|
+
* ReplspaceApiCloseFile nonce.
|
|
29003
|
+
* @member {string} nonce
|
|
29004
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29005
|
+
* @instance
|
|
29006
|
+
*/
|
|
29007
|
+
ReplspaceApiCloseFile.prototype.nonce = "";
|
|
29008
|
+
|
|
29009
|
+
/**
|
|
29010
|
+
* Creates a new ReplspaceApiCloseFile instance using the specified properties.
|
|
29011
|
+
* @function create
|
|
29012
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29013
|
+
* @static
|
|
29014
|
+
* @param {replit.goval.api.IReplspaceApiCloseFile=} [properties] Properties to set
|
|
29015
|
+
* @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile instance
|
|
29016
|
+
*/
|
|
29017
|
+
ReplspaceApiCloseFile.create = function create(properties) {
|
|
29018
|
+
return ReplspaceApiCloseFile.fromObject(properties);
|
|
29019
|
+
};
|
|
29020
|
+
|
|
29021
|
+
/**
|
|
29022
|
+
* Encodes the specified ReplspaceApiCloseFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
|
|
29023
|
+
* @function encode
|
|
29024
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29025
|
+
* @static
|
|
29026
|
+
* @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile message or plain object to encode
|
|
29027
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29028
|
+
* @returns {$protobuf.Writer} Writer
|
|
29029
|
+
*/
|
|
29030
|
+
ReplspaceApiCloseFile.encode = function encode(message, writer) {
|
|
29031
|
+
if (!writer)
|
|
29032
|
+
writer = $Writer.create();
|
|
29033
|
+
if (message.file != null && Object.hasOwnProperty.call(message, "file"))
|
|
29034
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.file);
|
|
29035
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
29036
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nonce);
|
|
29037
|
+
return writer;
|
|
29038
|
+
};
|
|
29039
|
+
|
|
29040
|
+
/**
|
|
29041
|
+
* Encodes the specified ReplspaceApiCloseFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
|
|
29042
|
+
* @function encodeDelimited
|
|
29043
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29044
|
+
* @static
|
|
29045
|
+
* @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile message or plain object to encode
|
|
29046
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29047
|
+
* @returns {$protobuf.Writer} Writer
|
|
29048
|
+
*/
|
|
29049
|
+
ReplspaceApiCloseFile.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29050
|
+
return this.encode(message, writer).ldelim();
|
|
29051
|
+
};
|
|
29052
|
+
|
|
29053
|
+
/**
|
|
29054
|
+
* Decodes a ReplspaceApiCloseFile message from the specified reader or buffer.
|
|
29055
|
+
* @function decode
|
|
29056
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29057
|
+
* @static
|
|
29058
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29059
|
+
* @param {number} [length] Message length if known beforehand
|
|
29060
|
+
* @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
|
|
29061
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29062
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29063
|
+
*/
|
|
29064
|
+
ReplspaceApiCloseFile.decode = function decode(reader, length) {
|
|
29065
|
+
if (!(reader instanceof $Reader))
|
|
29066
|
+
reader = $Reader.create(reader);
|
|
29067
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplspaceApiCloseFile();
|
|
29068
|
+
while (reader.pos < end) {
|
|
29069
|
+
var tag = reader.uint32();
|
|
29070
|
+
switch (tag >>> 3) {
|
|
29071
|
+
case 1:
|
|
29072
|
+
message.file = reader.string();
|
|
29073
|
+
break;
|
|
29074
|
+
case 2:
|
|
29075
|
+
message.nonce = reader.string();
|
|
29076
|
+
break;
|
|
29077
|
+
default:
|
|
29078
|
+
reader.skipType(tag & 7);
|
|
29079
|
+
break;
|
|
29080
|
+
}
|
|
29081
|
+
}
|
|
29082
|
+
return message;
|
|
29083
|
+
};
|
|
29084
|
+
|
|
29085
|
+
/**
|
|
29086
|
+
* Decodes a ReplspaceApiCloseFile message from the specified reader or buffer, length delimited.
|
|
29087
|
+
* @function decodeDelimited
|
|
29088
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29089
|
+
* @static
|
|
29090
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29091
|
+
* @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
|
|
29092
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29093
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29094
|
+
*/
|
|
29095
|
+
ReplspaceApiCloseFile.decodeDelimited = function decodeDelimited(reader) {
|
|
29096
|
+
if (!(reader instanceof $Reader))
|
|
29097
|
+
reader = new $Reader(reader);
|
|
29098
|
+
return this.decode(reader, reader.uint32());
|
|
29099
|
+
};
|
|
29100
|
+
|
|
29101
|
+
/**
|
|
29102
|
+
* Verifies a ReplspaceApiCloseFile message.
|
|
29103
|
+
* @function verify
|
|
29104
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29105
|
+
* @static
|
|
29106
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29107
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29108
|
+
*/
|
|
29109
|
+
ReplspaceApiCloseFile.verify = function verify(message) {
|
|
29110
|
+
if (typeof message !== "object" || message === null)
|
|
29111
|
+
return "object expected";
|
|
29112
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
29113
|
+
if (!$util.isString(message.file))
|
|
29114
|
+
return "file: string expected";
|
|
29115
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29116
|
+
if (!$util.isString(message.nonce))
|
|
29117
|
+
return "nonce: string expected";
|
|
29118
|
+
return null;
|
|
29119
|
+
};
|
|
29120
|
+
|
|
29121
|
+
/**
|
|
29122
|
+
* Creates a ReplspaceApiCloseFile message from a plain object. Also converts values to their respective internal types.
|
|
29123
|
+
* @function fromObject
|
|
29124
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29125
|
+
* @static
|
|
29126
|
+
* @param {Object.<string,*>} object Plain object
|
|
29127
|
+
* @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
|
|
29128
|
+
*/
|
|
29129
|
+
ReplspaceApiCloseFile.fromObject = function fromObject(object) {
|
|
29130
|
+
if (object instanceof $root.replit.goval.api.ReplspaceApiCloseFile)
|
|
29131
|
+
return object;
|
|
29132
|
+
var message = new $root.replit.goval.api.ReplspaceApiCloseFile();
|
|
29133
|
+
if (object.file != null)
|
|
29134
|
+
message.file = String(object.file);
|
|
29135
|
+
if (object.nonce != null)
|
|
29136
|
+
message.nonce = String(object.nonce);
|
|
29137
|
+
return message;
|
|
29138
|
+
};
|
|
29139
|
+
|
|
29140
|
+
/**
|
|
29141
|
+
* Creates a plain object from a ReplspaceApiCloseFile message. Also converts values to other types if specified.
|
|
29142
|
+
* @function toObject
|
|
29143
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29144
|
+
* @static
|
|
29145
|
+
* @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile
|
|
29146
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29147
|
+
* @returns {Object.<string,*>} Plain object
|
|
29148
|
+
*/
|
|
29149
|
+
ReplspaceApiCloseFile.toObject = function toObject(message, options) {
|
|
29150
|
+
if (!options)
|
|
29151
|
+
options = {};
|
|
29152
|
+
var object = {};
|
|
29153
|
+
if (options.defaults) {
|
|
29154
|
+
object.file = "";
|
|
29155
|
+
object.nonce = "";
|
|
29156
|
+
}
|
|
29157
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
29158
|
+
object.file = message.file;
|
|
29159
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29160
|
+
object.nonce = message.nonce;
|
|
29161
|
+
return object;
|
|
29162
|
+
};
|
|
29163
|
+
|
|
29164
|
+
/**
|
|
29165
|
+
* Converts this ReplspaceApiCloseFile to JSON.
|
|
29166
|
+
* @function toJSON
|
|
29167
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29168
|
+
* @instance
|
|
29169
|
+
* @returns {Object.<string,*>} JSON object
|
|
29170
|
+
*/
|
|
29171
|
+
ReplspaceApiCloseFile.prototype.toJSON = function toJSON() {
|
|
29172
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29173
|
+
};
|
|
29174
|
+
|
|
29175
|
+
return ReplspaceApiCloseFile;
|
|
29176
|
+
})();
|
|
29177
|
+
|
|
28670
29178
|
api.UpdateSessionTimestamp = (function() {
|
|
28671
29179
|
|
|
28672
29180
|
/**
|
|
@@ -52561,6 +53069,215 @@
|
|
|
52561
53069
|
*/
|
|
52562
53070
|
var repl = {};
|
|
52563
53071
|
|
|
53072
|
+
repl.Buckets = (function() {
|
|
53073
|
+
|
|
53074
|
+
/**
|
|
53075
|
+
* Properties of a Buckets.
|
|
53076
|
+
* @memberof replit.goval.api.repl
|
|
53077
|
+
* @interface IBuckets
|
|
53078
|
+
* @property {string|null} [snapshots] Buckets snapshots
|
|
53079
|
+
* @property {string|null} [metadata] Buckets metadata
|
|
53080
|
+
*/
|
|
53081
|
+
|
|
53082
|
+
/**
|
|
53083
|
+
* Constructs a new Buckets.
|
|
53084
|
+
* @memberof replit.goval.api.repl
|
|
53085
|
+
* @classdesc Represents a Buckets.
|
|
53086
|
+
* @constructor
|
|
53087
|
+
* @param {replit.goval.api.repl.IBuckets=} [properties] Properties to set
|
|
53088
|
+
*/
|
|
53089
|
+
function Buckets(properties) {
|
|
53090
|
+
if (properties)
|
|
53091
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53092
|
+
if (properties[keys[i]] != null)
|
|
53093
|
+
this[keys[i]] = properties[keys[i]];
|
|
53094
|
+
}
|
|
53095
|
+
|
|
53096
|
+
/**
|
|
53097
|
+
* Buckets snapshots.
|
|
53098
|
+
* @member {string} snapshots
|
|
53099
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53100
|
+
* @instance
|
|
53101
|
+
*/
|
|
53102
|
+
Buckets.prototype.snapshots = "";
|
|
53103
|
+
|
|
53104
|
+
/**
|
|
53105
|
+
* Buckets metadata.
|
|
53106
|
+
* @member {string} metadata
|
|
53107
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53108
|
+
* @instance
|
|
53109
|
+
*/
|
|
53110
|
+
Buckets.prototype.metadata = "";
|
|
53111
|
+
|
|
53112
|
+
/**
|
|
53113
|
+
* Creates a new Buckets instance using the specified properties.
|
|
53114
|
+
* @function create
|
|
53115
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53116
|
+
* @static
|
|
53117
|
+
* @param {replit.goval.api.repl.IBuckets=} [properties] Properties to set
|
|
53118
|
+
* @returns {replit.goval.api.repl.Buckets} Buckets instance
|
|
53119
|
+
*/
|
|
53120
|
+
Buckets.create = function create(properties) {
|
|
53121
|
+
return Buckets.fromObject(properties);
|
|
53122
|
+
};
|
|
53123
|
+
|
|
53124
|
+
/**
|
|
53125
|
+
* Encodes the specified Buckets message. Does not implicitly {@link replit.goval.api.repl.Buckets.verify|verify} messages.
|
|
53126
|
+
* @function encode
|
|
53127
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53128
|
+
* @static
|
|
53129
|
+
* @param {replit.goval.api.repl.Buckets} message Buckets message or plain object to encode
|
|
53130
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53131
|
+
* @returns {$protobuf.Writer} Writer
|
|
53132
|
+
*/
|
|
53133
|
+
Buckets.encode = function encode(message, writer) {
|
|
53134
|
+
if (!writer)
|
|
53135
|
+
writer = $Writer.create();
|
|
53136
|
+
if (message.snapshots != null && Object.hasOwnProperty.call(message, "snapshots"))
|
|
53137
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.snapshots);
|
|
53138
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
53139
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadata);
|
|
53140
|
+
return writer;
|
|
53141
|
+
};
|
|
53142
|
+
|
|
53143
|
+
/**
|
|
53144
|
+
* Encodes the specified Buckets message, length delimited. Does not implicitly {@link replit.goval.api.repl.Buckets.verify|verify} messages.
|
|
53145
|
+
* @function encodeDelimited
|
|
53146
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53147
|
+
* @static
|
|
53148
|
+
* @param {replit.goval.api.repl.Buckets} message Buckets message or plain object to encode
|
|
53149
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53150
|
+
* @returns {$protobuf.Writer} Writer
|
|
53151
|
+
*/
|
|
53152
|
+
Buckets.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53153
|
+
return this.encode(message, writer).ldelim();
|
|
53154
|
+
};
|
|
53155
|
+
|
|
53156
|
+
/**
|
|
53157
|
+
* Decodes a Buckets message from the specified reader or buffer.
|
|
53158
|
+
* @function decode
|
|
53159
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53160
|
+
* @static
|
|
53161
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53162
|
+
* @param {number} [length] Message length if known beforehand
|
|
53163
|
+
* @returns {replit.goval.api.repl.Buckets} Buckets
|
|
53164
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53165
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53166
|
+
*/
|
|
53167
|
+
Buckets.decode = function decode(reader, length) {
|
|
53168
|
+
if (!(reader instanceof $Reader))
|
|
53169
|
+
reader = $Reader.create(reader);
|
|
53170
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Buckets();
|
|
53171
|
+
while (reader.pos < end) {
|
|
53172
|
+
var tag = reader.uint32();
|
|
53173
|
+
switch (tag >>> 3) {
|
|
53174
|
+
case 1:
|
|
53175
|
+
message.snapshots = reader.string();
|
|
53176
|
+
break;
|
|
53177
|
+
case 2:
|
|
53178
|
+
message.metadata = reader.string();
|
|
53179
|
+
break;
|
|
53180
|
+
default:
|
|
53181
|
+
reader.skipType(tag & 7);
|
|
53182
|
+
break;
|
|
53183
|
+
}
|
|
53184
|
+
}
|
|
53185
|
+
return message;
|
|
53186
|
+
};
|
|
53187
|
+
|
|
53188
|
+
/**
|
|
53189
|
+
* Decodes a Buckets message from the specified reader or buffer, length delimited.
|
|
53190
|
+
* @function decodeDelimited
|
|
53191
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53192
|
+
* @static
|
|
53193
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53194
|
+
* @returns {replit.goval.api.repl.Buckets} Buckets
|
|
53195
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53196
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53197
|
+
*/
|
|
53198
|
+
Buckets.decodeDelimited = function decodeDelimited(reader) {
|
|
53199
|
+
if (!(reader instanceof $Reader))
|
|
53200
|
+
reader = new $Reader(reader);
|
|
53201
|
+
return this.decode(reader, reader.uint32());
|
|
53202
|
+
};
|
|
53203
|
+
|
|
53204
|
+
/**
|
|
53205
|
+
* Verifies a Buckets message.
|
|
53206
|
+
* @function verify
|
|
53207
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53208
|
+
* @static
|
|
53209
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53210
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53211
|
+
*/
|
|
53212
|
+
Buckets.verify = function verify(message) {
|
|
53213
|
+
if (typeof message !== "object" || message === null)
|
|
53214
|
+
return "object expected";
|
|
53215
|
+
if (message.snapshots != null && message.hasOwnProperty("snapshots"))
|
|
53216
|
+
if (!$util.isString(message.snapshots))
|
|
53217
|
+
return "snapshots: string expected";
|
|
53218
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
53219
|
+
if (!$util.isString(message.metadata))
|
|
53220
|
+
return "metadata: string expected";
|
|
53221
|
+
return null;
|
|
53222
|
+
};
|
|
53223
|
+
|
|
53224
|
+
/**
|
|
53225
|
+
* Creates a Buckets message from a plain object. Also converts values to their respective internal types.
|
|
53226
|
+
* @function fromObject
|
|
53227
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53228
|
+
* @static
|
|
53229
|
+
* @param {Object.<string,*>} object Plain object
|
|
53230
|
+
* @returns {replit.goval.api.repl.Buckets} Buckets
|
|
53231
|
+
*/
|
|
53232
|
+
Buckets.fromObject = function fromObject(object) {
|
|
53233
|
+
if (object instanceof $root.replit.goval.api.repl.Buckets)
|
|
53234
|
+
return object;
|
|
53235
|
+
var message = new $root.replit.goval.api.repl.Buckets();
|
|
53236
|
+
if (object.snapshots != null)
|
|
53237
|
+
message.snapshots = String(object.snapshots);
|
|
53238
|
+
if (object.metadata != null)
|
|
53239
|
+
message.metadata = String(object.metadata);
|
|
53240
|
+
return message;
|
|
53241
|
+
};
|
|
53242
|
+
|
|
53243
|
+
/**
|
|
53244
|
+
* Creates a plain object from a Buckets message. Also converts values to other types if specified.
|
|
53245
|
+
* @function toObject
|
|
53246
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53247
|
+
* @static
|
|
53248
|
+
* @param {replit.goval.api.repl.Buckets} message Buckets
|
|
53249
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53250
|
+
* @returns {Object.<string,*>} Plain object
|
|
53251
|
+
*/
|
|
53252
|
+
Buckets.toObject = function toObject(message, options) {
|
|
53253
|
+
if (!options)
|
|
53254
|
+
options = {};
|
|
53255
|
+
var object = {};
|
|
53256
|
+
if (options.defaults) {
|
|
53257
|
+
object.snapshots = "";
|
|
53258
|
+
object.metadata = "";
|
|
53259
|
+
}
|
|
53260
|
+
if (message.snapshots != null && message.hasOwnProperty("snapshots"))
|
|
53261
|
+
object.snapshots = message.snapshots;
|
|
53262
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
53263
|
+
object.metadata = message.metadata;
|
|
53264
|
+
return object;
|
|
53265
|
+
};
|
|
53266
|
+
|
|
53267
|
+
/**
|
|
53268
|
+
* Converts this Buckets to JSON.
|
|
53269
|
+
* @function toJSON
|
|
53270
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
53271
|
+
* @instance
|
|
53272
|
+
* @returns {Object.<string,*>} JSON object
|
|
53273
|
+
*/
|
|
53274
|
+
Buckets.prototype.toJSON = function toJSON() {
|
|
53275
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53276
|
+
};
|
|
53277
|
+
|
|
53278
|
+
return Buckets;
|
|
53279
|
+
})();
|
|
53280
|
+
|
|
52564
53281
|
repl.Repl = (function() {
|
|
52565
53282
|
|
|
52566
53283
|
/**
|
|
@@ -52574,6 +53291,7 @@
|
|
|
52574
53291
|
* @property {string|null} [user] Repl user
|
|
52575
53292
|
* @property {string|null} [sourceRepl] Repl sourceRepl
|
|
52576
53293
|
* @property {string|null} [database] Repl database
|
|
53294
|
+
* @property {replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null} [buckets] Repl buckets
|
|
52577
53295
|
*/
|
|
52578
53296
|
|
|
52579
53297
|
/**
|
|
@@ -52646,6 +53364,14 @@
|
|
|
52646
53364
|
*/
|
|
52647
53365
|
Repl.prototype.database = "";
|
|
52648
53366
|
|
|
53367
|
+
/**
|
|
53368
|
+
* Repl buckets.
|
|
53369
|
+
* @member {replit.goval.api.repl.Buckets|null|undefined} buckets
|
|
53370
|
+
* @memberof replit.goval.api.repl.Repl
|
|
53371
|
+
* @instance
|
|
53372
|
+
*/
|
|
53373
|
+
Repl.prototype.buckets = null;
|
|
53374
|
+
|
|
52649
53375
|
/**
|
|
52650
53376
|
* Creates a new Repl instance using the specified properties.
|
|
52651
53377
|
* @function create
|
|
@@ -52684,6 +53410,8 @@
|
|
|
52684
53410
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.sourceRepl);
|
|
52685
53411
|
if (message.database != null && Object.hasOwnProperty.call(message, "database"))
|
|
52686
53412
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.database);
|
|
53413
|
+
if (message.buckets != null && Object.hasOwnProperty.call(message, "buckets"))
|
|
53414
|
+
$root.replit.goval.api.repl.Buckets.encode(message.buckets, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
52687
53415
|
return writer;
|
|
52688
53416
|
};
|
|
52689
53417
|
|
|
@@ -52739,6 +53467,9 @@
|
|
|
52739
53467
|
case 7:
|
|
52740
53468
|
message.database = reader.string();
|
|
52741
53469
|
break;
|
|
53470
|
+
case 8:
|
|
53471
|
+
message.buckets = $root.replit.goval.api.repl.Buckets.decode(reader, reader.uint32());
|
|
53472
|
+
break;
|
|
52742
53473
|
default:
|
|
52743
53474
|
reader.skipType(tag & 7);
|
|
52744
53475
|
break;
|
|
@@ -52795,6 +53526,11 @@
|
|
|
52795
53526
|
if (message.database != null && message.hasOwnProperty("database"))
|
|
52796
53527
|
if (!$util.isString(message.database))
|
|
52797
53528
|
return "database: string expected";
|
|
53529
|
+
if (message.buckets != null && message.hasOwnProperty("buckets")) {
|
|
53530
|
+
var error = $root.replit.goval.api.repl.Buckets.verify(message.buckets);
|
|
53531
|
+
if (error)
|
|
53532
|
+
return "buckets." + error;
|
|
53533
|
+
}
|
|
52798
53534
|
return null;
|
|
52799
53535
|
};
|
|
52800
53536
|
|
|
@@ -52824,6 +53560,11 @@
|
|
|
52824
53560
|
message.sourceRepl = String(object.sourceRepl);
|
|
52825
53561
|
if (object.database != null)
|
|
52826
53562
|
message.database = String(object.database);
|
|
53563
|
+
if (object.buckets != null) {
|
|
53564
|
+
if (typeof object.buckets !== "object")
|
|
53565
|
+
throw TypeError(".replit.goval.api.repl.Repl.buckets: object expected");
|
|
53566
|
+
message.buckets = $root.replit.goval.api.repl.Buckets.fromObject(object.buckets);
|
|
53567
|
+
}
|
|
52827
53568
|
return message;
|
|
52828
53569
|
};
|
|
52829
53570
|
|
|
@@ -52848,6 +53589,7 @@
|
|
|
52848
53589
|
object.user = "";
|
|
52849
53590
|
object.sourceRepl = "";
|
|
52850
53591
|
object.database = "";
|
|
53592
|
+
object.buckets = null;
|
|
52851
53593
|
}
|
|
52852
53594
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
52853
53595
|
object.id = message.id;
|
|
@@ -52863,6 +53605,8 @@
|
|
|
52863
53605
|
object.sourceRepl = message.sourceRepl;
|
|
52864
53606
|
if (message.database != null && message.hasOwnProperty("database"))
|
|
52865
53607
|
object.database = message.database;
|
|
53608
|
+
if (message.buckets != null && message.hasOwnProperty("buckets"))
|
|
53609
|
+
object.buckets = $root.replit.goval.api.repl.Buckets.toObject(message.buckets, options);
|
|
52866
53610
|
return object;
|
|
52867
53611
|
};
|
|
52868
53612
|
|