@replit/protocol 0.3.43 → 0.3.44
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/iotester/index.js.flow +2946 -0
- package/main/index.d.ts +325 -364
- package/main/index.js +688 -935
- package/main/index.js.flow +42536 -0
- package/package.json +1 -1
- package/path.sh +0 -1
package/main/index.js
CHANGED
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
* @property {replit.goval.api.Toast|replit.goval.api.IToast|null} [toast] Command toast
|
|
62
62
|
* @property {replit.goval.api.ProtocolError|replit.goval.api.IProtocolError|null} [protocolError] Command protocolError
|
|
63
63
|
* @property {replit.goval.api.Redirect|replit.goval.api.IRedirect|null} [redirect] Command redirect
|
|
64
|
-
* @property {replit.goval.api.AlwaysOn|replit.goval.api.IAlwaysOn|null} [alwaysOn] Command alwaysOn
|
|
65
64
|
* @property {replit.goval.api.RunMain|replit.goval.api.IRunMain|null} [runMain] Command runMain
|
|
66
65
|
* @property {replit.goval.api.Clear|replit.goval.api.IClear|null} [clear] Command clear
|
|
67
66
|
* @property {string|null} ["eval"] Command eval
|
|
@@ -238,7 +237,6 @@
|
|
|
238
237
|
* @property {replit.goval.api.ReplspaceApiOpenMultipleFiles|replit.goval.api.IReplspaceApiOpenMultipleFiles|null} [replspaceApiOpenMultipleFiles] Command replspaceApiOpenMultipleFiles
|
|
239
238
|
* @property {replit.goval.api.NixModulesGetRegistryRequest|replit.goval.api.INixModulesGetRegistryRequest|null} [nixModulesGetRegistryRequest] Command nixModulesGetRegistryRequest
|
|
240
239
|
* @property {replit.goval.api.NixModulesGetRegistryResponse|replit.goval.api.INixModulesGetRegistryResponse|null} [nixModulesGetRegistryResponse] Command nixModulesGetRegistryResponse
|
|
241
|
-
* @property {replit.goval.api.RiverMessage|replit.goval.api.IRiverMessage|null} [pid2Message] Command pid2Message
|
|
242
240
|
* @property {replit.goval.api.ReplspaceApiShellTracker|replit.goval.api.IReplspaceApiShellTracker|null} [replspaceApiShellTracker] Command replspaceApiShellTracker
|
|
243
241
|
* @property {string|null} [ref] Command ref
|
|
244
242
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
@@ -356,14 +354,6 @@
|
|
|
356
354
|
*/
|
|
357
355
|
Command.prototype.redirect = null;
|
|
358
356
|
|
|
359
|
-
/**
|
|
360
|
-
* Command alwaysOn.
|
|
361
|
-
* @member {replit.goval.api.AlwaysOn|null|undefined} alwaysOn
|
|
362
|
-
* @memberof replit.goval.api.Command
|
|
363
|
-
* @instance
|
|
364
|
-
*/
|
|
365
|
-
Command.prototype.alwaysOn = null;
|
|
366
|
-
|
|
367
357
|
/**
|
|
368
358
|
* Command runMain.
|
|
369
359
|
* @member {replit.goval.api.RunMain|null|undefined} runMain
|
|
@@ -1772,14 +1762,6 @@
|
|
|
1772
1762
|
*/
|
|
1773
1763
|
Command.prototype.nixModulesGetRegistryResponse = null;
|
|
1774
1764
|
|
|
1775
|
-
/**
|
|
1776
|
-
* Command pid2Message.
|
|
1777
|
-
* @member {replit.goval.api.RiverMessage|null|undefined} pid2Message
|
|
1778
|
-
* @memberof replit.goval.api.Command
|
|
1779
|
-
* @instance
|
|
1780
|
-
*/
|
|
1781
|
-
Command.prototype.pid2Message = null;
|
|
1782
|
-
|
|
1783
1765
|
/**
|
|
1784
1766
|
* Command replspaceApiShellTracker.
|
|
1785
1767
|
* @member {replit.goval.api.ReplspaceApiShellTracker|null|undefined} replspaceApiShellTracker
|
|
@@ -1817,12 +1799,12 @@
|
|
|
1817
1799
|
|
|
1818
1800
|
/**
|
|
1819
1801
|
* Command body.
|
|
1820
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"
|
|
1802
|
+
* @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"|"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"|"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"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker"|undefined} body
|
|
1821
1803
|
* @memberof replit.goval.api.Command
|
|
1822
1804
|
* @instance
|
|
1823
1805
|
*/
|
|
1824
1806
|
Object.defineProperty(Command.prototype, "body", {
|
|
1825
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "
|
|
1807
|
+
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", "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", "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", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "replspaceApiShellTracker"]),
|
|
1826
1808
|
set: $util.oneOfSetter($oneOfFields)
|
|
1827
1809
|
});
|
|
1828
1810
|
|
|
@@ -1870,8 +1852,6 @@
|
|
|
1870
1852
|
$root.replit.goval.api.Toast.encode(message.toast, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
1871
1853
|
if (message.redirect != null && Object.hasOwnProperty.call(message, "redirect"))
|
|
1872
1854
|
$root.replit.goval.api.Redirect.encode(message.redirect, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
1873
|
-
if (message.alwaysOn != null && Object.hasOwnProperty.call(message, "alwaysOn"))
|
|
1874
|
-
$root.replit.goval.api.AlwaysOn.encode(message.alwaysOn, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
1875
1855
|
if (message.runMain != null && Object.hasOwnProperty.call(message, "runMain"))
|
|
1876
1856
|
$root.replit.goval.api.RunMain.encode(message.runMain, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
1877
1857
|
if (message.clear != null && Object.hasOwnProperty.call(message, "clear"))
|
|
@@ -2216,8 +2196,6 @@
|
|
|
2216
2196
|
$root.replit.goval.api.NixModulesGetRegistryRequest.encode(message.nixModulesGetRegistryRequest, writer.uint32(/* id 439, wireType 2 =*/3514).fork()).ldelim();
|
|
2217
2197
|
if (message.nixModulesGetRegistryResponse != null && Object.hasOwnProperty.call(message, "nixModulesGetRegistryResponse"))
|
|
2218
2198
|
$root.replit.goval.api.NixModulesGetRegistryResponse.encode(message.nixModulesGetRegistryResponse, writer.uint32(/* id 440, wireType 2 =*/3522).fork()).ldelim();
|
|
2219
|
-
if (message.pid2Message != null && Object.hasOwnProperty.call(message, "pid2Message"))
|
|
2220
|
-
$root.replit.goval.api.RiverMessage.encode(message.pid2Message, writer.uint32(/* id 441, wireType 2 =*/3530).fork()).ldelim();
|
|
2221
2199
|
if (message.replspaceApiShellTracker != null && Object.hasOwnProperty.call(message, "replspaceApiShellTracker"))
|
|
2222
2200
|
$root.replit.goval.api.ReplspaceApiShellTracker.encode(message.replspaceApiShellTracker, writer.uint32(/* id 442, wireType 2 =*/3538).fork()).ldelim();
|
|
2223
2201
|
if (message.outputBlockStartEvent != null && Object.hasOwnProperty.call(message, "outputBlockStartEvent"))
|
|
@@ -2321,10 +2299,6 @@
|
|
|
2321
2299
|
message.redirect = $root.replit.goval.api.Redirect.decode(reader, reader.uint32());
|
|
2322
2300
|
break;
|
|
2323
2301
|
}
|
|
2324
|
-
case 13: {
|
|
2325
|
-
message.alwaysOn = $root.replit.goval.api.AlwaysOn.decode(reader, reader.uint32());
|
|
2326
|
-
break;
|
|
2327
|
-
}
|
|
2328
2302
|
case 16: {
|
|
2329
2303
|
message.runMain = $root.replit.goval.api.RunMain.decode(reader, reader.uint32());
|
|
2330
2304
|
break;
|
|
@@ -3029,10 +3003,6 @@
|
|
|
3029
3003
|
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.decode(reader, reader.uint32());
|
|
3030
3004
|
break;
|
|
3031
3005
|
}
|
|
3032
|
-
case 441: {
|
|
3033
|
-
message.pid2Message = $root.replit.goval.api.RiverMessage.decode(reader, reader.uint32());
|
|
3034
|
-
break;
|
|
3035
|
-
}
|
|
3036
3006
|
case 442: {
|
|
3037
3007
|
message.replspaceApiShellTracker = $root.replit.goval.api.ReplspaceApiShellTracker.decode(reader, reader.uint32());
|
|
3038
3008
|
break;
|
|
@@ -3208,16 +3178,6 @@
|
|
|
3208
3178
|
return "redirect." + error;
|
|
3209
3179
|
}
|
|
3210
3180
|
}
|
|
3211
|
-
if (message.alwaysOn != null && message.hasOwnProperty("alwaysOn")) {
|
|
3212
|
-
if (properties.body === 1)
|
|
3213
|
-
return "body: multiple values";
|
|
3214
|
-
properties.body = 1;
|
|
3215
|
-
{
|
|
3216
|
-
var error = $root.replit.goval.api.AlwaysOn.verify(message.alwaysOn);
|
|
3217
|
-
if (error)
|
|
3218
|
-
return "alwaysOn." + error;
|
|
3219
|
-
}
|
|
3220
|
-
}
|
|
3221
3181
|
if (message.runMain != null && message.hasOwnProperty("runMain")) {
|
|
3222
3182
|
if (properties.body === 1)
|
|
3223
3183
|
return "body: multiple values";
|
|
@@ -4944,16 +4904,6 @@
|
|
|
4944
4904
|
return "nixModulesGetRegistryResponse." + error;
|
|
4945
4905
|
}
|
|
4946
4906
|
}
|
|
4947
|
-
if (message.pid2Message != null && message.hasOwnProperty("pid2Message")) {
|
|
4948
|
-
if (properties.body === 1)
|
|
4949
|
-
return "body: multiple values";
|
|
4950
|
-
properties.body = 1;
|
|
4951
|
-
{
|
|
4952
|
-
var error = $root.replit.goval.api.RiverMessage.verify(message.pid2Message);
|
|
4953
|
-
if (error)
|
|
4954
|
-
return "pid2Message." + error;
|
|
4955
|
-
}
|
|
4956
|
-
}
|
|
4957
4907
|
if (message.replspaceApiShellTracker != null && message.hasOwnProperty("replspaceApiShellTracker")) {
|
|
4958
4908
|
if (properties.body === 1)
|
|
4959
4909
|
return "body: multiple values";
|
|
@@ -5047,11 +4997,6 @@
|
|
|
5047
4997
|
throw TypeError(".replit.goval.api.Command.redirect: object expected");
|
|
5048
4998
|
message.redirect = $root.replit.goval.api.Redirect.fromObject(object.redirect);
|
|
5049
4999
|
}
|
|
5050
|
-
if (object.alwaysOn != null) {
|
|
5051
|
-
if (typeof object.alwaysOn !== "object")
|
|
5052
|
-
throw TypeError(".replit.goval.api.Command.alwaysOn: object expected");
|
|
5053
|
-
message.alwaysOn = $root.replit.goval.api.AlwaysOn.fromObject(object.alwaysOn);
|
|
5054
|
-
}
|
|
5055
5000
|
if (object.runMain != null) {
|
|
5056
5001
|
if (typeof object.runMain !== "object")
|
|
5057
5002
|
throw TypeError(".replit.goval.api.Command.runMain: object expected");
|
|
@@ -5907,11 +5852,6 @@
|
|
|
5907
5852
|
throw TypeError(".replit.goval.api.Command.nixModulesGetRegistryResponse: object expected");
|
|
5908
5853
|
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.fromObject(object.nixModulesGetRegistryResponse);
|
|
5909
5854
|
}
|
|
5910
|
-
if (object.pid2Message != null) {
|
|
5911
|
-
if (typeof object.pid2Message !== "object")
|
|
5912
|
-
throw TypeError(".replit.goval.api.Command.pid2Message: object expected");
|
|
5913
|
-
message.pid2Message = $root.replit.goval.api.RiverMessage.fromObject(object.pid2Message);
|
|
5914
|
-
}
|
|
5915
5855
|
if (object.replspaceApiShellTracker != null) {
|
|
5916
5856
|
if (typeof object.replspaceApiShellTracker !== "object")
|
|
5917
5857
|
throw TypeError(".replit.goval.api.Command.replspaceApiShellTracker: object expected");
|
|
@@ -5996,11 +5936,6 @@
|
|
|
5996
5936
|
if (options.oneofs)
|
|
5997
5937
|
object.body = "redirect";
|
|
5998
5938
|
}
|
|
5999
|
-
if (message.alwaysOn != null && message.hasOwnProperty("alwaysOn")) {
|
|
6000
|
-
object.alwaysOn = $root.replit.goval.api.AlwaysOn.toObject(message.alwaysOn, options);
|
|
6001
|
-
if (options.oneofs)
|
|
6002
|
-
object.body = "alwaysOn";
|
|
6003
|
-
}
|
|
6004
5939
|
if (message.runMain != null && message.hasOwnProperty("runMain")) {
|
|
6005
5940
|
object.runMain = $root.replit.goval.api.RunMain.toObject(message.runMain, options);
|
|
6006
5941
|
if (options.oneofs)
|
|
@@ -6861,11 +6796,6 @@
|
|
|
6861
6796
|
if (options.oneofs)
|
|
6862
6797
|
object.body = "nixModulesGetRegistryResponse";
|
|
6863
6798
|
}
|
|
6864
|
-
if (message.pid2Message != null && message.hasOwnProperty("pid2Message")) {
|
|
6865
|
-
object.pid2Message = $root.replit.goval.api.RiverMessage.toObject(message.pid2Message, options);
|
|
6866
|
-
if (options.oneofs)
|
|
6867
|
-
object.body = "pid2Message";
|
|
6868
|
-
}
|
|
6869
6799
|
if (message.replspaceApiShellTracker != null && message.hasOwnProperty("replspaceApiShellTracker")) {
|
|
6870
6800
|
object.replspaceApiShellTracker = $root.replit.goval.api.ReplspaceApiShellTracker.toObject(message.replspaceApiShellTracker, options);
|
|
6871
6801
|
if (options.oneofs)
|
|
@@ -6943,409 +6873,6 @@
|
|
|
6943
6873
|
return Command;
|
|
6944
6874
|
})();
|
|
6945
6875
|
|
|
6946
|
-
api.RiverMessage = (function() {
|
|
6947
|
-
|
|
6948
|
-
/**
|
|
6949
|
-
* Properties of a RiverMessage.
|
|
6950
|
-
* @memberof replit.goval.api
|
|
6951
|
-
* @interface IRiverMessage
|
|
6952
|
-
* @property {string|null} [id] RiverMessage id
|
|
6953
|
-
* @property {string|null} [replyTo] RiverMessage replyTo
|
|
6954
|
-
* @property {string|null} [from] RiverMessage from
|
|
6955
|
-
* @property {string|null} [to] RiverMessage to
|
|
6956
|
-
* @property {string|null} [serviceName] RiverMessage serviceName
|
|
6957
|
-
* @property {string|null} [procedureName] RiverMessage procedureName
|
|
6958
|
-
* @property {string|null} [ack] RiverMessage ack
|
|
6959
|
-
* @property {google.protobuf.Value|google.protobuf.IValue|null} [payload] RiverMessage payload
|
|
6960
|
-
*/
|
|
6961
|
-
|
|
6962
|
-
/**
|
|
6963
|
-
* Constructs a new RiverMessage.
|
|
6964
|
-
* @memberof replit.goval.api
|
|
6965
|
-
* @classdesc Represents a RiverMessage.
|
|
6966
|
-
* @constructor
|
|
6967
|
-
* @param {replit.goval.api.IRiverMessage=} [properties] Properties to set
|
|
6968
|
-
*/
|
|
6969
|
-
function RiverMessage(properties) {
|
|
6970
|
-
if (properties)
|
|
6971
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6972
|
-
if (properties[keys[i]] != null)
|
|
6973
|
-
this[keys[i]] = properties[keys[i]];
|
|
6974
|
-
}
|
|
6975
|
-
|
|
6976
|
-
/**
|
|
6977
|
-
* RiverMessage id.
|
|
6978
|
-
* @member {string} id
|
|
6979
|
-
* @memberof replit.goval.api.RiverMessage
|
|
6980
|
-
* @instance
|
|
6981
|
-
*/
|
|
6982
|
-
RiverMessage.prototype.id = "";
|
|
6983
|
-
|
|
6984
|
-
/**
|
|
6985
|
-
* RiverMessage replyTo.
|
|
6986
|
-
* @member {string|null|undefined} replyTo
|
|
6987
|
-
* @memberof replit.goval.api.RiverMessage
|
|
6988
|
-
* @instance
|
|
6989
|
-
*/
|
|
6990
|
-
RiverMessage.prototype.replyTo = null;
|
|
6991
|
-
|
|
6992
|
-
/**
|
|
6993
|
-
* RiverMessage from.
|
|
6994
|
-
* @member {string} from
|
|
6995
|
-
* @memberof replit.goval.api.RiverMessage
|
|
6996
|
-
* @instance
|
|
6997
|
-
*/
|
|
6998
|
-
RiverMessage.prototype.from = "";
|
|
6999
|
-
|
|
7000
|
-
/**
|
|
7001
|
-
* RiverMessage to.
|
|
7002
|
-
* @member {string} to
|
|
7003
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7004
|
-
* @instance
|
|
7005
|
-
*/
|
|
7006
|
-
RiverMessage.prototype.to = "";
|
|
7007
|
-
|
|
7008
|
-
/**
|
|
7009
|
-
* RiverMessage serviceName.
|
|
7010
|
-
* @member {string} serviceName
|
|
7011
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7012
|
-
* @instance
|
|
7013
|
-
*/
|
|
7014
|
-
RiverMessage.prototype.serviceName = "";
|
|
7015
|
-
|
|
7016
|
-
/**
|
|
7017
|
-
* RiverMessage procedureName.
|
|
7018
|
-
* @member {string} procedureName
|
|
7019
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7020
|
-
* @instance
|
|
7021
|
-
*/
|
|
7022
|
-
RiverMessage.prototype.procedureName = "";
|
|
7023
|
-
|
|
7024
|
-
/**
|
|
7025
|
-
* RiverMessage ack.
|
|
7026
|
-
* @member {string|null|undefined} ack
|
|
7027
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7028
|
-
* @instance
|
|
7029
|
-
*/
|
|
7030
|
-
RiverMessage.prototype.ack = null;
|
|
7031
|
-
|
|
7032
|
-
/**
|
|
7033
|
-
* RiverMessage payload.
|
|
7034
|
-
* @member {google.protobuf.Value|null|undefined} payload
|
|
7035
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7036
|
-
* @instance
|
|
7037
|
-
*/
|
|
7038
|
-
RiverMessage.prototype.payload = null;
|
|
7039
|
-
|
|
7040
|
-
// OneOf field names bound to virtual getters and setters
|
|
7041
|
-
var $oneOfFields;
|
|
7042
|
-
|
|
7043
|
-
/**
|
|
7044
|
-
* RiverMessage _replyTo.
|
|
7045
|
-
* @member {"replyTo"|undefined} _replyTo
|
|
7046
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7047
|
-
* @instance
|
|
7048
|
-
*/
|
|
7049
|
-
Object.defineProperty(RiverMessage.prototype, "_replyTo", {
|
|
7050
|
-
get: $util.oneOfGetter($oneOfFields = ["replyTo"]),
|
|
7051
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
7052
|
-
});
|
|
7053
|
-
|
|
7054
|
-
/**
|
|
7055
|
-
* RiverMessage _ack.
|
|
7056
|
-
* @member {"ack"|undefined} _ack
|
|
7057
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7058
|
-
* @instance
|
|
7059
|
-
*/
|
|
7060
|
-
Object.defineProperty(RiverMessage.prototype, "_ack", {
|
|
7061
|
-
get: $util.oneOfGetter($oneOfFields = ["ack"]),
|
|
7062
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
7063
|
-
});
|
|
7064
|
-
|
|
7065
|
-
/**
|
|
7066
|
-
* Creates a new RiverMessage instance using the specified properties.
|
|
7067
|
-
* @function create
|
|
7068
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7069
|
-
* @static
|
|
7070
|
-
* @param {replit.goval.api.IRiverMessage=} [properties] Properties to set
|
|
7071
|
-
* @returns {replit.goval.api.RiverMessage} RiverMessage instance
|
|
7072
|
-
*/
|
|
7073
|
-
RiverMessage.create = function create(properties) {
|
|
7074
|
-
return RiverMessage.fromObject(properties);
|
|
7075
|
-
};
|
|
7076
|
-
|
|
7077
|
-
/**
|
|
7078
|
-
* Encodes the specified RiverMessage message. Does not implicitly {@link replit.goval.api.RiverMessage.verify|verify} messages.
|
|
7079
|
-
* @function encode
|
|
7080
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7081
|
-
* @static
|
|
7082
|
-
* @param {replit.goval.api.RiverMessage} message RiverMessage message or plain object to encode
|
|
7083
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7084
|
-
* @returns {$protobuf.Writer} Writer
|
|
7085
|
-
*/
|
|
7086
|
-
RiverMessage.encode = function encode(message, writer) {
|
|
7087
|
-
if (!writer)
|
|
7088
|
-
writer = $Writer.create();
|
|
7089
|
-
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
7090
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
7091
|
-
if (message.replyTo != null && Object.hasOwnProperty.call(message, "replyTo"))
|
|
7092
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.replyTo);
|
|
7093
|
-
if (message.from != null && Object.hasOwnProperty.call(message, "from"))
|
|
7094
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.from);
|
|
7095
|
-
if (message.to != null && Object.hasOwnProperty.call(message, "to"))
|
|
7096
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.to);
|
|
7097
|
-
if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
|
|
7098
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceName);
|
|
7099
|
-
if (message.procedureName != null && Object.hasOwnProperty.call(message, "procedureName"))
|
|
7100
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.procedureName);
|
|
7101
|
-
if (message.ack != null && Object.hasOwnProperty.call(message, "ack"))
|
|
7102
|
-
writer.uint32(/* id 7, wireType 2 =*/58).string(message.ack);
|
|
7103
|
-
if (message.payload != null && Object.hasOwnProperty.call(message, "payload"))
|
|
7104
|
-
$root.google.protobuf.Value.encode(message.payload, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
7105
|
-
return writer;
|
|
7106
|
-
};
|
|
7107
|
-
|
|
7108
|
-
/**
|
|
7109
|
-
* Encodes the specified RiverMessage message, length delimited. Does not implicitly {@link replit.goval.api.RiverMessage.verify|verify} messages.
|
|
7110
|
-
* @function encodeDelimited
|
|
7111
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7112
|
-
* @static
|
|
7113
|
-
* @param {replit.goval.api.RiverMessage} message RiverMessage message or plain object to encode
|
|
7114
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7115
|
-
* @returns {$protobuf.Writer} Writer
|
|
7116
|
-
*/
|
|
7117
|
-
RiverMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7118
|
-
return this.encode(message, writer).ldelim();
|
|
7119
|
-
};
|
|
7120
|
-
|
|
7121
|
-
/**
|
|
7122
|
-
* Decodes a RiverMessage message from the specified reader or buffer.
|
|
7123
|
-
* @function decode
|
|
7124
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7125
|
-
* @static
|
|
7126
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7127
|
-
* @param {number} [length] Message length if known beforehand
|
|
7128
|
-
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
7129
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7130
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7131
|
-
*/
|
|
7132
|
-
RiverMessage.decode = function decode(reader, length) {
|
|
7133
|
-
if (!(reader instanceof $Reader))
|
|
7134
|
-
reader = $Reader.create(reader);
|
|
7135
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.RiverMessage();
|
|
7136
|
-
while (reader.pos < end) {
|
|
7137
|
-
var tag = reader.uint32();
|
|
7138
|
-
switch (tag >>> 3) {
|
|
7139
|
-
case 1: {
|
|
7140
|
-
message.id = reader.string();
|
|
7141
|
-
break;
|
|
7142
|
-
}
|
|
7143
|
-
case 2: {
|
|
7144
|
-
message.replyTo = reader.string();
|
|
7145
|
-
break;
|
|
7146
|
-
}
|
|
7147
|
-
case 3: {
|
|
7148
|
-
message.from = reader.string();
|
|
7149
|
-
break;
|
|
7150
|
-
}
|
|
7151
|
-
case 4: {
|
|
7152
|
-
message.to = reader.string();
|
|
7153
|
-
break;
|
|
7154
|
-
}
|
|
7155
|
-
case 5: {
|
|
7156
|
-
message.serviceName = reader.string();
|
|
7157
|
-
break;
|
|
7158
|
-
}
|
|
7159
|
-
case 6: {
|
|
7160
|
-
message.procedureName = reader.string();
|
|
7161
|
-
break;
|
|
7162
|
-
}
|
|
7163
|
-
case 7: {
|
|
7164
|
-
message.ack = reader.string();
|
|
7165
|
-
break;
|
|
7166
|
-
}
|
|
7167
|
-
case 10: {
|
|
7168
|
-
message.payload = $root.google.protobuf.Value.decode(reader, reader.uint32());
|
|
7169
|
-
break;
|
|
7170
|
-
}
|
|
7171
|
-
default:
|
|
7172
|
-
reader.skipType(tag & 7);
|
|
7173
|
-
break;
|
|
7174
|
-
}
|
|
7175
|
-
}
|
|
7176
|
-
return message;
|
|
7177
|
-
};
|
|
7178
|
-
|
|
7179
|
-
/**
|
|
7180
|
-
* Decodes a RiverMessage message from the specified reader or buffer, length delimited.
|
|
7181
|
-
* @function decodeDelimited
|
|
7182
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7183
|
-
* @static
|
|
7184
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7185
|
-
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
7186
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7187
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7188
|
-
*/
|
|
7189
|
-
RiverMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
7190
|
-
if (!(reader instanceof $Reader))
|
|
7191
|
-
reader = new $Reader(reader);
|
|
7192
|
-
return this.decode(reader, reader.uint32());
|
|
7193
|
-
};
|
|
7194
|
-
|
|
7195
|
-
/**
|
|
7196
|
-
* Verifies a RiverMessage message.
|
|
7197
|
-
* @function verify
|
|
7198
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7199
|
-
* @static
|
|
7200
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
7201
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7202
|
-
*/
|
|
7203
|
-
RiverMessage.verify = function verify(message) {
|
|
7204
|
-
if (typeof message !== "object" || message === null)
|
|
7205
|
-
return "object expected";
|
|
7206
|
-
var properties = {};
|
|
7207
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
7208
|
-
if (!$util.isString(message.id))
|
|
7209
|
-
return "id: string expected";
|
|
7210
|
-
if (message.replyTo != null && message.hasOwnProperty("replyTo")) {
|
|
7211
|
-
properties._replyTo = 1;
|
|
7212
|
-
if (!$util.isString(message.replyTo))
|
|
7213
|
-
return "replyTo: string expected";
|
|
7214
|
-
}
|
|
7215
|
-
if (message.from != null && message.hasOwnProperty("from"))
|
|
7216
|
-
if (!$util.isString(message.from))
|
|
7217
|
-
return "from: string expected";
|
|
7218
|
-
if (message.to != null && message.hasOwnProperty("to"))
|
|
7219
|
-
if (!$util.isString(message.to))
|
|
7220
|
-
return "to: string expected";
|
|
7221
|
-
if (message.serviceName != null && message.hasOwnProperty("serviceName"))
|
|
7222
|
-
if (!$util.isString(message.serviceName))
|
|
7223
|
-
return "serviceName: string expected";
|
|
7224
|
-
if (message.procedureName != null && message.hasOwnProperty("procedureName"))
|
|
7225
|
-
if (!$util.isString(message.procedureName))
|
|
7226
|
-
return "procedureName: string expected";
|
|
7227
|
-
if (message.ack != null && message.hasOwnProperty("ack")) {
|
|
7228
|
-
properties._ack = 1;
|
|
7229
|
-
if (!$util.isString(message.ack))
|
|
7230
|
-
return "ack: string expected";
|
|
7231
|
-
}
|
|
7232
|
-
if (message.payload != null && message.hasOwnProperty("payload")) {
|
|
7233
|
-
var error = $root.google.protobuf.Value.verify(message.payload);
|
|
7234
|
-
if (error)
|
|
7235
|
-
return "payload." + error;
|
|
7236
|
-
}
|
|
7237
|
-
return null;
|
|
7238
|
-
};
|
|
7239
|
-
|
|
7240
|
-
/**
|
|
7241
|
-
* Creates a RiverMessage message from a plain object. Also converts values to their respective internal types.
|
|
7242
|
-
* @function fromObject
|
|
7243
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7244
|
-
* @static
|
|
7245
|
-
* @param {Object.<string,*>} object Plain object
|
|
7246
|
-
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
7247
|
-
*/
|
|
7248
|
-
RiverMessage.fromObject = function fromObject(object) {
|
|
7249
|
-
if (object instanceof $root.replit.goval.api.RiverMessage)
|
|
7250
|
-
return object;
|
|
7251
|
-
var message = new $root.replit.goval.api.RiverMessage();
|
|
7252
|
-
if (object.id != null)
|
|
7253
|
-
message.id = String(object.id);
|
|
7254
|
-
if (object.replyTo != null)
|
|
7255
|
-
message.replyTo = String(object.replyTo);
|
|
7256
|
-
if (object.from != null)
|
|
7257
|
-
message.from = String(object.from);
|
|
7258
|
-
if (object.to != null)
|
|
7259
|
-
message.to = String(object.to);
|
|
7260
|
-
if (object.serviceName != null)
|
|
7261
|
-
message.serviceName = String(object.serviceName);
|
|
7262
|
-
if (object.procedureName != null)
|
|
7263
|
-
message.procedureName = String(object.procedureName);
|
|
7264
|
-
if (object.ack != null)
|
|
7265
|
-
message.ack = String(object.ack);
|
|
7266
|
-
if (object.payload != null) {
|
|
7267
|
-
if (typeof object.payload !== "object")
|
|
7268
|
-
throw TypeError(".replit.goval.api.RiverMessage.payload: object expected");
|
|
7269
|
-
message.payload = $root.google.protobuf.Value.fromObject(object.payload);
|
|
7270
|
-
}
|
|
7271
|
-
return message;
|
|
7272
|
-
};
|
|
7273
|
-
|
|
7274
|
-
/**
|
|
7275
|
-
* Creates a plain object from a RiverMessage message. Also converts values to other types if specified.
|
|
7276
|
-
* @function toObject
|
|
7277
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7278
|
-
* @static
|
|
7279
|
-
* @param {replit.goval.api.RiverMessage} message RiverMessage
|
|
7280
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7281
|
-
* @returns {Object.<string,*>} Plain object
|
|
7282
|
-
*/
|
|
7283
|
-
RiverMessage.toObject = function toObject(message, options) {
|
|
7284
|
-
if (!options)
|
|
7285
|
-
options = {};
|
|
7286
|
-
var object = {};
|
|
7287
|
-
if (options.defaults) {
|
|
7288
|
-
object.id = "";
|
|
7289
|
-
object.from = "";
|
|
7290
|
-
object.to = "";
|
|
7291
|
-
object.serviceName = "";
|
|
7292
|
-
object.procedureName = "";
|
|
7293
|
-
object.payload = null;
|
|
7294
|
-
}
|
|
7295
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
7296
|
-
object.id = message.id;
|
|
7297
|
-
if (message.replyTo != null && message.hasOwnProperty("replyTo")) {
|
|
7298
|
-
object.replyTo = message.replyTo;
|
|
7299
|
-
if (options.oneofs)
|
|
7300
|
-
object._replyTo = "replyTo";
|
|
7301
|
-
}
|
|
7302
|
-
if (message.from != null && message.hasOwnProperty("from"))
|
|
7303
|
-
object.from = message.from;
|
|
7304
|
-
if (message.to != null && message.hasOwnProperty("to"))
|
|
7305
|
-
object.to = message.to;
|
|
7306
|
-
if (message.serviceName != null && message.hasOwnProperty("serviceName"))
|
|
7307
|
-
object.serviceName = message.serviceName;
|
|
7308
|
-
if (message.procedureName != null && message.hasOwnProperty("procedureName"))
|
|
7309
|
-
object.procedureName = message.procedureName;
|
|
7310
|
-
if (message.ack != null && message.hasOwnProperty("ack")) {
|
|
7311
|
-
object.ack = message.ack;
|
|
7312
|
-
if (options.oneofs)
|
|
7313
|
-
object._ack = "ack";
|
|
7314
|
-
}
|
|
7315
|
-
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
7316
|
-
object.payload = $root.google.protobuf.Value.toObject(message.payload, options);
|
|
7317
|
-
return object;
|
|
7318
|
-
};
|
|
7319
|
-
|
|
7320
|
-
/**
|
|
7321
|
-
* Converts this RiverMessage to JSON.
|
|
7322
|
-
* @function toJSON
|
|
7323
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7324
|
-
* @instance
|
|
7325
|
-
* @returns {Object.<string,*>} JSON object
|
|
7326
|
-
*/
|
|
7327
|
-
RiverMessage.prototype.toJSON = function toJSON() {
|
|
7328
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7329
|
-
};
|
|
7330
|
-
|
|
7331
|
-
/**
|
|
7332
|
-
* Gets the default type url for RiverMessage
|
|
7333
|
-
* @function getTypeUrl
|
|
7334
|
-
* @memberof replit.goval.api.RiverMessage
|
|
7335
|
-
* @static
|
|
7336
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7337
|
-
* @returns {string} The default type url
|
|
7338
|
-
*/
|
|
7339
|
-
RiverMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7340
|
-
if (typeUrlPrefix === undefined) {
|
|
7341
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
7342
|
-
}
|
|
7343
|
-
return typeUrlPrefix + "/replit.goval.api.RiverMessage";
|
|
7344
|
-
};
|
|
7345
|
-
|
|
7346
|
-
return RiverMessage;
|
|
7347
|
-
})();
|
|
7348
|
-
|
|
7349
6876
|
api.NixPackageAddRequest = (function() {
|
|
7350
6877
|
|
|
7351
6878
|
/**
|
|
@@ -25838,208 +25365,6 @@
|
|
|
25838
25365
|
return Redirect;
|
|
25839
25366
|
})();
|
|
25840
25367
|
|
|
25841
|
-
api.AlwaysOn = (function() {
|
|
25842
|
-
|
|
25843
|
-
/**
|
|
25844
|
-
* Properties of an AlwaysOn.
|
|
25845
|
-
* @memberof replit.goval.api
|
|
25846
|
-
* @interface IAlwaysOn
|
|
25847
|
-
* @property {boolean|null} [enable] AlwaysOn enable
|
|
25848
|
-
*/
|
|
25849
|
-
|
|
25850
|
-
/**
|
|
25851
|
-
* Constructs a new AlwaysOn.
|
|
25852
|
-
* @memberof replit.goval.api
|
|
25853
|
-
* @classdesc Represents an AlwaysOn.
|
|
25854
|
-
* @constructor
|
|
25855
|
-
* @param {replit.goval.api.IAlwaysOn=} [properties] Properties to set
|
|
25856
|
-
*/
|
|
25857
|
-
function AlwaysOn(properties) {
|
|
25858
|
-
if (properties)
|
|
25859
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25860
|
-
if (properties[keys[i]] != null)
|
|
25861
|
-
this[keys[i]] = properties[keys[i]];
|
|
25862
|
-
}
|
|
25863
|
-
|
|
25864
|
-
/**
|
|
25865
|
-
* AlwaysOn enable.
|
|
25866
|
-
* @member {boolean} enable
|
|
25867
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25868
|
-
* @instance
|
|
25869
|
-
*/
|
|
25870
|
-
AlwaysOn.prototype.enable = false;
|
|
25871
|
-
|
|
25872
|
-
/**
|
|
25873
|
-
* Creates a new AlwaysOn instance using the specified properties.
|
|
25874
|
-
* @function create
|
|
25875
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25876
|
-
* @static
|
|
25877
|
-
* @param {replit.goval.api.IAlwaysOn=} [properties] Properties to set
|
|
25878
|
-
* @returns {replit.goval.api.AlwaysOn} AlwaysOn instance
|
|
25879
|
-
*/
|
|
25880
|
-
AlwaysOn.create = function create(properties) {
|
|
25881
|
-
return AlwaysOn.fromObject(properties);
|
|
25882
|
-
};
|
|
25883
|
-
|
|
25884
|
-
/**
|
|
25885
|
-
* Encodes the specified AlwaysOn message. Does not implicitly {@link replit.goval.api.AlwaysOn.verify|verify} messages.
|
|
25886
|
-
* @function encode
|
|
25887
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25888
|
-
* @static
|
|
25889
|
-
* @param {replit.goval.api.AlwaysOn} message AlwaysOn message or plain object to encode
|
|
25890
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25891
|
-
* @returns {$protobuf.Writer} Writer
|
|
25892
|
-
*/
|
|
25893
|
-
AlwaysOn.encode = function encode(message, writer) {
|
|
25894
|
-
if (!writer)
|
|
25895
|
-
writer = $Writer.create();
|
|
25896
|
-
if (message.enable != null && Object.hasOwnProperty.call(message, "enable"))
|
|
25897
|
-
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enable);
|
|
25898
|
-
return writer;
|
|
25899
|
-
};
|
|
25900
|
-
|
|
25901
|
-
/**
|
|
25902
|
-
* Encodes the specified AlwaysOn message, length delimited. Does not implicitly {@link replit.goval.api.AlwaysOn.verify|verify} messages.
|
|
25903
|
-
* @function encodeDelimited
|
|
25904
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25905
|
-
* @static
|
|
25906
|
-
* @param {replit.goval.api.AlwaysOn} message AlwaysOn message or plain object to encode
|
|
25907
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25908
|
-
* @returns {$protobuf.Writer} Writer
|
|
25909
|
-
*/
|
|
25910
|
-
AlwaysOn.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25911
|
-
return this.encode(message, writer).ldelim();
|
|
25912
|
-
};
|
|
25913
|
-
|
|
25914
|
-
/**
|
|
25915
|
-
* Decodes an AlwaysOn message from the specified reader or buffer.
|
|
25916
|
-
* @function decode
|
|
25917
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25918
|
-
* @static
|
|
25919
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25920
|
-
* @param {number} [length] Message length if known beforehand
|
|
25921
|
-
* @returns {replit.goval.api.AlwaysOn} AlwaysOn
|
|
25922
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25923
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25924
|
-
*/
|
|
25925
|
-
AlwaysOn.decode = function decode(reader, length) {
|
|
25926
|
-
if (!(reader instanceof $Reader))
|
|
25927
|
-
reader = $Reader.create(reader);
|
|
25928
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.AlwaysOn();
|
|
25929
|
-
while (reader.pos < end) {
|
|
25930
|
-
var tag = reader.uint32();
|
|
25931
|
-
switch (tag >>> 3) {
|
|
25932
|
-
case 1: {
|
|
25933
|
-
message.enable = reader.bool();
|
|
25934
|
-
break;
|
|
25935
|
-
}
|
|
25936
|
-
default:
|
|
25937
|
-
reader.skipType(tag & 7);
|
|
25938
|
-
break;
|
|
25939
|
-
}
|
|
25940
|
-
}
|
|
25941
|
-
return message;
|
|
25942
|
-
};
|
|
25943
|
-
|
|
25944
|
-
/**
|
|
25945
|
-
* Decodes an AlwaysOn message from the specified reader or buffer, length delimited.
|
|
25946
|
-
* @function decodeDelimited
|
|
25947
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25948
|
-
* @static
|
|
25949
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25950
|
-
* @returns {replit.goval.api.AlwaysOn} AlwaysOn
|
|
25951
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25952
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25953
|
-
*/
|
|
25954
|
-
AlwaysOn.decodeDelimited = function decodeDelimited(reader) {
|
|
25955
|
-
if (!(reader instanceof $Reader))
|
|
25956
|
-
reader = new $Reader(reader);
|
|
25957
|
-
return this.decode(reader, reader.uint32());
|
|
25958
|
-
};
|
|
25959
|
-
|
|
25960
|
-
/**
|
|
25961
|
-
* Verifies an AlwaysOn message.
|
|
25962
|
-
* @function verify
|
|
25963
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25964
|
-
* @static
|
|
25965
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
25966
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25967
|
-
*/
|
|
25968
|
-
AlwaysOn.verify = function verify(message) {
|
|
25969
|
-
if (typeof message !== "object" || message === null)
|
|
25970
|
-
return "object expected";
|
|
25971
|
-
if (message.enable != null && message.hasOwnProperty("enable"))
|
|
25972
|
-
if (typeof message.enable !== "boolean")
|
|
25973
|
-
return "enable: boolean expected";
|
|
25974
|
-
return null;
|
|
25975
|
-
};
|
|
25976
|
-
|
|
25977
|
-
/**
|
|
25978
|
-
* Creates an AlwaysOn message from a plain object. Also converts values to their respective internal types.
|
|
25979
|
-
* @function fromObject
|
|
25980
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25981
|
-
* @static
|
|
25982
|
-
* @param {Object.<string,*>} object Plain object
|
|
25983
|
-
* @returns {replit.goval.api.AlwaysOn} AlwaysOn
|
|
25984
|
-
*/
|
|
25985
|
-
AlwaysOn.fromObject = function fromObject(object) {
|
|
25986
|
-
if (object instanceof $root.replit.goval.api.AlwaysOn)
|
|
25987
|
-
return object;
|
|
25988
|
-
var message = new $root.replit.goval.api.AlwaysOn();
|
|
25989
|
-
if (object.enable != null)
|
|
25990
|
-
message.enable = Boolean(object.enable);
|
|
25991
|
-
return message;
|
|
25992
|
-
};
|
|
25993
|
-
|
|
25994
|
-
/**
|
|
25995
|
-
* Creates a plain object from an AlwaysOn message. Also converts values to other types if specified.
|
|
25996
|
-
* @function toObject
|
|
25997
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
25998
|
-
* @static
|
|
25999
|
-
* @param {replit.goval.api.AlwaysOn} message AlwaysOn
|
|
26000
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26001
|
-
* @returns {Object.<string,*>} Plain object
|
|
26002
|
-
*/
|
|
26003
|
-
AlwaysOn.toObject = function toObject(message, options) {
|
|
26004
|
-
if (!options)
|
|
26005
|
-
options = {};
|
|
26006
|
-
var object = {};
|
|
26007
|
-
if (options.defaults)
|
|
26008
|
-
object.enable = false;
|
|
26009
|
-
if (message.enable != null && message.hasOwnProperty("enable"))
|
|
26010
|
-
object.enable = message.enable;
|
|
26011
|
-
return object;
|
|
26012
|
-
};
|
|
26013
|
-
|
|
26014
|
-
/**
|
|
26015
|
-
* Converts this AlwaysOn to JSON.
|
|
26016
|
-
* @function toJSON
|
|
26017
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
26018
|
-
* @instance
|
|
26019
|
-
* @returns {Object.<string,*>} JSON object
|
|
26020
|
-
*/
|
|
26021
|
-
AlwaysOn.prototype.toJSON = function toJSON() {
|
|
26022
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26023
|
-
};
|
|
26024
|
-
|
|
26025
|
-
/**
|
|
26026
|
-
* Gets the default type url for AlwaysOn
|
|
26027
|
-
* @function getTypeUrl
|
|
26028
|
-
* @memberof replit.goval.api.AlwaysOn
|
|
26029
|
-
* @static
|
|
26030
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
26031
|
-
* @returns {string} The default type url
|
|
26032
|
-
*/
|
|
26033
|
-
AlwaysOn.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
26034
|
-
if (typeUrlPrefix === undefined) {
|
|
26035
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
26036
|
-
}
|
|
26037
|
-
return typeUrlPrefix + "/replit.goval.api.AlwaysOn";
|
|
26038
|
-
};
|
|
26039
|
-
|
|
26040
|
-
return AlwaysOn;
|
|
26041
|
-
})();
|
|
26042
|
-
|
|
26043
25368
|
api.RunMain = (function() {
|
|
26044
25369
|
|
|
26045
25370
|
/**
|
|
@@ -34687,6 +34012,7 @@
|
|
|
34687
34012
|
* @property {replit.goval.api.Exec.Lifecycle|null} [lifecycle] Exec lifecycle
|
|
34688
34013
|
* @property {boolean|null} [splitStderr] Exec splitStderr
|
|
34689
34014
|
* @property {boolean|null} [splitLogs] Exec splitLogs
|
|
34015
|
+
* @property {boolean|null} [waitForEnv] Exec waitForEnv
|
|
34690
34016
|
*/
|
|
34691
34017
|
|
|
34692
34018
|
/**
|
|
@@ -34753,6 +34079,14 @@
|
|
|
34753
34079
|
*/
|
|
34754
34080
|
Exec.prototype.splitLogs = false;
|
|
34755
34081
|
|
|
34082
|
+
/**
|
|
34083
|
+
* Exec waitForEnv.
|
|
34084
|
+
* @member {boolean} waitForEnv
|
|
34085
|
+
* @memberof replit.goval.api.Exec
|
|
34086
|
+
* @instance
|
|
34087
|
+
*/
|
|
34088
|
+
Exec.prototype.waitForEnv = false;
|
|
34089
|
+
|
|
34756
34090
|
/**
|
|
34757
34091
|
* Creates a new Exec instance using the specified properties.
|
|
34758
34092
|
* @function create
|
|
@@ -34791,6 +34125,8 @@
|
|
|
34791
34125
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.splitLogs);
|
|
34792
34126
|
if (message.lifecycle != null && Object.hasOwnProperty.call(message, "lifecycle"))
|
|
34793
34127
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.lifecycle);
|
|
34128
|
+
if (message.waitForEnv != null && Object.hasOwnProperty.call(message, "waitForEnv"))
|
|
34129
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.waitForEnv);
|
|
34794
34130
|
return writer;
|
|
34795
34131
|
};
|
|
34796
34132
|
|
|
@@ -34870,6 +34206,10 @@
|
|
|
34870
34206
|
message.splitLogs = reader.bool();
|
|
34871
34207
|
break;
|
|
34872
34208
|
}
|
|
34209
|
+
case 7: {
|
|
34210
|
+
message.waitForEnv = reader.bool();
|
|
34211
|
+
break;
|
|
34212
|
+
}
|
|
34873
34213
|
default:
|
|
34874
34214
|
reader.skipType(tag & 7);
|
|
34875
34215
|
break;
|
|
@@ -34938,6 +34278,9 @@
|
|
|
34938
34278
|
if (message.splitLogs != null && message.hasOwnProperty("splitLogs"))
|
|
34939
34279
|
if (typeof message.splitLogs !== "boolean")
|
|
34940
34280
|
return "splitLogs: boolean expected";
|
|
34281
|
+
if (message.waitForEnv != null && message.hasOwnProperty("waitForEnv"))
|
|
34282
|
+
if (typeof message.waitForEnv !== "boolean")
|
|
34283
|
+
return "waitForEnv: boolean expected";
|
|
34941
34284
|
return null;
|
|
34942
34285
|
};
|
|
34943
34286
|
|
|
@@ -34993,6 +34336,8 @@
|
|
|
34993
34336
|
message.splitStderr = Boolean(object.splitStderr);
|
|
34994
34337
|
if (object.splitLogs != null)
|
|
34995
34338
|
message.splitLogs = Boolean(object.splitLogs);
|
|
34339
|
+
if (object.waitForEnv != null)
|
|
34340
|
+
message.waitForEnv = Boolean(object.waitForEnv);
|
|
34996
34341
|
return message;
|
|
34997
34342
|
};
|
|
34998
34343
|
|
|
@@ -35018,6 +34363,7 @@
|
|
|
35018
34363
|
object.splitStderr = false;
|
|
35019
34364
|
object.splitLogs = false;
|
|
35020
34365
|
object.lifecycle = options.enums === String ? "NON_BLOCKING" : 0;
|
|
34366
|
+
object.waitForEnv = false;
|
|
35021
34367
|
}
|
|
35022
34368
|
if (message.args && message.args.length) {
|
|
35023
34369
|
object.args = [];
|
|
@@ -35038,6 +34384,8 @@
|
|
|
35038
34384
|
object.splitLogs = message.splitLogs;
|
|
35039
34385
|
if (message.lifecycle != null && message.hasOwnProperty("lifecycle"))
|
|
35040
34386
|
object.lifecycle = options.enums === String ? $root.replit.goval.api.Exec.Lifecycle[message.lifecycle] === undefined ? message.lifecycle : $root.replit.goval.api.Exec.Lifecycle[message.lifecycle] : message.lifecycle;
|
|
34387
|
+
if (message.waitForEnv != null && message.hasOwnProperty("waitForEnv"))
|
|
34388
|
+
object.waitForEnv = message.waitForEnv;
|
|
35041
34389
|
return object;
|
|
35042
34390
|
};
|
|
35043
34391
|
|
|
@@ -46027,6 +45375,7 @@
|
|
|
46027
45375
|
* @property {replit.goval.api.ExtensionConfig|replit.goval.api.IExtensionConfig|null} [extension] DotReplit extension
|
|
46028
45376
|
* @property {replit.goval.api.RulesConfig|replit.goval.api.IRulesConfig|null} [rules] DotReplit rules
|
|
46029
45377
|
* @property {replit.goval.api.SuggestionsConfig|replit.goval.api.ISuggestionsConfig|null} [suggestions] DotReplit suggestions
|
|
45378
|
+
* @property {replit.goval.api.ObjectStorageConfig|replit.goval.api.IObjectStorageConfig|null} [objectStorage] DotReplit objectStorage
|
|
46030
45379
|
*/
|
|
46031
45380
|
|
|
46032
45381
|
/**
|
|
@@ -46259,6 +45608,14 @@
|
|
|
46259
45608
|
*/
|
|
46260
45609
|
DotReplit.prototype.suggestions = null;
|
|
46261
45610
|
|
|
45611
|
+
/**
|
|
45612
|
+
* DotReplit objectStorage.
|
|
45613
|
+
* @member {replit.goval.api.ObjectStorageConfig|null|undefined} objectStorage
|
|
45614
|
+
* @memberof replit.goval.api.DotReplit
|
|
45615
|
+
* @instance
|
|
45616
|
+
*/
|
|
45617
|
+
DotReplit.prototype.objectStorage = null;
|
|
45618
|
+
|
|
46262
45619
|
/**
|
|
46263
45620
|
* Creates a new DotReplit instance using the specified properties.
|
|
46264
45621
|
* @function create
|
|
@@ -46345,6 +45702,8 @@
|
|
|
46345
45702
|
$root.replit.goval.api.RulesConfig.encode(message.rules, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
|
|
46346
45703
|
if (message.suggestions != null && Object.hasOwnProperty.call(message, "suggestions"))
|
|
46347
45704
|
$root.replit.goval.api.SuggestionsConfig.encode(message.suggestions, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
45705
|
+
if (message.objectStorage != null && Object.hasOwnProperty.call(message, "objectStorage"))
|
|
45706
|
+
$root.replit.goval.api.ObjectStorageConfig.encode(message.objectStorage, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
46348
45707
|
return writer;
|
|
46349
45708
|
};
|
|
46350
45709
|
|
|
@@ -46533,6 +45892,10 @@
|
|
|
46533
45892
|
message.suggestions = $root.replit.goval.api.SuggestionsConfig.decode(reader, reader.uint32());
|
|
46534
45893
|
break;
|
|
46535
45894
|
}
|
|
45895
|
+
case 27: {
|
|
45896
|
+
message.objectStorage = $root.replit.goval.api.ObjectStorageConfig.decode(reader, reader.uint32());
|
|
45897
|
+
break;
|
|
45898
|
+
}
|
|
46536
45899
|
default:
|
|
46537
45900
|
reader.skipType(tag & 7);
|
|
46538
45901
|
break;
|
|
@@ -46718,6 +46081,11 @@
|
|
|
46718
46081
|
if (error)
|
|
46719
46082
|
return "suggestions." + error;
|
|
46720
46083
|
}
|
|
46084
|
+
if (message.objectStorage != null && message.hasOwnProperty("objectStorage")) {
|
|
46085
|
+
var error = $root.replit.goval.api.ObjectStorageConfig.verify(message.objectStorage);
|
|
46086
|
+
if (error)
|
|
46087
|
+
return "objectStorage." + error;
|
|
46088
|
+
}
|
|
46721
46089
|
return null;
|
|
46722
46090
|
};
|
|
46723
46091
|
|
|
@@ -46882,6 +46250,11 @@
|
|
|
46882
46250
|
throw TypeError(".replit.goval.api.DotReplit.suggestions: object expected");
|
|
46883
46251
|
message.suggestions = $root.replit.goval.api.SuggestionsConfig.fromObject(object.suggestions);
|
|
46884
46252
|
}
|
|
46253
|
+
if (object.objectStorage != null) {
|
|
46254
|
+
if (typeof object.objectStorage !== "object")
|
|
46255
|
+
throw TypeError(".replit.goval.api.DotReplit.objectStorage: object expected");
|
|
46256
|
+
message.objectStorage = $root.replit.goval.api.ObjectStorageConfig.fromObject(object.objectStorage);
|
|
46257
|
+
}
|
|
46885
46258
|
return message;
|
|
46886
46259
|
};
|
|
46887
46260
|
|
|
@@ -46929,6 +46302,7 @@
|
|
|
46929
46302
|
object.extension = null;
|
|
46930
46303
|
object.rules = null;
|
|
46931
46304
|
object.suggestions = null;
|
|
46305
|
+
object.objectStorage = null;
|
|
46932
46306
|
}
|
|
46933
46307
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
46934
46308
|
object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
|
|
@@ -47007,6 +46381,8 @@
|
|
|
47007
46381
|
object.rules = $root.replit.goval.api.RulesConfig.toObject(message.rules, options);
|
|
47008
46382
|
if (message.suggestions != null && message.hasOwnProperty("suggestions"))
|
|
47009
46383
|
object.suggestions = $root.replit.goval.api.SuggestionsConfig.toObject(message.suggestions, options);
|
|
46384
|
+
if (message.objectStorage != null && message.hasOwnProperty("objectStorage"))
|
|
46385
|
+
object.objectStorage = $root.replit.goval.api.ObjectStorageConfig.toObject(message.objectStorage, options);
|
|
47010
46386
|
return object;
|
|
47011
46387
|
};
|
|
47012
46388
|
|
|
@@ -56614,6 +55990,208 @@
|
|
|
56614
55990
|
return NixModulesUpgradeMapEntry;
|
|
56615
55991
|
})();
|
|
56616
55992
|
|
|
55993
|
+
api.ObjectStorageConfig = (function() {
|
|
55994
|
+
|
|
55995
|
+
/**
|
|
55996
|
+
* Properties of an ObjectStorageConfig.
|
|
55997
|
+
* @memberof replit.goval.api
|
|
55998
|
+
* @interface IObjectStorageConfig
|
|
55999
|
+
* @property {string|null} [defaultBucketID] ObjectStorageConfig defaultBucketID
|
|
56000
|
+
*/
|
|
56001
|
+
|
|
56002
|
+
/**
|
|
56003
|
+
* Constructs a new ObjectStorageConfig.
|
|
56004
|
+
* @memberof replit.goval.api
|
|
56005
|
+
* @classdesc Represents an ObjectStorageConfig.
|
|
56006
|
+
* @constructor
|
|
56007
|
+
* @param {replit.goval.api.IObjectStorageConfig=} [properties] Properties to set
|
|
56008
|
+
*/
|
|
56009
|
+
function ObjectStorageConfig(properties) {
|
|
56010
|
+
if (properties)
|
|
56011
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
56012
|
+
if (properties[keys[i]] != null)
|
|
56013
|
+
this[keys[i]] = properties[keys[i]];
|
|
56014
|
+
}
|
|
56015
|
+
|
|
56016
|
+
/**
|
|
56017
|
+
* ObjectStorageConfig defaultBucketID.
|
|
56018
|
+
* @member {string} defaultBucketID
|
|
56019
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56020
|
+
* @instance
|
|
56021
|
+
*/
|
|
56022
|
+
ObjectStorageConfig.prototype.defaultBucketID = "";
|
|
56023
|
+
|
|
56024
|
+
/**
|
|
56025
|
+
* Creates a new ObjectStorageConfig instance using the specified properties.
|
|
56026
|
+
* @function create
|
|
56027
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56028
|
+
* @static
|
|
56029
|
+
* @param {replit.goval.api.IObjectStorageConfig=} [properties] Properties to set
|
|
56030
|
+
* @returns {replit.goval.api.ObjectStorageConfig} ObjectStorageConfig instance
|
|
56031
|
+
*/
|
|
56032
|
+
ObjectStorageConfig.create = function create(properties) {
|
|
56033
|
+
return ObjectStorageConfig.fromObject(properties);
|
|
56034
|
+
};
|
|
56035
|
+
|
|
56036
|
+
/**
|
|
56037
|
+
* Encodes the specified ObjectStorageConfig message. Does not implicitly {@link replit.goval.api.ObjectStorageConfig.verify|verify} messages.
|
|
56038
|
+
* @function encode
|
|
56039
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56040
|
+
* @static
|
|
56041
|
+
* @param {replit.goval.api.ObjectStorageConfig} message ObjectStorageConfig message or plain object to encode
|
|
56042
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56043
|
+
* @returns {$protobuf.Writer} Writer
|
|
56044
|
+
*/
|
|
56045
|
+
ObjectStorageConfig.encode = function encode(message, writer) {
|
|
56046
|
+
if (!writer)
|
|
56047
|
+
writer = $Writer.create();
|
|
56048
|
+
if (message.defaultBucketID != null && Object.hasOwnProperty.call(message, "defaultBucketID"))
|
|
56049
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultBucketID);
|
|
56050
|
+
return writer;
|
|
56051
|
+
};
|
|
56052
|
+
|
|
56053
|
+
/**
|
|
56054
|
+
* Encodes the specified ObjectStorageConfig message, length delimited. Does not implicitly {@link replit.goval.api.ObjectStorageConfig.verify|verify} messages.
|
|
56055
|
+
* @function encodeDelimited
|
|
56056
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56057
|
+
* @static
|
|
56058
|
+
* @param {replit.goval.api.ObjectStorageConfig} message ObjectStorageConfig message or plain object to encode
|
|
56059
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56060
|
+
* @returns {$protobuf.Writer} Writer
|
|
56061
|
+
*/
|
|
56062
|
+
ObjectStorageConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
56063
|
+
return this.encode(message, writer).ldelim();
|
|
56064
|
+
};
|
|
56065
|
+
|
|
56066
|
+
/**
|
|
56067
|
+
* Decodes an ObjectStorageConfig message from the specified reader or buffer.
|
|
56068
|
+
* @function decode
|
|
56069
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56070
|
+
* @static
|
|
56071
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56072
|
+
* @param {number} [length] Message length if known beforehand
|
|
56073
|
+
* @returns {replit.goval.api.ObjectStorageConfig} ObjectStorageConfig
|
|
56074
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56075
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56076
|
+
*/
|
|
56077
|
+
ObjectStorageConfig.decode = function decode(reader, length) {
|
|
56078
|
+
if (!(reader instanceof $Reader))
|
|
56079
|
+
reader = $Reader.create(reader);
|
|
56080
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ObjectStorageConfig();
|
|
56081
|
+
while (reader.pos < end) {
|
|
56082
|
+
var tag = reader.uint32();
|
|
56083
|
+
switch (tag >>> 3) {
|
|
56084
|
+
case 1: {
|
|
56085
|
+
message.defaultBucketID = reader.string();
|
|
56086
|
+
break;
|
|
56087
|
+
}
|
|
56088
|
+
default:
|
|
56089
|
+
reader.skipType(tag & 7);
|
|
56090
|
+
break;
|
|
56091
|
+
}
|
|
56092
|
+
}
|
|
56093
|
+
return message;
|
|
56094
|
+
};
|
|
56095
|
+
|
|
56096
|
+
/**
|
|
56097
|
+
* Decodes an ObjectStorageConfig message from the specified reader or buffer, length delimited.
|
|
56098
|
+
* @function decodeDelimited
|
|
56099
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56100
|
+
* @static
|
|
56101
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56102
|
+
* @returns {replit.goval.api.ObjectStorageConfig} ObjectStorageConfig
|
|
56103
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56104
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56105
|
+
*/
|
|
56106
|
+
ObjectStorageConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
56107
|
+
if (!(reader instanceof $Reader))
|
|
56108
|
+
reader = new $Reader(reader);
|
|
56109
|
+
return this.decode(reader, reader.uint32());
|
|
56110
|
+
};
|
|
56111
|
+
|
|
56112
|
+
/**
|
|
56113
|
+
* Verifies an ObjectStorageConfig message.
|
|
56114
|
+
* @function verify
|
|
56115
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56116
|
+
* @static
|
|
56117
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
56118
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
56119
|
+
*/
|
|
56120
|
+
ObjectStorageConfig.verify = function verify(message) {
|
|
56121
|
+
if (typeof message !== "object" || message === null)
|
|
56122
|
+
return "object expected";
|
|
56123
|
+
if (message.defaultBucketID != null && message.hasOwnProperty("defaultBucketID"))
|
|
56124
|
+
if (!$util.isString(message.defaultBucketID))
|
|
56125
|
+
return "defaultBucketID: string expected";
|
|
56126
|
+
return null;
|
|
56127
|
+
};
|
|
56128
|
+
|
|
56129
|
+
/**
|
|
56130
|
+
* Creates an ObjectStorageConfig message from a plain object. Also converts values to their respective internal types.
|
|
56131
|
+
* @function fromObject
|
|
56132
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56133
|
+
* @static
|
|
56134
|
+
* @param {Object.<string,*>} object Plain object
|
|
56135
|
+
* @returns {replit.goval.api.ObjectStorageConfig} ObjectStorageConfig
|
|
56136
|
+
*/
|
|
56137
|
+
ObjectStorageConfig.fromObject = function fromObject(object) {
|
|
56138
|
+
if (object instanceof $root.replit.goval.api.ObjectStorageConfig)
|
|
56139
|
+
return object;
|
|
56140
|
+
var message = new $root.replit.goval.api.ObjectStorageConfig();
|
|
56141
|
+
if (object.defaultBucketID != null)
|
|
56142
|
+
message.defaultBucketID = String(object.defaultBucketID);
|
|
56143
|
+
return message;
|
|
56144
|
+
};
|
|
56145
|
+
|
|
56146
|
+
/**
|
|
56147
|
+
* Creates a plain object from an ObjectStorageConfig message. Also converts values to other types if specified.
|
|
56148
|
+
* @function toObject
|
|
56149
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56150
|
+
* @static
|
|
56151
|
+
* @param {replit.goval.api.ObjectStorageConfig} message ObjectStorageConfig
|
|
56152
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
56153
|
+
* @returns {Object.<string,*>} Plain object
|
|
56154
|
+
*/
|
|
56155
|
+
ObjectStorageConfig.toObject = function toObject(message, options) {
|
|
56156
|
+
if (!options)
|
|
56157
|
+
options = {};
|
|
56158
|
+
var object = {};
|
|
56159
|
+
if (options.defaults)
|
|
56160
|
+
object.defaultBucketID = "";
|
|
56161
|
+
if (message.defaultBucketID != null && message.hasOwnProperty("defaultBucketID"))
|
|
56162
|
+
object.defaultBucketID = message.defaultBucketID;
|
|
56163
|
+
return object;
|
|
56164
|
+
};
|
|
56165
|
+
|
|
56166
|
+
/**
|
|
56167
|
+
* Converts this ObjectStorageConfig to JSON.
|
|
56168
|
+
* @function toJSON
|
|
56169
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56170
|
+
* @instance
|
|
56171
|
+
* @returns {Object.<string,*>} JSON object
|
|
56172
|
+
*/
|
|
56173
|
+
ObjectStorageConfig.prototype.toJSON = function toJSON() {
|
|
56174
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
56175
|
+
};
|
|
56176
|
+
|
|
56177
|
+
/**
|
|
56178
|
+
* Gets the default type url for ObjectStorageConfig
|
|
56179
|
+
* @function getTypeUrl
|
|
56180
|
+
* @memberof replit.goval.api.ObjectStorageConfig
|
|
56181
|
+
* @static
|
|
56182
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
56183
|
+
* @returns {string} The default type url
|
|
56184
|
+
*/
|
|
56185
|
+
ObjectStorageConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
56186
|
+
if (typeUrlPrefix === undefined) {
|
|
56187
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
56188
|
+
}
|
|
56189
|
+
return typeUrlPrefix + "/replit.goval.api.ObjectStorageConfig";
|
|
56190
|
+
};
|
|
56191
|
+
|
|
56192
|
+
return ObjectStorageConfig;
|
|
56193
|
+
})();
|
|
56194
|
+
|
|
56617
56195
|
api.ToolchainGetRequest = (function() {
|
|
56618
56196
|
|
|
56619
56197
|
/**
|
|
@@ -62914,7 +62492,6 @@
|
|
|
62914
62492
|
* @property {replit.goval.api.ReplToken.WireFormat|null} [format] ReplToken format
|
|
62915
62493
|
* @property {replit.goval.api.ReplToken.Presenced|replit.goval.api.ReplToken.IPresenced|null} [presenced] ReplToken presenced
|
|
62916
62494
|
* @property {Array.<string>|null} [flags] ReplToken flags
|
|
62917
|
-
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] ReplToken permissions
|
|
62918
62495
|
* @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
|
|
62919
62496
|
* @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] ReplToken buildInfo
|
|
62920
62497
|
* @property {replit.goval.api.repl.Pid2Binary|replit.goval.api.repl.IPid2Binary|null} [pid2Info] ReplToken pid2Info
|
|
@@ -63041,14 +62618,6 @@
|
|
|
63041
62618
|
*/
|
|
63042
62619
|
ReplToken.prototype.flags = $util.emptyArray;
|
|
63043
62620
|
|
|
63044
|
-
/**
|
|
63045
|
-
* ReplToken permissions.
|
|
63046
|
-
* @member {replit.goval.api.repl.Permissions|null|undefined} permissions
|
|
63047
|
-
* @memberof replit.goval.api.ReplToken
|
|
63048
|
-
* @instance
|
|
63049
|
-
*/
|
|
63050
|
-
ReplToken.prototype.permissions = null;
|
|
63051
|
-
|
|
63052
62621
|
/**
|
|
63053
62622
|
* ReplToken features.
|
|
63054
62623
|
* @member {Array.<replit.goval.api.features.Feature>} features
|
|
@@ -63144,8 +62713,6 @@
|
|
|
63144
62713
|
if (message.flags != null && message.flags.length)
|
|
63145
62714
|
for (var i = 0; i < message.flags.length; ++i)
|
|
63146
62715
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.flags[i]);
|
|
63147
|
-
if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions"))
|
|
63148
|
-
$root.replit.goval.api.repl.Permissions.encode(message.permissions, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
63149
62716
|
if (message.features != null && message.features.length)
|
|
63150
62717
|
for (var i = 0; i < message.features.length; ++i)
|
|
63151
62718
|
$root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
@@ -63245,10 +62812,6 @@
|
|
|
63245
62812
|
message.flags.push(reader.string());
|
|
63246
62813
|
break;
|
|
63247
62814
|
}
|
|
63248
|
-
case 15: {
|
|
63249
|
-
message.permissions = $root.replit.goval.api.repl.Permissions.decode(reader, reader.uint32());
|
|
63250
|
-
break;
|
|
63251
|
-
}
|
|
63252
62815
|
case 16: {
|
|
63253
62816
|
if (!(message.features && message.features.length))
|
|
63254
62817
|
message.features = [];
|
|
@@ -63388,11 +62951,6 @@
|
|
|
63388
62951
|
if (!$util.isString(message.flags[i]))
|
|
63389
62952
|
return "flags: string[] expected";
|
|
63390
62953
|
}
|
|
63391
|
-
if (message.permissions != null && message.hasOwnProperty("permissions")) {
|
|
63392
|
-
var error = $root.replit.goval.api.repl.Permissions.verify(message.permissions);
|
|
63393
|
-
if (error)
|
|
63394
|
-
return "permissions." + error;
|
|
63395
|
-
}
|
|
63396
62954
|
if (message.features != null && message.hasOwnProperty("features")) {
|
|
63397
62955
|
if (!Array.isArray(message.features))
|
|
63398
62956
|
return "features: array expected";
|
|
@@ -63525,11 +63083,6 @@
|
|
|
63525
63083
|
for (var i = 0; i < object.flags.length; ++i)
|
|
63526
63084
|
message.flags[i] = String(object.flags[i]);
|
|
63527
63085
|
}
|
|
63528
|
-
if (object.permissions != null) {
|
|
63529
|
-
if (typeof object.permissions !== "object")
|
|
63530
|
-
throw TypeError(".replit.goval.api.ReplToken.permissions: object expected");
|
|
63531
|
-
message.permissions = $root.replit.goval.api.repl.Permissions.fromObject(object.permissions);
|
|
63532
|
-
}
|
|
63533
63086
|
if (object.features) {
|
|
63534
63087
|
if (!Array.isArray(object.features))
|
|
63535
63088
|
throw TypeError(".replit.goval.api.ReplToken.features: array expected");
|
|
@@ -63581,7 +63134,6 @@
|
|
|
63581
63134
|
object.resourceLimits = null;
|
|
63582
63135
|
object.format = options.enums === String ? "PROTOBUF" : 0;
|
|
63583
63136
|
object.presenced = null;
|
|
63584
|
-
object.permissions = null;
|
|
63585
63137
|
object.interactiveResourceLimits = null;
|
|
63586
63138
|
object.buildInfo = null;
|
|
63587
63139
|
object.pid2Info = null;
|
|
@@ -63623,8 +63175,6 @@
|
|
|
63623
63175
|
for (var j = 0; j < message.flags.length; ++j)
|
|
63624
63176
|
object.flags[j] = message.flags[j];
|
|
63625
63177
|
}
|
|
63626
|
-
if (message.permissions != null && message.hasOwnProperty("permissions"))
|
|
63627
|
-
object.permissions = $root.replit.goval.api.repl.Permissions.toObject(message.permissions, options);
|
|
63628
63178
|
if (message.features && message.features.length) {
|
|
63629
63179
|
object.features = [];
|
|
63630
63180
|
for (var j = 0; j < message.features.length; ++j)
|
|
@@ -76558,6 +76108,406 @@
|
|
|
76558
76108
|
return TransferReplsResponse;
|
|
76559
76109
|
})();
|
|
76560
76110
|
|
|
76111
|
+
lore.TransferReplFromOfflineClusterRequest = (function() {
|
|
76112
|
+
|
|
76113
|
+
/**
|
|
76114
|
+
* Properties of a TransferReplFromOfflineClusterRequest.
|
|
76115
|
+
* @memberof replit.goval.api.lore
|
|
76116
|
+
* @interface ITransferReplFromOfflineClusterRequest
|
|
76117
|
+
* @property {string|null} [newCluster] TransferReplFromOfflineClusterRequest newCluster
|
|
76118
|
+
* @property {string|null} [replId] TransferReplFromOfflineClusterRequest replId
|
|
76119
|
+
*/
|
|
76120
|
+
|
|
76121
|
+
/**
|
|
76122
|
+
* Constructs a new TransferReplFromOfflineClusterRequest.
|
|
76123
|
+
* @memberof replit.goval.api.lore
|
|
76124
|
+
* @classdesc Represents a TransferReplFromOfflineClusterRequest.
|
|
76125
|
+
* @constructor
|
|
76126
|
+
* @param {replit.goval.api.lore.ITransferReplFromOfflineClusterRequest=} [properties] Properties to set
|
|
76127
|
+
*/
|
|
76128
|
+
function TransferReplFromOfflineClusterRequest(properties) {
|
|
76129
|
+
if (properties)
|
|
76130
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76131
|
+
if (properties[keys[i]] != null)
|
|
76132
|
+
this[keys[i]] = properties[keys[i]];
|
|
76133
|
+
}
|
|
76134
|
+
|
|
76135
|
+
/**
|
|
76136
|
+
* TransferReplFromOfflineClusterRequest newCluster.
|
|
76137
|
+
* @member {string} newCluster
|
|
76138
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76139
|
+
* @instance
|
|
76140
|
+
*/
|
|
76141
|
+
TransferReplFromOfflineClusterRequest.prototype.newCluster = "";
|
|
76142
|
+
|
|
76143
|
+
/**
|
|
76144
|
+
* TransferReplFromOfflineClusterRequest replId.
|
|
76145
|
+
* @member {string} replId
|
|
76146
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76147
|
+
* @instance
|
|
76148
|
+
*/
|
|
76149
|
+
TransferReplFromOfflineClusterRequest.prototype.replId = "";
|
|
76150
|
+
|
|
76151
|
+
/**
|
|
76152
|
+
* Creates a new TransferReplFromOfflineClusterRequest instance using the specified properties.
|
|
76153
|
+
* @function create
|
|
76154
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76155
|
+
* @static
|
|
76156
|
+
* @param {replit.goval.api.lore.ITransferReplFromOfflineClusterRequest=} [properties] Properties to set
|
|
76157
|
+
* @returns {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} TransferReplFromOfflineClusterRequest instance
|
|
76158
|
+
*/
|
|
76159
|
+
TransferReplFromOfflineClusterRequest.create = function create(properties) {
|
|
76160
|
+
return TransferReplFromOfflineClusterRequest.fromObject(properties);
|
|
76161
|
+
};
|
|
76162
|
+
|
|
76163
|
+
/**
|
|
76164
|
+
* Encodes the specified TransferReplFromOfflineClusterRequest message. Does not implicitly {@link replit.goval.api.lore.TransferReplFromOfflineClusterRequest.verify|verify} messages.
|
|
76165
|
+
* @function encode
|
|
76166
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76167
|
+
* @static
|
|
76168
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} message TransferReplFromOfflineClusterRequest message or plain object to encode
|
|
76169
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76170
|
+
* @returns {$protobuf.Writer} Writer
|
|
76171
|
+
*/
|
|
76172
|
+
TransferReplFromOfflineClusterRequest.encode = function encode(message, writer) {
|
|
76173
|
+
if (!writer)
|
|
76174
|
+
writer = $Writer.create();
|
|
76175
|
+
if (message.newCluster != null && Object.hasOwnProperty.call(message, "newCluster"))
|
|
76176
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.newCluster);
|
|
76177
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
76178
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.replId);
|
|
76179
|
+
return writer;
|
|
76180
|
+
};
|
|
76181
|
+
|
|
76182
|
+
/**
|
|
76183
|
+
* Encodes the specified TransferReplFromOfflineClusterRequest message, length delimited. Does not implicitly {@link replit.goval.api.lore.TransferReplFromOfflineClusterRequest.verify|verify} messages.
|
|
76184
|
+
* @function encodeDelimited
|
|
76185
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76186
|
+
* @static
|
|
76187
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} message TransferReplFromOfflineClusterRequest message or plain object to encode
|
|
76188
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76189
|
+
* @returns {$protobuf.Writer} Writer
|
|
76190
|
+
*/
|
|
76191
|
+
TransferReplFromOfflineClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76192
|
+
return this.encode(message, writer).ldelim();
|
|
76193
|
+
};
|
|
76194
|
+
|
|
76195
|
+
/**
|
|
76196
|
+
* Decodes a TransferReplFromOfflineClusterRequest message from the specified reader or buffer.
|
|
76197
|
+
* @function decode
|
|
76198
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76199
|
+
* @static
|
|
76200
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76201
|
+
* @param {number} [length] Message length if known beforehand
|
|
76202
|
+
* @returns {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} TransferReplFromOfflineClusterRequest
|
|
76203
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76204
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76205
|
+
*/
|
|
76206
|
+
TransferReplFromOfflineClusterRequest.decode = function decode(reader, length) {
|
|
76207
|
+
if (!(reader instanceof $Reader))
|
|
76208
|
+
reader = $Reader.create(reader);
|
|
76209
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.TransferReplFromOfflineClusterRequest();
|
|
76210
|
+
while (reader.pos < end) {
|
|
76211
|
+
var tag = reader.uint32();
|
|
76212
|
+
switch (tag >>> 3) {
|
|
76213
|
+
case 1: {
|
|
76214
|
+
message.newCluster = reader.string();
|
|
76215
|
+
break;
|
|
76216
|
+
}
|
|
76217
|
+
case 2: {
|
|
76218
|
+
message.replId = reader.string();
|
|
76219
|
+
break;
|
|
76220
|
+
}
|
|
76221
|
+
default:
|
|
76222
|
+
reader.skipType(tag & 7);
|
|
76223
|
+
break;
|
|
76224
|
+
}
|
|
76225
|
+
}
|
|
76226
|
+
return message;
|
|
76227
|
+
};
|
|
76228
|
+
|
|
76229
|
+
/**
|
|
76230
|
+
* Decodes a TransferReplFromOfflineClusterRequest message from the specified reader or buffer, length delimited.
|
|
76231
|
+
* @function decodeDelimited
|
|
76232
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76233
|
+
* @static
|
|
76234
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76235
|
+
* @returns {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} TransferReplFromOfflineClusterRequest
|
|
76236
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76237
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76238
|
+
*/
|
|
76239
|
+
TransferReplFromOfflineClusterRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
76240
|
+
if (!(reader instanceof $Reader))
|
|
76241
|
+
reader = new $Reader(reader);
|
|
76242
|
+
return this.decode(reader, reader.uint32());
|
|
76243
|
+
};
|
|
76244
|
+
|
|
76245
|
+
/**
|
|
76246
|
+
* Verifies a TransferReplFromOfflineClusterRequest message.
|
|
76247
|
+
* @function verify
|
|
76248
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76249
|
+
* @static
|
|
76250
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76251
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76252
|
+
*/
|
|
76253
|
+
TransferReplFromOfflineClusterRequest.verify = function verify(message) {
|
|
76254
|
+
if (typeof message !== "object" || message === null)
|
|
76255
|
+
return "object expected";
|
|
76256
|
+
if (message.newCluster != null && message.hasOwnProperty("newCluster"))
|
|
76257
|
+
if (!$util.isString(message.newCluster))
|
|
76258
|
+
return "newCluster: string expected";
|
|
76259
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
76260
|
+
if (!$util.isString(message.replId))
|
|
76261
|
+
return "replId: string expected";
|
|
76262
|
+
return null;
|
|
76263
|
+
};
|
|
76264
|
+
|
|
76265
|
+
/**
|
|
76266
|
+
* Creates a TransferReplFromOfflineClusterRequest message from a plain object. Also converts values to their respective internal types.
|
|
76267
|
+
* @function fromObject
|
|
76268
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76269
|
+
* @static
|
|
76270
|
+
* @param {Object.<string,*>} object Plain object
|
|
76271
|
+
* @returns {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} TransferReplFromOfflineClusterRequest
|
|
76272
|
+
*/
|
|
76273
|
+
TransferReplFromOfflineClusterRequest.fromObject = function fromObject(object) {
|
|
76274
|
+
if (object instanceof $root.replit.goval.api.lore.TransferReplFromOfflineClusterRequest)
|
|
76275
|
+
return object;
|
|
76276
|
+
var message = new $root.replit.goval.api.lore.TransferReplFromOfflineClusterRequest();
|
|
76277
|
+
if (object.newCluster != null)
|
|
76278
|
+
message.newCluster = String(object.newCluster);
|
|
76279
|
+
if (object.replId != null)
|
|
76280
|
+
message.replId = String(object.replId);
|
|
76281
|
+
return message;
|
|
76282
|
+
};
|
|
76283
|
+
|
|
76284
|
+
/**
|
|
76285
|
+
* Creates a plain object from a TransferReplFromOfflineClusterRequest message. Also converts values to other types if specified.
|
|
76286
|
+
* @function toObject
|
|
76287
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76288
|
+
* @static
|
|
76289
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} message TransferReplFromOfflineClusterRequest
|
|
76290
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76291
|
+
* @returns {Object.<string,*>} Plain object
|
|
76292
|
+
*/
|
|
76293
|
+
TransferReplFromOfflineClusterRequest.toObject = function toObject(message, options) {
|
|
76294
|
+
if (!options)
|
|
76295
|
+
options = {};
|
|
76296
|
+
var object = {};
|
|
76297
|
+
if (options.defaults) {
|
|
76298
|
+
object.newCluster = "";
|
|
76299
|
+
object.replId = "";
|
|
76300
|
+
}
|
|
76301
|
+
if (message.newCluster != null && message.hasOwnProperty("newCluster"))
|
|
76302
|
+
object.newCluster = message.newCluster;
|
|
76303
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
76304
|
+
object.replId = message.replId;
|
|
76305
|
+
return object;
|
|
76306
|
+
};
|
|
76307
|
+
|
|
76308
|
+
/**
|
|
76309
|
+
* Converts this TransferReplFromOfflineClusterRequest to JSON.
|
|
76310
|
+
* @function toJSON
|
|
76311
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76312
|
+
* @instance
|
|
76313
|
+
* @returns {Object.<string,*>} JSON object
|
|
76314
|
+
*/
|
|
76315
|
+
TransferReplFromOfflineClusterRequest.prototype.toJSON = function toJSON() {
|
|
76316
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76317
|
+
};
|
|
76318
|
+
|
|
76319
|
+
/**
|
|
76320
|
+
* Gets the default type url for TransferReplFromOfflineClusterRequest
|
|
76321
|
+
* @function getTypeUrl
|
|
76322
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterRequest
|
|
76323
|
+
* @static
|
|
76324
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
76325
|
+
* @returns {string} The default type url
|
|
76326
|
+
*/
|
|
76327
|
+
TransferReplFromOfflineClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
76328
|
+
if (typeUrlPrefix === undefined) {
|
|
76329
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
76330
|
+
}
|
|
76331
|
+
return typeUrlPrefix + "/replit.goval.api.lore.TransferReplFromOfflineClusterRequest";
|
|
76332
|
+
};
|
|
76333
|
+
|
|
76334
|
+
return TransferReplFromOfflineClusterRequest;
|
|
76335
|
+
})();
|
|
76336
|
+
|
|
76337
|
+
lore.TransferReplFromOfflineClusterResponse = (function() {
|
|
76338
|
+
|
|
76339
|
+
/**
|
|
76340
|
+
* Properties of a TransferReplFromOfflineClusterResponse.
|
|
76341
|
+
* @memberof replit.goval.api.lore
|
|
76342
|
+
* @interface ITransferReplFromOfflineClusterResponse
|
|
76343
|
+
*/
|
|
76344
|
+
|
|
76345
|
+
/**
|
|
76346
|
+
* Constructs a new TransferReplFromOfflineClusterResponse.
|
|
76347
|
+
* @memberof replit.goval.api.lore
|
|
76348
|
+
* @classdesc Represents a TransferReplFromOfflineClusterResponse.
|
|
76349
|
+
* @constructor
|
|
76350
|
+
* @param {replit.goval.api.lore.ITransferReplFromOfflineClusterResponse=} [properties] Properties to set
|
|
76351
|
+
*/
|
|
76352
|
+
function TransferReplFromOfflineClusterResponse(properties) {
|
|
76353
|
+
if (properties)
|
|
76354
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76355
|
+
if (properties[keys[i]] != null)
|
|
76356
|
+
this[keys[i]] = properties[keys[i]];
|
|
76357
|
+
}
|
|
76358
|
+
|
|
76359
|
+
/**
|
|
76360
|
+
* Creates a new TransferReplFromOfflineClusterResponse instance using the specified properties.
|
|
76361
|
+
* @function create
|
|
76362
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76363
|
+
* @static
|
|
76364
|
+
* @param {replit.goval.api.lore.ITransferReplFromOfflineClusterResponse=} [properties] Properties to set
|
|
76365
|
+
* @returns {replit.goval.api.lore.TransferReplFromOfflineClusterResponse} TransferReplFromOfflineClusterResponse instance
|
|
76366
|
+
*/
|
|
76367
|
+
TransferReplFromOfflineClusterResponse.create = function create(properties) {
|
|
76368
|
+
return TransferReplFromOfflineClusterResponse.fromObject(properties);
|
|
76369
|
+
};
|
|
76370
|
+
|
|
76371
|
+
/**
|
|
76372
|
+
* Encodes the specified TransferReplFromOfflineClusterResponse message. Does not implicitly {@link replit.goval.api.lore.TransferReplFromOfflineClusterResponse.verify|verify} messages.
|
|
76373
|
+
* @function encode
|
|
76374
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76375
|
+
* @static
|
|
76376
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterResponse} message TransferReplFromOfflineClusterResponse message or plain object to encode
|
|
76377
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76378
|
+
* @returns {$protobuf.Writer} Writer
|
|
76379
|
+
*/
|
|
76380
|
+
TransferReplFromOfflineClusterResponse.encode = function encode(message, writer) {
|
|
76381
|
+
if (!writer)
|
|
76382
|
+
writer = $Writer.create();
|
|
76383
|
+
return writer;
|
|
76384
|
+
};
|
|
76385
|
+
|
|
76386
|
+
/**
|
|
76387
|
+
* Encodes the specified TransferReplFromOfflineClusterResponse message, length delimited. Does not implicitly {@link replit.goval.api.lore.TransferReplFromOfflineClusterResponse.verify|verify} messages.
|
|
76388
|
+
* @function encodeDelimited
|
|
76389
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76390
|
+
* @static
|
|
76391
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterResponse} message TransferReplFromOfflineClusterResponse message or plain object to encode
|
|
76392
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76393
|
+
* @returns {$protobuf.Writer} Writer
|
|
76394
|
+
*/
|
|
76395
|
+
TransferReplFromOfflineClusterResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76396
|
+
return this.encode(message, writer).ldelim();
|
|
76397
|
+
};
|
|
76398
|
+
|
|
76399
|
+
/**
|
|
76400
|
+
* Decodes a TransferReplFromOfflineClusterResponse message from the specified reader or buffer.
|
|
76401
|
+
* @function decode
|
|
76402
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76403
|
+
* @static
|
|
76404
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76405
|
+
* @param {number} [length] Message length if known beforehand
|
|
76406
|
+
* @returns {replit.goval.api.lore.TransferReplFromOfflineClusterResponse} TransferReplFromOfflineClusterResponse
|
|
76407
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76408
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76409
|
+
*/
|
|
76410
|
+
TransferReplFromOfflineClusterResponse.decode = function decode(reader, length) {
|
|
76411
|
+
if (!(reader instanceof $Reader))
|
|
76412
|
+
reader = $Reader.create(reader);
|
|
76413
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.TransferReplFromOfflineClusterResponse();
|
|
76414
|
+
while (reader.pos < end) {
|
|
76415
|
+
var tag = reader.uint32();
|
|
76416
|
+
switch (tag >>> 3) {
|
|
76417
|
+
default:
|
|
76418
|
+
reader.skipType(tag & 7);
|
|
76419
|
+
break;
|
|
76420
|
+
}
|
|
76421
|
+
}
|
|
76422
|
+
return message;
|
|
76423
|
+
};
|
|
76424
|
+
|
|
76425
|
+
/**
|
|
76426
|
+
* Decodes a TransferReplFromOfflineClusterResponse message from the specified reader or buffer, length delimited.
|
|
76427
|
+
* @function decodeDelimited
|
|
76428
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76429
|
+
* @static
|
|
76430
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76431
|
+
* @returns {replit.goval.api.lore.TransferReplFromOfflineClusterResponse} TransferReplFromOfflineClusterResponse
|
|
76432
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76433
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76434
|
+
*/
|
|
76435
|
+
TransferReplFromOfflineClusterResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
76436
|
+
if (!(reader instanceof $Reader))
|
|
76437
|
+
reader = new $Reader(reader);
|
|
76438
|
+
return this.decode(reader, reader.uint32());
|
|
76439
|
+
};
|
|
76440
|
+
|
|
76441
|
+
/**
|
|
76442
|
+
* Verifies a TransferReplFromOfflineClusterResponse message.
|
|
76443
|
+
* @function verify
|
|
76444
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76445
|
+
* @static
|
|
76446
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76447
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76448
|
+
*/
|
|
76449
|
+
TransferReplFromOfflineClusterResponse.verify = function verify(message) {
|
|
76450
|
+
if (typeof message !== "object" || message === null)
|
|
76451
|
+
return "object expected";
|
|
76452
|
+
return null;
|
|
76453
|
+
};
|
|
76454
|
+
|
|
76455
|
+
/**
|
|
76456
|
+
* Creates a TransferReplFromOfflineClusterResponse message from a plain object. Also converts values to their respective internal types.
|
|
76457
|
+
* @function fromObject
|
|
76458
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76459
|
+
* @static
|
|
76460
|
+
* @param {Object.<string,*>} object Plain object
|
|
76461
|
+
* @returns {replit.goval.api.lore.TransferReplFromOfflineClusterResponse} TransferReplFromOfflineClusterResponse
|
|
76462
|
+
*/
|
|
76463
|
+
TransferReplFromOfflineClusterResponse.fromObject = function fromObject(object) {
|
|
76464
|
+
if (object instanceof $root.replit.goval.api.lore.TransferReplFromOfflineClusterResponse)
|
|
76465
|
+
return object;
|
|
76466
|
+
return new $root.replit.goval.api.lore.TransferReplFromOfflineClusterResponse();
|
|
76467
|
+
};
|
|
76468
|
+
|
|
76469
|
+
/**
|
|
76470
|
+
* Creates a plain object from a TransferReplFromOfflineClusterResponse message. Also converts values to other types if specified.
|
|
76471
|
+
* @function toObject
|
|
76472
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76473
|
+
* @static
|
|
76474
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterResponse} message TransferReplFromOfflineClusterResponse
|
|
76475
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76476
|
+
* @returns {Object.<string,*>} Plain object
|
|
76477
|
+
*/
|
|
76478
|
+
TransferReplFromOfflineClusterResponse.toObject = function toObject() {
|
|
76479
|
+
return {};
|
|
76480
|
+
};
|
|
76481
|
+
|
|
76482
|
+
/**
|
|
76483
|
+
* Converts this TransferReplFromOfflineClusterResponse to JSON.
|
|
76484
|
+
* @function toJSON
|
|
76485
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76486
|
+
* @instance
|
|
76487
|
+
* @returns {Object.<string,*>} JSON object
|
|
76488
|
+
*/
|
|
76489
|
+
TransferReplFromOfflineClusterResponse.prototype.toJSON = function toJSON() {
|
|
76490
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76491
|
+
};
|
|
76492
|
+
|
|
76493
|
+
/**
|
|
76494
|
+
* Gets the default type url for TransferReplFromOfflineClusterResponse
|
|
76495
|
+
* @function getTypeUrl
|
|
76496
|
+
* @memberof replit.goval.api.lore.TransferReplFromOfflineClusterResponse
|
|
76497
|
+
* @static
|
|
76498
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
76499
|
+
* @returns {string} The default type url
|
|
76500
|
+
*/
|
|
76501
|
+
TransferReplFromOfflineClusterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
76502
|
+
if (typeUrlPrefix === undefined) {
|
|
76503
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
76504
|
+
}
|
|
76505
|
+
return typeUrlPrefix + "/replit.goval.api.lore.TransferReplFromOfflineClusterResponse";
|
|
76506
|
+
};
|
|
76507
|
+
|
|
76508
|
+
return TransferReplFromOfflineClusterResponse;
|
|
76509
|
+
})();
|
|
76510
|
+
|
|
76561
76511
|
lore.TransferUserRequest = (function() {
|
|
76562
76512
|
|
|
76563
76513
|
/**
|
|
@@ -80476,6 +80426,39 @@
|
|
|
80476
80426
|
* @variation 2
|
|
80477
80427
|
*/
|
|
80478
80428
|
|
|
80429
|
+
/**
|
|
80430
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#transferReplFromOfflineCluster}.
|
|
80431
|
+
* @memberof replit.goval.api.lore.Lore
|
|
80432
|
+
* @typedef TransferReplFromOfflineClusterCallback
|
|
80433
|
+
* @type {function}
|
|
80434
|
+
* @param {Error|null} error Error, if any
|
|
80435
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterResponse} [response] TransferReplFromOfflineClusterResponse
|
|
80436
|
+
*/
|
|
80437
|
+
|
|
80438
|
+
/**
|
|
80439
|
+
* Calls TransferReplFromOfflineCluster.
|
|
80440
|
+
* @function transferReplFromOfflineCluster
|
|
80441
|
+
* @memberof replit.goval.api.lore.Lore
|
|
80442
|
+
* @instance
|
|
80443
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} request TransferReplFromOfflineClusterRequest message or plain object
|
|
80444
|
+
* @param {replit.goval.api.lore.Lore.TransferReplFromOfflineClusterCallback} callback Node-style callback called with the error, if any, and TransferReplFromOfflineClusterResponse
|
|
80445
|
+
* @returns {undefined}
|
|
80446
|
+
* @variation 1
|
|
80447
|
+
*/
|
|
80448
|
+
Object.defineProperty(Lore.prototype.transferReplFromOfflineCluster = function transferReplFromOfflineCluster(request, callback) {
|
|
80449
|
+
return this.rpcCall(transferReplFromOfflineCluster, $root.replit.goval.api.lore.TransferReplFromOfflineClusterRequest, $root.replit.goval.api.lore.TransferReplFromOfflineClusterResponse, request, callback);
|
|
80450
|
+
}, "name", { value: "TransferReplFromOfflineCluster" });
|
|
80451
|
+
|
|
80452
|
+
/**
|
|
80453
|
+
* Calls TransferReplFromOfflineCluster.
|
|
80454
|
+
* @function transferReplFromOfflineCluster
|
|
80455
|
+
* @memberof replit.goval.api.lore.Lore
|
|
80456
|
+
* @instance
|
|
80457
|
+
* @param {replit.goval.api.lore.TransferReplFromOfflineClusterRequest} request TransferReplFromOfflineClusterRequest message or plain object
|
|
80458
|
+
* @returns {Promise<replit.goval.api.lore.TransferReplFromOfflineClusterResponse>} Promise
|
|
80459
|
+
* @variation 2
|
|
80460
|
+
*/
|
|
80461
|
+
|
|
80479
80462
|
return Lore;
|
|
80480
80463
|
})();
|
|
80481
80464
|
|
|
@@ -82856,208 +82839,6 @@
|
|
|
82856
82839
|
return ResourceLimits;
|
|
82857
82840
|
})();
|
|
82858
82841
|
|
|
82859
|
-
repl.Permissions = (function() {
|
|
82860
|
-
|
|
82861
|
-
/**
|
|
82862
|
-
* Properties of a Permissions.
|
|
82863
|
-
* @memberof replit.goval.api.repl
|
|
82864
|
-
* @interface IPermissions
|
|
82865
|
-
* @property {boolean|null} [toggleAlwaysOn] Permissions toggleAlwaysOn
|
|
82866
|
-
*/
|
|
82867
|
-
|
|
82868
|
-
/**
|
|
82869
|
-
* Constructs a new Permissions.
|
|
82870
|
-
* @memberof replit.goval.api.repl
|
|
82871
|
-
* @classdesc Represents a Permissions.
|
|
82872
|
-
* @constructor
|
|
82873
|
-
* @param {replit.goval.api.repl.IPermissions=} [properties] Properties to set
|
|
82874
|
-
*/
|
|
82875
|
-
function Permissions(properties) {
|
|
82876
|
-
if (properties)
|
|
82877
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
82878
|
-
if (properties[keys[i]] != null)
|
|
82879
|
-
this[keys[i]] = properties[keys[i]];
|
|
82880
|
-
}
|
|
82881
|
-
|
|
82882
|
-
/**
|
|
82883
|
-
* Permissions toggleAlwaysOn.
|
|
82884
|
-
* @member {boolean} toggleAlwaysOn
|
|
82885
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
82886
|
-
* @instance
|
|
82887
|
-
*/
|
|
82888
|
-
Permissions.prototype.toggleAlwaysOn = false;
|
|
82889
|
-
|
|
82890
|
-
/**
|
|
82891
|
-
* Creates a new Permissions instance using the specified properties.
|
|
82892
|
-
* @function create
|
|
82893
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
82894
|
-
* @static
|
|
82895
|
-
* @param {replit.goval.api.repl.IPermissions=} [properties] Properties to set
|
|
82896
|
-
* @returns {replit.goval.api.repl.Permissions} Permissions instance
|
|
82897
|
-
*/
|
|
82898
|
-
Permissions.create = function create(properties) {
|
|
82899
|
-
return Permissions.fromObject(properties);
|
|
82900
|
-
};
|
|
82901
|
-
|
|
82902
|
-
/**
|
|
82903
|
-
* Encodes the specified Permissions message. Does not implicitly {@link replit.goval.api.repl.Permissions.verify|verify} messages.
|
|
82904
|
-
* @function encode
|
|
82905
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
82906
|
-
* @static
|
|
82907
|
-
* @param {replit.goval.api.repl.Permissions} message Permissions message or plain object to encode
|
|
82908
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
82909
|
-
* @returns {$protobuf.Writer} Writer
|
|
82910
|
-
*/
|
|
82911
|
-
Permissions.encode = function encode(message, writer) {
|
|
82912
|
-
if (!writer)
|
|
82913
|
-
writer = $Writer.create();
|
|
82914
|
-
if (message.toggleAlwaysOn != null && Object.hasOwnProperty.call(message, "toggleAlwaysOn"))
|
|
82915
|
-
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.toggleAlwaysOn);
|
|
82916
|
-
return writer;
|
|
82917
|
-
};
|
|
82918
|
-
|
|
82919
|
-
/**
|
|
82920
|
-
* Encodes the specified Permissions message, length delimited. Does not implicitly {@link replit.goval.api.repl.Permissions.verify|verify} messages.
|
|
82921
|
-
* @function encodeDelimited
|
|
82922
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
82923
|
-
* @static
|
|
82924
|
-
* @param {replit.goval.api.repl.Permissions} message Permissions message or plain object to encode
|
|
82925
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
82926
|
-
* @returns {$protobuf.Writer} Writer
|
|
82927
|
-
*/
|
|
82928
|
-
Permissions.encodeDelimited = function encodeDelimited(message, writer) {
|
|
82929
|
-
return this.encode(message, writer).ldelim();
|
|
82930
|
-
};
|
|
82931
|
-
|
|
82932
|
-
/**
|
|
82933
|
-
* Decodes a Permissions message from the specified reader or buffer.
|
|
82934
|
-
* @function decode
|
|
82935
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
82936
|
-
* @static
|
|
82937
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
82938
|
-
* @param {number} [length] Message length if known beforehand
|
|
82939
|
-
* @returns {replit.goval.api.repl.Permissions} Permissions
|
|
82940
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82941
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82942
|
-
*/
|
|
82943
|
-
Permissions.decode = function decode(reader, length) {
|
|
82944
|
-
if (!(reader instanceof $Reader))
|
|
82945
|
-
reader = $Reader.create(reader);
|
|
82946
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Permissions();
|
|
82947
|
-
while (reader.pos < end) {
|
|
82948
|
-
var tag = reader.uint32();
|
|
82949
|
-
switch (tag >>> 3) {
|
|
82950
|
-
case 1: {
|
|
82951
|
-
message.toggleAlwaysOn = reader.bool();
|
|
82952
|
-
break;
|
|
82953
|
-
}
|
|
82954
|
-
default:
|
|
82955
|
-
reader.skipType(tag & 7);
|
|
82956
|
-
break;
|
|
82957
|
-
}
|
|
82958
|
-
}
|
|
82959
|
-
return message;
|
|
82960
|
-
};
|
|
82961
|
-
|
|
82962
|
-
/**
|
|
82963
|
-
* Decodes a Permissions message from the specified reader or buffer, length delimited.
|
|
82964
|
-
* @function decodeDelimited
|
|
82965
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
82966
|
-
* @static
|
|
82967
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
82968
|
-
* @returns {replit.goval.api.repl.Permissions} Permissions
|
|
82969
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82970
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82971
|
-
*/
|
|
82972
|
-
Permissions.decodeDelimited = function decodeDelimited(reader) {
|
|
82973
|
-
if (!(reader instanceof $Reader))
|
|
82974
|
-
reader = new $Reader(reader);
|
|
82975
|
-
return this.decode(reader, reader.uint32());
|
|
82976
|
-
};
|
|
82977
|
-
|
|
82978
|
-
/**
|
|
82979
|
-
* Verifies a Permissions message.
|
|
82980
|
-
* @function verify
|
|
82981
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
82982
|
-
* @static
|
|
82983
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
82984
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
82985
|
-
*/
|
|
82986
|
-
Permissions.verify = function verify(message) {
|
|
82987
|
-
if (typeof message !== "object" || message === null)
|
|
82988
|
-
return "object expected";
|
|
82989
|
-
if (message.toggleAlwaysOn != null && message.hasOwnProperty("toggleAlwaysOn"))
|
|
82990
|
-
if (typeof message.toggleAlwaysOn !== "boolean")
|
|
82991
|
-
return "toggleAlwaysOn: boolean expected";
|
|
82992
|
-
return null;
|
|
82993
|
-
};
|
|
82994
|
-
|
|
82995
|
-
/**
|
|
82996
|
-
* Creates a Permissions message from a plain object. Also converts values to their respective internal types.
|
|
82997
|
-
* @function fromObject
|
|
82998
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
82999
|
-
* @static
|
|
83000
|
-
* @param {Object.<string,*>} object Plain object
|
|
83001
|
-
* @returns {replit.goval.api.repl.Permissions} Permissions
|
|
83002
|
-
*/
|
|
83003
|
-
Permissions.fromObject = function fromObject(object) {
|
|
83004
|
-
if (object instanceof $root.replit.goval.api.repl.Permissions)
|
|
83005
|
-
return object;
|
|
83006
|
-
var message = new $root.replit.goval.api.repl.Permissions();
|
|
83007
|
-
if (object.toggleAlwaysOn != null)
|
|
83008
|
-
message.toggleAlwaysOn = Boolean(object.toggleAlwaysOn);
|
|
83009
|
-
return message;
|
|
83010
|
-
};
|
|
83011
|
-
|
|
83012
|
-
/**
|
|
83013
|
-
* Creates a plain object from a Permissions message. Also converts values to other types if specified.
|
|
83014
|
-
* @function toObject
|
|
83015
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
83016
|
-
* @static
|
|
83017
|
-
* @param {replit.goval.api.repl.Permissions} message Permissions
|
|
83018
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
83019
|
-
* @returns {Object.<string,*>} Plain object
|
|
83020
|
-
*/
|
|
83021
|
-
Permissions.toObject = function toObject(message, options) {
|
|
83022
|
-
if (!options)
|
|
83023
|
-
options = {};
|
|
83024
|
-
var object = {};
|
|
83025
|
-
if (options.defaults)
|
|
83026
|
-
object.toggleAlwaysOn = false;
|
|
83027
|
-
if (message.toggleAlwaysOn != null && message.hasOwnProperty("toggleAlwaysOn"))
|
|
83028
|
-
object.toggleAlwaysOn = message.toggleAlwaysOn;
|
|
83029
|
-
return object;
|
|
83030
|
-
};
|
|
83031
|
-
|
|
83032
|
-
/**
|
|
83033
|
-
* Converts this Permissions to JSON.
|
|
83034
|
-
* @function toJSON
|
|
83035
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
83036
|
-
* @instance
|
|
83037
|
-
* @returns {Object.<string,*>} JSON object
|
|
83038
|
-
*/
|
|
83039
|
-
Permissions.prototype.toJSON = function toJSON() {
|
|
83040
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
83041
|
-
};
|
|
83042
|
-
|
|
83043
|
-
/**
|
|
83044
|
-
* Gets the default type url for Permissions
|
|
83045
|
-
* @function getTypeUrl
|
|
83046
|
-
* @memberof replit.goval.api.repl.Permissions
|
|
83047
|
-
* @static
|
|
83048
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
83049
|
-
* @returns {string} The default type url
|
|
83050
|
-
*/
|
|
83051
|
-
Permissions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
83052
|
-
if (typeUrlPrefix === undefined) {
|
|
83053
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
83054
|
-
}
|
|
83055
|
-
return typeUrlPrefix + "/replit.goval.api.repl.Permissions";
|
|
83056
|
-
};
|
|
83057
|
-
|
|
83058
|
-
return Permissions;
|
|
83059
|
-
})();
|
|
83060
|
-
|
|
83061
82842
|
/**
|
|
83062
82843
|
* Persistence enum.
|
|
83063
82844
|
* @name replit.goval.api.repl.Persistence
|
|
@@ -83087,7 +82868,6 @@
|
|
|
83087
82868
|
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [interactiveResourceLimits] Metadata interactiveResourceLimits
|
|
83088
82869
|
* @property {replit.goval.api.repl.Persistence|null} [persistence] Metadata persistence
|
|
83089
82870
|
* @property {Array.<string>|null} [flags] Metadata flags
|
|
83090
|
-
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] Metadata permissions
|
|
83091
82871
|
* @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] Metadata features
|
|
83092
82872
|
* @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] Metadata buildInfo
|
|
83093
82873
|
*/
|
|
@@ -83148,14 +82928,6 @@
|
|
|
83148
82928
|
*/
|
|
83149
82929
|
Metadata.prototype.flags = $util.emptyArray;
|
|
83150
82930
|
|
|
83151
|
-
/**
|
|
83152
|
-
* Metadata permissions.
|
|
83153
|
-
* @member {replit.goval.api.repl.Permissions|null|undefined} permissions
|
|
83154
|
-
* @memberof replit.goval.api.repl.Metadata
|
|
83155
|
-
* @instance
|
|
83156
|
-
*/
|
|
83157
|
-
Metadata.prototype.permissions = null;
|
|
83158
|
-
|
|
83159
82931
|
/**
|
|
83160
82932
|
* Metadata features.
|
|
83161
82933
|
* @member {Array.<replit.goval.api.features.Feature>} features
|
|
@@ -83205,8 +82977,6 @@
|
|
|
83205
82977
|
if (message.flags != null && message.flags.length)
|
|
83206
82978
|
for (var i = 0; i < message.flags.length; ++i)
|
|
83207
82979
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.flags[i]);
|
|
83208
|
-
if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions"))
|
|
83209
|
-
$root.replit.goval.api.repl.Permissions.encode(message.permissions, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
83210
82980
|
if (message.features != null && message.features.length)
|
|
83211
82981
|
for (var i = 0; i < message.features.length; ++i)
|
|
83212
82982
|
$root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
@@ -83270,10 +83040,6 @@
|
|
|
83270
83040
|
message.flags.push(reader.string());
|
|
83271
83041
|
break;
|
|
83272
83042
|
}
|
|
83273
|
-
case 15: {
|
|
83274
|
-
message.permissions = $root.replit.goval.api.repl.Permissions.decode(reader, reader.uint32());
|
|
83275
|
-
break;
|
|
83276
|
-
}
|
|
83277
83043
|
case 16: {
|
|
83278
83044
|
if (!(message.features && message.features.length))
|
|
83279
83045
|
message.features = [];
|
|
@@ -83351,11 +83117,6 @@
|
|
|
83351
83117
|
if (!$util.isString(message.flags[i]))
|
|
83352
83118
|
return "flags: string[] expected";
|
|
83353
83119
|
}
|
|
83354
|
-
if (message.permissions != null && message.hasOwnProperty("permissions")) {
|
|
83355
|
-
var error = $root.replit.goval.api.repl.Permissions.verify(message.permissions);
|
|
83356
|
-
if (error)
|
|
83357
|
-
return "permissions." + error;
|
|
83358
|
-
}
|
|
83359
83120
|
if (message.features != null && message.hasOwnProperty("features")) {
|
|
83360
83121
|
if (!Array.isArray(message.features))
|
|
83361
83122
|
return "features: array expected";
|
|
@@ -83431,11 +83192,6 @@
|
|
|
83431
83192
|
for (var i = 0; i < object.flags.length; ++i)
|
|
83432
83193
|
message.flags[i] = String(object.flags[i]);
|
|
83433
83194
|
}
|
|
83434
|
-
if (object.permissions != null) {
|
|
83435
|
-
if (typeof object.permissions !== "object")
|
|
83436
|
-
throw TypeError(".replit.goval.api.repl.Metadata.permissions: object expected");
|
|
83437
|
-
message.permissions = $root.replit.goval.api.repl.Permissions.fromObject(object.permissions);
|
|
83438
|
-
}
|
|
83439
83195
|
if (object.features) {
|
|
83440
83196
|
if (!Array.isArray(object.features))
|
|
83441
83197
|
throw TypeError(".replit.goval.api.repl.Metadata.features: array expected");
|
|
@@ -83475,7 +83231,6 @@
|
|
|
83475
83231
|
object.persistence = options.enums === String ? "PERSISTENT" : 0;
|
|
83476
83232
|
object.repl = null;
|
|
83477
83233
|
object.resourceLimits = null;
|
|
83478
|
-
object.permissions = null;
|
|
83479
83234
|
object.interactiveResourceLimits = null;
|
|
83480
83235
|
object.buildInfo = null;
|
|
83481
83236
|
}
|
|
@@ -83490,8 +83245,6 @@
|
|
|
83490
83245
|
for (var j = 0; j < message.flags.length; ++j)
|
|
83491
83246
|
object.flags[j] = message.flags[j];
|
|
83492
83247
|
}
|
|
83493
|
-
if (message.permissions != null && message.hasOwnProperty("permissions"))
|
|
83494
|
-
object.permissions = $root.replit.goval.api.repl.Permissions.toObject(message.permissions, options);
|
|
83495
83248
|
if (message.features && message.features.length) {
|
|
83496
83249
|
object.features = [];
|
|
83497
83250
|
for (var j = 0; j < message.features.length; ++j)
|