@replit/protocol 0.2.86 → 0.2.88
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 +409 -1
- package/main/index.js +973 -2
- package/main/index.js.flow +585 -1
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -214,6 +214,10 @@
|
|
|
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
|
|
219
|
+
* @property {replit.goval.api.ReplspaceApiGetGitHubToken|replit.goval.api.IReplspaceApiGetGitHubToken|null} [replspaceApiGetGitHubToken] Command replspaceApiGetGitHubToken
|
|
220
|
+
* @property {replit.goval.api.ReplspaceApiGitHubToken|replit.goval.api.IReplspaceApiGitHubToken|null} [replspaceApiGitHubToken] Command replspaceApiGitHubToken
|
|
217
221
|
* @property {string|null} [ref] Command ref
|
|
218
222
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
219
223
|
*/
|
|
@@ -1553,6 +1557,38 @@
|
|
|
1553
1557
|
*/
|
|
1554
1558
|
Command.prototype.userEvent = null;
|
|
1555
1559
|
|
|
1560
|
+
/**
|
|
1561
|
+
* Command replspaceApiOpenFile.
|
|
1562
|
+
* @member {replit.goval.api.ReplspaceApiOpenFile|null|undefined} replspaceApiOpenFile
|
|
1563
|
+
* @memberof replit.goval.api.Command
|
|
1564
|
+
* @instance
|
|
1565
|
+
*/
|
|
1566
|
+
Command.prototype.replspaceApiOpenFile = null;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Command replspaceApiCloseFile.
|
|
1570
|
+
* @member {replit.goval.api.ReplspaceApiCloseFile|null|undefined} replspaceApiCloseFile
|
|
1571
|
+
* @memberof replit.goval.api.Command
|
|
1572
|
+
* @instance
|
|
1573
|
+
*/
|
|
1574
|
+
Command.prototype.replspaceApiCloseFile = null;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* Command replspaceApiGetGitHubToken.
|
|
1578
|
+
* @member {replit.goval.api.ReplspaceApiGetGitHubToken|null|undefined} replspaceApiGetGitHubToken
|
|
1579
|
+
* @memberof replit.goval.api.Command
|
|
1580
|
+
* @instance
|
|
1581
|
+
*/
|
|
1582
|
+
Command.prototype.replspaceApiGetGitHubToken = null;
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Command replspaceApiGitHubToken.
|
|
1586
|
+
* @member {replit.goval.api.ReplspaceApiGitHubToken|null|undefined} replspaceApiGitHubToken
|
|
1587
|
+
* @memberof replit.goval.api.Command
|
|
1588
|
+
* @instance
|
|
1589
|
+
*/
|
|
1590
|
+
Command.prototype.replspaceApiGitHubToken = null;
|
|
1591
|
+
|
|
1556
1592
|
/**
|
|
1557
1593
|
* Command ref.
|
|
1558
1594
|
* @member {string} ref
|
|
@@ -1574,12 +1610,12 @@
|
|
|
1574
1610
|
|
|
1575
1611
|
/**
|
|
1576
1612
|
* 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
|
|
1613
|
+
* @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"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|undefined} body
|
|
1578
1614
|
* @memberof replit.goval.api.Command
|
|
1579
1615
|
* @instance
|
|
1580
1616
|
*/
|
|
1581
1617
|
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"]),
|
|
1618
|
+
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", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken"]),
|
|
1583
1619
|
set: $util.oneOfSetter($oneOfFields)
|
|
1584
1620
|
});
|
|
1585
1621
|
|
|
@@ -1937,6 +1973,14 @@
|
|
|
1937
1973
|
writer.uint32(/* id 422, wireType 2 =*/3378).string(message.record);
|
|
1938
1974
|
if (message.userEvent != null && Object.hasOwnProperty.call(message, "userEvent"))
|
|
1939
1975
|
$root.replit.goval.api.UserEvent.encode(message.userEvent, writer.uint32(/* id 423, wireType 2 =*/3386).fork()).ldelim();
|
|
1976
|
+
if (message.replspaceApiOpenFile != null && Object.hasOwnProperty.call(message, "replspaceApiOpenFile"))
|
|
1977
|
+
$root.replit.goval.api.ReplspaceApiOpenFile.encode(message.replspaceApiOpenFile, writer.uint32(/* id 424, wireType 2 =*/3394).fork()).ldelim();
|
|
1978
|
+
if (message.replspaceApiCloseFile != null && Object.hasOwnProperty.call(message, "replspaceApiCloseFile"))
|
|
1979
|
+
$root.replit.goval.api.ReplspaceApiCloseFile.encode(message.replspaceApiCloseFile, writer.uint32(/* id 425, wireType 2 =*/3402).fork()).ldelim();
|
|
1980
|
+
if (message.replspaceApiGetGitHubToken != null && Object.hasOwnProperty.call(message, "replspaceApiGetGitHubToken"))
|
|
1981
|
+
$root.replit.goval.api.ReplspaceApiGetGitHubToken.encode(message.replspaceApiGetGitHubToken, writer.uint32(/* id 426, wireType 2 =*/3410).fork()).ldelim();
|
|
1982
|
+
if (message.replspaceApiGitHubToken != null && Object.hasOwnProperty.call(message, "replspaceApiGitHubToken"))
|
|
1983
|
+
$root.replit.goval.api.ReplspaceApiGitHubToken.encode(message.replspaceApiGitHubToken, writer.uint32(/* id 427, wireType 2 =*/3418).fork()).ldelim();
|
|
1940
1984
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
1941
1985
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
1942
1986
|
if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
|
|
@@ -2471,6 +2515,18 @@
|
|
|
2471
2515
|
case 423:
|
|
2472
2516
|
message.userEvent = $root.replit.goval.api.UserEvent.decode(reader, reader.uint32());
|
|
2473
2517
|
break;
|
|
2518
|
+
case 424:
|
|
2519
|
+
message.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.decode(reader, reader.uint32());
|
|
2520
|
+
break;
|
|
2521
|
+
case 425:
|
|
2522
|
+
message.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.decode(reader, reader.uint32());
|
|
2523
|
+
break;
|
|
2524
|
+
case 426:
|
|
2525
|
+
message.replspaceApiGetGitHubToken = $root.replit.goval.api.ReplspaceApiGetGitHubToken.decode(reader, reader.uint32());
|
|
2526
|
+
break;
|
|
2527
|
+
case 427:
|
|
2528
|
+
message.replspaceApiGitHubToken = $root.replit.goval.api.ReplspaceApiGitHubToken.decode(reader, reader.uint32());
|
|
2529
|
+
break;
|
|
2474
2530
|
case 1000:
|
|
2475
2531
|
message.ref = reader.string();
|
|
2476
2532
|
break;
|
|
@@ -4135,6 +4191,46 @@
|
|
|
4135
4191
|
return "userEvent." + error;
|
|
4136
4192
|
}
|
|
4137
4193
|
}
|
|
4194
|
+
if (message.replspaceApiOpenFile != null && message.hasOwnProperty("replspaceApiOpenFile")) {
|
|
4195
|
+
if (properties.body === 1)
|
|
4196
|
+
return "body: multiple values";
|
|
4197
|
+
properties.body = 1;
|
|
4198
|
+
{
|
|
4199
|
+
var error = $root.replit.goval.api.ReplspaceApiOpenFile.verify(message.replspaceApiOpenFile);
|
|
4200
|
+
if (error)
|
|
4201
|
+
return "replspaceApiOpenFile." + error;
|
|
4202
|
+
}
|
|
4203
|
+
}
|
|
4204
|
+
if (message.replspaceApiCloseFile != null && message.hasOwnProperty("replspaceApiCloseFile")) {
|
|
4205
|
+
if (properties.body === 1)
|
|
4206
|
+
return "body: multiple values";
|
|
4207
|
+
properties.body = 1;
|
|
4208
|
+
{
|
|
4209
|
+
var error = $root.replit.goval.api.ReplspaceApiCloseFile.verify(message.replspaceApiCloseFile);
|
|
4210
|
+
if (error)
|
|
4211
|
+
return "replspaceApiCloseFile." + error;
|
|
4212
|
+
}
|
|
4213
|
+
}
|
|
4214
|
+
if (message.replspaceApiGetGitHubToken != null && message.hasOwnProperty("replspaceApiGetGitHubToken")) {
|
|
4215
|
+
if (properties.body === 1)
|
|
4216
|
+
return "body: multiple values";
|
|
4217
|
+
properties.body = 1;
|
|
4218
|
+
{
|
|
4219
|
+
var error = $root.replit.goval.api.ReplspaceApiGetGitHubToken.verify(message.replspaceApiGetGitHubToken);
|
|
4220
|
+
if (error)
|
|
4221
|
+
return "replspaceApiGetGitHubToken." + error;
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
4224
|
+
if (message.replspaceApiGitHubToken != null && message.hasOwnProperty("replspaceApiGitHubToken")) {
|
|
4225
|
+
if (properties.body === 1)
|
|
4226
|
+
return "body: multiple values";
|
|
4227
|
+
properties.body = 1;
|
|
4228
|
+
{
|
|
4229
|
+
var error = $root.replit.goval.api.ReplspaceApiGitHubToken.verify(message.replspaceApiGitHubToken);
|
|
4230
|
+
if (error)
|
|
4231
|
+
return "replspaceApiGitHubToken." + error;
|
|
4232
|
+
}
|
|
4233
|
+
}
|
|
4138
4234
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
4139
4235
|
if (!$util.isString(message.ref))
|
|
4140
4236
|
return "ref: string expected";
|
|
@@ -4952,6 +5048,26 @@
|
|
|
4952
5048
|
throw TypeError(".replit.goval.api.Command.userEvent: object expected");
|
|
4953
5049
|
message.userEvent = $root.replit.goval.api.UserEvent.fromObject(object.userEvent);
|
|
4954
5050
|
}
|
|
5051
|
+
if (object.replspaceApiOpenFile != null) {
|
|
5052
|
+
if (typeof object.replspaceApiOpenFile !== "object")
|
|
5053
|
+
throw TypeError(".replit.goval.api.Command.replspaceApiOpenFile: object expected");
|
|
5054
|
+
message.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.fromObject(object.replspaceApiOpenFile);
|
|
5055
|
+
}
|
|
5056
|
+
if (object.replspaceApiCloseFile != null) {
|
|
5057
|
+
if (typeof object.replspaceApiCloseFile !== "object")
|
|
5058
|
+
throw TypeError(".replit.goval.api.Command.replspaceApiCloseFile: object expected");
|
|
5059
|
+
message.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.fromObject(object.replspaceApiCloseFile);
|
|
5060
|
+
}
|
|
5061
|
+
if (object.replspaceApiGetGitHubToken != null) {
|
|
5062
|
+
if (typeof object.replspaceApiGetGitHubToken !== "object")
|
|
5063
|
+
throw TypeError(".replit.goval.api.Command.replspaceApiGetGitHubToken: object expected");
|
|
5064
|
+
message.replspaceApiGetGitHubToken = $root.replit.goval.api.ReplspaceApiGetGitHubToken.fromObject(object.replspaceApiGetGitHubToken);
|
|
5065
|
+
}
|
|
5066
|
+
if (object.replspaceApiGitHubToken != null) {
|
|
5067
|
+
if (typeof object.replspaceApiGitHubToken !== "object")
|
|
5068
|
+
throw TypeError(".replit.goval.api.Command.replspaceApiGitHubToken: object expected");
|
|
5069
|
+
message.replspaceApiGitHubToken = $root.replit.goval.api.ReplspaceApiGitHubToken.fromObject(object.replspaceApiGitHubToken);
|
|
5070
|
+
}
|
|
4955
5071
|
if (object.ref != null)
|
|
4956
5072
|
message.ref = String(object.ref);
|
|
4957
5073
|
if (object.traceInfo) {
|
|
@@ -5803,6 +5919,26 @@
|
|
|
5803
5919
|
if (options.oneofs)
|
|
5804
5920
|
object.body = "userEvent";
|
|
5805
5921
|
}
|
|
5922
|
+
if (message.replspaceApiOpenFile != null && message.hasOwnProperty("replspaceApiOpenFile")) {
|
|
5923
|
+
object.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.toObject(message.replspaceApiOpenFile, options);
|
|
5924
|
+
if (options.oneofs)
|
|
5925
|
+
object.body = "replspaceApiOpenFile";
|
|
5926
|
+
}
|
|
5927
|
+
if (message.replspaceApiCloseFile != null && message.hasOwnProperty("replspaceApiCloseFile")) {
|
|
5928
|
+
object.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.toObject(message.replspaceApiCloseFile, options);
|
|
5929
|
+
if (options.oneofs)
|
|
5930
|
+
object.body = "replspaceApiCloseFile";
|
|
5931
|
+
}
|
|
5932
|
+
if (message.replspaceApiGetGitHubToken != null && message.hasOwnProperty("replspaceApiGetGitHubToken")) {
|
|
5933
|
+
object.replspaceApiGetGitHubToken = $root.replit.goval.api.ReplspaceApiGetGitHubToken.toObject(message.replspaceApiGetGitHubToken, options);
|
|
5934
|
+
if (options.oneofs)
|
|
5935
|
+
object.body = "replspaceApiGetGitHubToken";
|
|
5936
|
+
}
|
|
5937
|
+
if (message.replspaceApiGitHubToken != null && message.hasOwnProperty("replspaceApiGitHubToken")) {
|
|
5938
|
+
object.replspaceApiGitHubToken = $root.replit.goval.api.ReplspaceApiGitHubToken.toObject(message.replspaceApiGitHubToken, options);
|
|
5939
|
+
if (options.oneofs)
|
|
5940
|
+
object.body = "replspaceApiGitHubToken";
|
|
5941
|
+
}
|
|
5806
5942
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
5807
5943
|
object.ref = message.ref;
|
|
5808
5944
|
var keys2;
|
|
@@ -28667,6 +28803,841 @@
|
|
|
28667
28803
|
return FileOpened;
|
|
28668
28804
|
})();
|
|
28669
28805
|
|
|
28806
|
+
api.ReplspaceApiOpenFile = (function() {
|
|
28807
|
+
|
|
28808
|
+
/**
|
|
28809
|
+
* Properties of a ReplspaceApiOpenFile.
|
|
28810
|
+
* @memberof replit.goval.api
|
|
28811
|
+
* @interface IReplspaceApiOpenFile
|
|
28812
|
+
* @property {string|null} [file] ReplspaceApiOpenFile file
|
|
28813
|
+
* @property {boolean|null} [waitForClose] ReplspaceApiOpenFile waitForClose
|
|
28814
|
+
* @property {string|null} [nonce] ReplspaceApiOpenFile nonce
|
|
28815
|
+
*/
|
|
28816
|
+
|
|
28817
|
+
/**
|
|
28818
|
+
* Constructs a new ReplspaceApiOpenFile.
|
|
28819
|
+
* @memberof replit.goval.api
|
|
28820
|
+
* @classdesc Represents a ReplspaceApiOpenFile.
|
|
28821
|
+
* @constructor
|
|
28822
|
+
* @param {replit.goval.api.IReplspaceApiOpenFile=} [properties] Properties to set
|
|
28823
|
+
*/
|
|
28824
|
+
function ReplspaceApiOpenFile(properties) {
|
|
28825
|
+
if (properties)
|
|
28826
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28827
|
+
if (properties[keys[i]] != null)
|
|
28828
|
+
this[keys[i]] = properties[keys[i]];
|
|
28829
|
+
}
|
|
28830
|
+
|
|
28831
|
+
/**
|
|
28832
|
+
* ReplspaceApiOpenFile file.
|
|
28833
|
+
* @member {string} file
|
|
28834
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28835
|
+
* @instance
|
|
28836
|
+
*/
|
|
28837
|
+
ReplspaceApiOpenFile.prototype.file = "";
|
|
28838
|
+
|
|
28839
|
+
/**
|
|
28840
|
+
* ReplspaceApiOpenFile waitForClose.
|
|
28841
|
+
* @member {boolean} waitForClose
|
|
28842
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28843
|
+
* @instance
|
|
28844
|
+
*/
|
|
28845
|
+
ReplspaceApiOpenFile.prototype.waitForClose = false;
|
|
28846
|
+
|
|
28847
|
+
/**
|
|
28848
|
+
* ReplspaceApiOpenFile nonce.
|
|
28849
|
+
* @member {string} nonce
|
|
28850
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28851
|
+
* @instance
|
|
28852
|
+
*/
|
|
28853
|
+
ReplspaceApiOpenFile.prototype.nonce = "";
|
|
28854
|
+
|
|
28855
|
+
/**
|
|
28856
|
+
* Creates a new ReplspaceApiOpenFile instance using the specified properties.
|
|
28857
|
+
* @function create
|
|
28858
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28859
|
+
* @static
|
|
28860
|
+
* @param {replit.goval.api.IReplspaceApiOpenFile=} [properties] Properties to set
|
|
28861
|
+
* @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile instance
|
|
28862
|
+
*/
|
|
28863
|
+
ReplspaceApiOpenFile.create = function create(properties) {
|
|
28864
|
+
return ReplspaceApiOpenFile.fromObject(properties);
|
|
28865
|
+
};
|
|
28866
|
+
|
|
28867
|
+
/**
|
|
28868
|
+
* Encodes the specified ReplspaceApiOpenFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
|
|
28869
|
+
* @function encode
|
|
28870
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28871
|
+
* @static
|
|
28872
|
+
* @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile message or plain object to encode
|
|
28873
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28874
|
+
* @returns {$protobuf.Writer} Writer
|
|
28875
|
+
*/
|
|
28876
|
+
ReplspaceApiOpenFile.encode = function encode(message, writer) {
|
|
28877
|
+
if (!writer)
|
|
28878
|
+
writer = $Writer.create();
|
|
28879
|
+
if (message.file != null && Object.hasOwnProperty.call(message, "file"))
|
|
28880
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.file);
|
|
28881
|
+
if (message.waitForClose != null && Object.hasOwnProperty.call(message, "waitForClose"))
|
|
28882
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.waitForClose);
|
|
28883
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
28884
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nonce);
|
|
28885
|
+
return writer;
|
|
28886
|
+
};
|
|
28887
|
+
|
|
28888
|
+
/**
|
|
28889
|
+
* Encodes the specified ReplspaceApiOpenFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
|
|
28890
|
+
* @function encodeDelimited
|
|
28891
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28892
|
+
* @static
|
|
28893
|
+
* @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile message or plain object to encode
|
|
28894
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28895
|
+
* @returns {$protobuf.Writer} Writer
|
|
28896
|
+
*/
|
|
28897
|
+
ReplspaceApiOpenFile.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28898
|
+
return this.encode(message, writer).ldelim();
|
|
28899
|
+
};
|
|
28900
|
+
|
|
28901
|
+
/**
|
|
28902
|
+
* Decodes a ReplspaceApiOpenFile message from the specified reader or buffer.
|
|
28903
|
+
* @function decode
|
|
28904
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28905
|
+
* @static
|
|
28906
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28907
|
+
* @param {number} [length] Message length if known beforehand
|
|
28908
|
+
* @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
|
|
28909
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28910
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28911
|
+
*/
|
|
28912
|
+
ReplspaceApiOpenFile.decode = function decode(reader, length) {
|
|
28913
|
+
if (!(reader instanceof $Reader))
|
|
28914
|
+
reader = $Reader.create(reader);
|
|
28915
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplspaceApiOpenFile();
|
|
28916
|
+
while (reader.pos < end) {
|
|
28917
|
+
var tag = reader.uint32();
|
|
28918
|
+
switch (tag >>> 3) {
|
|
28919
|
+
case 1:
|
|
28920
|
+
message.file = reader.string();
|
|
28921
|
+
break;
|
|
28922
|
+
case 2:
|
|
28923
|
+
message.waitForClose = reader.bool();
|
|
28924
|
+
break;
|
|
28925
|
+
case 3:
|
|
28926
|
+
message.nonce = reader.string();
|
|
28927
|
+
break;
|
|
28928
|
+
default:
|
|
28929
|
+
reader.skipType(tag & 7);
|
|
28930
|
+
break;
|
|
28931
|
+
}
|
|
28932
|
+
}
|
|
28933
|
+
return message;
|
|
28934
|
+
};
|
|
28935
|
+
|
|
28936
|
+
/**
|
|
28937
|
+
* Decodes a ReplspaceApiOpenFile message from the specified reader or buffer, length delimited.
|
|
28938
|
+
* @function decodeDelimited
|
|
28939
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28940
|
+
* @static
|
|
28941
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28942
|
+
* @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
|
|
28943
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28944
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28945
|
+
*/
|
|
28946
|
+
ReplspaceApiOpenFile.decodeDelimited = function decodeDelimited(reader) {
|
|
28947
|
+
if (!(reader instanceof $Reader))
|
|
28948
|
+
reader = new $Reader(reader);
|
|
28949
|
+
return this.decode(reader, reader.uint32());
|
|
28950
|
+
};
|
|
28951
|
+
|
|
28952
|
+
/**
|
|
28953
|
+
* Verifies a ReplspaceApiOpenFile message.
|
|
28954
|
+
* @function verify
|
|
28955
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28956
|
+
* @static
|
|
28957
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28958
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28959
|
+
*/
|
|
28960
|
+
ReplspaceApiOpenFile.verify = function verify(message) {
|
|
28961
|
+
if (typeof message !== "object" || message === null)
|
|
28962
|
+
return "object expected";
|
|
28963
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
28964
|
+
if (!$util.isString(message.file))
|
|
28965
|
+
return "file: string expected";
|
|
28966
|
+
if (message.waitForClose != null && message.hasOwnProperty("waitForClose"))
|
|
28967
|
+
if (typeof message.waitForClose !== "boolean")
|
|
28968
|
+
return "waitForClose: boolean expected";
|
|
28969
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
28970
|
+
if (!$util.isString(message.nonce))
|
|
28971
|
+
return "nonce: string expected";
|
|
28972
|
+
return null;
|
|
28973
|
+
};
|
|
28974
|
+
|
|
28975
|
+
/**
|
|
28976
|
+
* Creates a ReplspaceApiOpenFile message from a plain object. Also converts values to their respective internal types.
|
|
28977
|
+
* @function fromObject
|
|
28978
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
28979
|
+
* @static
|
|
28980
|
+
* @param {Object.<string,*>} object Plain object
|
|
28981
|
+
* @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
|
|
28982
|
+
*/
|
|
28983
|
+
ReplspaceApiOpenFile.fromObject = function fromObject(object) {
|
|
28984
|
+
if (object instanceof $root.replit.goval.api.ReplspaceApiOpenFile)
|
|
28985
|
+
return object;
|
|
28986
|
+
var message = new $root.replit.goval.api.ReplspaceApiOpenFile();
|
|
28987
|
+
if (object.file != null)
|
|
28988
|
+
message.file = String(object.file);
|
|
28989
|
+
if (object.waitForClose != null)
|
|
28990
|
+
message.waitForClose = Boolean(object.waitForClose);
|
|
28991
|
+
if (object.nonce != null)
|
|
28992
|
+
message.nonce = String(object.nonce);
|
|
28993
|
+
return message;
|
|
28994
|
+
};
|
|
28995
|
+
|
|
28996
|
+
/**
|
|
28997
|
+
* Creates a plain object from a ReplspaceApiOpenFile message. Also converts values to other types if specified.
|
|
28998
|
+
* @function toObject
|
|
28999
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
29000
|
+
* @static
|
|
29001
|
+
* @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile
|
|
29002
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29003
|
+
* @returns {Object.<string,*>} Plain object
|
|
29004
|
+
*/
|
|
29005
|
+
ReplspaceApiOpenFile.toObject = function toObject(message, options) {
|
|
29006
|
+
if (!options)
|
|
29007
|
+
options = {};
|
|
29008
|
+
var object = {};
|
|
29009
|
+
if (options.defaults) {
|
|
29010
|
+
object.file = "";
|
|
29011
|
+
object.waitForClose = false;
|
|
29012
|
+
object.nonce = "";
|
|
29013
|
+
}
|
|
29014
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
29015
|
+
object.file = message.file;
|
|
29016
|
+
if (message.waitForClose != null && message.hasOwnProperty("waitForClose"))
|
|
29017
|
+
object.waitForClose = message.waitForClose;
|
|
29018
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29019
|
+
object.nonce = message.nonce;
|
|
29020
|
+
return object;
|
|
29021
|
+
};
|
|
29022
|
+
|
|
29023
|
+
/**
|
|
29024
|
+
* Converts this ReplspaceApiOpenFile to JSON.
|
|
29025
|
+
* @function toJSON
|
|
29026
|
+
* @memberof replit.goval.api.ReplspaceApiOpenFile
|
|
29027
|
+
* @instance
|
|
29028
|
+
* @returns {Object.<string,*>} JSON object
|
|
29029
|
+
*/
|
|
29030
|
+
ReplspaceApiOpenFile.prototype.toJSON = function toJSON() {
|
|
29031
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29032
|
+
};
|
|
29033
|
+
|
|
29034
|
+
return ReplspaceApiOpenFile;
|
|
29035
|
+
})();
|
|
29036
|
+
|
|
29037
|
+
api.ReplspaceApiCloseFile = (function() {
|
|
29038
|
+
|
|
29039
|
+
/**
|
|
29040
|
+
* Properties of a ReplspaceApiCloseFile.
|
|
29041
|
+
* @memberof replit.goval.api
|
|
29042
|
+
* @interface IReplspaceApiCloseFile
|
|
29043
|
+
* @property {string|null} [file] ReplspaceApiCloseFile file
|
|
29044
|
+
* @property {string|null} [nonce] ReplspaceApiCloseFile nonce
|
|
29045
|
+
*/
|
|
29046
|
+
|
|
29047
|
+
/**
|
|
29048
|
+
* Constructs a new ReplspaceApiCloseFile.
|
|
29049
|
+
* @memberof replit.goval.api
|
|
29050
|
+
* @classdesc Represents a ReplspaceApiCloseFile.
|
|
29051
|
+
* @constructor
|
|
29052
|
+
* @param {replit.goval.api.IReplspaceApiCloseFile=} [properties] Properties to set
|
|
29053
|
+
*/
|
|
29054
|
+
function ReplspaceApiCloseFile(properties) {
|
|
29055
|
+
if (properties)
|
|
29056
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29057
|
+
if (properties[keys[i]] != null)
|
|
29058
|
+
this[keys[i]] = properties[keys[i]];
|
|
29059
|
+
}
|
|
29060
|
+
|
|
29061
|
+
/**
|
|
29062
|
+
* ReplspaceApiCloseFile file.
|
|
29063
|
+
* @member {string} file
|
|
29064
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29065
|
+
* @instance
|
|
29066
|
+
*/
|
|
29067
|
+
ReplspaceApiCloseFile.prototype.file = "";
|
|
29068
|
+
|
|
29069
|
+
/**
|
|
29070
|
+
* ReplspaceApiCloseFile nonce.
|
|
29071
|
+
* @member {string} nonce
|
|
29072
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29073
|
+
* @instance
|
|
29074
|
+
*/
|
|
29075
|
+
ReplspaceApiCloseFile.prototype.nonce = "";
|
|
29076
|
+
|
|
29077
|
+
/**
|
|
29078
|
+
* Creates a new ReplspaceApiCloseFile instance using the specified properties.
|
|
29079
|
+
* @function create
|
|
29080
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29081
|
+
* @static
|
|
29082
|
+
* @param {replit.goval.api.IReplspaceApiCloseFile=} [properties] Properties to set
|
|
29083
|
+
* @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile instance
|
|
29084
|
+
*/
|
|
29085
|
+
ReplspaceApiCloseFile.create = function create(properties) {
|
|
29086
|
+
return ReplspaceApiCloseFile.fromObject(properties);
|
|
29087
|
+
};
|
|
29088
|
+
|
|
29089
|
+
/**
|
|
29090
|
+
* Encodes the specified ReplspaceApiCloseFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
|
|
29091
|
+
* @function encode
|
|
29092
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29093
|
+
* @static
|
|
29094
|
+
* @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile message or plain object to encode
|
|
29095
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29096
|
+
* @returns {$protobuf.Writer} Writer
|
|
29097
|
+
*/
|
|
29098
|
+
ReplspaceApiCloseFile.encode = function encode(message, writer) {
|
|
29099
|
+
if (!writer)
|
|
29100
|
+
writer = $Writer.create();
|
|
29101
|
+
if (message.file != null && Object.hasOwnProperty.call(message, "file"))
|
|
29102
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.file);
|
|
29103
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
29104
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nonce);
|
|
29105
|
+
return writer;
|
|
29106
|
+
};
|
|
29107
|
+
|
|
29108
|
+
/**
|
|
29109
|
+
* Encodes the specified ReplspaceApiCloseFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
|
|
29110
|
+
* @function encodeDelimited
|
|
29111
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29112
|
+
* @static
|
|
29113
|
+
* @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile message or plain object to encode
|
|
29114
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29115
|
+
* @returns {$protobuf.Writer} Writer
|
|
29116
|
+
*/
|
|
29117
|
+
ReplspaceApiCloseFile.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29118
|
+
return this.encode(message, writer).ldelim();
|
|
29119
|
+
};
|
|
29120
|
+
|
|
29121
|
+
/**
|
|
29122
|
+
* Decodes a ReplspaceApiCloseFile message from the specified reader or buffer.
|
|
29123
|
+
* @function decode
|
|
29124
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29125
|
+
* @static
|
|
29126
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29127
|
+
* @param {number} [length] Message length if known beforehand
|
|
29128
|
+
* @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
|
|
29129
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29130
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29131
|
+
*/
|
|
29132
|
+
ReplspaceApiCloseFile.decode = function decode(reader, length) {
|
|
29133
|
+
if (!(reader instanceof $Reader))
|
|
29134
|
+
reader = $Reader.create(reader);
|
|
29135
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplspaceApiCloseFile();
|
|
29136
|
+
while (reader.pos < end) {
|
|
29137
|
+
var tag = reader.uint32();
|
|
29138
|
+
switch (tag >>> 3) {
|
|
29139
|
+
case 1:
|
|
29140
|
+
message.file = reader.string();
|
|
29141
|
+
break;
|
|
29142
|
+
case 2:
|
|
29143
|
+
message.nonce = reader.string();
|
|
29144
|
+
break;
|
|
29145
|
+
default:
|
|
29146
|
+
reader.skipType(tag & 7);
|
|
29147
|
+
break;
|
|
29148
|
+
}
|
|
29149
|
+
}
|
|
29150
|
+
return message;
|
|
29151
|
+
};
|
|
29152
|
+
|
|
29153
|
+
/**
|
|
29154
|
+
* Decodes a ReplspaceApiCloseFile message from the specified reader or buffer, length delimited.
|
|
29155
|
+
* @function decodeDelimited
|
|
29156
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29157
|
+
* @static
|
|
29158
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29159
|
+
* @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
|
|
29160
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29161
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29162
|
+
*/
|
|
29163
|
+
ReplspaceApiCloseFile.decodeDelimited = function decodeDelimited(reader) {
|
|
29164
|
+
if (!(reader instanceof $Reader))
|
|
29165
|
+
reader = new $Reader(reader);
|
|
29166
|
+
return this.decode(reader, reader.uint32());
|
|
29167
|
+
};
|
|
29168
|
+
|
|
29169
|
+
/**
|
|
29170
|
+
* Verifies a ReplspaceApiCloseFile message.
|
|
29171
|
+
* @function verify
|
|
29172
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29173
|
+
* @static
|
|
29174
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29175
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29176
|
+
*/
|
|
29177
|
+
ReplspaceApiCloseFile.verify = function verify(message) {
|
|
29178
|
+
if (typeof message !== "object" || message === null)
|
|
29179
|
+
return "object expected";
|
|
29180
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
29181
|
+
if (!$util.isString(message.file))
|
|
29182
|
+
return "file: string expected";
|
|
29183
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29184
|
+
if (!$util.isString(message.nonce))
|
|
29185
|
+
return "nonce: string expected";
|
|
29186
|
+
return null;
|
|
29187
|
+
};
|
|
29188
|
+
|
|
29189
|
+
/**
|
|
29190
|
+
* Creates a ReplspaceApiCloseFile message from a plain object. Also converts values to their respective internal types.
|
|
29191
|
+
* @function fromObject
|
|
29192
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29193
|
+
* @static
|
|
29194
|
+
* @param {Object.<string,*>} object Plain object
|
|
29195
|
+
* @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
|
|
29196
|
+
*/
|
|
29197
|
+
ReplspaceApiCloseFile.fromObject = function fromObject(object) {
|
|
29198
|
+
if (object instanceof $root.replit.goval.api.ReplspaceApiCloseFile)
|
|
29199
|
+
return object;
|
|
29200
|
+
var message = new $root.replit.goval.api.ReplspaceApiCloseFile();
|
|
29201
|
+
if (object.file != null)
|
|
29202
|
+
message.file = String(object.file);
|
|
29203
|
+
if (object.nonce != null)
|
|
29204
|
+
message.nonce = String(object.nonce);
|
|
29205
|
+
return message;
|
|
29206
|
+
};
|
|
29207
|
+
|
|
29208
|
+
/**
|
|
29209
|
+
* Creates a plain object from a ReplspaceApiCloseFile message. Also converts values to other types if specified.
|
|
29210
|
+
* @function toObject
|
|
29211
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29212
|
+
* @static
|
|
29213
|
+
* @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile
|
|
29214
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29215
|
+
* @returns {Object.<string,*>} Plain object
|
|
29216
|
+
*/
|
|
29217
|
+
ReplspaceApiCloseFile.toObject = function toObject(message, options) {
|
|
29218
|
+
if (!options)
|
|
29219
|
+
options = {};
|
|
29220
|
+
var object = {};
|
|
29221
|
+
if (options.defaults) {
|
|
29222
|
+
object.file = "";
|
|
29223
|
+
object.nonce = "";
|
|
29224
|
+
}
|
|
29225
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
29226
|
+
object.file = message.file;
|
|
29227
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29228
|
+
object.nonce = message.nonce;
|
|
29229
|
+
return object;
|
|
29230
|
+
};
|
|
29231
|
+
|
|
29232
|
+
/**
|
|
29233
|
+
* Converts this ReplspaceApiCloseFile to JSON.
|
|
29234
|
+
* @function toJSON
|
|
29235
|
+
* @memberof replit.goval.api.ReplspaceApiCloseFile
|
|
29236
|
+
* @instance
|
|
29237
|
+
* @returns {Object.<string,*>} JSON object
|
|
29238
|
+
*/
|
|
29239
|
+
ReplspaceApiCloseFile.prototype.toJSON = function toJSON() {
|
|
29240
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29241
|
+
};
|
|
29242
|
+
|
|
29243
|
+
return ReplspaceApiCloseFile;
|
|
29244
|
+
})();
|
|
29245
|
+
|
|
29246
|
+
api.ReplspaceApiGetGitHubToken = (function() {
|
|
29247
|
+
|
|
29248
|
+
/**
|
|
29249
|
+
* Properties of a ReplspaceApiGetGitHubToken.
|
|
29250
|
+
* @memberof replit.goval.api
|
|
29251
|
+
* @interface IReplspaceApiGetGitHubToken
|
|
29252
|
+
* @property {string|null} [nonce] ReplspaceApiGetGitHubToken nonce
|
|
29253
|
+
*/
|
|
29254
|
+
|
|
29255
|
+
/**
|
|
29256
|
+
* Constructs a new ReplspaceApiGetGitHubToken.
|
|
29257
|
+
* @memberof replit.goval.api
|
|
29258
|
+
* @classdesc Represents a ReplspaceApiGetGitHubToken.
|
|
29259
|
+
* @constructor
|
|
29260
|
+
* @param {replit.goval.api.IReplspaceApiGetGitHubToken=} [properties] Properties to set
|
|
29261
|
+
*/
|
|
29262
|
+
function ReplspaceApiGetGitHubToken(properties) {
|
|
29263
|
+
if (properties)
|
|
29264
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29265
|
+
if (properties[keys[i]] != null)
|
|
29266
|
+
this[keys[i]] = properties[keys[i]];
|
|
29267
|
+
}
|
|
29268
|
+
|
|
29269
|
+
/**
|
|
29270
|
+
* ReplspaceApiGetGitHubToken nonce.
|
|
29271
|
+
* @member {string} nonce
|
|
29272
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29273
|
+
* @instance
|
|
29274
|
+
*/
|
|
29275
|
+
ReplspaceApiGetGitHubToken.prototype.nonce = "";
|
|
29276
|
+
|
|
29277
|
+
/**
|
|
29278
|
+
* Creates a new ReplspaceApiGetGitHubToken instance using the specified properties.
|
|
29279
|
+
* @function create
|
|
29280
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29281
|
+
* @static
|
|
29282
|
+
* @param {replit.goval.api.IReplspaceApiGetGitHubToken=} [properties] Properties to set
|
|
29283
|
+
* @returns {replit.goval.api.ReplspaceApiGetGitHubToken} ReplspaceApiGetGitHubToken instance
|
|
29284
|
+
*/
|
|
29285
|
+
ReplspaceApiGetGitHubToken.create = function create(properties) {
|
|
29286
|
+
return ReplspaceApiGetGitHubToken.fromObject(properties);
|
|
29287
|
+
};
|
|
29288
|
+
|
|
29289
|
+
/**
|
|
29290
|
+
* Encodes the specified ReplspaceApiGetGitHubToken message. Does not implicitly {@link replit.goval.api.ReplspaceApiGetGitHubToken.verify|verify} messages.
|
|
29291
|
+
* @function encode
|
|
29292
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29293
|
+
* @static
|
|
29294
|
+
* @param {replit.goval.api.ReplspaceApiGetGitHubToken} message ReplspaceApiGetGitHubToken message or plain object to encode
|
|
29295
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29296
|
+
* @returns {$protobuf.Writer} Writer
|
|
29297
|
+
*/
|
|
29298
|
+
ReplspaceApiGetGitHubToken.encode = function encode(message, writer) {
|
|
29299
|
+
if (!writer)
|
|
29300
|
+
writer = $Writer.create();
|
|
29301
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
29302
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.nonce);
|
|
29303
|
+
return writer;
|
|
29304
|
+
};
|
|
29305
|
+
|
|
29306
|
+
/**
|
|
29307
|
+
* Encodes the specified ReplspaceApiGetGitHubToken message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiGetGitHubToken.verify|verify} messages.
|
|
29308
|
+
* @function encodeDelimited
|
|
29309
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29310
|
+
* @static
|
|
29311
|
+
* @param {replit.goval.api.ReplspaceApiGetGitHubToken} message ReplspaceApiGetGitHubToken message or plain object to encode
|
|
29312
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29313
|
+
* @returns {$protobuf.Writer} Writer
|
|
29314
|
+
*/
|
|
29315
|
+
ReplspaceApiGetGitHubToken.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29316
|
+
return this.encode(message, writer).ldelim();
|
|
29317
|
+
};
|
|
29318
|
+
|
|
29319
|
+
/**
|
|
29320
|
+
* Decodes a ReplspaceApiGetGitHubToken message from the specified reader or buffer.
|
|
29321
|
+
* @function decode
|
|
29322
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29323
|
+
* @static
|
|
29324
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29325
|
+
* @param {number} [length] Message length if known beforehand
|
|
29326
|
+
* @returns {replit.goval.api.ReplspaceApiGetGitHubToken} ReplspaceApiGetGitHubToken
|
|
29327
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29328
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29329
|
+
*/
|
|
29330
|
+
ReplspaceApiGetGitHubToken.decode = function decode(reader, length) {
|
|
29331
|
+
if (!(reader instanceof $Reader))
|
|
29332
|
+
reader = $Reader.create(reader);
|
|
29333
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplspaceApiGetGitHubToken();
|
|
29334
|
+
while (reader.pos < end) {
|
|
29335
|
+
var tag = reader.uint32();
|
|
29336
|
+
switch (tag >>> 3) {
|
|
29337
|
+
case 1:
|
|
29338
|
+
message.nonce = reader.string();
|
|
29339
|
+
break;
|
|
29340
|
+
default:
|
|
29341
|
+
reader.skipType(tag & 7);
|
|
29342
|
+
break;
|
|
29343
|
+
}
|
|
29344
|
+
}
|
|
29345
|
+
return message;
|
|
29346
|
+
};
|
|
29347
|
+
|
|
29348
|
+
/**
|
|
29349
|
+
* Decodes a ReplspaceApiGetGitHubToken message from the specified reader or buffer, length delimited.
|
|
29350
|
+
* @function decodeDelimited
|
|
29351
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29352
|
+
* @static
|
|
29353
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29354
|
+
* @returns {replit.goval.api.ReplspaceApiGetGitHubToken} ReplspaceApiGetGitHubToken
|
|
29355
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29356
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29357
|
+
*/
|
|
29358
|
+
ReplspaceApiGetGitHubToken.decodeDelimited = function decodeDelimited(reader) {
|
|
29359
|
+
if (!(reader instanceof $Reader))
|
|
29360
|
+
reader = new $Reader(reader);
|
|
29361
|
+
return this.decode(reader, reader.uint32());
|
|
29362
|
+
};
|
|
29363
|
+
|
|
29364
|
+
/**
|
|
29365
|
+
* Verifies a ReplspaceApiGetGitHubToken message.
|
|
29366
|
+
* @function verify
|
|
29367
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29368
|
+
* @static
|
|
29369
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29370
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29371
|
+
*/
|
|
29372
|
+
ReplspaceApiGetGitHubToken.verify = function verify(message) {
|
|
29373
|
+
if (typeof message !== "object" || message === null)
|
|
29374
|
+
return "object expected";
|
|
29375
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29376
|
+
if (!$util.isString(message.nonce))
|
|
29377
|
+
return "nonce: string expected";
|
|
29378
|
+
return null;
|
|
29379
|
+
};
|
|
29380
|
+
|
|
29381
|
+
/**
|
|
29382
|
+
* Creates a ReplspaceApiGetGitHubToken message from a plain object. Also converts values to their respective internal types.
|
|
29383
|
+
* @function fromObject
|
|
29384
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29385
|
+
* @static
|
|
29386
|
+
* @param {Object.<string,*>} object Plain object
|
|
29387
|
+
* @returns {replit.goval.api.ReplspaceApiGetGitHubToken} ReplspaceApiGetGitHubToken
|
|
29388
|
+
*/
|
|
29389
|
+
ReplspaceApiGetGitHubToken.fromObject = function fromObject(object) {
|
|
29390
|
+
if (object instanceof $root.replit.goval.api.ReplspaceApiGetGitHubToken)
|
|
29391
|
+
return object;
|
|
29392
|
+
var message = new $root.replit.goval.api.ReplspaceApiGetGitHubToken();
|
|
29393
|
+
if (object.nonce != null)
|
|
29394
|
+
message.nonce = String(object.nonce);
|
|
29395
|
+
return message;
|
|
29396
|
+
};
|
|
29397
|
+
|
|
29398
|
+
/**
|
|
29399
|
+
* Creates a plain object from a ReplspaceApiGetGitHubToken message. Also converts values to other types if specified.
|
|
29400
|
+
* @function toObject
|
|
29401
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29402
|
+
* @static
|
|
29403
|
+
* @param {replit.goval.api.ReplspaceApiGetGitHubToken} message ReplspaceApiGetGitHubToken
|
|
29404
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29405
|
+
* @returns {Object.<string,*>} Plain object
|
|
29406
|
+
*/
|
|
29407
|
+
ReplspaceApiGetGitHubToken.toObject = function toObject(message, options) {
|
|
29408
|
+
if (!options)
|
|
29409
|
+
options = {};
|
|
29410
|
+
var object = {};
|
|
29411
|
+
if (options.defaults)
|
|
29412
|
+
object.nonce = "";
|
|
29413
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29414
|
+
object.nonce = message.nonce;
|
|
29415
|
+
return object;
|
|
29416
|
+
};
|
|
29417
|
+
|
|
29418
|
+
/**
|
|
29419
|
+
* Converts this ReplspaceApiGetGitHubToken to JSON.
|
|
29420
|
+
* @function toJSON
|
|
29421
|
+
* @memberof replit.goval.api.ReplspaceApiGetGitHubToken
|
|
29422
|
+
* @instance
|
|
29423
|
+
* @returns {Object.<string,*>} JSON object
|
|
29424
|
+
*/
|
|
29425
|
+
ReplspaceApiGetGitHubToken.prototype.toJSON = function toJSON() {
|
|
29426
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29427
|
+
};
|
|
29428
|
+
|
|
29429
|
+
return ReplspaceApiGetGitHubToken;
|
|
29430
|
+
})();
|
|
29431
|
+
|
|
29432
|
+
api.ReplspaceApiGitHubToken = (function() {
|
|
29433
|
+
|
|
29434
|
+
/**
|
|
29435
|
+
* Properties of a ReplspaceApiGitHubToken.
|
|
29436
|
+
* @memberof replit.goval.api
|
|
29437
|
+
* @interface IReplspaceApiGitHubToken
|
|
29438
|
+
* @property {string|null} [nonce] ReplspaceApiGitHubToken nonce
|
|
29439
|
+
* @property {string|null} [token] ReplspaceApiGitHubToken token
|
|
29440
|
+
*/
|
|
29441
|
+
|
|
29442
|
+
/**
|
|
29443
|
+
* Constructs a new ReplspaceApiGitHubToken.
|
|
29444
|
+
* @memberof replit.goval.api
|
|
29445
|
+
* @classdesc Represents a ReplspaceApiGitHubToken.
|
|
29446
|
+
* @constructor
|
|
29447
|
+
* @param {replit.goval.api.IReplspaceApiGitHubToken=} [properties] Properties to set
|
|
29448
|
+
*/
|
|
29449
|
+
function ReplspaceApiGitHubToken(properties) {
|
|
29450
|
+
if (properties)
|
|
29451
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29452
|
+
if (properties[keys[i]] != null)
|
|
29453
|
+
this[keys[i]] = properties[keys[i]];
|
|
29454
|
+
}
|
|
29455
|
+
|
|
29456
|
+
/**
|
|
29457
|
+
* ReplspaceApiGitHubToken nonce.
|
|
29458
|
+
* @member {string} nonce
|
|
29459
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29460
|
+
* @instance
|
|
29461
|
+
*/
|
|
29462
|
+
ReplspaceApiGitHubToken.prototype.nonce = "";
|
|
29463
|
+
|
|
29464
|
+
/**
|
|
29465
|
+
* ReplspaceApiGitHubToken token.
|
|
29466
|
+
* @member {string} token
|
|
29467
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29468
|
+
* @instance
|
|
29469
|
+
*/
|
|
29470
|
+
ReplspaceApiGitHubToken.prototype.token = "";
|
|
29471
|
+
|
|
29472
|
+
/**
|
|
29473
|
+
* Creates a new ReplspaceApiGitHubToken instance using the specified properties.
|
|
29474
|
+
* @function create
|
|
29475
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29476
|
+
* @static
|
|
29477
|
+
* @param {replit.goval.api.IReplspaceApiGitHubToken=} [properties] Properties to set
|
|
29478
|
+
* @returns {replit.goval.api.ReplspaceApiGitHubToken} ReplspaceApiGitHubToken instance
|
|
29479
|
+
*/
|
|
29480
|
+
ReplspaceApiGitHubToken.create = function create(properties) {
|
|
29481
|
+
return ReplspaceApiGitHubToken.fromObject(properties);
|
|
29482
|
+
};
|
|
29483
|
+
|
|
29484
|
+
/**
|
|
29485
|
+
* Encodes the specified ReplspaceApiGitHubToken message. Does not implicitly {@link replit.goval.api.ReplspaceApiGitHubToken.verify|verify} messages.
|
|
29486
|
+
* @function encode
|
|
29487
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29488
|
+
* @static
|
|
29489
|
+
* @param {replit.goval.api.ReplspaceApiGitHubToken} message ReplspaceApiGitHubToken message or plain object to encode
|
|
29490
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29491
|
+
* @returns {$protobuf.Writer} Writer
|
|
29492
|
+
*/
|
|
29493
|
+
ReplspaceApiGitHubToken.encode = function encode(message, writer) {
|
|
29494
|
+
if (!writer)
|
|
29495
|
+
writer = $Writer.create();
|
|
29496
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
29497
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.nonce);
|
|
29498
|
+
if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
29499
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.token);
|
|
29500
|
+
return writer;
|
|
29501
|
+
};
|
|
29502
|
+
|
|
29503
|
+
/**
|
|
29504
|
+
* Encodes the specified ReplspaceApiGitHubToken message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiGitHubToken.verify|verify} messages.
|
|
29505
|
+
* @function encodeDelimited
|
|
29506
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29507
|
+
* @static
|
|
29508
|
+
* @param {replit.goval.api.ReplspaceApiGitHubToken} message ReplspaceApiGitHubToken message or plain object to encode
|
|
29509
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29510
|
+
* @returns {$protobuf.Writer} Writer
|
|
29511
|
+
*/
|
|
29512
|
+
ReplspaceApiGitHubToken.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29513
|
+
return this.encode(message, writer).ldelim();
|
|
29514
|
+
};
|
|
29515
|
+
|
|
29516
|
+
/**
|
|
29517
|
+
* Decodes a ReplspaceApiGitHubToken message from the specified reader or buffer.
|
|
29518
|
+
* @function decode
|
|
29519
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29520
|
+
* @static
|
|
29521
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29522
|
+
* @param {number} [length] Message length if known beforehand
|
|
29523
|
+
* @returns {replit.goval.api.ReplspaceApiGitHubToken} ReplspaceApiGitHubToken
|
|
29524
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29525
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29526
|
+
*/
|
|
29527
|
+
ReplspaceApiGitHubToken.decode = function decode(reader, length) {
|
|
29528
|
+
if (!(reader instanceof $Reader))
|
|
29529
|
+
reader = $Reader.create(reader);
|
|
29530
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplspaceApiGitHubToken();
|
|
29531
|
+
while (reader.pos < end) {
|
|
29532
|
+
var tag = reader.uint32();
|
|
29533
|
+
switch (tag >>> 3) {
|
|
29534
|
+
case 1:
|
|
29535
|
+
message.nonce = reader.string();
|
|
29536
|
+
break;
|
|
29537
|
+
case 2:
|
|
29538
|
+
message.token = reader.string();
|
|
29539
|
+
break;
|
|
29540
|
+
default:
|
|
29541
|
+
reader.skipType(tag & 7);
|
|
29542
|
+
break;
|
|
29543
|
+
}
|
|
29544
|
+
}
|
|
29545
|
+
return message;
|
|
29546
|
+
};
|
|
29547
|
+
|
|
29548
|
+
/**
|
|
29549
|
+
* Decodes a ReplspaceApiGitHubToken message from the specified reader or buffer, length delimited.
|
|
29550
|
+
* @function decodeDelimited
|
|
29551
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29552
|
+
* @static
|
|
29553
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29554
|
+
* @returns {replit.goval.api.ReplspaceApiGitHubToken} ReplspaceApiGitHubToken
|
|
29555
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29556
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29557
|
+
*/
|
|
29558
|
+
ReplspaceApiGitHubToken.decodeDelimited = function decodeDelimited(reader) {
|
|
29559
|
+
if (!(reader instanceof $Reader))
|
|
29560
|
+
reader = new $Reader(reader);
|
|
29561
|
+
return this.decode(reader, reader.uint32());
|
|
29562
|
+
};
|
|
29563
|
+
|
|
29564
|
+
/**
|
|
29565
|
+
* Verifies a ReplspaceApiGitHubToken message.
|
|
29566
|
+
* @function verify
|
|
29567
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29568
|
+
* @static
|
|
29569
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29570
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29571
|
+
*/
|
|
29572
|
+
ReplspaceApiGitHubToken.verify = function verify(message) {
|
|
29573
|
+
if (typeof message !== "object" || message === null)
|
|
29574
|
+
return "object expected";
|
|
29575
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29576
|
+
if (!$util.isString(message.nonce))
|
|
29577
|
+
return "nonce: string expected";
|
|
29578
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
29579
|
+
if (!$util.isString(message.token))
|
|
29580
|
+
return "token: string expected";
|
|
29581
|
+
return null;
|
|
29582
|
+
};
|
|
29583
|
+
|
|
29584
|
+
/**
|
|
29585
|
+
* Creates a ReplspaceApiGitHubToken message from a plain object. Also converts values to their respective internal types.
|
|
29586
|
+
* @function fromObject
|
|
29587
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29588
|
+
* @static
|
|
29589
|
+
* @param {Object.<string,*>} object Plain object
|
|
29590
|
+
* @returns {replit.goval.api.ReplspaceApiGitHubToken} ReplspaceApiGitHubToken
|
|
29591
|
+
*/
|
|
29592
|
+
ReplspaceApiGitHubToken.fromObject = function fromObject(object) {
|
|
29593
|
+
if (object instanceof $root.replit.goval.api.ReplspaceApiGitHubToken)
|
|
29594
|
+
return object;
|
|
29595
|
+
var message = new $root.replit.goval.api.ReplspaceApiGitHubToken();
|
|
29596
|
+
if (object.nonce != null)
|
|
29597
|
+
message.nonce = String(object.nonce);
|
|
29598
|
+
if (object.token != null)
|
|
29599
|
+
message.token = String(object.token);
|
|
29600
|
+
return message;
|
|
29601
|
+
};
|
|
29602
|
+
|
|
29603
|
+
/**
|
|
29604
|
+
* Creates a plain object from a ReplspaceApiGitHubToken message. Also converts values to other types if specified.
|
|
29605
|
+
* @function toObject
|
|
29606
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29607
|
+
* @static
|
|
29608
|
+
* @param {replit.goval.api.ReplspaceApiGitHubToken} message ReplspaceApiGitHubToken
|
|
29609
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29610
|
+
* @returns {Object.<string,*>} Plain object
|
|
29611
|
+
*/
|
|
29612
|
+
ReplspaceApiGitHubToken.toObject = function toObject(message, options) {
|
|
29613
|
+
if (!options)
|
|
29614
|
+
options = {};
|
|
29615
|
+
var object = {};
|
|
29616
|
+
if (options.defaults) {
|
|
29617
|
+
object.nonce = "";
|
|
29618
|
+
object.token = "";
|
|
29619
|
+
}
|
|
29620
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
29621
|
+
object.nonce = message.nonce;
|
|
29622
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
29623
|
+
object.token = message.token;
|
|
29624
|
+
return object;
|
|
29625
|
+
};
|
|
29626
|
+
|
|
29627
|
+
/**
|
|
29628
|
+
* Converts this ReplspaceApiGitHubToken to JSON.
|
|
29629
|
+
* @function toJSON
|
|
29630
|
+
* @memberof replit.goval.api.ReplspaceApiGitHubToken
|
|
29631
|
+
* @instance
|
|
29632
|
+
* @returns {Object.<string,*>} JSON object
|
|
29633
|
+
*/
|
|
29634
|
+
ReplspaceApiGitHubToken.prototype.toJSON = function toJSON() {
|
|
29635
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29636
|
+
};
|
|
29637
|
+
|
|
29638
|
+
return ReplspaceApiGitHubToken;
|
|
29639
|
+
})();
|
|
29640
|
+
|
|
28670
29641
|
api.UpdateSessionTimestamp = (function() {
|
|
28671
29642
|
|
|
28672
29643
|
/**
|