@replit/protocol 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/index.d.ts +13 -572
- package/main/index.js +48 -1505
- package/package.json +1 -1
- package/iotester/index.js.flow +0 -2946
- package/main/index.js.flow +0 -41699
package/main/index.js
CHANGED
|
@@ -118,11 +118,6 @@
|
|
|
118
118
|
* @property {replit.goval.api.Send|replit.goval.api.ISend|null} [send] Command send
|
|
119
119
|
* @property {replit.goval.api.Recv|replit.goval.api.IRecv|null} [recv] Command recv
|
|
120
120
|
* @property {replit.goval.api.Disconnect|replit.goval.api.IDisconnect|null} [disconnect] Command disconnect
|
|
121
|
-
* @property {replit.goval.api.FileAuthReq|replit.goval.api.IFileAuthReq|null} [fileAuthReq] Command fileAuthReq
|
|
122
|
-
* @property {replit.goval.api.FileAuthRes|replit.goval.api.IFileAuthRes|null} [fileAuthRes] Command fileAuthRes
|
|
123
|
-
* @property {replit.goval.api.MultiFileAuthRes|replit.goval.api.IMultiFileAuthRes|null} [mutliFileAuthRes] Command mutliFileAuthRes
|
|
124
|
-
* @property {replit.goval.api.ListObjects|replit.goval.api.IListObjects|null} [listObjects] Command listObjects
|
|
125
|
-
* @property {replit.goval.api.ListObjectsResp|replit.goval.api.IListObjectsResp|null} [listObjectsResp] Command listObjectsResp
|
|
126
121
|
* @property {replit.goval.api.OTPacket|replit.goval.api.IOTPacket|null} [ot] Command ot
|
|
127
122
|
* @property {replit.goval.api.OTStatus|replit.goval.api.IOTStatus|null} [otstatus] Command otstatus
|
|
128
123
|
* @property {replit.goval.api.OTLinkFile|replit.goval.api.IOTLinkFile|null} [otLinkFile] Command otLinkFile
|
|
@@ -822,46 +817,6 @@
|
|
|
822
817
|
*/
|
|
823
818
|
Command.prototype.disconnect = null;
|
|
824
819
|
|
|
825
|
-
/**
|
|
826
|
-
* Command fileAuthReq.
|
|
827
|
-
* @member {replit.goval.api.FileAuthReq|null|undefined} fileAuthReq
|
|
828
|
-
* @memberof replit.goval.api.Command
|
|
829
|
-
* @instance
|
|
830
|
-
*/
|
|
831
|
-
Command.prototype.fileAuthReq = null;
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* Command fileAuthRes.
|
|
835
|
-
* @member {replit.goval.api.FileAuthRes|null|undefined} fileAuthRes
|
|
836
|
-
* @memberof replit.goval.api.Command
|
|
837
|
-
* @instance
|
|
838
|
-
*/
|
|
839
|
-
Command.prototype.fileAuthRes = null;
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* Command mutliFileAuthRes.
|
|
843
|
-
* @member {replit.goval.api.MultiFileAuthRes|null|undefined} mutliFileAuthRes
|
|
844
|
-
* @memberof replit.goval.api.Command
|
|
845
|
-
* @instance
|
|
846
|
-
*/
|
|
847
|
-
Command.prototype.mutliFileAuthRes = null;
|
|
848
|
-
|
|
849
|
-
/**
|
|
850
|
-
* Command listObjects.
|
|
851
|
-
* @member {replit.goval.api.ListObjects|null|undefined} listObjects
|
|
852
|
-
* @memberof replit.goval.api.Command
|
|
853
|
-
* @instance
|
|
854
|
-
*/
|
|
855
|
-
Command.prototype.listObjects = null;
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Command listObjectsResp.
|
|
859
|
-
* @member {replit.goval.api.ListObjectsResp|null|undefined} listObjectsResp
|
|
860
|
-
* @memberof replit.goval.api.Command
|
|
861
|
-
* @instance
|
|
862
|
-
*/
|
|
863
|
-
Command.prototype.listObjectsResp = null;
|
|
864
|
-
|
|
865
820
|
/**
|
|
866
821
|
* Command ot.
|
|
867
822
|
* @member {replit.goval.api.OTPacket|null|undefined} ot
|
|
@@ -1907,12 +1862,12 @@
|
|
|
1907
1862
|
|
|
1908
1863
|
/**
|
|
1909
1864
|
* Command body.
|
|
1910
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"shellMetadata"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"resetNixFilesystem"|"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"|"
|
|
1865
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"shellMetadata"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"resetNixFilesystem"|"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"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"otFlushNotification"|"debug"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageAddResponse"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"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"|"nixPackageInfoRequest"|"nixPackageInfoResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker"|"paneMetricsTracker"|"nixModuleConfigGetRequest"|"nixModuleConfigGetResponse"|"nixModuleConfigSetRequest"|"nixModuleConfigSetResponse"|"replspaceApiSSHTokenGetRequest"|"replspaceApiSSHTokenGetResponse"|"secretsGetRequest"|"secretsGetResponse"|"secretsSetRequest"|"replResourcesUpdateNotification"|undefined} body
|
|
1911
1866
|
* @memberof replit.goval.api.Command
|
|
1912
1867
|
* @instance
|
|
1913
1868
|
*/
|
|
1914
1869
|
Object.defineProperty(Command.prototype, "body", {
|
|
1915
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "shellMetadata", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "resetNixFilesystem", "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", "
|
|
1870
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "shellMetadata", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "resetNixFilesystem", "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", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "otFlushNotification", "debug", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageAddResponse", "packageRemove", "packageInstall", "packageInstallResponse", "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", "nixPackageInfoRequest", "nixPackageInfoResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "replspaceApiShellTracker", "paneMetricsTracker", "nixModuleConfigGetRequest", "nixModuleConfigGetResponse", "nixModuleConfigSetRequest", "nixModuleConfigSetResponse", "replspaceApiSSHTokenGetRequest", "replspaceApiSSHTokenGetResponse", "secretsGetRequest", "secretsGetResponse", "secretsSetRequest", "replResourcesUpdateNotification"]),
|
|
1916
1871
|
set: $util.oneOfSetter($oneOfFields)
|
|
1917
1872
|
});
|
|
1918
1873
|
|
|
@@ -2052,16 +2007,6 @@
|
|
|
2052
2007
|
$root.replit.goval.api.Recv.encode(message.recv, writer.uint32(/* id 152, wireType 2 =*/1218).fork()).ldelim();
|
|
2053
2008
|
if (message.disconnect != null && Object.hasOwnProperty.call(message, "disconnect"))
|
|
2054
2009
|
$root.replit.goval.api.Disconnect.encode(message.disconnect, writer.uint32(/* id 153, wireType 2 =*/1226).fork()).ldelim();
|
|
2055
|
-
if (message.fileAuthReq != null && Object.hasOwnProperty.call(message, "fileAuthReq"))
|
|
2056
|
-
$root.replit.goval.api.FileAuthReq.encode(message.fileAuthReq, writer.uint32(/* id 200, wireType 2 =*/1602).fork()).ldelim();
|
|
2057
|
-
if (message.fileAuthRes != null && Object.hasOwnProperty.call(message, "fileAuthRes"))
|
|
2058
|
-
$root.replit.goval.api.FileAuthRes.encode(message.fileAuthRes, writer.uint32(/* id 201, wireType 2 =*/1610).fork()).ldelim();
|
|
2059
|
-
if (message.mutliFileAuthRes != null && Object.hasOwnProperty.call(message, "mutliFileAuthRes"))
|
|
2060
|
-
$root.replit.goval.api.MultiFileAuthRes.encode(message.mutliFileAuthRes, writer.uint32(/* id 202, wireType 2 =*/1618).fork()).ldelim();
|
|
2061
|
-
if (message.listObjects != null && Object.hasOwnProperty.call(message, "listObjects"))
|
|
2062
|
-
$root.replit.goval.api.ListObjects.encode(message.listObjects, writer.uint32(/* id 205, wireType 2 =*/1642).fork()).ldelim();
|
|
2063
|
-
if (message.listObjectsResp != null && Object.hasOwnProperty.call(message, "listObjectsResp"))
|
|
2064
|
-
$root.replit.goval.api.ListObjectsResp.encode(message.listObjectsResp, writer.uint32(/* id 206, wireType 2 =*/1650).fork()).ldelim();
|
|
2065
2010
|
if (message.ot != null && Object.hasOwnProperty.call(message, "ot"))
|
|
2066
2011
|
$root.replit.goval.api.OTPacket.encode(message.ot, writer.uint32(/* id 220, wireType 2 =*/1762).fork()).ldelim();
|
|
2067
2012
|
if (message.otstatus != null && Object.hasOwnProperty.call(message, "otstatus"))
|
|
@@ -2659,26 +2604,6 @@
|
|
|
2659
2604
|
message.disconnect = $root.replit.goval.api.Disconnect.decode(reader, reader.uint32());
|
|
2660
2605
|
break;
|
|
2661
2606
|
}
|
|
2662
|
-
case 200: {
|
|
2663
|
-
message.fileAuthReq = $root.replit.goval.api.FileAuthReq.decode(reader, reader.uint32());
|
|
2664
|
-
break;
|
|
2665
|
-
}
|
|
2666
|
-
case 201: {
|
|
2667
|
-
message.fileAuthRes = $root.replit.goval.api.FileAuthRes.decode(reader, reader.uint32());
|
|
2668
|
-
break;
|
|
2669
|
-
}
|
|
2670
|
-
case 202: {
|
|
2671
|
-
message.mutliFileAuthRes = $root.replit.goval.api.MultiFileAuthRes.decode(reader, reader.uint32());
|
|
2672
|
-
break;
|
|
2673
|
-
}
|
|
2674
|
-
case 205: {
|
|
2675
|
-
message.listObjects = $root.replit.goval.api.ListObjects.decode(reader, reader.uint32());
|
|
2676
|
-
break;
|
|
2677
|
-
}
|
|
2678
|
-
case 206: {
|
|
2679
|
-
message.listObjectsResp = $root.replit.goval.api.ListObjectsResp.decode(reader, reader.uint32());
|
|
2680
|
-
break;
|
|
2681
|
-
}
|
|
2682
2607
|
case 220: {
|
|
2683
2608
|
message.ot = $root.replit.goval.api.OTPacket.decode(reader, reader.uint32());
|
|
2684
2609
|
break;
|
|
@@ -3900,56 +3825,6 @@
|
|
|
3900
3825
|
return "disconnect." + error;
|
|
3901
3826
|
}
|
|
3902
3827
|
}
|
|
3903
|
-
if (message.fileAuthReq != null && message.hasOwnProperty("fileAuthReq")) {
|
|
3904
|
-
if (properties.body === 1)
|
|
3905
|
-
return "body: multiple values";
|
|
3906
|
-
properties.body = 1;
|
|
3907
|
-
{
|
|
3908
|
-
var error = $root.replit.goval.api.FileAuthReq.verify(message.fileAuthReq);
|
|
3909
|
-
if (error)
|
|
3910
|
-
return "fileAuthReq." + error;
|
|
3911
|
-
}
|
|
3912
|
-
}
|
|
3913
|
-
if (message.fileAuthRes != null && message.hasOwnProperty("fileAuthRes")) {
|
|
3914
|
-
if (properties.body === 1)
|
|
3915
|
-
return "body: multiple values";
|
|
3916
|
-
properties.body = 1;
|
|
3917
|
-
{
|
|
3918
|
-
var error = $root.replit.goval.api.FileAuthRes.verify(message.fileAuthRes);
|
|
3919
|
-
if (error)
|
|
3920
|
-
return "fileAuthRes." + error;
|
|
3921
|
-
}
|
|
3922
|
-
}
|
|
3923
|
-
if (message.mutliFileAuthRes != null && message.hasOwnProperty("mutliFileAuthRes")) {
|
|
3924
|
-
if (properties.body === 1)
|
|
3925
|
-
return "body: multiple values";
|
|
3926
|
-
properties.body = 1;
|
|
3927
|
-
{
|
|
3928
|
-
var error = $root.replit.goval.api.MultiFileAuthRes.verify(message.mutliFileAuthRes);
|
|
3929
|
-
if (error)
|
|
3930
|
-
return "mutliFileAuthRes." + error;
|
|
3931
|
-
}
|
|
3932
|
-
}
|
|
3933
|
-
if (message.listObjects != null && message.hasOwnProperty("listObjects")) {
|
|
3934
|
-
if (properties.body === 1)
|
|
3935
|
-
return "body: multiple values";
|
|
3936
|
-
properties.body = 1;
|
|
3937
|
-
{
|
|
3938
|
-
var error = $root.replit.goval.api.ListObjects.verify(message.listObjects);
|
|
3939
|
-
if (error)
|
|
3940
|
-
return "listObjects." + error;
|
|
3941
|
-
}
|
|
3942
|
-
}
|
|
3943
|
-
if (message.listObjectsResp != null && message.hasOwnProperty("listObjectsResp")) {
|
|
3944
|
-
if (properties.body === 1)
|
|
3945
|
-
return "body: multiple values";
|
|
3946
|
-
properties.body = 1;
|
|
3947
|
-
{
|
|
3948
|
-
var error = $root.replit.goval.api.ListObjectsResp.verify(message.listObjectsResp);
|
|
3949
|
-
if (error)
|
|
3950
|
-
return "listObjectsResp." + error;
|
|
3951
|
-
}
|
|
3952
|
-
}
|
|
3953
3828
|
if (message.ot != null && message.hasOwnProperty("ot")) {
|
|
3954
3829
|
if (properties.body === 1)
|
|
3955
3830
|
return "body: multiple values";
|
|
@@ -5563,31 +5438,6 @@
|
|
|
5563
5438
|
throw TypeError(".replit.goval.api.Command.disconnect: object expected");
|
|
5564
5439
|
message.disconnect = $root.replit.goval.api.Disconnect.fromObject(object.disconnect);
|
|
5565
5440
|
}
|
|
5566
|
-
if (object.fileAuthReq != null) {
|
|
5567
|
-
if (typeof object.fileAuthReq !== "object")
|
|
5568
|
-
throw TypeError(".replit.goval.api.Command.fileAuthReq: object expected");
|
|
5569
|
-
message.fileAuthReq = $root.replit.goval.api.FileAuthReq.fromObject(object.fileAuthReq);
|
|
5570
|
-
}
|
|
5571
|
-
if (object.fileAuthRes != null) {
|
|
5572
|
-
if (typeof object.fileAuthRes !== "object")
|
|
5573
|
-
throw TypeError(".replit.goval.api.Command.fileAuthRes: object expected");
|
|
5574
|
-
message.fileAuthRes = $root.replit.goval.api.FileAuthRes.fromObject(object.fileAuthRes);
|
|
5575
|
-
}
|
|
5576
|
-
if (object.mutliFileAuthRes != null) {
|
|
5577
|
-
if (typeof object.mutliFileAuthRes !== "object")
|
|
5578
|
-
throw TypeError(".replit.goval.api.Command.mutliFileAuthRes: object expected");
|
|
5579
|
-
message.mutliFileAuthRes = $root.replit.goval.api.MultiFileAuthRes.fromObject(object.mutliFileAuthRes);
|
|
5580
|
-
}
|
|
5581
|
-
if (object.listObjects != null) {
|
|
5582
|
-
if (typeof object.listObjects !== "object")
|
|
5583
|
-
throw TypeError(".replit.goval.api.Command.listObjects: object expected");
|
|
5584
|
-
message.listObjects = $root.replit.goval.api.ListObjects.fromObject(object.listObjects);
|
|
5585
|
-
}
|
|
5586
|
-
if (object.listObjectsResp != null) {
|
|
5587
|
-
if (typeof object.listObjectsResp !== "object")
|
|
5588
|
-
throw TypeError(".replit.goval.api.Command.listObjectsResp: object expected");
|
|
5589
|
-
message.listObjectsResp = $root.replit.goval.api.ListObjectsResp.fromObject(object.listObjectsResp);
|
|
5590
|
-
}
|
|
5591
5441
|
if (object.ot != null) {
|
|
5592
5442
|
if (typeof object.ot !== "object")
|
|
5593
5443
|
throw TypeError(".replit.goval.api.Command.ot: object expected");
|
|
@@ -6526,31 +6376,6 @@
|
|
|
6526
6376
|
if (options.oneofs)
|
|
6527
6377
|
object.body = "disconnect";
|
|
6528
6378
|
}
|
|
6529
|
-
if (message.fileAuthReq != null && message.hasOwnProperty("fileAuthReq")) {
|
|
6530
|
-
object.fileAuthReq = $root.replit.goval.api.FileAuthReq.toObject(message.fileAuthReq, options);
|
|
6531
|
-
if (options.oneofs)
|
|
6532
|
-
object.body = "fileAuthReq";
|
|
6533
|
-
}
|
|
6534
|
-
if (message.fileAuthRes != null && message.hasOwnProperty("fileAuthRes")) {
|
|
6535
|
-
object.fileAuthRes = $root.replit.goval.api.FileAuthRes.toObject(message.fileAuthRes, options);
|
|
6536
|
-
if (options.oneofs)
|
|
6537
|
-
object.body = "fileAuthRes";
|
|
6538
|
-
}
|
|
6539
|
-
if (message.mutliFileAuthRes != null && message.hasOwnProperty("mutliFileAuthRes")) {
|
|
6540
|
-
object.mutliFileAuthRes = $root.replit.goval.api.MultiFileAuthRes.toObject(message.mutliFileAuthRes, options);
|
|
6541
|
-
if (options.oneofs)
|
|
6542
|
-
object.body = "mutliFileAuthRes";
|
|
6543
|
-
}
|
|
6544
|
-
if (message.listObjects != null && message.hasOwnProperty("listObjects")) {
|
|
6545
|
-
object.listObjects = $root.replit.goval.api.ListObjects.toObject(message.listObjects, options);
|
|
6546
|
-
if (options.oneofs)
|
|
6547
|
-
object.body = "listObjects";
|
|
6548
|
-
}
|
|
6549
|
-
if (message.listObjectsResp != null && message.hasOwnProperty("listObjectsResp")) {
|
|
6550
|
-
object.listObjectsResp = $root.replit.goval.api.ListObjectsResp.toObject(message.listObjectsResp, options);
|
|
6551
|
-
if (options.oneofs)
|
|
6552
|
-
object.body = "listObjectsResp";
|
|
6553
|
-
}
|
|
6554
6379
|
if (message.ot != null && message.hasOwnProperty("ot")) {
|
|
6555
6380
|
object.ot = $root.replit.goval.api.OTPacket.toObject(message.ot, options);
|
|
6556
6381
|
if (options.oneofs)
|
|
@@ -17092,1334 +16917,6 @@
|
|
|
17092
16917
|
return Debug;
|
|
17093
16918
|
})();
|
|
17094
16919
|
|
|
17095
|
-
/**
|
|
17096
|
-
* FileAuthMethod enum.
|
|
17097
|
-
* @name replit.goval.api.FileAuthMethod
|
|
17098
|
-
* @enum {number}
|
|
17099
|
-
* @property {number} GET=0 GET value
|
|
17100
|
-
* @property {number} HEAD=1 HEAD value
|
|
17101
|
-
* @property {number} PUT=2 PUT value
|
|
17102
|
-
* @property {number} DELETE=3 DELETE value
|
|
17103
|
-
*/
|
|
17104
|
-
api.FileAuthMethod = (function() {
|
|
17105
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
17106
|
-
values[valuesById[0] = "GET"] = 0;
|
|
17107
|
-
values[valuesById[1] = "HEAD"] = 1;
|
|
17108
|
-
values[valuesById[2] = "PUT"] = 2;
|
|
17109
|
-
values[valuesById[3] = "DELETE"] = 3;
|
|
17110
|
-
return values;
|
|
17111
|
-
})();
|
|
17112
|
-
|
|
17113
|
-
api.FileAuthReq = (function() {
|
|
17114
|
-
|
|
17115
|
-
/**
|
|
17116
|
-
* Properties of a FileAuthReq.
|
|
17117
|
-
* @memberof replit.goval.api
|
|
17118
|
-
* @interface IFileAuthReq
|
|
17119
|
-
* @property {replit.goval.api.File|replit.goval.api.IFile|null} [file] FileAuthReq file
|
|
17120
|
-
* @property {replit.goval.api.FileAuthMethod|null} [method] FileAuthReq method
|
|
17121
|
-
*/
|
|
17122
|
-
|
|
17123
|
-
/**
|
|
17124
|
-
* Constructs a new FileAuthReq.
|
|
17125
|
-
* @memberof replit.goval.api
|
|
17126
|
-
* @classdesc Represents a FileAuthReq.
|
|
17127
|
-
* @constructor
|
|
17128
|
-
* @param {replit.goval.api.IFileAuthReq=} [properties] Properties to set
|
|
17129
|
-
*/
|
|
17130
|
-
function FileAuthReq(properties) {
|
|
17131
|
-
if (properties)
|
|
17132
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17133
|
-
if (properties[keys[i]] != null)
|
|
17134
|
-
this[keys[i]] = properties[keys[i]];
|
|
17135
|
-
}
|
|
17136
|
-
|
|
17137
|
-
/**
|
|
17138
|
-
* FileAuthReq file.
|
|
17139
|
-
* @member {replit.goval.api.File|null|undefined} file
|
|
17140
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17141
|
-
* @instance
|
|
17142
|
-
*/
|
|
17143
|
-
FileAuthReq.prototype.file = null;
|
|
17144
|
-
|
|
17145
|
-
/**
|
|
17146
|
-
* FileAuthReq method.
|
|
17147
|
-
* @member {replit.goval.api.FileAuthMethod} method
|
|
17148
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17149
|
-
* @instance
|
|
17150
|
-
*/
|
|
17151
|
-
FileAuthReq.prototype.method = 0;
|
|
17152
|
-
|
|
17153
|
-
/**
|
|
17154
|
-
* Creates a new FileAuthReq instance using the specified properties.
|
|
17155
|
-
* @function create
|
|
17156
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17157
|
-
* @static
|
|
17158
|
-
* @param {replit.goval.api.IFileAuthReq=} [properties] Properties to set
|
|
17159
|
-
* @returns {replit.goval.api.FileAuthReq} FileAuthReq instance
|
|
17160
|
-
*/
|
|
17161
|
-
FileAuthReq.create = function create(properties) {
|
|
17162
|
-
return FileAuthReq.fromObject(properties);
|
|
17163
|
-
};
|
|
17164
|
-
|
|
17165
|
-
/**
|
|
17166
|
-
* Encodes the specified FileAuthReq message. Does not implicitly {@link replit.goval.api.FileAuthReq.verify|verify} messages.
|
|
17167
|
-
* @function encode
|
|
17168
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17169
|
-
* @static
|
|
17170
|
-
* @param {replit.goval.api.FileAuthReq} message FileAuthReq message or plain object to encode
|
|
17171
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17172
|
-
* @returns {$protobuf.Writer} Writer
|
|
17173
|
-
*/
|
|
17174
|
-
FileAuthReq.encode = function encode(message, writer) {
|
|
17175
|
-
if (!writer)
|
|
17176
|
-
writer = $Writer.create();
|
|
17177
|
-
if (message.file != null && Object.hasOwnProperty.call(message, "file"))
|
|
17178
|
-
$root.replit.goval.api.File.encode(message.file, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17179
|
-
if (message.method != null && Object.hasOwnProperty.call(message, "method"))
|
|
17180
|
-
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.method);
|
|
17181
|
-
return writer;
|
|
17182
|
-
};
|
|
17183
|
-
|
|
17184
|
-
/**
|
|
17185
|
-
* Encodes the specified FileAuthReq message, length delimited. Does not implicitly {@link replit.goval.api.FileAuthReq.verify|verify} messages.
|
|
17186
|
-
* @function encodeDelimited
|
|
17187
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17188
|
-
* @static
|
|
17189
|
-
* @param {replit.goval.api.FileAuthReq} message FileAuthReq message or plain object to encode
|
|
17190
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17191
|
-
* @returns {$protobuf.Writer} Writer
|
|
17192
|
-
*/
|
|
17193
|
-
FileAuthReq.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17194
|
-
return this.encode(message, writer).ldelim();
|
|
17195
|
-
};
|
|
17196
|
-
|
|
17197
|
-
/**
|
|
17198
|
-
* Decodes a FileAuthReq message from the specified reader or buffer.
|
|
17199
|
-
* @function decode
|
|
17200
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17201
|
-
* @static
|
|
17202
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17203
|
-
* @param {number} [length] Message length if known beforehand
|
|
17204
|
-
* @returns {replit.goval.api.FileAuthReq} FileAuthReq
|
|
17205
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17206
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17207
|
-
*/
|
|
17208
|
-
FileAuthReq.decode = function decode(reader, length) {
|
|
17209
|
-
if (!(reader instanceof $Reader))
|
|
17210
|
-
reader = $Reader.create(reader);
|
|
17211
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FileAuthReq();
|
|
17212
|
-
while (reader.pos < end) {
|
|
17213
|
-
var tag = reader.uint32();
|
|
17214
|
-
switch (tag >>> 3) {
|
|
17215
|
-
case 1: {
|
|
17216
|
-
message.file = $root.replit.goval.api.File.decode(reader, reader.uint32());
|
|
17217
|
-
break;
|
|
17218
|
-
}
|
|
17219
|
-
case 2: {
|
|
17220
|
-
message.method = reader.int32();
|
|
17221
|
-
break;
|
|
17222
|
-
}
|
|
17223
|
-
default:
|
|
17224
|
-
reader.skipType(tag & 7);
|
|
17225
|
-
break;
|
|
17226
|
-
}
|
|
17227
|
-
}
|
|
17228
|
-
return message;
|
|
17229
|
-
};
|
|
17230
|
-
|
|
17231
|
-
/**
|
|
17232
|
-
* Decodes a FileAuthReq message from the specified reader or buffer, length delimited.
|
|
17233
|
-
* @function decodeDelimited
|
|
17234
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17235
|
-
* @static
|
|
17236
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17237
|
-
* @returns {replit.goval.api.FileAuthReq} FileAuthReq
|
|
17238
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17239
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17240
|
-
*/
|
|
17241
|
-
FileAuthReq.decodeDelimited = function decodeDelimited(reader) {
|
|
17242
|
-
if (!(reader instanceof $Reader))
|
|
17243
|
-
reader = new $Reader(reader);
|
|
17244
|
-
return this.decode(reader, reader.uint32());
|
|
17245
|
-
};
|
|
17246
|
-
|
|
17247
|
-
/**
|
|
17248
|
-
* Verifies a FileAuthReq message.
|
|
17249
|
-
* @function verify
|
|
17250
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17251
|
-
* @static
|
|
17252
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
17253
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17254
|
-
*/
|
|
17255
|
-
FileAuthReq.verify = function verify(message) {
|
|
17256
|
-
if (typeof message !== "object" || message === null)
|
|
17257
|
-
return "object expected";
|
|
17258
|
-
if (message.file != null && message.hasOwnProperty("file")) {
|
|
17259
|
-
var error = $root.replit.goval.api.File.verify(message.file);
|
|
17260
|
-
if (error)
|
|
17261
|
-
return "file." + error;
|
|
17262
|
-
}
|
|
17263
|
-
if (message.method != null && message.hasOwnProperty("method"))
|
|
17264
|
-
switch (message.method) {
|
|
17265
|
-
default:
|
|
17266
|
-
return "method: enum value expected";
|
|
17267
|
-
case 0:
|
|
17268
|
-
case 1:
|
|
17269
|
-
case 2:
|
|
17270
|
-
case 3:
|
|
17271
|
-
break;
|
|
17272
|
-
}
|
|
17273
|
-
return null;
|
|
17274
|
-
};
|
|
17275
|
-
|
|
17276
|
-
/**
|
|
17277
|
-
* Creates a FileAuthReq message from a plain object. Also converts values to their respective internal types.
|
|
17278
|
-
* @function fromObject
|
|
17279
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17280
|
-
* @static
|
|
17281
|
-
* @param {Object.<string,*>} object Plain object
|
|
17282
|
-
* @returns {replit.goval.api.FileAuthReq} FileAuthReq
|
|
17283
|
-
*/
|
|
17284
|
-
FileAuthReq.fromObject = function fromObject(object) {
|
|
17285
|
-
if (object instanceof $root.replit.goval.api.FileAuthReq)
|
|
17286
|
-
return object;
|
|
17287
|
-
var message = new $root.replit.goval.api.FileAuthReq();
|
|
17288
|
-
if (object.file != null) {
|
|
17289
|
-
if (typeof object.file !== "object")
|
|
17290
|
-
throw TypeError(".replit.goval.api.FileAuthReq.file: object expected");
|
|
17291
|
-
message.file = $root.replit.goval.api.File.fromObject(object.file);
|
|
17292
|
-
}
|
|
17293
|
-
switch (object.method) {
|
|
17294
|
-
default:
|
|
17295
|
-
if (typeof object.method === "number") {
|
|
17296
|
-
message.method = object.method;
|
|
17297
|
-
break;
|
|
17298
|
-
}
|
|
17299
|
-
break;
|
|
17300
|
-
case "GET":
|
|
17301
|
-
case 0:
|
|
17302
|
-
message.method = 0;
|
|
17303
|
-
break;
|
|
17304
|
-
case "HEAD":
|
|
17305
|
-
case 1:
|
|
17306
|
-
message.method = 1;
|
|
17307
|
-
break;
|
|
17308
|
-
case "PUT":
|
|
17309
|
-
case 2:
|
|
17310
|
-
message.method = 2;
|
|
17311
|
-
break;
|
|
17312
|
-
case "DELETE":
|
|
17313
|
-
case 3:
|
|
17314
|
-
message.method = 3;
|
|
17315
|
-
break;
|
|
17316
|
-
}
|
|
17317
|
-
return message;
|
|
17318
|
-
};
|
|
17319
|
-
|
|
17320
|
-
/**
|
|
17321
|
-
* Creates a plain object from a FileAuthReq message. Also converts values to other types if specified.
|
|
17322
|
-
* @function toObject
|
|
17323
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17324
|
-
* @static
|
|
17325
|
-
* @param {replit.goval.api.FileAuthReq} message FileAuthReq
|
|
17326
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17327
|
-
* @returns {Object.<string,*>} Plain object
|
|
17328
|
-
*/
|
|
17329
|
-
FileAuthReq.toObject = function toObject(message, options) {
|
|
17330
|
-
if (!options)
|
|
17331
|
-
options = {};
|
|
17332
|
-
var object = {};
|
|
17333
|
-
if (options.defaults) {
|
|
17334
|
-
object.file = null;
|
|
17335
|
-
object.method = options.enums === String ? "GET" : 0;
|
|
17336
|
-
}
|
|
17337
|
-
if (message.file != null && message.hasOwnProperty("file"))
|
|
17338
|
-
object.file = $root.replit.goval.api.File.toObject(message.file, options);
|
|
17339
|
-
if (message.method != null && message.hasOwnProperty("method"))
|
|
17340
|
-
object.method = options.enums === String ? $root.replit.goval.api.FileAuthMethod[message.method] === undefined ? message.method : $root.replit.goval.api.FileAuthMethod[message.method] : message.method;
|
|
17341
|
-
return object;
|
|
17342
|
-
};
|
|
17343
|
-
|
|
17344
|
-
/**
|
|
17345
|
-
* Converts this FileAuthReq to JSON.
|
|
17346
|
-
* @function toJSON
|
|
17347
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17348
|
-
* @instance
|
|
17349
|
-
* @returns {Object.<string,*>} JSON object
|
|
17350
|
-
*/
|
|
17351
|
-
FileAuthReq.prototype.toJSON = function toJSON() {
|
|
17352
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17353
|
-
};
|
|
17354
|
-
|
|
17355
|
-
/**
|
|
17356
|
-
* Gets the default type url for FileAuthReq
|
|
17357
|
-
* @function getTypeUrl
|
|
17358
|
-
* @memberof replit.goval.api.FileAuthReq
|
|
17359
|
-
* @static
|
|
17360
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17361
|
-
* @returns {string} The default type url
|
|
17362
|
-
*/
|
|
17363
|
-
FileAuthReq.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17364
|
-
if (typeUrlPrefix === undefined) {
|
|
17365
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
17366
|
-
}
|
|
17367
|
-
return typeUrlPrefix + "/replit.goval.api.FileAuthReq";
|
|
17368
|
-
};
|
|
17369
|
-
|
|
17370
|
-
return FileAuthReq;
|
|
17371
|
-
})();
|
|
17372
|
-
|
|
17373
|
-
api.MultiFileAuthRes = (function() {
|
|
17374
|
-
|
|
17375
|
-
/**
|
|
17376
|
-
* Properties of a MultiFileAuthRes.
|
|
17377
|
-
* @memberof replit.goval.api
|
|
17378
|
-
* @interface IMultiFileAuthRes
|
|
17379
|
-
* @property {replit.goval.api.FileAuthRes|replit.goval.api.IFileAuthRes|null} [put] MultiFileAuthRes put
|
|
17380
|
-
* @property {replit.goval.api.FileAuthRes|replit.goval.api.IFileAuthRes|null} [del] MultiFileAuthRes del
|
|
17381
|
-
* @property {replit.goval.api.FileAuthRes|replit.goval.api.IFileAuthRes|null} [get] MultiFileAuthRes get
|
|
17382
|
-
*/
|
|
17383
|
-
|
|
17384
|
-
/**
|
|
17385
|
-
* Constructs a new MultiFileAuthRes.
|
|
17386
|
-
* @memberof replit.goval.api
|
|
17387
|
-
* @classdesc Represents a MultiFileAuthRes.
|
|
17388
|
-
* @constructor
|
|
17389
|
-
* @param {replit.goval.api.IMultiFileAuthRes=} [properties] Properties to set
|
|
17390
|
-
*/
|
|
17391
|
-
function MultiFileAuthRes(properties) {
|
|
17392
|
-
if (properties)
|
|
17393
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17394
|
-
if (properties[keys[i]] != null)
|
|
17395
|
-
this[keys[i]] = properties[keys[i]];
|
|
17396
|
-
}
|
|
17397
|
-
|
|
17398
|
-
/**
|
|
17399
|
-
* MultiFileAuthRes put.
|
|
17400
|
-
* @member {replit.goval.api.FileAuthRes|null|undefined} put
|
|
17401
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17402
|
-
* @instance
|
|
17403
|
-
*/
|
|
17404
|
-
MultiFileAuthRes.prototype.put = null;
|
|
17405
|
-
|
|
17406
|
-
/**
|
|
17407
|
-
* MultiFileAuthRes del.
|
|
17408
|
-
* @member {replit.goval.api.FileAuthRes|null|undefined} del
|
|
17409
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17410
|
-
* @instance
|
|
17411
|
-
*/
|
|
17412
|
-
MultiFileAuthRes.prototype.del = null;
|
|
17413
|
-
|
|
17414
|
-
/**
|
|
17415
|
-
* MultiFileAuthRes get.
|
|
17416
|
-
* @member {replit.goval.api.FileAuthRes|null|undefined} get
|
|
17417
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17418
|
-
* @instance
|
|
17419
|
-
*/
|
|
17420
|
-
MultiFileAuthRes.prototype.get = null;
|
|
17421
|
-
|
|
17422
|
-
/**
|
|
17423
|
-
* Creates a new MultiFileAuthRes instance using the specified properties.
|
|
17424
|
-
* @function create
|
|
17425
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17426
|
-
* @static
|
|
17427
|
-
* @param {replit.goval.api.IMultiFileAuthRes=} [properties] Properties to set
|
|
17428
|
-
* @returns {replit.goval.api.MultiFileAuthRes} MultiFileAuthRes instance
|
|
17429
|
-
*/
|
|
17430
|
-
MultiFileAuthRes.create = function create(properties) {
|
|
17431
|
-
return MultiFileAuthRes.fromObject(properties);
|
|
17432
|
-
};
|
|
17433
|
-
|
|
17434
|
-
/**
|
|
17435
|
-
* Encodes the specified MultiFileAuthRes message. Does not implicitly {@link replit.goval.api.MultiFileAuthRes.verify|verify} messages.
|
|
17436
|
-
* @function encode
|
|
17437
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17438
|
-
* @static
|
|
17439
|
-
* @param {replit.goval.api.MultiFileAuthRes} message MultiFileAuthRes message or plain object to encode
|
|
17440
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17441
|
-
* @returns {$protobuf.Writer} Writer
|
|
17442
|
-
*/
|
|
17443
|
-
MultiFileAuthRes.encode = function encode(message, writer) {
|
|
17444
|
-
if (!writer)
|
|
17445
|
-
writer = $Writer.create();
|
|
17446
|
-
if (message.put != null && Object.hasOwnProperty.call(message, "put"))
|
|
17447
|
-
$root.replit.goval.api.FileAuthRes.encode(message.put, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17448
|
-
if (message.del != null && Object.hasOwnProperty.call(message, "del"))
|
|
17449
|
-
$root.replit.goval.api.FileAuthRes.encode(message.del, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
17450
|
-
if (message.get != null && Object.hasOwnProperty.call(message, "get"))
|
|
17451
|
-
$root.replit.goval.api.FileAuthRes.encode(message.get, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
17452
|
-
return writer;
|
|
17453
|
-
};
|
|
17454
|
-
|
|
17455
|
-
/**
|
|
17456
|
-
* Encodes the specified MultiFileAuthRes message, length delimited. Does not implicitly {@link replit.goval.api.MultiFileAuthRes.verify|verify} messages.
|
|
17457
|
-
* @function encodeDelimited
|
|
17458
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17459
|
-
* @static
|
|
17460
|
-
* @param {replit.goval.api.MultiFileAuthRes} message MultiFileAuthRes message or plain object to encode
|
|
17461
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17462
|
-
* @returns {$protobuf.Writer} Writer
|
|
17463
|
-
*/
|
|
17464
|
-
MultiFileAuthRes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17465
|
-
return this.encode(message, writer).ldelim();
|
|
17466
|
-
};
|
|
17467
|
-
|
|
17468
|
-
/**
|
|
17469
|
-
* Decodes a MultiFileAuthRes message from the specified reader or buffer.
|
|
17470
|
-
* @function decode
|
|
17471
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17472
|
-
* @static
|
|
17473
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17474
|
-
* @param {number} [length] Message length if known beforehand
|
|
17475
|
-
* @returns {replit.goval.api.MultiFileAuthRes} MultiFileAuthRes
|
|
17476
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17477
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17478
|
-
*/
|
|
17479
|
-
MultiFileAuthRes.decode = function decode(reader, length) {
|
|
17480
|
-
if (!(reader instanceof $Reader))
|
|
17481
|
-
reader = $Reader.create(reader);
|
|
17482
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.MultiFileAuthRes();
|
|
17483
|
-
while (reader.pos < end) {
|
|
17484
|
-
var tag = reader.uint32();
|
|
17485
|
-
switch (tag >>> 3) {
|
|
17486
|
-
case 1: {
|
|
17487
|
-
message.put = $root.replit.goval.api.FileAuthRes.decode(reader, reader.uint32());
|
|
17488
|
-
break;
|
|
17489
|
-
}
|
|
17490
|
-
case 2: {
|
|
17491
|
-
message.del = $root.replit.goval.api.FileAuthRes.decode(reader, reader.uint32());
|
|
17492
|
-
break;
|
|
17493
|
-
}
|
|
17494
|
-
case 3: {
|
|
17495
|
-
message.get = $root.replit.goval.api.FileAuthRes.decode(reader, reader.uint32());
|
|
17496
|
-
break;
|
|
17497
|
-
}
|
|
17498
|
-
default:
|
|
17499
|
-
reader.skipType(tag & 7);
|
|
17500
|
-
break;
|
|
17501
|
-
}
|
|
17502
|
-
}
|
|
17503
|
-
return message;
|
|
17504
|
-
};
|
|
17505
|
-
|
|
17506
|
-
/**
|
|
17507
|
-
* Decodes a MultiFileAuthRes message from the specified reader or buffer, length delimited.
|
|
17508
|
-
* @function decodeDelimited
|
|
17509
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17510
|
-
* @static
|
|
17511
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17512
|
-
* @returns {replit.goval.api.MultiFileAuthRes} MultiFileAuthRes
|
|
17513
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17514
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17515
|
-
*/
|
|
17516
|
-
MultiFileAuthRes.decodeDelimited = function decodeDelimited(reader) {
|
|
17517
|
-
if (!(reader instanceof $Reader))
|
|
17518
|
-
reader = new $Reader(reader);
|
|
17519
|
-
return this.decode(reader, reader.uint32());
|
|
17520
|
-
};
|
|
17521
|
-
|
|
17522
|
-
/**
|
|
17523
|
-
* Verifies a MultiFileAuthRes message.
|
|
17524
|
-
* @function verify
|
|
17525
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17526
|
-
* @static
|
|
17527
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
17528
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17529
|
-
*/
|
|
17530
|
-
MultiFileAuthRes.verify = function verify(message) {
|
|
17531
|
-
if (typeof message !== "object" || message === null)
|
|
17532
|
-
return "object expected";
|
|
17533
|
-
if (message.put != null && message.hasOwnProperty("put")) {
|
|
17534
|
-
var error = $root.replit.goval.api.FileAuthRes.verify(message.put);
|
|
17535
|
-
if (error)
|
|
17536
|
-
return "put." + error;
|
|
17537
|
-
}
|
|
17538
|
-
if (message.del != null && message.hasOwnProperty("del")) {
|
|
17539
|
-
var error = $root.replit.goval.api.FileAuthRes.verify(message.del);
|
|
17540
|
-
if (error)
|
|
17541
|
-
return "del." + error;
|
|
17542
|
-
}
|
|
17543
|
-
if (message.get != null && message.hasOwnProperty("get")) {
|
|
17544
|
-
var error = $root.replit.goval.api.FileAuthRes.verify(message.get);
|
|
17545
|
-
if (error)
|
|
17546
|
-
return "get." + error;
|
|
17547
|
-
}
|
|
17548
|
-
return null;
|
|
17549
|
-
};
|
|
17550
|
-
|
|
17551
|
-
/**
|
|
17552
|
-
* Creates a MultiFileAuthRes message from a plain object. Also converts values to their respective internal types.
|
|
17553
|
-
* @function fromObject
|
|
17554
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17555
|
-
* @static
|
|
17556
|
-
* @param {Object.<string,*>} object Plain object
|
|
17557
|
-
* @returns {replit.goval.api.MultiFileAuthRes} MultiFileAuthRes
|
|
17558
|
-
*/
|
|
17559
|
-
MultiFileAuthRes.fromObject = function fromObject(object) {
|
|
17560
|
-
if (object instanceof $root.replit.goval.api.MultiFileAuthRes)
|
|
17561
|
-
return object;
|
|
17562
|
-
var message = new $root.replit.goval.api.MultiFileAuthRes();
|
|
17563
|
-
if (object.put != null) {
|
|
17564
|
-
if (typeof object.put !== "object")
|
|
17565
|
-
throw TypeError(".replit.goval.api.MultiFileAuthRes.put: object expected");
|
|
17566
|
-
message.put = $root.replit.goval.api.FileAuthRes.fromObject(object.put);
|
|
17567
|
-
}
|
|
17568
|
-
if (object.del != null) {
|
|
17569
|
-
if (typeof object.del !== "object")
|
|
17570
|
-
throw TypeError(".replit.goval.api.MultiFileAuthRes.del: object expected");
|
|
17571
|
-
message.del = $root.replit.goval.api.FileAuthRes.fromObject(object.del);
|
|
17572
|
-
}
|
|
17573
|
-
if (object.get != null) {
|
|
17574
|
-
if (typeof object.get !== "object")
|
|
17575
|
-
throw TypeError(".replit.goval.api.MultiFileAuthRes.get: object expected");
|
|
17576
|
-
message.get = $root.replit.goval.api.FileAuthRes.fromObject(object.get);
|
|
17577
|
-
}
|
|
17578
|
-
return message;
|
|
17579
|
-
};
|
|
17580
|
-
|
|
17581
|
-
/**
|
|
17582
|
-
* Creates a plain object from a MultiFileAuthRes message. Also converts values to other types if specified.
|
|
17583
|
-
* @function toObject
|
|
17584
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17585
|
-
* @static
|
|
17586
|
-
* @param {replit.goval.api.MultiFileAuthRes} message MultiFileAuthRes
|
|
17587
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17588
|
-
* @returns {Object.<string,*>} Plain object
|
|
17589
|
-
*/
|
|
17590
|
-
MultiFileAuthRes.toObject = function toObject(message, options) {
|
|
17591
|
-
if (!options)
|
|
17592
|
-
options = {};
|
|
17593
|
-
var object = {};
|
|
17594
|
-
if (options.defaults) {
|
|
17595
|
-
object.put = null;
|
|
17596
|
-
object.del = null;
|
|
17597
|
-
object.get = null;
|
|
17598
|
-
}
|
|
17599
|
-
if (message.put != null && message.hasOwnProperty("put"))
|
|
17600
|
-
object.put = $root.replit.goval.api.FileAuthRes.toObject(message.put, options);
|
|
17601
|
-
if (message.del != null && message.hasOwnProperty("del"))
|
|
17602
|
-
object.del = $root.replit.goval.api.FileAuthRes.toObject(message.del, options);
|
|
17603
|
-
if (message.get != null && message.hasOwnProperty("get"))
|
|
17604
|
-
object.get = $root.replit.goval.api.FileAuthRes.toObject(message.get, options);
|
|
17605
|
-
return object;
|
|
17606
|
-
};
|
|
17607
|
-
|
|
17608
|
-
/**
|
|
17609
|
-
* Converts this MultiFileAuthRes to JSON.
|
|
17610
|
-
* @function toJSON
|
|
17611
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17612
|
-
* @instance
|
|
17613
|
-
* @returns {Object.<string,*>} JSON object
|
|
17614
|
-
*/
|
|
17615
|
-
MultiFileAuthRes.prototype.toJSON = function toJSON() {
|
|
17616
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17617
|
-
};
|
|
17618
|
-
|
|
17619
|
-
/**
|
|
17620
|
-
* Gets the default type url for MultiFileAuthRes
|
|
17621
|
-
* @function getTypeUrl
|
|
17622
|
-
* @memberof replit.goval.api.MultiFileAuthRes
|
|
17623
|
-
* @static
|
|
17624
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17625
|
-
* @returns {string} The default type url
|
|
17626
|
-
*/
|
|
17627
|
-
MultiFileAuthRes.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17628
|
-
if (typeUrlPrefix === undefined) {
|
|
17629
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
17630
|
-
}
|
|
17631
|
-
return typeUrlPrefix + "/replit.goval.api.MultiFileAuthRes";
|
|
17632
|
-
};
|
|
17633
|
-
|
|
17634
|
-
return MultiFileAuthRes;
|
|
17635
|
-
})();
|
|
17636
|
-
|
|
17637
|
-
api.FileAuthRes = (function() {
|
|
17638
|
-
|
|
17639
|
-
/**
|
|
17640
|
-
* Properties of a FileAuthRes.
|
|
17641
|
-
* @memberof replit.goval.api
|
|
17642
|
-
* @interface IFileAuthRes
|
|
17643
|
-
* @property {replit.goval.api.File|replit.goval.api.IFile|null} [file] FileAuthRes file
|
|
17644
|
-
* @property {string|null} [url] FileAuthRes url
|
|
17645
|
-
* @property {replit.goval.api.FileAuthMethod|null} [method] FileAuthRes method
|
|
17646
|
-
* @property {number|null} [expire] FileAuthRes expire
|
|
17647
|
-
* @property {string|null} [error] FileAuthRes error
|
|
17648
|
-
* @property {boolean|null} [replError] FileAuthRes replError
|
|
17649
|
-
*/
|
|
17650
|
-
|
|
17651
|
-
/**
|
|
17652
|
-
* Constructs a new FileAuthRes.
|
|
17653
|
-
* @memberof replit.goval.api
|
|
17654
|
-
* @classdesc Represents a FileAuthRes.
|
|
17655
|
-
* @constructor
|
|
17656
|
-
* @param {replit.goval.api.IFileAuthRes=} [properties] Properties to set
|
|
17657
|
-
*/
|
|
17658
|
-
function FileAuthRes(properties) {
|
|
17659
|
-
if (properties)
|
|
17660
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17661
|
-
if (properties[keys[i]] != null)
|
|
17662
|
-
this[keys[i]] = properties[keys[i]];
|
|
17663
|
-
}
|
|
17664
|
-
|
|
17665
|
-
/**
|
|
17666
|
-
* FileAuthRes file.
|
|
17667
|
-
* @member {replit.goval.api.File|null|undefined} file
|
|
17668
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17669
|
-
* @instance
|
|
17670
|
-
*/
|
|
17671
|
-
FileAuthRes.prototype.file = null;
|
|
17672
|
-
|
|
17673
|
-
/**
|
|
17674
|
-
* FileAuthRes url.
|
|
17675
|
-
* @member {string} url
|
|
17676
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17677
|
-
* @instance
|
|
17678
|
-
*/
|
|
17679
|
-
FileAuthRes.prototype.url = "";
|
|
17680
|
-
|
|
17681
|
-
/**
|
|
17682
|
-
* FileAuthRes method.
|
|
17683
|
-
* @member {replit.goval.api.FileAuthMethod} method
|
|
17684
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17685
|
-
* @instance
|
|
17686
|
-
*/
|
|
17687
|
-
FileAuthRes.prototype.method = 0;
|
|
17688
|
-
|
|
17689
|
-
/**
|
|
17690
|
-
* FileAuthRes expire.
|
|
17691
|
-
* @member {number} expire
|
|
17692
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17693
|
-
* @instance
|
|
17694
|
-
*/
|
|
17695
|
-
FileAuthRes.prototype.expire = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
17696
|
-
|
|
17697
|
-
/**
|
|
17698
|
-
* FileAuthRes error.
|
|
17699
|
-
* @member {string} error
|
|
17700
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17701
|
-
* @instance
|
|
17702
|
-
*/
|
|
17703
|
-
FileAuthRes.prototype.error = "";
|
|
17704
|
-
|
|
17705
|
-
/**
|
|
17706
|
-
* FileAuthRes replError.
|
|
17707
|
-
* @member {boolean} replError
|
|
17708
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17709
|
-
* @instance
|
|
17710
|
-
*/
|
|
17711
|
-
FileAuthRes.prototype.replError = false;
|
|
17712
|
-
|
|
17713
|
-
/**
|
|
17714
|
-
* Creates a new FileAuthRes instance using the specified properties.
|
|
17715
|
-
* @function create
|
|
17716
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17717
|
-
* @static
|
|
17718
|
-
* @param {replit.goval.api.IFileAuthRes=} [properties] Properties to set
|
|
17719
|
-
* @returns {replit.goval.api.FileAuthRes} FileAuthRes instance
|
|
17720
|
-
*/
|
|
17721
|
-
FileAuthRes.create = function create(properties) {
|
|
17722
|
-
return FileAuthRes.fromObject(properties);
|
|
17723
|
-
};
|
|
17724
|
-
|
|
17725
|
-
/**
|
|
17726
|
-
* Encodes the specified FileAuthRes message. Does not implicitly {@link replit.goval.api.FileAuthRes.verify|verify} messages.
|
|
17727
|
-
* @function encode
|
|
17728
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17729
|
-
* @static
|
|
17730
|
-
* @param {replit.goval.api.FileAuthRes} message FileAuthRes message or plain object to encode
|
|
17731
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17732
|
-
* @returns {$protobuf.Writer} Writer
|
|
17733
|
-
*/
|
|
17734
|
-
FileAuthRes.encode = function encode(message, writer) {
|
|
17735
|
-
if (!writer)
|
|
17736
|
-
writer = $Writer.create();
|
|
17737
|
-
if (message.file != null && Object.hasOwnProperty.call(message, "file"))
|
|
17738
|
-
$root.replit.goval.api.File.encode(message.file, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17739
|
-
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
17740
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
|
|
17741
|
-
if (message.method != null && Object.hasOwnProperty.call(message, "method"))
|
|
17742
|
-
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.method);
|
|
17743
|
-
if (message.expire != null && Object.hasOwnProperty.call(message, "expire"))
|
|
17744
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.expire);
|
|
17745
|
-
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
17746
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.error);
|
|
17747
|
-
if (message.replError != null && Object.hasOwnProperty.call(message, "replError"))
|
|
17748
|
-
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.replError);
|
|
17749
|
-
return writer;
|
|
17750
|
-
};
|
|
17751
|
-
|
|
17752
|
-
/**
|
|
17753
|
-
* Encodes the specified FileAuthRes message, length delimited. Does not implicitly {@link replit.goval.api.FileAuthRes.verify|verify} messages.
|
|
17754
|
-
* @function encodeDelimited
|
|
17755
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17756
|
-
* @static
|
|
17757
|
-
* @param {replit.goval.api.FileAuthRes} message FileAuthRes message or plain object to encode
|
|
17758
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17759
|
-
* @returns {$protobuf.Writer} Writer
|
|
17760
|
-
*/
|
|
17761
|
-
FileAuthRes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17762
|
-
return this.encode(message, writer).ldelim();
|
|
17763
|
-
};
|
|
17764
|
-
|
|
17765
|
-
/**
|
|
17766
|
-
* Decodes a FileAuthRes message from the specified reader or buffer.
|
|
17767
|
-
* @function decode
|
|
17768
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17769
|
-
* @static
|
|
17770
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17771
|
-
* @param {number} [length] Message length if known beforehand
|
|
17772
|
-
* @returns {replit.goval.api.FileAuthRes} FileAuthRes
|
|
17773
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17774
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17775
|
-
*/
|
|
17776
|
-
FileAuthRes.decode = function decode(reader, length) {
|
|
17777
|
-
if (!(reader instanceof $Reader))
|
|
17778
|
-
reader = $Reader.create(reader);
|
|
17779
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FileAuthRes();
|
|
17780
|
-
while (reader.pos < end) {
|
|
17781
|
-
var tag = reader.uint32();
|
|
17782
|
-
switch (tag >>> 3) {
|
|
17783
|
-
case 1: {
|
|
17784
|
-
message.file = $root.replit.goval.api.File.decode(reader, reader.uint32());
|
|
17785
|
-
break;
|
|
17786
|
-
}
|
|
17787
|
-
case 2: {
|
|
17788
|
-
message.url = reader.string();
|
|
17789
|
-
break;
|
|
17790
|
-
}
|
|
17791
|
-
case 3: {
|
|
17792
|
-
message.method = reader.int32();
|
|
17793
|
-
break;
|
|
17794
|
-
}
|
|
17795
|
-
case 4: {
|
|
17796
|
-
message.expire = reader.int64();
|
|
17797
|
-
break;
|
|
17798
|
-
}
|
|
17799
|
-
case 5: {
|
|
17800
|
-
message.error = reader.string();
|
|
17801
|
-
break;
|
|
17802
|
-
}
|
|
17803
|
-
case 7: {
|
|
17804
|
-
message.replError = reader.bool();
|
|
17805
|
-
break;
|
|
17806
|
-
}
|
|
17807
|
-
default:
|
|
17808
|
-
reader.skipType(tag & 7);
|
|
17809
|
-
break;
|
|
17810
|
-
}
|
|
17811
|
-
}
|
|
17812
|
-
return message;
|
|
17813
|
-
};
|
|
17814
|
-
|
|
17815
|
-
/**
|
|
17816
|
-
* Decodes a FileAuthRes message from the specified reader or buffer, length delimited.
|
|
17817
|
-
* @function decodeDelimited
|
|
17818
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17819
|
-
* @static
|
|
17820
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17821
|
-
* @returns {replit.goval.api.FileAuthRes} FileAuthRes
|
|
17822
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17823
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17824
|
-
*/
|
|
17825
|
-
FileAuthRes.decodeDelimited = function decodeDelimited(reader) {
|
|
17826
|
-
if (!(reader instanceof $Reader))
|
|
17827
|
-
reader = new $Reader(reader);
|
|
17828
|
-
return this.decode(reader, reader.uint32());
|
|
17829
|
-
};
|
|
17830
|
-
|
|
17831
|
-
/**
|
|
17832
|
-
* Verifies a FileAuthRes message.
|
|
17833
|
-
* @function verify
|
|
17834
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17835
|
-
* @static
|
|
17836
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
17837
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17838
|
-
*/
|
|
17839
|
-
FileAuthRes.verify = function verify(message) {
|
|
17840
|
-
if (typeof message !== "object" || message === null)
|
|
17841
|
-
return "object expected";
|
|
17842
|
-
if (message.file != null && message.hasOwnProperty("file")) {
|
|
17843
|
-
var error = $root.replit.goval.api.File.verify(message.file);
|
|
17844
|
-
if (error)
|
|
17845
|
-
return "file." + error;
|
|
17846
|
-
}
|
|
17847
|
-
if (message.url != null && message.hasOwnProperty("url"))
|
|
17848
|
-
if (!$util.isString(message.url))
|
|
17849
|
-
return "url: string expected";
|
|
17850
|
-
if (message.method != null && message.hasOwnProperty("method"))
|
|
17851
|
-
switch (message.method) {
|
|
17852
|
-
default:
|
|
17853
|
-
return "method: enum value expected";
|
|
17854
|
-
case 0:
|
|
17855
|
-
case 1:
|
|
17856
|
-
case 2:
|
|
17857
|
-
case 3:
|
|
17858
|
-
break;
|
|
17859
|
-
}
|
|
17860
|
-
if (message.expire != null && message.hasOwnProperty("expire"))
|
|
17861
|
-
if (!$util.isInteger(message.expire) && !(message.expire && $util.isInteger(message.expire.low) && $util.isInteger(message.expire.high)))
|
|
17862
|
-
return "expire: integer|Long expected";
|
|
17863
|
-
if (message.error != null && message.hasOwnProperty("error"))
|
|
17864
|
-
if (!$util.isString(message.error))
|
|
17865
|
-
return "error: string expected";
|
|
17866
|
-
if (message.replError != null && message.hasOwnProperty("replError"))
|
|
17867
|
-
if (typeof message.replError !== "boolean")
|
|
17868
|
-
return "replError: boolean expected";
|
|
17869
|
-
return null;
|
|
17870
|
-
};
|
|
17871
|
-
|
|
17872
|
-
/**
|
|
17873
|
-
* Creates a FileAuthRes message from a plain object. Also converts values to their respective internal types.
|
|
17874
|
-
* @function fromObject
|
|
17875
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17876
|
-
* @static
|
|
17877
|
-
* @param {Object.<string,*>} object Plain object
|
|
17878
|
-
* @returns {replit.goval.api.FileAuthRes} FileAuthRes
|
|
17879
|
-
*/
|
|
17880
|
-
FileAuthRes.fromObject = function fromObject(object) {
|
|
17881
|
-
if (object instanceof $root.replit.goval.api.FileAuthRes)
|
|
17882
|
-
return object;
|
|
17883
|
-
var message = new $root.replit.goval.api.FileAuthRes();
|
|
17884
|
-
if (object.file != null) {
|
|
17885
|
-
if (typeof object.file !== "object")
|
|
17886
|
-
throw TypeError(".replit.goval.api.FileAuthRes.file: object expected");
|
|
17887
|
-
message.file = $root.replit.goval.api.File.fromObject(object.file);
|
|
17888
|
-
}
|
|
17889
|
-
if (object.url != null)
|
|
17890
|
-
message.url = String(object.url);
|
|
17891
|
-
switch (object.method) {
|
|
17892
|
-
default:
|
|
17893
|
-
if (typeof object.method === "number") {
|
|
17894
|
-
message.method = object.method;
|
|
17895
|
-
break;
|
|
17896
|
-
}
|
|
17897
|
-
break;
|
|
17898
|
-
case "GET":
|
|
17899
|
-
case 0:
|
|
17900
|
-
message.method = 0;
|
|
17901
|
-
break;
|
|
17902
|
-
case "HEAD":
|
|
17903
|
-
case 1:
|
|
17904
|
-
message.method = 1;
|
|
17905
|
-
break;
|
|
17906
|
-
case "PUT":
|
|
17907
|
-
case 2:
|
|
17908
|
-
message.method = 2;
|
|
17909
|
-
break;
|
|
17910
|
-
case "DELETE":
|
|
17911
|
-
case 3:
|
|
17912
|
-
message.method = 3;
|
|
17913
|
-
break;
|
|
17914
|
-
}
|
|
17915
|
-
if (object.expire != null)
|
|
17916
|
-
if ($util.Long)
|
|
17917
|
-
(message.expire = $util.Long.fromValue(object.expire)).unsigned = false;
|
|
17918
|
-
else if (typeof object.expire === "string")
|
|
17919
|
-
message.expire = parseInt(object.expire, 10);
|
|
17920
|
-
else if (typeof object.expire === "number")
|
|
17921
|
-
message.expire = object.expire;
|
|
17922
|
-
else if (typeof object.expire === "object")
|
|
17923
|
-
message.expire = new $util.LongBits(object.expire.low >>> 0, object.expire.high >>> 0).toNumber();
|
|
17924
|
-
if (object.error != null)
|
|
17925
|
-
message.error = String(object.error);
|
|
17926
|
-
if (object.replError != null)
|
|
17927
|
-
message.replError = Boolean(object.replError);
|
|
17928
|
-
return message;
|
|
17929
|
-
};
|
|
17930
|
-
|
|
17931
|
-
/**
|
|
17932
|
-
* Creates a plain object from a FileAuthRes message. Also converts values to other types if specified.
|
|
17933
|
-
* @function toObject
|
|
17934
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17935
|
-
* @static
|
|
17936
|
-
* @param {replit.goval.api.FileAuthRes} message FileAuthRes
|
|
17937
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17938
|
-
* @returns {Object.<string,*>} Plain object
|
|
17939
|
-
*/
|
|
17940
|
-
FileAuthRes.toObject = function toObject(message, options) {
|
|
17941
|
-
if (!options)
|
|
17942
|
-
options = {};
|
|
17943
|
-
var object = {};
|
|
17944
|
-
if (options.defaults) {
|
|
17945
|
-
object.file = null;
|
|
17946
|
-
object.url = "";
|
|
17947
|
-
object.method = options.enums === String ? "GET" : 0;
|
|
17948
|
-
if ($util.Long) {
|
|
17949
|
-
var long = new $util.Long(0, 0, false);
|
|
17950
|
-
object.expire = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17951
|
-
} else
|
|
17952
|
-
object.expire = options.longs === String ? "0" : 0;
|
|
17953
|
-
object.error = "";
|
|
17954
|
-
object.replError = false;
|
|
17955
|
-
}
|
|
17956
|
-
if (message.file != null && message.hasOwnProperty("file"))
|
|
17957
|
-
object.file = $root.replit.goval.api.File.toObject(message.file, options);
|
|
17958
|
-
if (message.url != null && message.hasOwnProperty("url"))
|
|
17959
|
-
object.url = message.url;
|
|
17960
|
-
if (message.method != null && message.hasOwnProperty("method"))
|
|
17961
|
-
object.method = options.enums === String ? $root.replit.goval.api.FileAuthMethod[message.method] === undefined ? message.method : $root.replit.goval.api.FileAuthMethod[message.method] : message.method;
|
|
17962
|
-
if (message.expire != null && message.hasOwnProperty("expire"))
|
|
17963
|
-
if (typeof message.expire === "number")
|
|
17964
|
-
object.expire = options.longs === String ? String(message.expire) : message.expire;
|
|
17965
|
-
else
|
|
17966
|
-
object.expire = options.longs === String ? $util.Long.prototype.toString.call(message.expire) : options.longs === Number ? new $util.LongBits(message.expire.low >>> 0, message.expire.high >>> 0).toNumber() : message.expire;
|
|
17967
|
-
if (message.error != null && message.hasOwnProperty("error"))
|
|
17968
|
-
object.error = message.error;
|
|
17969
|
-
if (message.replError != null && message.hasOwnProperty("replError"))
|
|
17970
|
-
object.replError = message.replError;
|
|
17971
|
-
return object;
|
|
17972
|
-
};
|
|
17973
|
-
|
|
17974
|
-
/**
|
|
17975
|
-
* Converts this FileAuthRes to JSON.
|
|
17976
|
-
* @function toJSON
|
|
17977
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17978
|
-
* @instance
|
|
17979
|
-
* @returns {Object.<string,*>} JSON object
|
|
17980
|
-
*/
|
|
17981
|
-
FileAuthRes.prototype.toJSON = function toJSON() {
|
|
17982
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17983
|
-
};
|
|
17984
|
-
|
|
17985
|
-
/**
|
|
17986
|
-
* Gets the default type url for FileAuthRes
|
|
17987
|
-
* @function getTypeUrl
|
|
17988
|
-
* @memberof replit.goval.api.FileAuthRes
|
|
17989
|
-
* @static
|
|
17990
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17991
|
-
* @returns {string} The default type url
|
|
17992
|
-
*/
|
|
17993
|
-
FileAuthRes.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17994
|
-
if (typeUrlPrefix === undefined) {
|
|
17995
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
17996
|
-
}
|
|
17997
|
-
return typeUrlPrefix + "/replit.goval.api.FileAuthRes";
|
|
17998
|
-
};
|
|
17999
|
-
|
|
18000
|
-
return FileAuthRes;
|
|
18001
|
-
})();
|
|
18002
|
-
|
|
18003
|
-
api.ListObjects = (function() {
|
|
18004
|
-
|
|
18005
|
-
/**
|
|
18006
|
-
* Properties of a ListObjects.
|
|
18007
|
-
* @memberof replit.goval.api
|
|
18008
|
-
* @interface IListObjects
|
|
18009
|
-
* @property {string|null} [prefix] ListObjects prefix
|
|
18010
|
-
*/
|
|
18011
|
-
|
|
18012
|
-
/**
|
|
18013
|
-
* Constructs a new ListObjects.
|
|
18014
|
-
* @memberof replit.goval.api
|
|
18015
|
-
* @classdesc Represents a ListObjects.
|
|
18016
|
-
* @constructor
|
|
18017
|
-
* @param {replit.goval.api.IListObjects=} [properties] Properties to set
|
|
18018
|
-
*/
|
|
18019
|
-
function ListObjects(properties) {
|
|
18020
|
-
if (properties)
|
|
18021
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18022
|
-
if (properties[keys[i]] != null)
|
|
18023
|
-
this[keys[i]] = properties[keys[i]];
|
|
18024
|
-
}
|
|
18025
|
-
|
|
18026
|
-
/**
|
|
18027
|
-
* ListObjects prefix.
|
|
18028
|
-
* @member {string} prefix
|
|
18029
|
-
* @memberof replit.goval.api.ListObjects
|
|
18030
|
-
* @instance
|
|
18031
|
-
*/
|
|
18032
|
-
ListObjects.prototype.prefix = "";
|
|
18033
|
-
|
|
18034
|
-
/**
|
|
18035
|
-
* Creates a new ListObjects instance using the specified properties.
|
|
18036
|
-
* @function create
|
|
18037
|
-
* @memberof replit.goval.api.ListObjects
|
|
18038
|
-
* @static
|
|
18039
|
-
* @param {replit.goval.api.IListObjects=} [properties] Properties to set
|
|
18040
|
-
* @returns {replit.goval.api.ListObjects} ListObjects instance
|
|
18041
|
-
*/
|
|
18042
|
-
ListObjects.create = function create(properties) {
|
|
18043
|
-
return ListObjects.fromObject(properties);
|
|
18044
|
-
};
|
|
18045
|
-
|
|
18046
|
-
/**
|
|
18047
|
-
* Encodes the specified ListObjects message. Does not implicitly {@link replit.goval.api.ListObjects.verify|verify} messages.
|
|
18048
|
-
* @function encode
|
|
18049
|
-
* @memberof replit.goval.api.ListObjects
|
|
18050
|
-
* @static
|
|
18051
|
-
* @param {replit.goval.api.ListObjects} message ListObjects message or plain object to encode
|
|
18052
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18053
|
-
* @returns {$protobuf.Writer} Writer
|
|
18054
|
-
*/
|
|
18055
|
-
ListObjects.encode = function encode(message, writer) {
|
|
18056
|
-
if (!writer)
|
|
18057
|
-
writer = $Writer.create();
|
|
18058
|
-
if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix"))
|
|
18059
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.prefix);
|
|
18060
|
-
return writer;
|
|
18061
|
-
};
|
|
18062
|
-
|
|
18063
|
-
/**
|
|
18064
|
-
* Encodes the specified ListObjects message, length delimited. Does not implicitly {@link replit.goval.api.ListObjects.verify|verify} messages.
|
|
18065
|
-
* @function encodeDelimited
|
|
18066
|
-
* @memberof replit.goval.api.ListObjects
|
|
18067
|
-
* @static
|
|
18068
|
-
* @param {replit.goval.api.ListObjects} message ListObjects message or plain object to encode
|
|
18069
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18070
|
-
* @returns {$protobuf.Writer} Writer
|
|
18071
|
-
*/
|
|
18072
|
-
ListObjects.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18073
|
-
return this.encode(message, writer).ldelim();
|
|
18074
|
-
};
|
|
18075
|
-
|
|
18076
|
-
/**
|
|
18077
|
-
* Decodes a ListObjects message from the specified reader or buffer.
|
|
18078
|
-
* @function decode
|
|
18079
|
-
* @memberof replit.goval.api.ListObjects
|
|
18080
|
-
* @static
|
|
18081
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18082
|
-
* @param {number} [length] Message length if known beforehand
|
|
18083
|
-
* @returns {replit.goval.api.ListObjects} ListObjects
|
|
18084
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18085
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18086
|
-
*/
|
|
18087
|
-
ListObjects.decode = function decode(reader, length) {
|
|
18088
|
-
if (!(reader instanceof $Reader))
|
|
18089
|
-
reader = $Reader.create(reader);
|
|
18090
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ListObjects();
|
|
18091
|
-
while (reader.pos < end) {
|
|
18092
|
-
var tag = reader.uint32();
|
|
18093
|
-
switch (tag >>> 3) {
|
|
18094
|
-
case 1: {
|
|
18095
|
-
message.prefix = reader.string();
|
|
18096
|
-
break;
|
|
18097
|
-
}
|
|
18098
|
-
default:
|
|
18099
|
-
reader.skipType(tag & 7);
|
|
18100
|
-
break;
|
|
18101
|
-
}
|
|
18102
|
-
}
|
|
18103
|
-
return message;
|
|
18104
|
-
};
|
|
18105
|
-
|
|
18106
|
-
/**
|
|
18107
|
-
* Decodes a ListObjects message from the specified reader or buffer, length delimited.
|
|
18108
|
-
* @function decodeDelimited
|
|
18109
|
-
* @memberof replit.goval.api.ListObjects
|
|
18110
|
-
* @static
|
|
18111
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18112
|
-
* @returns {replit.goval.api.ListObjects} ListObjects
|
|
18113
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18114
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18115
|
-
*/
|
|
18116
|
-
ListObjects.decodeDelimited = function decodeDelimited(reader) {
|
|
18117
|
-
if (!(reader instanceof $Reader))
|
|
18118
|
-
reader = new $Reader(reader);
|
|
18119
|
-
return this.decode(reader, reader.uint32());
|
|
18120
|
-
};
|
|
18121
|
-
|
|
18122
|
-
/**
|
|
18123
|
-
* Verifies a ListObjects message.
|
|
18124
|
-
* @function verify
|
|
18125
|
-
* @memberof replit.goval.api.ListObjects
|
|
18126
|
-
* @static
|
|
18127
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
18128
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18129
|
-
*/
|
|
18130
|
-
ListObjects.verify = function verify(message) {
|
|
18131
|
-
if (typeof message !== "object" || message === null)
|
|
18132
|
-
return "object expected";
|
|
18133
|
-
if (message.prefix != null && message.hasOwnProperty("prefix"))
|
|
18134
|
-
if (!$util.isString(message.prefix))
|
|
18135
|
-
return "prefix: string expected";
|
|
18136
|
-
return null;
|
|
18137
|
-
};
|
|
18138
|
-
|
|
18139
|
-
/**
|
|
18140
|
-
* Creates a ListObjects message from a plain object. Also converts values to their respective internal types.
|
|
18141
|
-
* @function fromObject
|
|
18142
|
-
* @memberof replit.goval.api.ListObjects
|
|
18143
|
-
* @static
|
|
18144
|
-
* @param {Object.<string,*>} object Plain object
|
|
18145
|
-
* @returns {replit.goval.api.ListObjects} ListObjects
|
|
18146
|
-
*/
|
|
18147
|
-
ListObjects.fromObject = function fromObject(object) {
|
|
18148
|
-
if (object instanceof $root.replit.goval.api.ListObjects)
|
|
18149
|
-
return object;
|
|
18150
|
-
var message = new $root.replit.goval.api.ListObjects();
|
|
18151
|
-
if (object.prefix != null)
|
|
18152
|
-
message.prefix = String(object.prefix);
|
|
18153
|
-
return message;
|
|
18154
|
-
};
|
|
18155
|
-
|
|
18156
|
-
/**
|
|
18157
|
-
* Creates a plain object from a ListObjects message. Also converts values to other types if specified.
|
|
18158
|
-
* @function toObject
|
|
18159
|
-
* @memberof replit.goval.api.ListObjects
|
|
18160
|
-
* @static
|
|
18161
|
-
* @param {replit.goval.api.ListObjects} message ListObjects
|
|
18162
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18163
|
-
* @returns {Object.<string,*>} Plain object
|
|
18164
|
-
*/
|
|
18165
|
-
ListObjects.toObject = function toObject(message, options) {
|
|
18166
|
-
if (!options)
|
|
18167
|
-
options = {};
|
|
18168
|
-
var object = {};
|
|
18169
|
-
if (options.defaults)
|
|
18170
|
-
object.prefix = "";
|
|
18171
|
-
if (message.prefix != null && message.hasOwnProperty("prefix"))
|
|
18172
|
-
object.prefix = message.prefix;
|
|
18173
|
-
return object;
|
|
18174
|
-
};
|
|
18175
|
-
|
|
18176
|
-
/**
|
|
18177
|
-
* Converts this ListObjects to JSON.
|
|
18178
|
-
* @function toJSON
|
|
18179
|
-
* @memberof replit.goval.api.ListObjects
|
|
18180
|
-
* @instance
|
|
18181
|
-
* @returns {Object.<string,*>} JSON object
|
|
18182
|
-
*/
|
|
18183
|
-
ListObjects.prototype.toJSON = function toJSON() {
|
|
18184
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18185
|
-
};
|
|
18186
|
-
|
|
18187
|
-
/**
|
|
18188
|
-
* Gets the default type url for ListObjects
|
|
18189
|
-
* @function getTypeUrl
|
|
18190
|
-
* @memberof replit.goval.api.ListObjects
|
|
18191
|
-
* @static
|
|
18192
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18193
|
-
* @returns {string} The default type url
|
|
18194
|
-
*/
|
|
18195
|
-
ListObjects.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18196
|
-
if (typeUrlPrefix === undefined) {
|
|
18197
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
18198
|
-
}
|
|
18199
|
-
return typeUrlPrefix + "/replit.goval.api.ListObjects";
|
|
18200
|
-
};
|
|
18201
|
-
|
|
18202
|
-
return ListObjects;
|
|
18203
|
-
})();
|
|
18204
|
-
|
|
18205
|
-
api.ListObjectsResp = (function() {
|
|
18206
|
-
|
|
18207
|
-
/**
|
|
18208
|
-
* Properties of a ListObjectsResp.
|
|
18209
|
-
* @memberof replit.goval.api
|
|
18210
|
-
* @interface IListObjectsResp
|
|
18211
|
-
* @property {Array.<string>|null} [objects] ListObjectsResp objects
|
|
18212
|
-
*/
|
|
18213
|
-
|
|
18214
|
-
/**
|
|
18215
|
-
* Constructs a new ListObjectsResp.
|
|
18216
|
-
* @memberof replit.goval.api
|
|
18217
|
-
* @classdesc Represents a ListObjectsResp.
|
|
18218
|
-
* @constructor
|
|
18219
|
-
* @param {replit.goval.api.IListObjectsResp=} [properties] Properties to set
|
|
18220
|
-
*/
|
|
18221
|
-
function ListObjectsResp(properties) {
|
|
18222
|
-
this.objects = [];
|
|
18223
|
-
if (properties)
|
|
18224
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18225
|
-
if (properties[keys[i]] != null)
|
|
18226
|
-
this[keys[i]] = properties[keys[i]];
|
|
18227
|
-
}
|
|
18228
|
-
|
|
18229
|
-
/**
|
|
18230
|
-
* ListObjectsResp objects.
|
|
18231
|
-
* @member {Array.<string>} objects
|
|
18232
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18233
|
-
* @instance
|
|
18234
|
-
*/
|
|
18235
|
-
ListObjectsResp.prototype.objects = $util.emptyArray;
|
|
18236
|
-
|
|
18237
|
-
/**
|
|
18238
|
-
* Creates a new ListObjectsResp instance using the specified properties.
|
|
18239
|
-
* @function create
|
|
18240
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18241
|
-
* @static
|
|
18242
|
-
* @param {replit.goval.api.IListObjectsResp=} [properties] Properties to set
|
|
18243
|
-
* @returns {replit.goval.api.ListObjectsResp} ListObjectsResp instance
|
|
18244
|
-
*/
|
|
18245
|
-
ListObjectsResp.create = function create(properties) {
|
|
18246
|
-
return ListObjectsResp.fromObject(properties);
|
|
18247
|
-
};
|
|
18248
|
-
|
|
18249
|
-
/**
|
|
18250
|
-
* Encodes the specified ListObjectsResp message. Does not implicitly {@link replit.goval.api.ListObjectsResp.verify|verify} messages.
|
|
18251
|
-
* @function encode
|
|
18252
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18253
|
-
* @static
|
|
18254
|
-
* @param {replit.goval.api.ListObjectsResp} message ListObjectsResp message or plain object to encode
|
|
18255
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18256
|
-
* @returns {$protobuf.Writer} Writer
|
|
18257
|
-
*/
|
|
18258
|
-
ListObjectsResp.encode = function encode(message, writer) {
|
|
18259
|
-
if (!writer)
|
|
18260
|
-
writer = $Writer.create();
|
|
18261
|
-
if (message.objects != null && message.objects.length)
|
|
18262
|
-
for (var i = 0; i < message.objects.length; ++i)
|
|
18263
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objects[i]);
|
|
18264
|
-
return writer;
|
|
18265
|
-
};
|
|
18266
|
-
|
|
18267
|
-
/**
|
|
18268
|
-
* Encodes the specified ListObjectsResp message, length delimited. Does not implicitly {@link replit.goval.api.ListObjectsResp.verify|verify} messages.
|
|
18269
|
-
* @function encodeDelimited
|
|
18270
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18271
|
-
* @static
|
|
18272
|
-
* @param {replit.goval.api.ListObjectsResp} message ListObjectsResp message or plain object to encode
|
|
18273
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18274
|
-
* @returns {$protobuf.Writer} Writer
|
|
18275
|
-
*/
|
|
18276
|
-
ListObjectsResp.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18277
|
-
return this.encode(message, writer).ldelim();
|
|
18278
|
-
};
|
|
18279
|
-
|
|
18280
|
-
/**
|
|
18281
|
-
* Decodes a ListObjectsResp message from the specified reader or buffer.
|
|
18282
|
-
* @function decode
|
|
18283
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18284
|
-
* @static
|
|
18285
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18286
|
-
* @param {number} [length] Message length if known beforehand
|
|
18287
|
-
* @returns {replit.goval.api.ListObjectsResp} ListObjectsResp
|
|
18288
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18289
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18290
|
-
*/
|
|
18291
|
-
ListObjectsResp.decode = function decode(reader, length) {
|
|
18292
|
-
if (!(reader instanceof $Reader))
|
|
18293
|
-
reader = $Reader.create(reader);
|
|
18294
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ListObjectsResp();
|
|
18295
|
-
while (reader.pos < end) {
|
|
18296
|
-
var tag = reader.uint32();
|
|
18297
|
-
switch (tag >>> 3) {
|
|
18298
|
-
case 1: {
|
|
18299
|
-
if (!(message.objects && message.objects.length))
|
|
18300
|
-
message.objects = [];
|
|
18301
|
-
message.objects.push(reader.string());
|
|
18302
|
-
break;
|
|
18303
|
-
}
|
|
18304
|
-
default:
|
|
18305
|
-
reader.skipType(tag & 7);
|
|
18306
|
-
break;
|
|
18307
|
-
}
|
|
18308
|
-
}
|
|
18309
|
-
return message;
|
|
18310
|
-
};
|
|
18311
|
-
|
|
18312
|
-
/**
|
|
18313
|
-
* Decodes a ListObjectsResp message from the specified reader or buffer, length delimited.
|
|
18314
|
-
* @function decodeDelimited
|
|
18315
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18316
|
-
* @static
|
|
18317
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18318
|
-
* @returns {replit.goval.api.ListObjectsResp} ListObjectsResp
|
|
18319
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18320
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18321
|
-
*/
|
|
18322
|
-
ListObjectsResp.decodeDelimited = function decodeDelimited(reader) {
|
|
18323
|
-
if (!(reader instanceof $Reader))
|
|
18324
|
-
reader = new $Reader(reader);
|
|
18325
|
-
return this.decode(reader, reader.uint32());
|
|
18326
|
-
};
|
|
18327
|
-
|
|
18328
|
-
/**
|
|
18329
|
-
* Verifies a ListObjectsResp message.
|
|
18330
|
-
* @function verify
|
|
18331
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18332
|
-
* @static
|
|
18333
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
18334
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18335
|
-
*/
|
|
18336
|
-
ListObjectsResp.verify = function verify(message) {
|
|
18337
|
-
if (typeof message !== "object" || message === null)
|
|
18338
|
-
return "object expected";
|
|
18339
|
-
if (message.objects != null && message.hasOwnProperty("objects")) {
|
|
18340
|
-
if (!Array.isArray(message.objects))
|
|
18341
|
-
return "objects: array expected";
|
|
18342
|
-
for (var i = 0; i < message.objects.length; ++i)
|
|
18343
|
-
if (!$util.isString(message.objects[i]))
|
|
18344
|
-
return "objects: string[] expected";
|
|
18345
|
-
}
|
|
18346
|
-
return null;
|
|
18347
|
-
};
|
|
18348
|
-
|
|
18349
|
-
/**
|
|
18350
|
-
* Creates a ListObjectsResp message from a plain object. Also converts values to their respective internal types.
|
|
18351
|
-
* @function fromObject
|
|
18352
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18353
|
-
* @static
|
|
18354
|
-
* @param {Object.<string,*>} object Plain object
|
|
18355
|
-
* @returns {replit.goval.api.ListObjectsResp} ListObjectsResp
|
|
18356
|
-
*/
|
|
18357
|
-
ListObjectsResp.fromObject = function fromObject(object) {
|
|
18358
|
-
if (object instanceof $root.replit.goval.api.ListObjectsResp)
|
|
18359
|
-
return object;
|
|
18360
|
-
var message = new $root.replit.goval.api.ListObjectsResp();
|
|
18361
|
-
if (object.objects) {
|
|
18362
|
-
if (!Array.isArray(object.objects))
|
|
18363
|
-
throw TypeError(".replit.goval.api.ListObjectsResp.objects: array expected");
|
|
18364
|
-
message.objects = [];
|
|
18365
|
-
for (var i = 0; i < object.objects.length; ++i)
|
|
18366
|
-
message.objects[i] = String(object.objects[i]);
|
|
18367
|
-
}
|
|
18368
|
-
return message;
|
|
18369
|
-
};
|
|
18370
|
-
|
|
18371
|
-
/**
|
|
18372
|
-
* Creates a plain object from a ListObjectsResp message. Also converts values to other types if specified.
|
|
18373
|
-
* @function toObject
|
|
18374
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18375
|
-
* @static
|
|
18376
|
-
* @param {replit.goval.api.ListObjectsResp} message ListObjectsResp
|
|
18377
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18378
|
-
* @returns {Object.<string,*>} Plain object
|
|
18379
|
-
*/
|
|
18380
|
-
ListObjectsResp.toObject = function toObject(message, options) {
|
|
18381
|
-
if (!options)
|
|
18382
|
-
options = {};
|
|
18383
|
-
var object = {};
|
|
18384
|
-
if (options.arrays || options.defaults)
|
|
18385
|
-
object.objects = [];
|
|
18386
|
-
if (message.objects && message.objects.length) {
|
|
18387
|
-
object.objects = [];
|
|
18388
|
-
for (var j = 0; j < message.objects.length; ++j)
|
|
18389
|
-
object.objects[j] = message.objects[j];
|
|
18390
|
-
}
|
|
18391
|
-
return object;
|
|
18392
|
-
};
|
|
18393
|
-
|
|
18394
|
-
/**
|
|
18395
|
-
* Converts this ListObjectsResp to JSON.
|
|
18396
|
-
* @function toJSON
|
|
18397
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18398
|
-
* @instance
|
|
18399
|
-
* @returns {Object.<string,*>} JSON object
|
|
18400
|
-
*/
|
|
18401
|
-
ListObjectsResp.prototype.toJSON = function toJSON() {
|
|
18402
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18403
|
-
};
|
|
18404
|
-
|
|
18405
|
-
/**
|
|
18406
|
-
* Gets the default type url for ListObjectsResp
|
|
18407
|
-
* @function getTypeUrl
|
|
18408
|
-
* @memberof replit.goval.api.ListObjectsResp
|
|
18409
|
-
* @static
|
|
18410
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18411
|
-
* @returns {string} The default type url
|
|
18412
|
-
*/
|
|
18413
|
-
ListObjectsResp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18414
|
-
if (typeUrlPrefix === undefined) {
|
|
18415
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
18416
|
-
}
|
|
18417
|
-
return typeUrlPrefix + "/replit.goval.api.ListObjectsResp";
|
|
18418
|
-
};
|
|
18419
|
-
|
|
18420
|
-
return ListObjectsResp;
|
|
18421
|
-
})();
|
|
18422
|
-
|
|
18423
16920
|
api.Disconnect = (function() {
|
|
18424
16921
|
|
|
18425
16922
|
/**
|
|
@@ -54731,6 +53228,8 @@
|
|
|
54731
53228
|
* @property {string|null} [referencedId] NixModule referencedId
|
|
54732
53229
|
* @property {Array.<replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption>|null} [formatters] NixModule formatters
|
|
54733
53230
|
* @property {string|null} [displayVersion] NixModule displayVersion
|
|
53231
|
+
* @property {boolean|null} [internal] NixModule internal
|
|
53232
|
+
* @property {boolean|null} [demoted] NixModule demoted
|
|
54734
53233
|
*/
|
|
54735
53234
|
|
|
54736
53235
|
/**
|
|
@@ -54865,6 +53364,22 @@
|
|
|
54865
53364
|
*/
|
|
54866
53365
|
NixModule.prototype.displayVersion = "";
|
|
54867
53366
|
|
|
53367
|
+
/**
|
|
53368
|
+
* NixModule internal.
|
|
53369
|
+
* @member {boolean} internal
|
|
53370
|
+
* @memberof replit.goval.api.NixModule
|
|
53371
|
+
* @instance
|
|
53372
|
+
*/
|
|
53373
|
+
NixModule.prototype.internal = false;
|
|
53374
|
+
|
|
53375
|
+
/**
|
|
53376
|
+
* NixModule demoted.
|
|
53377
|
+
* @member {boolean} demoted
|
|
53378
|
+
* @memberof replit.goval.api.NixModule
|
|
53379
|
+
* @instance
|
|
53380
|
+
*/
|
|
53381
|
+
NixModule.prototype.demoted = false;
|
|
53382
|
+
|
|
54868
53383
|
/**
|
|
54869
53384
|
* Creates a new NixModule instance using the specified properties.
|
|
54870
53385
|
* @function create
|
|
@@ -54923,6 +53438,10 @@
|
|
|
54923
53438
|
$root.replit.goval.api.FormatterOption.encode(message.formatters[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
54924
53439
|
if (message.displayVersion != null && Object.hasOwnProperty.call(message, "displayVersion"))
|
|
54925
53440
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.displayVersion);
|
|
53441
|
+
if (message.internal != null && Object.hasOwnProperty.call(message, "internal"))
|
|
53442
|
+
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.internal);
|
|
53443
|
+
if (message.demoted != null && Object.hasOwnProperty.call(message, "demoted"))
|
|
53444
|
+
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.demoted);
|
|
54926
53445
|
return writer;
|
|
54927
53446
|
};
|
|
54928
53447
|
|
|
@@ -55025,6 +53544,14 @@
|
|
|
55025
53544
|
message.displayVersion = reader.string();
|
|
55026
53545
|
break;
|
|
55027
53546
|
}
|
|
53547
|
+
case 15: {
|
|
53548
|
+
message.internal = reader.bool();
|
|
53549
|
+
break;
|
|
53550
|
+
}
|
|
53551
|
+
case 16: {
|
|
53552
|
+
message.demoted = reader.bool();
|
|
53553
|
+
break;
|
|
53554
|
+
}
|
|
55028
53555
|
default:
|
|
55029
53556
|
reader.skipType(tag & 7);
|
|
55030
53557
|
break;
|
|
@@ -55136,6 +53663,12 @@
|
|
|
55136
53663
|
if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
|
|
55137
53664
|
if (!$util.isString(message.displayVersion))
|
|
55138
53665
|
return "displayVersion: string expected";
|
|
53666
|
+
if (message.internal != null && message.hasOwnProperty("internal"))
|
|
53667
|
+
if (typeof message.internal !== "boolean")
|
|
53668
|
+
return "internal: boolean expected";
|
|
53669
|
+
if (message.demoted != null && message.hasOwnProperty("demoted"))
|
|
53670
|
+
if (typeof message.demoted !== "boolean")
|
|
53671
|
+
return "demoted: boolean expected";
|
|
55139
53672
|
return null;
|
|
55140
53673
|
};
|
|
55141
53674
|
|
|
@@ -55224,6 +53757,10 @@
|
|
|
55224
53757
|
}
|
|
55225
53758
|
if (object.displayVersion != null)
|
|
55226
53759
|
message.displayVersion = String(object.displayVersion);
|
|
53760
|
+
if (object.internal != null)
|
|
53761
|
+
message.internal = Boolean(object.internal);
|
|
53762
|
+
if (object.demoted != null)
|
|
53763
|
+
message.demoted = Boolean(object.demoted);
|
|
55227
53764
|
return message;
|
|
55228
53765
|
};
|
|
55229
53766
|
|
|
@@ -55257,6 +53794,8 @@
|
|
|
55257
53794
|
object.resolvedId = "";
|
|
55258
53795
|
object.referencedId = "";
|
|
55259
53796
|
object.displayVersion = "";
|
|
53797
|
+
object.internal = false;
|
|
53798
|
+
object.demoted = false;
|
|
55260
53799
|
}
|
|
55261
53800
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
55262
53801
|
object.id = message.id;
|
|
@@ -55304,6 +53843,10 @@
|
|
|
55304
53843
|
}
|
|
55305
53844
|
if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
|
|
55306
53845
|
object.displayVersion = message.displayVersion;
|
|
53846
|
+
if (message.internal != null && message.hasOwnProperty("internal"))
|
|
53847
|
+
object.internal = message.internal;
|
|
53848
|
+
if (message.demoted != null && message.hasOwnProperty("demoted"))
|
|
53849
|
+
object.demoted = message.demoted;
|
|
55307
53850
|
return object;
|
|
55308
53851
|
};
|
|
55309
53852
|
|