@replit/protocol 0.3.10 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/index.d.ts +457 -1
- package/main/index.js +1263 -2
- package/main/index.js.flow +681 -1
- package/package.json +1 -1
- package/yarn-error.log +0 -386
package/main/index.js
CHANGED
|
@@ -229,6 +229,8 @@
|
|
|
229
229
|
* @property {replit.goval.api.ToolchainGetResponse|replit.goval.api.IToolchainGetResponse|null} [toolchainGetResponse] Command toolchainGetResponse
|
|
230
230
|
* @property {replit.goval.api.ToolchainChanged|replit.goval.api.IToolchainChanged|null} [toolchainChanged] Command toolchainChanged
|
|
231
231
|
* @property {replit.goval.api.ReplspaceApiOpenMultipleFiles|replit.goval.api.IReplspaceApiOpenMultipleFiles|null} [replspaceApiOpenMultipleFiles] Command replspaceApiOpenMultipleFiles
|
|
232
|
+
* @property {replit.goval.api.NixModulesGetRegistryRequest|replit.goval.api.INixModulesGetRegistryRequest|null} [nixModulesGetRegistryRequest] Command nixModulesGetRegistryRequest
|
|
233
|
+
* @property {replit.goval.api.NixModulesGetRegistryResponse|replit.goval.api.INixModulesGetRegistryResponse|null} [nixModulesGetRegistryResponse] Command nixModulesGetRegistryResponse
|
|
232
234
|
* @property {string|null} [ref] Command ref
|
|
233
235
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
234
236
|
*/
|
|
@@ -1688,6 +1690,22 @@
|
|
|
1688
1690
|
*/
|
|
1689
1691
|
Command.prototype.replspaceApiOpenMultipleFiles = null;
|
|
1690
1692
|
|
|
1693
|
+
/**
|
|
1694
|
+
* Command nixModulesGetRegistryRequest.
|
|
1695
|
+
* @member {replit.goval.api.NixModulesGetRegistryRequest|null|undefined} nixModulesGetRegistryRequest
|
|
1696
|
+
* @memberof replit.goval.api.Command
|
|
1697
|
+
* @instance
|
|
1698
|
+
*/
|
|
1699
|
+
Command.prototype.nixModulesGetRegistryRequest = null;
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* Command nixModulesGetRegistryResponse.
|
|
1703
|
+
* @member {replit.goval.api.NixModulesGetRegistryResponse|null|undefined} nixModulesGetRegistryResponse
|
|
1704
|
+
* @memberof replit.goval.api.Command
|
|
1705
|
+
* @instance
|
|
1706
|
+
*/
|
|
1707
|
+
Command.prototype.nixModulesGetRegistryResponse = null;
|
|
1708
|
+
|
|
1691
1709
|
/**
|
|
1692
1710
|
* Command ref.
|
|
1693
1711
|
* @member {string} ref
|
|
@@ -1709,12 +1727,12 @@
|
|
|
1709
1727
|
|
|
1710
1728
|
/**
|
|
1711
1729
|
* Command body.
|
|
1712
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|undefined} body
|
|
1730
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|undefined} body
|
|
1713
1731
|
* @memberof replit.goval.api.Command
|
|
1714
1732
|
* @instance
|
|
1715
1733
|
*/
|
|
1716
1734
|
Object.defineProperty(Command.prototype, "body", {
|
|
1717
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "record", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles"]),
|
|
1735
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "record", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse"]),
|
|
1718
1736
|
set: $util.oneOfSetter($oneOfFields)
|
|
1719
1737
|
});
|
|
1720
1738
|
|
|
@@ -2102,6 +2120,10 @@
|
|
|
2102
2120
|
$root.replit.goval.api.ToolchainChanged.encode(message.toolchainChanged, writer.uint32(/* id 437, wireType 2 =*/3498).fork()).ldelim();
|
|
2103
2121
|
if (message.replspaceApiOpenMultipleFiles != null && Object.hasOwnProperty.call(message, "replspaceApiOpenMultipleFiles"))
|
|
2104
2122
|
$root.replit.goval.api.ReplspaceApiOpenMultipleFiles.encode(message.replspaceApiOpenMultipleFiles, writer.uint32(/* id 438, wireType 2 =*/3506).fork()).ldelim();
|
|
2123
|
+
if (message.nixModulesGetRegistryRequest != null && Object.hasOwnProperty.call(message, "nixModulesGetRegistryRequest"))
|
|
2124
|
+
$root.replit.goval.api.NixModulesGetRegistryRequest.encode(message.nixModulesGetRegistryRequest, writer.uint32(/* id 439, wireType 2 =*/3514).fork()).ldelim();
|
|
2125
|
+
if (message.nixModulesGetRegistryResponse != null && Object.hasOwnProperty.call(message, "nixModulesGetRegistryResponse"))
|
|
2126
|
+
$root.replit.goval.api.NixModulesGetRegistryResponse.encode(message.nixModulesGetRegistryResponse, writer.uint32(/* id 440, wireType 2 =*/3522).fork()).ldelim();
|
|
2105
2127
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
2106
2128
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
2107
2129
|
if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
|
|
@@ -2681,6 +2703,12 @@
|
|
|
2681
2703
|
case 438:
|
|
2682
2704
|
message.replspaceApiOpenMultipleFiles = $root.replit.goval.api.ReplspaceApiOpenMultipleFiles.decode(reader, reader.uint32());
|
|
2683
2705
|
break;
|
|
2706
|
+
case 439:
|
|
2707
|
+
message.nixModulesGetRegistryRequest = $root.replit.goval.api.NixModulesGetRegistryRequest.decode(reader, reader.uint32());
|
|
2708
|
+
break;
|
|
2709
|
+
case 440:
|
|
2710
|
+
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.decode(reader, reader.uint32());
|
|
2711
|
+
break;
|
|
2684
2712
|
case 1000:
|
|
2685
2713
|
message.ref = reader.string();
|
|
2686
2714
|
break;
|
|
@@ -4495,6 +4523,26 @@
|
|
|
4495
4523
|
return "replspaceApiOpenMultipleFiles." + error;
|
|
4496
4524
|
}
|
|
4497
4525
|
}
|
|
4526
|
+
if (message.nixModulesGetRegistryRequest != null && message.hasOwnProperty("nixModulesGetRegistryRequest")) {
|
|
4527
|
+
if (properties.body === 1)
|
|
4528
|
+
return "body: multiple values";
|
|
4529
|
+
properties.body = 1;
|
|
4530
|
+
{
|
|
4531
|
+
var error = $root.replit.goval.api.NixModulesGetRegistryRequest.verify(message.nixModulesGetRegistryRequest);
|
|
4532
|
+
if (error)
|
|
4533
|
+
return "nixModulesGetRegistryRequest." + error;
|
|
4534
|
+
}
|
|
4535
|
+
}
|
|
4536
|
+
if (message.nixModulesGetRegistryResponse != null && message.hasOwnProperty("nixModulesGetRegistryResponse")) {
|
|
4537
|
+
if (properties.body === 1)
|
|
4538
|
+
return "body: multiple values";
|
|
4539
|
+
properties.body = 1;
|
|
4540
|
+
{
|
|
4541
|
+
var error = $root.replit.goval.api.NixModulesGetRegistryResponse.verify(message.nixModulesGetRegistryResponse);
|
|
4542
|
+
if (error)
|
|
4543
|
+
return "nixModulesGetRegistryResponse." + error;
|
|
4544
|
+
}
|
|
4545
|
+
}
|
|
4498
4546
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
4499
4547
|
if (!$util.isString(message.ref))
|
|
4500
4548
|
return "ref: string expected";
|
|
@@ -5387,6 +5435,16 @@
|
|
|
5387
5435
|
throw TypeError(".replit.goval.api.Command.replspaceApiOpenMultipleFiles: object expected");
|
|
5388
5436
|
message.replspaceApiOpenMultipleFiles = $root.replit.goval.api.ReplspaceApiOpenMultipleFiles.fromObject(object.replspaceApiOpenMultipleFiles);
|
|
5389
5437
|
}
|
|
5438
|
+
if (object.nixModulesGetRegistryRequest != null) {
|
|
5439
|
+
if (typeof object.nixModulesGetRegistryRequest !== "object")
|
|
5440
|
+
throw TypeError(".replit.goval.api.Command.nixModulesGetRegistryRequest: object expected");
|
|
5441
|
+
message.nixModulesGetRegistryRequest = $root.replit.goval.api.NixModulesGetRegistryRequest.fromObject(object.nixModulesGetRegistryRequest);
|
|
5442
|
+
}
|
|
5443
|
+
if (object.nixModulesGetRegistryResponse != null) {
|
|
5444
|
+
if (typeof object.nixModulesGetRegistryResponse !== "object")
|
|
5445
|
+
throw TypeError(".replit.goval.api.Command.nixModulesGetRegistryResponse: object expected");
|
|
5446
|
+
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.fromObject(object.nixModulesGetRegistryResponse);
|
|
5447
|
+
}
|
|
5390
5448
|
if (object.ref != null)
|
|
5391
5449
|
message.ref = String(object.ref);
|
|
5392
5450
|
if (object.traceInfo) {
|
|
@@ -6313,6 +6371,16 @@
|
|
|
6313
6371
|
if (options.oneofs)
|
|
6314
6372
|
object.body = "replspaceApiOpenMultipleFiles";
|
|
6315
6373
|
}
|
|
6374
|
+
if (message.nixModulesGetRegistryRequest != null && message.hasOwnProperty("nixModulesGetRegistryRequest")) {
|
|
6375
|
+
object.nixModulesGetRegistryRequest = $root.replit.goval.api.NixModulesGetRegistryRequest.toObject(message.nixModulesGetRegistryRequest, options);
|
|
6376
|
+
if (options.oneofs)
|
|
6377
|
+
object.body = "nixModulesGetRegistryRequest";
|
|
6378
|
+
}
|
|
6379
|
+
if (message.nixModulesGetRegistryResponse != null && message.hasOwnProperty("nixModulesGetRegistryResponse")) {
|
|
6380
|
+
object.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.toObject(message.nixModulesGetRegistryResponse, options);
|
|
6381
|
+
if (options.oneofs)
|
|
6382
|
+
object.body = "nixModulesGetRegistryResponse";
|
|
6383
|
+
}
|
|
6316
6384
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
6317
6385
|
object.ref = message.ref;
|
|
6318
6386
|
var keys2;
|
|
@@ -48190,6 +48258,10 @@
|
|
|
48190
48258
|
* @property {Array.<replit.goval.api.DebuggerOption|replit.goval.api.IDebuggerOption>|null} [debuggers] NixModule debuggers
|
|
48191
48259
|
* @property {Array.<replit.goval.api.PackagerOption|replit.goval.api.IPackagerOption>|null} [packagers] NixModule packagers
|
|
48192
48260
|
* @property {Array.<replit.goval.api.LanguageServerOption|replit.goval.api.ILanguageServerOption>|null} [languageServers] NixModule languageServers
|
|
48261
|
+
* @property {string|null} [buildType] NixModule buildType
|
|
48262
|
+
* @property {Array.<string>|null} [resolutionPath] NixModule resolutionPath
|
|
48263
|
+
* @property {string|null} [resolvedId] NixModule resolvedId
|
|
48264
|
+
* @property {string|null} [referencedId] NixModule referencedId
|
|
48193
48265
|
*/
|
|
48194
48266
|
|
|
48195
48267
|
/**
|
|
@@ -48204,6 +48276,7 @@
|
|
|
48204
48276
|
this.debuggers = [];
|
|
48205
48277
|
this.packagers = [];
|
|
48206
48278
|
this.languageServers = [];
|
|
48279
|
+
this.resolutionPath = [];
|
|
48207
48280
|
if (properties)
|
|
48208
48281
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
48209
48282
|
if (properties[keys[i]] != null)
|
|
@@ -48274,6 +48347,38 @@
|
|
|
48274
48347
|
*/
|
|
48275
48348
|
NixModule.prototype.languageServers = $util.emptyArray;
|
|
48276
48349
|
|
|
48350
|
+
/**
|
|
48351
|
+
* NixModule buildType.
|
|
48352
|
+
* @member {string} buildType
|
|
48353
|
+
* @memberof replit.goval.api.NixModule
|
|
48354
|
+
* @instance
|
|
48355
|
+
*/
|
|
48356
|
+
NixModule.prototype.buildType = "";
|
|
48357
|
+
|
|
48358
|
+
/**
|
|
48359
|
+
* NixModule resolutionPath.
|
|
48360
|
+
* @member {Array.<string>} resolutionPath
|
|
48361
|
+
* @memberof replit.goval.api.NixModule
|
|
48362
|
+
* @instance
|
|
48363
|
+
*/
|
|
48364
|
+
NixModule.prototype.resolutionPath = $util.emptyArray;
|
|
48365
|
+
|
|
48366
|
+
/**
|
|
48367
|
+
* NixModule resolvedId.
|
|
48368
|
+
* @member {string} resolvedId
|
|
48369
|
+
* @memberof replit.goval.api.NixModule
|
|
48370
|
+
* @instance
|
|
48371
|
+
*/
|
|
48372
|
+
NixModule.prototype.resolvedId = "";
|
|
48373
|
+
|
|
48374
|
+
/**
|
|
48375
|
+
* NixModule referencedId.
|
|
48376
|
+
* @member {string} referencedId
|
|
48377
|
+
* @memberof replit.goval.api.NixModule
|
|
48378
|
+
* @instance
|
|
48379
|
+
*/
|
|
48380
|
+
NixModule.prototype.referencedId = "";
|
|
48381
|
+
|
|
48277
48382
|
/**
|
|
48278
48383
|
* Creates a new NixModule instance using the specified properties.
|
|
48279
48384
|
* @function create
|
|
@@ -48318,6 +48423,15 @@
|
|
|
48318
48423
|
if (message.languageServers != null && message.languageServers.length)
|
|
48319
48424
|
for (var i = 0; i < message.languageServers.length; ++i)
|
|
48320
48425
|
$root.replit.goval.api.LanguageServerOption.encode(message.languageServers[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
48426
|
+
if (message.buildType != null && Object.hasOwnProperty.call(message, "buildType"))
|
|
48427
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.buildType);
|
|
48428
|
+
if (message.resolutionPath != null && message.resolutionPath.length)
|
|
48429
|
+
for (var i = 0; i < message.resolutionPath.length; ++i)
|
|
48430
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.resolutionPath[i]);
|
|
48431
|
+
if (message.resolvedId != null && Object.hasOwnProperty.call(message, "resolvedId"))
|
|
48432
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.resolvedId);
|
|
48433
|
+
if (message.referencedId != null && Object.hasOwnProperty.call(message, "referencedId"))
|
|
48434
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.referencedId);
|
|
48321
48435
|
return writer;
|
|
48322
48436
|
};
|
|
48323
48437
|
|
|
@@ -48384,6 +48498,20 @@
|
|
|
48384
48498
|
message.languageServers = [];
|
|
48385
48499
|
message.languageServers.push($root.replit.goval.api.LanguageServerOption.decode(reader, reader.uint32()));
|
|
48386
48500
|
break;
|
|
48501
|
+
case 9:
|
|
48502
|
+
message.buildType = reader.string();
|
|
48503
|
+
break;
|
|
48504
|
+
case 10:
|
|
48505
|
+
if (!(message.resolutionPath && message.resolutionPath.length))
|
|
48506
|
+
message.resolutionPath = [];
|
|
48507
|
+
message.resolutionPath.push(reader.string());
|
|
48508
|
+
break;
|
|
48509
|
+
case 11:
|
|
48510
|
+
message.resolvedId = reader.string();
|
|
48511
|
+
break;
|
|
48512
|
+
case 12:
|
|
48513
|
+
message.referencedId = reader.string();
|
|
48514
|
+
break;
|
|
48387
48515
|
default:
|
|
48388
48516
|
reader.skipType(tag & 7);
|
|
48389
48517
|
break;
|
|
@@ -48467,6 +48595,22 @@
|
|
|
48467
48595
|
return "languageServers." + error;
|
|
48468
48596
|
}
|
|
48469
48597
|
}
|
|
48598
|
+
if (message.buildType != null && message.hasOwnProperty("buildType"))
|
|
48599
|
+
if (!$util.isString(message.buildType))
|
|
48600
|
+
return "buildType: string expected";
|
|
48601
|
+
if (message.resolutionPath != null && message.hasOwnProperty("resolutionPath")) {
|
|
48602
|
+
if (!Array.isArray(message.resolutionPath))
|
|
48603
|
+
return "resolutionPath: array expected";
|
|
48604
|
+
for (var i = 0; i < message.resolutionPath.length; ++i)
|
|
48605
|
+
if (!$util.isString(message.resolutionPath[i]))
|
|
48606
|
+
return "resolutionPath: string[] expected";
|
|
48607
|
+
}
|
|
48608
|
+
if (message.resolvedId != null && message.hasOwnProperty("resolvedId"))
|
|
48609
|
+
if (!$util.isString(message.resolvedId))
|
|
48610
|
+
return "resolvedId: string expected";
|
|
48611
|
+
if (message.referencedId != null && message.hasOwnProperty("referencedId"))
|
|
48612
|
+
if (!$util.isString(message.referencedId))
|
|
48613
|
+
return "referencedId: string expected";
|
|
48470
48614
|
return null;
|
|
48471
48615
|
};
|
|
48472
48616
|
|
|
@@ -48530,6 +48674,19 @@
|
|
|
48530
48674
|
message.languageServers[i] = $root.replit.goval.api.LanguageServerOption.fromObject(object.languageServers[i]);
|
|
48531
48675
|
}
|
|
48532
48676
|
}
|
|
48677
|
+
if (object.buildType != null)
|
|
48678
|
+
message.buildType = String(object.buildType);
|
|
48679
|
+
if (object.resolutionPath) {
|
|
48680
|
+
if (!Array.isArray(object.resolutionPath))
|
|
48681
|
+
throw TypeError(".replit.goval.api.NixModule.resolutionPath: array expected");
|
|
48682
|
+
message.resolutionPath = [];
|
|
48683
|
+
for (var i = 0; i < object.resolutionPath.length; ++i)
|
|
48684
|
+
message.resolutionPath[i] = String(object.resolutionPath[i]);
|
|
48685
|
+
}
|
|
48686
|
+
if (object.resolvedId != null)
|
|
48687
|
+
message.resolvedId = String(object.resolvedId);
|
|
48688
|
+
if (object.referencedId != null)
|
|
48689
|
+
message.referencedId = String(object.referencedId);
|
|
48533
48690
|
return message;
|
|
48534
48691
|
};
|
|
48535
48692
|
|
|
@@ -48551,12 +48708,16 @@
|
|
|
48551
48708
|
object.debuggers = [];
|
|
48552
48709
|
object.packagers = [];
|
|
48553
48710
|
object.languageServers = [];
|
|
48711
|
+
object.resolutionPath = [];
|
|
48554
48712
|
}
|
|
48555
48713
|
if (options.defaults) {
|
|
48556
48714
|
object.id = "";
|
|
48557
48715
|
object.version = "";
|
|
48558
48716
|
object.name = "";
|
|
48559
48717
|
object.description = "";
|
|
48718
|
+
object.buildType = "";
|
|
48719
|
+
object.resolvedId = "";
|
|
48720
|
+
object.referencedId = "";
|
|
48560
48721
|
}
|
|
48561
48722
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
48562
48723
|
object.id = message.id;
|
|
@@ -48586,6 +48747,17 @@
|
|
|
48586
48747
|
for (var j = 0; j < message.languageServers.length; ++j)
|
|
48587
48748
|
object.languageServers[j] = $root.replit.goval.api.LanguageServerOption.toObject(message.languageServers[j], options);
|
|
48588
48749
|
}
|
|
48750
|
+
if (message.buildType != null && message.hasOwnProperty("buildType"))
|
|
48751
|
+
object.buildType = message.buildType;
|
|
48752
|
+
if (message.resolutionPath && message.resolutionPath.length) {
|
|
48753
|
+
object.resolutionPath = [];
|
|
48754
|
+
for (var j = 0; j < message.resolutionPath.length; ++j)
|
|
48755
|
+
object.resolutionPath[j] = message.resolutionPath[j];
|
|
48756
|
+
}
|
|
48757
|
+
if (message.resolvedId != null && message.hasOwnProperty("resolvedId"))
|
|
48758
|
+
object.resolvedId = message.resolvedId;
|
|
48759
|
+
if (message.referencedId != null && message.hasOwnProperty("referencedId"))
|
|
48760
|
+
object.referencedId = message.referencedId;
|
|
48589
48761
|
return object;
|
|
48590
48762
|
};
|
|
48591
48763
|
|
|
@@ -48969,6 +49141,1068 @@
|
|
|
48969
49141
|
return NixModulesBuildRequest;
|
|
48970
49142
|
})();
|
|
48971
49143
|
|
|
49144
|
+
api.NixModulesGetRegistryRequest = (function() {
|
|
49145
|
+
|
|
49146
|
+
/**
|
|
49147
|
+
* Properties of a NixModulesGetRegistryRequest.
|
|
49148
|
+
* @memberof replit.goval.api
|
|
49149
|
+
* @interface INixModulesGetRegistryRequest
|
|
49150
|
+
*/
|
|
49151
|
+
|
|
49152
|
+
/**
|
|
49153
|
+
* Constructs a new NixModulesGetRegistryRequest.
|
|
49154
|
+
* @memberof replit.goval.api
|
|
49155
|
+
* @classdesc Represents a NixModulesGetRegistryRequest.
|
|
49156
|
+
* @constructor
|
|
49157
|
+
* @param {replit.goval.api.INixModulesGetRegistryRequest=} [properties] Properties to set
|
|
49158
|
+
*/
|
|
49159
|
+
function NixModulesGetRegistryRequest(properties) {
|
|
49160
|
+
if (properties)
|
|
49161
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49162
|
+
if (properties[keys[i]] != null)
|
|
49163
|
+
this[keys[i]] = properties[keys[i]];
|
|
49164
|
+
}
|
|
49165
|
+
|
|
49166
|
+
/**
|
|
49167
|
+
* Creates a new NixModulesGetRegistryRequest instance using the specified properties.
|
|
49168
|
+
* @function create
|
|
49169
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49170
|
+
* @static
|
|
49171
|
+
* @param {replit.goval.api.INixModulesGetRegistryRequest=} [properties] Properties to set
|
|
49172
|
+
* @returns {replit.goval.api.NixModulesGetRegistryRequest} NixModulesGetRegistryRequest instance
|
|
49173
|
+
*/
|
|
49174
|
+
NixModulesGetRegistryRequest.create = function create(properties) {
|
|
49175
|
+
return NixModulesGetRegistryRequest.fromObject(properties);
|
|
49176
|
+
};
|
|
49177
|
+
|
|
49178
|
+
/**
|
|
49179
|
+
* Encodes the specified NixModulesGetRegistryRequest message. Does not implicitly {@link replit.goval.api.NixModulesGetRegistryRequest.verify|verify} messages.
|
|
49180
|
+
* @function encode
|
|
49181
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49182
|
+
* @static
|
|
49183
|
+
* @param {replit.goval.api.NixModulesGetRegistryRequest} message NixModulesGetRegistryRequest message or plain object to encode
|
|
49184
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49185
|
+
* @returns {$protobuf.Writer} Writer
|
|
49186
|
+
*/
|
|
49187
|
+
NixModulesGetRegistryRequest.encode = function encode(message, writer) {
|
|
49188
|
+
if (!writer)
|
|
49189
|
+
writer = $Writer.create();
|
|
49190
|
+
return writer;
|
|
49191
|
+
};
|
|
49192
|
+
|
|
49193
|
+
/**
|
|
49194
|
+
* Encodes the specified NixModulesGetRegistryRequest message, length delimited. Does not implicitly {@link replit.goval.api.NixModulesGetRegistryRequest.verify|verify} messages.
|
|
49195
|
+
* @function encodeDelimited
|
|
49196
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49197
|
+
* @static
|
|
49198
|
+
* @param {replit.goval.api.NixModulesGetRegistryRequest} message NixModulesGetRegistryRequest message or plain object to encode
|
|
49199
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49200
|
+
* @returns {$protobuf.Writer} Writer
|
|
49201
|
+
*/
|
|
49202
|
+
NixModulesGetRegistryRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49203
|
+
return this.encode(message, writer).ldelim();
|
|
49204
|
+
};
|
|
49205
|
+
|
|
49206
|
+
/**
|
|
49207
|
+
* Decodes a NixModulesGetRegistryRequest message from the specified reader or buffer.
|
|
49208
|
+
* @function decode
|
|
49209
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49210
|
+
* @static
|
|
49211
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49212
|
+
* @param {number} [length] Message length if known beforehand
|
|
49213
|
+
* @returns {replit.goval.api.NixModulesGetRegistryRequest} NixModulesGetRegistryRequest
|
|
49214
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49215
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49216
|
+
*/
|
|
49217
|
+
NixModulesGetRegistryRequest.decode = function decode(reader, length) {
|
|
49218
|
+
if (!(reader instanceof $Reader))
|
|
49219
|
+
reader = $Reader.create(reader);
|
|
49220
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.NixModulesGetRegistryRequest();
|
|
49221
|
+
while (reader.pos < end) {
|
|
49222
|
+
var tag = reader.uint32();
|
|
49223
|
+
switch (tag >>> 3) {
|
|
49224
|
+
default:
|
|
49225
|
+
reader.skipType(tag & 7);
|
|
49226
|
+
break;
|
|
49227
|
+
}
|
|
49228
|
+
}
|
|
49229
|
+
return message;
|
|
49230
|
+
};
|
|
49231
|
+
|
|
49232
|
+
/**
|
|
49233
|
+
* Decodes a NixModulesGetRegistryRequest message from the specified reader or buffer, length delimited.
|
|
49234
|
+
* @function decodeDelimited
|
|
49235
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49236
|
+
* @static
|
|
49237
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49238
|
+
* @returns {replit.goval.api.NixModulesGetRegistryRequest} NixModulesGetRegistryRequest
|
|
49239
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49240
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49241
|
+
*/
|
|
49242
|
+
NixModulesGetRegistryRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
49243
|
+
if (!(reader instanceof $Reader))
|
|
49244
|
+
reader = new $Reader(reader);
|
|
49245
|
+
return this.decode(reader, reader.uint32());
|
|
49246
|
+
};
|
|
49247
|
+
|
|
49248
|
+
/**
|
|
49249
|
+
* Verifies a NixModulesGetRegistryRequest message.
|
|
49250
|
+
* @function verify
|
|
49251
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49252
|
+
* @static
|
|
49253
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49254
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49255
|
+
*/
|
|
49256
|
+
NixModulesGetRegistryRequest.verify = function verify(message) {
|
|
49257
|
+
if (typeof message !== "object" || message === null)
|
|
49258
|
+
return "object expected";
|
|
49259
|
+
return null;
|
|
49260
|
+
};
|
|
49261
|
+
|
|
49262
|
+
/**
|
|
49263
|
+
* Creates a NixModulesGetRegistryRequest message from a plain object. Also converts values to their respective internal types.
|
|
49264
|
+
* @function fromObject
|
|
49265
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49266
|
+
* @static
|
|
49267
|
+
* @param {Object.<string,*>} object Plain object
|
|
49268
|
+
* @returns {replit.goval.api.NixModulesGetRegistryRequest} NixModulesGetRegistryRequest
|
|
49269
|
+
*/
|
|
49270
|
+
NixModulesGetRegistryRequest.fromObject = function fromObject(object) {
|
|
49271
|
+
if (object instanceof $root.replit.goval.api.NixModulesGetRegistryRequest)
|
|
49272
|
+
return object;
|
|
49273
|
+
return new $root.replit.goval.api.NixModulesGetRegistryRequest();
|
|
49274
|
+
};
|
|
49275
|
+
|
|
49276
|
+
/**
|
|
49277
|
+
* Creates a plain object from a NixModulesGetRegistryRequest message. Also converts values to other types if specified.
|
|
49278
|
+
* @function toObject
|
|
49279
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49280
|
+
* @static
|
|
49281
|
+
* @param {replit.goval.api.NixModulesGetRegistryRequest} message NixModulesGetRegistryRequest
|
|
49282
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49283
|
+
* @returns {Object.<string,*>} Plain object
|
|
49284
|
+
*/
|
|
49285
|
+
NixModulesGetRegistryRequest.toObject = function toObject() {
|
|
49286
|
+
return {};
|
|
49287
|
+
};
|
|
49288
|
+
|
|
49289
|
+
/**
|
|
49290
|
+
* Converts this NixModulesGetRegistryRequest to JSON.
|
|
49291
|
+
* @function toJSON
|
|
49292
|
+
* @memberof replit.goval.api.NixModulesGetRegistryRequest
|
|
49293
|
+
* @instance
|
|
49294
|
+
* @returns {Object.<string,*>} JSON object
|
|
49295
|
+
*/
|
|
49296
|
+
NixModulesGetRegistryRequest.prototype.toJSON = function toJSON() {
|
|
49297
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49298
|
+
};
|
|
49299
|
+
|
|
49300
|
+
return NixModulesGetRegistryRequest;
|
|
49301
|
+
})();
|
|
49302
|
+
|
|
49303
|
+
api.NixModulesGetRegistryResponse = (function() {
|
|
49304
|
+
|
|
49305
|
+
/**
|
|
49306
|
+
* Properties of a NixModulesGetRegistryResponse.
|
|
49307
|
+
* @memberof replit.goval.api
|
|
49308
|
+
* @interface INixModulesGetRegistryResponse
|
|
49309
|
+
* @property {Array.<replit.goval.api.NixModulesRegistryEntry|replit.goval.api.INixModulesRegistryEntry>|null} [modules] NixModulesGetRegistryResponse modules
|
|
49310
|
+
* @property {Object.<string,replit.goval.api.NixModulesUpgradeMapEntry|replit.goval.api.INixModulesUpgradeMapEntry>|null} [autoUpgrade] NixModulesGetRegistryResponse autoUpgrade
|
|
49311
|
+
* @property {Object.<string,replit.goval.api.NixModulesUpgradeMapEntry|replit.goval.api.INixModulesUpgradeMapEntry>|null} [recommendUpgrade] NixModulesGetRegistryResponse recommendUpgrade
|
|
49312
|
+
*/
|
|
49313
|
+
|
|
49314
|
+
/**
|
|
49315
|
+
* Constructs a new NixModulesGetRegistryResponse.
|
|
49316
|
+
* @memberof replit.goval.api
|
|
49317
|
+
* @classdesc Represents a NixModulesGetRegistryResponse.
|
|
49318
|
+
* @constructor
|
|
49319
|
+
* @param {replit.goval.api.INixModulesGetRegistryResponse=} [properties] Properties to set
|
|
49320
|
+
*/
|
|
49321
|
+
function NixModulesGetRegistryResponse(properties) {
|
|
49322
|
+
this.modules = [];
|
|
49323
|
+
this.autoUpgrade = {};
|
|
49324
|
+
this.recommendUpgrade = {};
|
|
49325
|
+
if (properties)
|
|
49326
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49327
|
+
if (properties[keys[i]] != null)
|
|
49328
|
+
this[keys[i]] = properties[keys[i]];
|
|
49329
|
+
}
|
|
49330
|
+
|
|
49331
|
+
/**
|
|
49332
|
+
* NixModulesGetRegistryResponse modules.
|
|
49333
|
+
* @member {Array.<replit.goval.api.NixModulesRegistryEntry>} modules
|
|
49334
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49335
|
+
* @instance
|
|
49336
|
+
*/
|
|
49337
|
+
NixModulesGetRegistryResponse.prototype.modules = $util.emptyArray;
|
|
49338
|
+
|
|
49339
|
+
/**
|
|
49340
|
+
* NixModulesGetRegistryResponse autoUpgrade.
|
|
49341
|
+
* @member {Object.<string,replit.goval.api.NixModulesUpgradeMapEntry>} autoUpgrade
|
|
49342
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49343
|
+
* @instance
|
|
49344
|
+
*/
|
|
49345
|
+
NixModulesGetRegistryResponse.prototype.autoUpgrade = $util.emptyObject;
|
|
49346
|
+
|
|
49347
|
+
/**
|
|
49348
|
+
* NixModulesGetRegistryResponse recommendUpgrade.
|
|
49349
|
+
* @member {Object.<string,replit.goval.api.NixModulesUpgradeMapEntry>} recommendUpgrade
|
|
49350
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49351
|
+
* @instance
|
|
49352
|
+
*/
|
|
49353
|
+
NixModulesGetRegistryResponse.prototype.recommendUpgrade = $util.emptyObject;
|
|
49354
|
+
|
|
49355
|
+
/**
|
|
49356
|
+
* Creates a new NixModulesGetRegistryResponse instance using the specified properties.
|
|
49357
|
+
* @function create
|
|
49358
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49359
|
+
* @static
|
|
49360
|
+
* @param {replit.goval.api.INixModulesGetRegistryResponse=} [properties] Properties to set
|
|
49361
|
+
* @returns {replit.goval.api.NixModulesGetRegistryResponse} NixModulesGetRegistryResponse instance
|
|
49362
|
+
*/
|
|
49363
|
+
NixModulesGetRegistryResponse.create = function create(properties) {
|
|
49364
|
+
return NixModulesGetRegistryResponse.fromObject(properties);
|
|
49365
|
+
};
|
|
49366
|
+
|
|
49367
|
+
/**
|
|
49368
|
+
* Encodes the specified NixModulesGetRegistryResponse message. Does not implicitly {@link replit.goval.api.NixModulesGetRegistryResponse.verify|verify} messages.
|
|
49369
|
+
* @function encode
|
|
49370
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49371
|
+
* @static
|
|
49372
|
+
* @param {replit.goval.api.NixModulesGetRegistryResponse} message NixModulesGetRegistryResponse message or plain object to encode
|
|
49373
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49374
|
+
* @returns {$protobuf.Writer} Writer
|
|
49375
|
+
*/
|
|
49376
|
+
NixModulesGetRegistryResponse.encode = function encode(message, writer) {
|
|
49377
|
+
if (!writer)
|
|
49378
|
+
writer = $Writer.create();
|
|
49379
|
+
if (message.modules != null && message.modules.length)
|
|
49380
|
+
for (var i = 0; i < message.modules.length; ++i)
|
|
49381
|
+
$root.replit.goval.api.NixModulesRegistryEntry.encode(message.modules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
49382
|
+
if (message.autoUpgrade != null && Object.hasOwnProperty.call(message, "autoUpgrade"))
|
|
49383
|
+
for (var keys = Object.keys(message.autoUpgrade), i = 0; i < keys.length; ++i) {
|
|
49384
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
49385
|
+
$root.replit.goval.api.NixModulesUpgradeMapEntry.encode(message.autoUpgrade[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
49386
|
+
}
|
|
49387
|
+
if (message.recommendUpgrade != null && Object.hasOwnProperty.call(message, "recommendUpgrade"))
|
|
49388
|
+
for (var keys = Object.keys(message.recommendUpgrade), i = 0; i < keys.length; ++i) {
|
|
49389
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
49390
|
+
$root.replit.goval.api.NixModulesUpgradeMapEntry.encode(message.recommendUpgrade[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
49391
|
+
}
|
|
49392
|
+
return writer;
|
|
49393
|
+
};
|
|
49394
|
+
|
|
49395
|
+
/**
|
|
49396
|
+
* Encodes the specified NixModulesGetRegistryResponse message, length delimited. Does not implicitly {@link replit.goval.api.NixModulesGetRegistryResponse.verify|verify} messages.
|
|
49397
|
+
* @function encodeDelimited
|
|
49398
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49399
|
+
* @static
|
|
49400
|
+
* @param {replit.goval.api.NixModulesGetRegistryResponse} message NixModulesGetRegistryResponse message or plain object to encode
|
|
49401
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49402
|
+
* @returns {$protobuf.Writer} Writer
|
|
49403
|
+
*/
|
|
49404
|
+
NixModulesGetRegistryResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49405
|
+
return this.encode(message, writer).ldelim();
|
|
49406
|
+
};
|
|
49407
|
+
|
|
49408
|
+
/**
|
|
49409
|
+
* Decodes a NixModulesGetRegistryResponse message from the specified reader or buffer.
|
|
49410
|
+
* @function decode
|
|
49411
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49412
|
+
* @static
|
|
49413
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49414
|
+
* @param {number} [length] Message length if known beforehand
|
|
49415
|
+
* @returns {replit.goval.api.NixModulesGetRegistryResponse} NixModulesGetRegistryResponse
|
|
49416
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49417
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49418
|
+
*/
|
|
49419
|
+
NixModulesGetRegistryResponse.decode = function decode(reader, length) {
|
|
49420
|
+
if (!(reader instanceof $Reader))
|
|
49421
|
+
reader = $Reader.create(reader);
|
|
49422
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.NixModulesGetRegistryResponse(), key, value;
|
|
49423
|
+
while (reader.pos < end) {
|
|
49424
|
+
var tag = reader.uint32();
|
|
49425
|
+
switch (tag >>> 3) {
|
|
49426
|
+
case 1:
|
|
49427
|
+
if (!(message.modules && message.modules.length))
|
|
49428
|
+
message.modules = [];
|
|
49429
|
+
message.modules.push($root.replit.goval.api.NixModulesRegistryEntry.decode(reader, reader.uint32()));
|
|
49430
|
+
break;
|
|
49431
|
+
case 2:
|
|
49432
|
+
if (message.autoUpgrade === $util.emptyObject)
|
|
49433
|
+
message.autoUpgrade = {};
|
|
49434
|
+
var end2 = reader.uint32() + reader.pos;
|
|
49435
|
+
key = "";
|
|
49436
|
+
value = null;
|
|
49437
|
+
while (reader.pos < end2) {
|
|
49438
|
+
var tag2 = reader.uint32();
|
|
49439
|
+
switch (tag2 >>> 3) {
|
|
49440
|
+
case 1:
|
|
49441
|
+
key = reader.string();
|
|
49442
|
+
break;
|
|
49443
|
+
case 2:
|
|
49444
|
+
value = $root.replit.goval.api.NixModulesUpgradeMapEntry.decode(reader, reader.uint32());
|
|
49445
|
+
break;
|
|
49446
|
+
default:
|
|
49447
|
+
reader.skipType(tag2 & 7);
|
|
49448
|
+
break;
|
|
49449
|
+
}
|
|
49450
|
+
}
|
|
49451
|
+
message.autoUpgrade[key] = value;
|
|
49452
|
+
break;
|
|
49453
|
+
case 3:
|
|
49454
|
+
if (message.recommendUpgrade === $util.emptyObject)
|
|
49455
|
+
message.recommendUpgrade = {};
|
|
49456
|
+
var end2 = reader.uint32() + reader.pos;
|
|
49457
|
+
key = "";
|
|
49458
|
+
value = null;
|
|
49459
|
+
while (reader.pos < end2) {
|
|
49460
|
+
var tag2 = reader.uint32();
|
|
49461
|
+
switch (tag2 >>> 3) {
|
|
49462
|
+
case 1:
|
|
49463
|
+
key = reader.string();
|
|
49464
|
+
break;
|
|
49465
|
+
case 2:
|
|
49466
|
+
value = $root.replit.goval.api.NixModulesUpgradeMapEntry.decode(reader, reader.uint32());
|
|
49467
|
+
break;
|
|
49468
|
+
default:
|
|
49469
|
+
reader.skipType(tag2 & 7);
|
|
49470
|
+
break;
|
|
49471
|
+
}
|
|
49472
|
+
}
|
|
49473
|
+
message.recommendUpgrade[key] = value;
|
|
49474
|
+
break;
|
|
49475
|
+
default:
|
|
49476
|
+
reader.skipType(tag & 7);
|
|
49477
|
+
break;
|
|
49478
|
+
}
|
|
49479
|
+
}
|
|
49480
|
+
return message;
|
|
49481
|
+
};
|
|
49482
|
+
|
|
49483
|
+
/**
|
|
49484
|
+
* Decodes a NixModulesGetRegistryResponse message from the specified reader or buffer, length delimited.
|
|
49485
|
+
* @function decodeDelimited
|
|
49486
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49487
|
+
* @static
|
|
49488
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49489
|
+
* @returns {replit.goval.api.NixModulesGetRegistryResponse} NixModulesGetRegistryResponse
|
|
49490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49492
|
+
*/
|
|
49493
|
+
NixModulesGetRegistryResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
49494
|
+
if (!(reader instanceof $Reader))
|
|
49495
|
+
reader = new $Reader(reader);
|
|
49496
|
+
return this.decode(reader, reader.uint32());
|
|
49497
|
+
};
|
|
49498
|
+
|
|
49499
|
+
/**
|
|
49500
|
+
* Verifies a NixModulesGetRegistryResponse message.
|
|
49501
|
+
* @function verify
|
|
49502
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49503
|
+
* @static
|
|
49504
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49505
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49506
|
+
*/
|
|
49507
|
+
NixModulesGetRegistryResponse.verify = function verify(message) {
|
|
49508
|
+
if (typeof message !== "object" || message === null)
|
|
49509
|
+
return "object expected";
|
|
49510
|
+
if (message.modules != null && message.hasOwnProperty("modules")) {
|
|
49511
|
+
if (!Array.isArray(message.modules))
|
|
49512
|
+
return "modules: array expected";
|
|
49513
|
+
for (var i = 0; i < message.modules.length; ++i) {
|
|
49514
|
+
var error = $root.replit.goval.api.NixModulesRegistryEntry.verify(message.modules[i]);
|
|
49515
|
+
if (error)
|
|
49516
|
+
return "modules." + error;
|
|
49517
|
+
}
|
|
49518
|
+
}
|
|
49519
|
+
if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) {
|
|
49520
|
+
if (!$util.isObject(message.autoUpgrade))
|
|
49521
|
+
return "autoUpgrade: object expected";
|
|
49522
|
+
var key = Object.keys(message.autoUpgrade);
|
|
49523
|
+
for (var i = 0; i < key.length; ++i) {
|
|
49524
|
+
var error = $root.replit.goval.api.NixModulesUpgradeMapEntry.verify(message.autoUpgrade[key[i]]);
|
|
49525
|
+
if (error)
|
|
49526
|
+
return "autoUpgrade." + error;
|
|
49527
|
+
}
|
|
49528
|
+
}
|
|
49529
|
+
if (message.recommendUpgrade != null && message.hasOwnProperty("recommendUpgrade")) {
|
|
49530
|
+
if (!$util.isObject(message.recommendUpgrade))
|
|
49531
|
+
return "recommendUpgrade: object expected";
|
|
49532
|
+
var key = Object.keys(message.recommendUpgrade);
|
|
49533
|
+
for (var i = 0; i < key.length; ++i) {
|
|
49534
|
+
var error = $root.replit.goval.api.NixModulesUpgradeMapEntry.verify(message.recommendUpgrade[key[i]]);
|
|
49535
|
+
if (error)
|
|
49536
|
+
return "recommendUpgrade." + error;
|
|
49537
|
+
}
|
|
49538
|
+
}
|
|
49539
|
+
return null;
|
|
49540
|
+
};
|
|
49541
|
+
|
|
49542
|
+
/**
|
|
49543
|
+
* Creates a NixModulesGetRegistryResponse message from a plain object. Also converts values to their respective internal types.
|
|
49544
|
+
* @function fromObject
|
|
49545
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49546
|
+
* @static
|
|
49547
|
+
* @param {Object.<string,*>} object Plain object
|
|
49548
|
+
* @returns {replit.goval.api.NixModulesGetRegistryResponse} NixModulesGetRegistryResponse
|
|
49549
|
+
*/
|
|
49550
|
+
NixModulesGetRegistryResponse.fromObject = function fromObject(object) {
|
|
49551
|
+
if (object instanceof $root.replit.goval.api.NixModulesGetRegistryResponse)
|
|
49552
|
+
return object;
|
|
49553
|
+
var message = new $root.replit.goval.api.NixModulesGetRegistryResponse();
|
|
49554
|
+
if (object.modules) {
|
|
49555
|
+
if (!Array.isArray(object.modules))
|
|
49556
|
+
throw TypeError(".replit.goval.api.NixModulesGetRegistryResponse.modules: array expected");
|
|
49557
|
+
message.modules = [];
|
|
49558
|
+
for (var i = 0; i < object.modules.length; ++i) {
|
|
49559
|
+
if (typeof object.modules[i] !== "object")
|
|
49560
|
+
throw TypeError(".replit.goval.api.NixModulesGetRegistryResponse.modules: object expected");
|
|
49561
|
+
message.modules[i] = $root.replit.goval.api.NixModulesRegistryEntry.fromObject(object.modules[i]);
|
|
49562
|
+
}
|
|
49563
|
+
}
|
|
49564
|
+
if (object.autoUpgrade) {
|
|
49565
|
+
if (typeof object.autoUpgrade !== "object")
|
|
49566
|
+
throw TypeError(".replit.goval.api.NixModulesGetRegistryResponse.autoUpgrade: object expected");
|
|
49567
|
+
message.autoUpgrade = {};
|
|
49568
|
+
for (var keys = Object.keys(object.autoUpgrade), i = 0; i < keys.length; ++i) {
|
|
49569
|
+
if (typeof object.autoUpgrade[keys[i]] !== "object")
|
|
49570
|
+
throw TypeError(".replit.goval.api.NixModulesGetRegistryResponse.autoUpgrade: object expected");
|
|
49571
|
+
message.autoUpgrade[keys[i]] = $root.replit.goval.api.NixModulesUpgradeMapEntry.fromObject(object.autoUpgrade[keys[i]]);
|
|
49572
|
+
}
|
|
49573
|
+
}
|
|
49574
|
+
if (object.recommendUpgrade) {
|
|
49575
|
+
if (typeof object.recommendUpgrade !== "object")
|
|
49576
|
+
throw TypeError(".replit.goval.api.NixModulesGetRegistryResponse.recommendUpgrade: object expected");
|
|
49577
|
+
message.recommendUpgrade = {};
|
|
49578
|
+
for (var keys = Object.keys(object.recommendUpgrade), i = 0; i < keys.length; ++i) {
|
|
49579
|
+
if (typeof object.recommendUpgrade[keys[i]] !== "object")
|
|
49580
|
+
throw TypeError(".replit.goval.api.NixModulesGetRegistryResponse.recommendUpgrade: object expected");
|
|
49581
|
+
message.recommendUpgrade[keys[i]] = $root.replit.goval.api.NixModulesUpgradeMapEntry.fromObject(object.recommendUpgrade[keys[i]]);
|
|
49582
|
+
}
|
|
49583
|
+
}
|
|
49584
|
+
return message;
|
|
49585
|
+
};
|
|
49586
|
+
|
|
49587
|
+
/**
|
|
49588
|
+
* Creates a plain object from a NixModulesGetRegistryResponse message. Also converts values to other types if specified.
|
|
49589
|
+
* @function toObject
|
|
49590
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49591
|
+
* @static
|
|
49592
|
+
* @param {replit.goval.api.NixModulesGetRegistryResponse} message NixModulesGetRegistryResponse
|
|
49593
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49594
|
+
* @returns {Object.<string,*>} Plain object
|
|
49595
|
+
*/
|
|
49596
|
+
NixModulesGetRegistryResponse.toObject = function toObject(message, options) {
|
|
49597
|
+
if (!options)
|
|
49598
|
+
options = {};
|
|
49599
|
+
var object = {};
|
|
49600
|
+
if (options.arrays || options.defaults)
|
|
49601
|
+
object.modules = [];
|
|
49602
|
+
if (options.objects || options.defaults) {
|
|
49603
|
+
object.autoUpgrade = {};
|
|
49604
|
+
object.recommendUpgrade = {};
|
|
49605
|
+
}
|
|
49606
|
+
if (message.modules && message.modules.length) {
|
|
49607
|
+
object.modules = [];
|
|
49608
|
+
for (var j = 0; j < message.modules.length; ++j)
|
|
49609
|
+
object.modules[j] = $root.replit.goval.api.NixModulesRegistryEntry.toObject(message.modules[j], options);
|
|
49610
|
+
}
|
|
49611
|
+
var keys2;
|
|
49612
|
+
if (message.autoUpgrade && (keys2 = Object.keys(message.autoUpgrade)).length) {
|
|
49613
|
+
object.autoUpgrade = {};
|
|
49614
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
49615
|
+
object.autoUpgrade[keys2[j]] = $root.replit.goval.api.NixModulesUpgradeMapEntry.toObject(message.autoUpgrade[keys2[j]], options);
|
|
49616
|
+
}
|
|
49617
|
+
if (message.recommendUpgrade && (keys2 = Object.keys(message.recommendUpgrade)).length) {
|
|
49618
|
+
object.recommendUpgrade = {};
|
|
49619
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
49620
|
+
object.recommendUpgrade[keys2[j]] = $root.replit.goval.api.NixModulesUpgradeMapEntry.toObject(message.recommendUpgrade[keys2[j]], options);
|
|
49621
|
+
}
|
|
49622
|
+
return object;
|
|
49623
|
+
};
|
|
49624
|
+
|
|
49625
|
+
/**
|
|
49626
|
+
* Converts this NixModulesGetRegistryResponse to JSON.
|
|
49627
|
+
* @function toJSON
|
|
49628
|
+
* @memberof replit.goval.api.NixModulesGetRegistryResponse
|
|
49629
|
+
* @instance
|
|
49630
|
+
* @returns {Object.<string,*>} JSON object
|
|
49631
|
+
*/
|
|
49632
|
+
NixModulesGetRegistryResponse.prototype.toJSON = function toJSON() {
|
|
49633
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49634
|
+
};
|
|
49635
|
+
|
|
49636
|
+
return NixModulesGetRegistryResponse;
|
|
49637
|
+
})();
|
|
49638
|
+
|
|
49639
|
+
api.NixModulesRegistryEntry = (function() {
|
|
49640
|
+
|
|
49641
|
+
/**
|
|
49642
|
+
* Properties of a NixModulesRegistryEntry.
|
|
49643
|
+
* @memberof replit.goval.api
|
|
49644
|
+
* @interface INixModulesRegistryEntry
|
|
49645
|
+
* @property {string|null} [id] NixModulesRegistryEntry id
|
|
49646
|
+
* @property {string|null} [name] NixModulesRegistryEntry name
|
|
49647
|
+
* @property {string|null} [description] NixModulesRegistryEntry description
|
|
49648
|
+
* @property {number|null} [version] NixModulesRegistryEntry version
|
|
49649
|
+
* @property {string|null} [tag] NixModulesRegistryEntry tag
|
|
49650
|
+
* @property {Array.<string>|null} [tags] NixModulesRegistryEntry tags
|
|
49651
|
+
* @property {string|null} [commit] NixModulesRegistryEntry commit
|
|
49652
|
+
* @property {string|null} [path] NixModulesRegistryEntry path
|
|
49653
|
+
*/
|
|
49654
|
+
|
|
49655
|
+
/**
|
|
49656
|
+
* Constructs a new NixModulesRegistryEntry.
|
|
49657
|
+
* @memberof replit.goval.api
|
|
49658
|
+
* @classdesc Represents a NixModulesRegistryEntry.
|
|
49659
|
+
* @constructor
|
|
49660
|
+
* @param {replit.goval.api.INixModulesRegistryEntry=} [properties] Properties to set
|
|
49661
|
+
*/
|
|
49662
|
+
function NixModulesRegistryEntry(properties) {
|
|
49663
|
+
this.tags = [];
|
|
49664
|
+
if (properties)
|
|
49665
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49666
|
+
if (properties[keys[i]] != null)
|
|
49667
|
+
this[keys[i]] = properties[keys[i]];
|
|
49668
|
+
}
|
|
49669
|
+
|
|
49670
|
+
/**
|
|
49671
|
+
* NixModulesRegistryEntry id.
|
|
49672
|
+
* @member {string} id
|
|
49673
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49674
|
+
* @instance
|
|
49675
|
+
*/
|
|
49676
|
+
NixModulesRegistryEntry.prototype.id = "";
|
|
49677
|
+
|
|
49678
|
+
/**
|
|
49679
|
+
* NixModulesRegistryEntry name.
|
|
49680
|
+
* @member {string} name
|
|
49681
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49682
|
+
* @instance
|
|
49683
|
+
*/
|
|
49684
|
+
NixModulesRegistryEntry.prototype.name = "";
|
|
49685
|
+
|
|
49686
|
+
/**
|
|
49687
|
+
* NixModulesRegistryEntry description.
|
|
49688
|
+
* @member {string} description
|
|
49689
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49690
|
+
* @instance
|
|
49691
|
+
*/
|
|
49692
|
+
NixModulesRegistryEntry.prototype.description = "";
|
|
49693
|
+
|
|
49694
|
+
/**
|
|
49695
|
+
* NixModulesRegistryEntry version.
|
|
49696
|
+
* @member {number} version
|
|
49697
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49698
|
+
* @instance
|
|
49699
|
+
*/
|
|
49700
|
+
NixModulesRegistryEntry.prototype.version = 0;
|
|
49701
|
+
|
|
49702
|
+
/**
|
|
49703
|
+
* NixModulesRegistryEntry tag.
|
|
49704
|
+
* @member {string} tag
|
|
49705
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49706
|
+
* @instance
|
|
49707
|
+
*/
|
|
49708
|
+
NixModulesRegistryEntry.prototype.tag = "";
|
|
49709
|
+
|
|
49710
|
+
/**
|
|
49711
|
+
* NixModulesRegistryEntry tags.
|
|
49712
|
+
* @member {Array.<string>} tags
|
|
49713
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49714
|
+
* @instance
|
|
49715
|
+
*/
|
|
49716
|
+
NixModulesRegistryEntry.prototype.tags = $util.emptyArray;
|
|
49717
|
+
|
|
49718
|
+
/**
|
|
49719
|
+
* NixModulesRegistryEntry commit.
|
|
49720
|
+
* @member {string} commit
|
|
49721
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49722
|
+
* @instance
|
|
49723
|
+
*/
|
|
49724
|
+
NixModulesRegistryEntry.prototype.commit = "";
|
|
49725
|
+
|
|
49726
|
+
/**
|
|
49727
|
+
* NixModulesRegistryEntry path.
|
|
49728
|
+
* @member {string} path
|
|
49729
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49730
|
+
* @instance
|
|
49731
|
+
*/
|
|
49732
|
+
NixModulesRegistryEntry.prototype.path = "";
|
|
49733
|
+
|
|
49734
|
+
/**
|
|
49735
|
+
* Creates a new NixModulesRegistryEntry instance using the specified properties.
|
|
49736
|
+
* @function create
|
|
49737
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49738
|
+
* @static
|
|
49739
|
+
* @param {replit.goval.api.INixModulesRegistryEntry=} [properties] Properties to set
|
|
49740
|
+
* @returns {replit.goval.api.NixModulesRegistryEntry} NixModulesRegistryEntry instance
|
|
49741
|
+
*/
|
|
49742
|
+
NixModulesRegistryEntry.create = function create(properties) {
|
|
49743
|
+
return NixModulesRegistryEntry.fromObject(properties);
|
|
49744
|
+
};
|
|
49745
|
+
|
|
49746
|
+
/**
|
|
49747
|
+
* Encodes the specified NixModulesRegistryEntry message. Does not implicitly {@link replit.goval.api.NixModulesRegistryEntry.verify|verify} messages.
|
|
49748
|
+
* @function encode
|
|
49749
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49750
|
+
* @static
|
|
49751
|
+
* @param {replit.goval.api.NixModulesRegistryEntry} message NixModulesRegistryEntry message or plain object to encode
|
|
49752
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49753
|
+
* @returns {$protobuf.Writer} Writer
|
|
49754
|
+
*/
|
|
49755
|
+
NixModulesRegistryEntry.encode = function encode(message, writer) {
|
|
49756
|
+
if (!writer)
|
|
49757
|
+
writer = $Writer.create();
|
|
49758
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
49759
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
49760
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
49761
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
49762
|
+
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
49763
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
|
|
49764
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
49765
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.version);
|
|
49766
|
+
if (message.tag != null && Object.hasOwnProperty.call(message, "tag"))
|
|
49767
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.tag);
|
|
49768
|
+
if (message.tags != null && message.tags.length)
|
|
49769
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
49770
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.tags[i]);
|
|
49771
|
+
if (message.commit != null && Object.hasOwnProperty.call(message, "commit"))
|
|
49772
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.commit);
|
|
49773
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
49774
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.path);
|
|
49775
|
+
return writer;
|
|
49776
|
+
};
|
|
49777
|
+
|
|
49778
|
+
/**
|
|
49779
|
+
* Encodes the specified NixModulesRegistryEntry message, length delimited. Does not implicitly {@link replit.goval.api.NixModulesRegistryEntry.verify|verify} messages.
|
|
49780
|
+
* @function encodeDelimited
|
|
49781
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49782
|
+
* @static
|
|
49783
|
+
* @param {replit.goval.api.NixModulesRegistryEntry} message NixModulesRegistryEntry message or plain object to encode
|
|
49784
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49785
|
+
* @returns {$protobuf.Writer} Writer
|
|
49786
|
+
*/
|
|
49787
|
+
NixModulesRegistryEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49788
|
+
return this.encode(message, writer).ldelim();
|
|
49789
|
+
};
|
|
49790
|
+
|
|
49791
|
+
/**
|
|
49792
|
+
* Decodes a NixModulesRegistryEntry message from the specified reader or buffer.
|
|
49793
|
+
* @function decode
|
|
49794
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49795
|
+
* @static
|
|
49796
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49797
|
+
* @param {number} [length] Message length if known beforehand
|
|
49798
|
+
* @returns {replit.goval.api.NixModulesRegistryEntry} NixModulesRegistryEntry
|
|
49799
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49800
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49801
|
+
*/
|
|
49802
|
+
NixModulesRegistryEntry.decode = function decode(reader, length) {
|
|
49803
|
+
if (!(reader instanceof $Reader))
|
|
49804
|
+
reader = $Reader.create(reader);
|
|
49805
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.NixModulesRegistryEntry();
|
|
49806
|
+
while (reader.pos < end) {
|
|
49807
|
+
var tag = reader.uint32();
|
|
49808
|
+
switch (tag >>> 3) {
|
|
49809
|
+
case 1:
|
|
49810
|
+
message.id = reader.string();
|
|
49811
|
+
break;
|
|
49812
|
+
case 2:
|
|
49813
|
+
message.name = reader.string();
|
|
49814
|
+
break;
|
|
49815
|
+
case 3:
|
|
49816
|
+
message.description = reader.string();
|
|
49817
|
+
break;
|
|
49818
|
+
case 4:
|
|
49819
|
+
message.version = reader.int32();
|
|
49820
|
+
break;
|
|
49821
|
+
case 5:
|
|
49822
|
+
message.tag = reader.string();
|
|
49823
|
+
break;
|
|
49824
|
+
case 6:
|
|
49825
|
+
if (!(message.tags && message.tags.length))
|
|
49826
|
+
message.tags = [];
|
|
49827
|
+
message.tags.push(reader.string());
|
|
49828
|
+
break;
|
|
49829
|
+
case 7:
|
|
49830
|
+
message.commit = reader.string();
|
|
49831
|
+
break;
|
|
49832
|
+
case 8:
|
|
49833
|
+
message.path = reader.string();
|
|
49834
|
+
break;
|
|
49835
|
+
default:
|
|
49836
|
+
reader.skipType(tag & 7);
|
|
49837
|
+
break;
|
|
49838
|
+
}
|
|
49839
|
+
}
|
|
49840
|
+
return message;
|
|
49841
|
+
};
|
|
49842
|
+
|
|
49843
|
+
/**
|
|
49844
|
+
* Decodes a NixModulesRegistryEntry message from the specified reader or buffer, length delimited.
|
|
49845
|
+
* @function decodeDelimited
|
|
49846
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49847
|
+
* @static
|
|
49848
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49849
|
+
* @returns {replit.goval.api.NixModulesRegistryEntry} NixModulesRegistryEntry
|
|
49850
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49851
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49852
|
+
*/
|
|
49853
|
+
NixModulesRegistryEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
49854
|
+
if (!(reader instanceof $Reader))
|
|
49855
|
+
reader = new $Reader(reader);
|
|
49856
|
+
return this.decode(reader, reader.uint32());
|
|
49857
|
+
};
|
|
49858
|
+
|
|
49859
|
+
/**
|
|
49860
|
+
* Verifies a NixModulesRegistryEntry message.
|
|
49861
|
+
* @function verify
|
|
49862
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49863
|
+
* @static
|
|
49864
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49865
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49866
|
+
*/
|
|
49867
|
+
NixModulesRegistryEntry.verify = function verify(message) {
|
|
49868
|
+
if (typeof message !== "object" || message === null)
|
|
49869
|
+
return "object expected";
|
|
49870
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
49871
|
+
if (!$util.isString(message.id))
|
|
49872
|
+
return "id: string expected";
|
|
49873
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
49874
|
+
if (!$util.isString(message.name))
|
|
49875
|
+
return "name: string expected";
|
|
49876
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
49877
|
+
if (!$util.isString(message.description))
|
|
49878
|
+
return "description: string expected";
|
|
49879
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
49880
|
+
if (!$util.isInteger(message.version))
|
|
49881
|
+
return "version: integer expected";
|
|
49882
|
+
if (message.tag != null && message.hasOwnProperty("tag"))
|
|
49883
|
+
if (!$util.isString(message.tag))
|
|
49884
|
+
return "tag: string expected";
|
|
49885
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
49886
|
+
if (!Array.isArray(message.tags))
|
|
49887
|
+
return "tags: array expected";
|
|
49888
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
49889
|
+
if (!$util.isString(message.tags[i]))
|
|
49890
|
+
return "tags: string[] expected";
|
|
49891
|
+
}
|
|
49892
|
+
if (message.commit != null && message.hasOwnProperty("commit"))
|
|
49893
|
+
if (!$util.isString(message.commit))
|
|
49894
|
+
return "commit: string expected";
|
|
49895
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
49896
|
+
if (!$util.isString(message.path))
|
|
49897
|
+
return "path: string expected";
|
|
49898
|
+
return null;
|
|
49899
|
+
};
|
|
49900
|
+
|
|
49901
|
+
/**
|
|
49902
|
+
* Creates a NixModulesRegistryEntry message from a plain object. Also converts values to their respective internal types.
|
|
49903
|
+
* @function fromObject
|
|
49904
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49905
|
+
* @static
|
|
49906
|
+
* @param {Object.<string,*>} object Plain object
|
|
49907
|
+
* @returns {replit.goval.api.NixModulesRegistryEntry} NixModulesRegistryEntry
|
|
49908
|
+
*/
|
|
49909
|
+
NixModulesRegistryEntry.fromObject = function fromObject(object) {
|
|
49910
|
+
if (object instanceof $root.replit.goval.api.NixModulesRegistryEntry)
|
|
49911
|
+
return object;
|
|
49912
|
+
var message = new $root.replit.goval.api.NixModulesRegistryEntry();
|
|
49913
|
+
if (object.id != null)
|
|
49914
|
+
message.id = String(object.id);
|
|
49915
|
+
if (object.name != null)
|
|
49916
|
+
message.name = String(object.name);
|
|
49917
|
+
if (object.description != null)
|
|
49918
|
+
message.description = String(object.description);
|
|
49919
|
+
if (object.version != null)
|
|
49920
|
+
message.version = object.version | 0;
|
|
49921
|
+
if (object.tag != null)
|
|
49922
|
+
message.tag = String(object.tag);
|
|
49923
|
+
if (object.tags) {
|
|
49924
|
+
if (!Array.isArray(object.tags))
|
|
49925
|
+
throw TypeError(".replit.goval.api.NixModulesRegistryEntry.tags: array expected");
|
|
49926
|
+
message.tags = [];
|
|
49927
|
+
for (var i = 0; i < object.tags.length; ++i)
|
|
49928
|
+
message.tags[i] = String(object.tags[i]);
|
|
49929
|
+
}
|
|
49930
|
+
if (object.commit != null)
|
|
49931
|
+
message.commit = String(object.commit);
|
|
49932
|
+
if (object.path != null)
|
|
49933
|
+
message.path = String(object.path);
|
|
49934
|
+
return message;
|
|
49935
|
+
};
|
|
49936
|
+
|
|
49937
|
+
/**
|
|
49938
|
+
* Creates a plain object from a NixModulesRegistryEntry message. Also converts values to other types if specified.
|
|
49939
|
+
* @function toObject
|
|
49940
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49941
|
+
* @static
|
|
49942
|
+
* @param {replit.goval.api.NixModulesRegistryEntry} message NixModulesRegistryEntry
|
|
49943
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49944
|
+
* @returns {Object.<string,*>} Plain object
|
|
49945
|
+
*/
|
|
49946
|
+
NixModulesRegistryEntry.toObject = function toObject(message, options) {
|
|
49947
|
+
if (!options)
|
|
49948
|
+
options = {};
|
|
49949
|
+
var object = {};
|
|
49950
|
+
if (options.arrays || options.defaults)
|
|
49951
|
+
object.tags = [];
|
|
49952
|
+
if (options.defaults) {
|
|
49953
|
+
object.id = "";
|
|
49954
|
+
object.name = "";
|
|
49955
|
+
object.description = "";
|
|
49956
|
+
object.version = 0;
|
|
49957
|
+
object.tag = "";
|
|
49958
|
+
object.commit = "";
|
|
49959
|
+
object.path = "";
|
|
49960
|
+
}
|
|
49961
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
49962
|
+
object.id = message.id;
|
|
49963
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
49964
|
+
object.name = message.name;
|
|
49965
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
49966
|
+
object.description = message.description;
|
|
49967
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
49968
|
+
object.version = message.version;
|
|
49969
|
+
if (message.tag != null && message.hasOwnProperty("tag"))
|
|
49970
|
+
object.tag = message.tag;
|
|
49971
|
+
if (message.tags && message.tags.length) {
|
|
49972
|
+
object.tags = [];
|
|
49973
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
49974
|
+
object.tags[j] = message.tags[j];
|
|
49975
|
+
}
|
|
49976
|
+
if (message.commit != null && message.hasOwnProperty("commit"))
|
|
49977
|
+
object.commit = message.commit;
|
|
49978
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
49979
|
+
object.path = message.path;
|
|
49980
|
+
return object;
|
|
49981
|
+
};
|
|
49982
|
+
|
|
49983
|
+
/**
|
|
49984
|
+
* Converts this NixModulesRegistryEntry to JSON.
|
|
49985
|
+
* @function toJSON
|
|
49986
|
+
* @memberof replit.goval.api.NixModulesRegistryEntry
|
|
49987
|
+
* @instance
|
|
49988
|
+
* @returns {Object.<string,*>} JSON object
|
|
49989
|
+
*/
|
|
49990
|
+
NixModulesRegistryEntry.prototype.toJSON = function toJSON() {
|
|
49991
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49992
|
+
};
|
|
49993
|
+
|
|
49994
|
+
return NixModulesRegistryEntry;
|
|
49995
|
+
})();
|
|
49996
|
+
|
|
49997
|
+
api.NixModulesUpgradeMapEntry = (function() {
|
|
49998
|
+
|
|
49999
|
+
/**
|
|
50000
|
+
* Properties of a NixModulesUpgradeMapEntry.
|
|
50001
|
+
* @memberof replit.goval.api
|
|
50002
|
+
* @interface INixModulesUpgradeMapEntry
|
|
50003
|
+
* @property {string|null} [to] NixModulesUpgradeMapEntry to
|
|
50004
|
+
* @property {string|null} [changelog] NixModulesUpgradeMapEntry changelog
|
|
50005
|
+
*/
|
|
50006
|
+
|
|
50007
|
+
/**
|
|
50008
|
+
* Constructs a new NixModulesUpgradeMapEntry.
|
|
50009
|
+
* @memberof replit.goval.api
|
|
50010
|
+
* @classdesc Represents a NixModulesUpgradeMapEntry.
|
|
50011
|
+
* @constructor
|
|
50012
|
+
* @param {replit.goval.api.INixModulesUpgradeMapEntry=} [properties] Properties to set
|
|
50013
|
+
*/
|
|
50014
|
+
function NixModulesUpgradeMapEntry(properties) {
|
|
50015
|
+
if (properties)
|
|
50016
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50017
|
+
if (properties[keys[i]] != null)
|
|
50018
|
+
this[keys[i]] = properties[keys[i]];
|
|
50019
|
+
}
|
|
50020
|
+
|
|
50021
|
+
/**
|
|
50022
|
+
* NixModulesUpgradeMapEntry to.
|
|
50023
|
+
* @member {string} to
|
|
50024
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50025
|
+
* @instance
|
|
50026
|
+
*/
|
|
50027
|
+
NixModulesUpgradeMapEntry.prototype.to = "";
|
|
50028
|
+
|
|
50029
|
+
/**
|
|
50030
|
+
* NixModulesUpgradeMapEntry changelog.
|
|
50031
|
+
* @member {string} changelog
|
|
50032
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50033
|
+
* @instance
|
|
50034
|
+
*/
|
|
50035
|
+
NixModulesUpgradeMapEntry.prototype.changelog = "";
|
|
50036
|
+
|
|
50037
|
+
/**
|
|
50038
|
+
* Creates a new NixModulesUpgradeMapEntry instance using the specified properties.
|
|
50039
|
+
* @function create
|
|
50040
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50041
|
+
* @static
|
|
50042
|
+
* @param {replit.goval.api.INixModulesUpgradeMapEntry=} [properties] Properties to set
|
|
50043
|
+
* @returns {replit.goval.api.NixModulesUpgradeMapEntry} NixModulesUpgradeMapEntry instance
|
|
50044
|
+
*/
|
|
50045
|
+
NixModulesUpgradeMapEntry.create = function create(properties) {
|
|
50046
|
+
return NixModulesUpgradeMapEntry.fromObject(properties);
|
|
50047
|
+
};
|
|
50048
|
+
|
|
50049
|
+
/**
|
|
50050
|
+
* Encodes the specified NixModulesUpgradeMapEntry message. Does not implicitly {@link replit.goval.api.NixModulesUpgradeMapEntry.verify|verify} messages.
|
|
50051
|
+
* @function encode
|
|
50052
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50053
|
+
* @static
|
|
50054
|
+
* @param {replit.goval.api.NixModulesUpgradeMapEntry} message NixModulesUpgradeMapEntry message or plain object to encode
|
|
50055
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50056
|
+
* @returns {$protobuf.Writer} Writer
|
|
50057
|
+
*/
|
|
50058
|
+
NixModulesUpgradeMapEntry.encode = function encode(message, writer) {
|
|
50059
|
+
if (!writer)
|
|
50060
|
+
writer = $Writer.create();
|
|
50061
|
+
if (message.to != null && Object.hasOwnProperty.call(message, "to"))
|
|
50062
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.to);
|
|
50063
|
+
if (message.changelog != null && Object.hasOwnProperty.call(message, "changelog"))
|
|
50064
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.changelog);
|
|
50065
|
+
return writer;
|
|
50066
|
+
};
|
|
50067
|
+
|
|
50068
|
+
/**
|
|
50069
|
+
* Encodes the specified NixModulesUpgradeMapEntry message, length delimited. Does not implicitly {@link replit.goval.api.NixModulesUpgradeMapEntry.verify|verify} messages.
|
|
50070
|
+
* @function encodeDelimited
|
|
50071
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50072
|
+
* @static
|
|
50073
|
+
* @param {replit.goval.api.NixModulesUpgradeMapEntry} message NixModulesUpgradeMapEntry message or plain object to encode
|
|
50074
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50075
|
+
* @returns {$protobuf.Writer} Writer
|
|
50076
|
+
*/
|
|
50077
|
+
NixModulesUpgradeMapEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50078
|
+
return this.encode(message, writer).ldelim();
|
|
50079
|
+
};
|
|
50080
|
+
|
|
50081
|
+
/**
|
|
50082
|
+
* Decodes a NixModulesUpgradeMapEntry message from the specified reader or buffer.
|
|
50083
|
+
* @function decode
|
|
50084
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50085
|
+
* @static
|
|
50086
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50087
|
+
* @param {number} [length] Message length if known beforehand
|
|
50088
|
+
* @returns {replit.goval.api.NixModulesUpgradeMapEntry} NixModulesUpgradeMapEntry
|
|
50089
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50090
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50091
|
+
*/
|
|
50092
|
+
NixModulesUpgradeMapEntry.decode = function decode(reader, length) {
|
|
50093
|
+
if (!(reader instanceof $Reader))
|
|
50094
|
+
reader = $Reader.create(reader);
|
|
50095
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.NixModulesUpgradeMapEntry();
|
|
50096
|
+
while (reader.pos < end) {
|
|
50097
|
+
var tag = reader.uint32();
|
|
50098
|
+
switch (tag >>> 3) {
|
|
50099
|
+
case 1:
|
|
50100
|
+
message.to = reader.string();
|
|
50101
|
+
break;
|
|
50102
|
+
case 2:
|
|
50103
|
+
message.changelog = reader.string();
|
|
50104
|
+
break;
|
|
50105
|
+
default:
|
|
50106
|
+
reader.skipType(tag & 7);
|
|
50107
|
+
break;
|
|
50108
|
+
}
|
|
50109
|
+
}
|
|
50110
|
+
return message;
|
|
50111
|
+
};
|
|
50112
|
+
|
|
50113
|
+
/**
|
|
50114
|
+
* Decodes a NixModulesUpgradeMapEntry message from the specified reader or buffer, length delimited.
|
|
50115
|
+
* @function decodeDelimited
|
|
50116
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50117
|
+
* @static
|
|
50118
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50119
|
+
* @returns {replit.goval.api.NixModulesUpgradeMapEntry} NixModulesUpgradeMapEntry
|
|
50120
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50121
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50122
|
+
*/
|
|
50123
|
+
NixModulesUpgradeMapEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
50124
|
+
if (!(reader instanceof $Reader))
|
|
50125
|
+
reader = new $Reader(reader);
|
|
50126
|
+
return this.decode(reader, reader.uint32());
|
|
50127
|
+
};
|
|
50128
|
+
|
|
50129
|
+
/**
|
|
50130
|
+
* Verifies a NixModulesUpgradeMapEntry message.
|
|
50131
|
+
* @function verify
|
|
50132
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50133
|
+
* @static
|
|
50134
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50135
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50136
|
+
*/
|
|
50137
|
+
NixModulesUpgradeMapEntry.verify = function verify(message) {
|
|
50138
|
+
if (typeof message !== "object" || message === null)
|
|
50139
|
+
return "object expected";
|
|
50140
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
50141
|
+
if (!$util.isString(message.to))
|
|
50142
|
+
return "to: string expected";
|
|
50143
|
+
if (message.changelog != null && message.hasOwnProperty("changelog"))
|
|
50144
|
+
if (!$util.isString(message.changelog))
|
|
50145
|
+
return "changelog: string expected";
|
|
50146
|
+
return null;
|
|
50147
|
+
};
|
|
50148
|
+
|
|
50149
|
+
/**
|
|
50150
|
+
* Creates a NixModulesUpgradeMapEntry message from a plain object. Also converts values to their respective internal types.
|
|
50151
|
+
* @function fromObject
|
|
50152
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50153
|
+
* @static
|
|
50154
|
+
* @param {Object.<string,*>} object Plain object
|
|
50155
|
+
* @returns {replit.goval.api.NixModulesUpgradeMapEntry} NixModulesUpgradeMapEntry
|
|
50156
|
+
*/
|
|
50157
|
+
NixModulesUpgradeMapEntry.fromObject = function fromObject(object) {
|
|
50158
|
+
if (object instanceof $root.replit.goval.api.NixModulesUpgradeMapEntry)
|
|
50159
|
+
return object;
|
|
50160
|
+
var message = new $root.replit.goval.api.NixModulesUpgradeMapEntry();
|
|
50161
|
+
if (object.to != null)
|
|
50162
|
+
message.to = String(object.to);
|
|
50163
|
+
if (object.changelog != null)
|
|
50164
|
+
message.changelog = String(object.changelog);
|
|
50165
|
+
return message;
|
|
50166
|
+
};
|
|
50167
|
+
|
|
50168
|
+
/**
|
|
50169
|
+
* Creates a plain object from a NixModulesUpgradeMapEntry message. Also converts values to other types if specified.
|
|
50170
|
+
* @function toObject
|
|
50171
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50172
|
+
* @static
|
|
50173
|
+
* @param {replit.goval.api.NixModulesUpgradeMapEntry} message NixModulesUpgradeMapEntry
|
|
50174
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50175
|
+
* @returns {Object.<string,*>} Plain object
|
|
50176
|
+
*/
|
|
50177
|
+
NixModulesUpgradeMapEntry.toObject = function toObject(message, options) {
|
|
50178
|
+
if (!options)
|
|
50179
|
+
options = {};
|
|
50180
|
+
var object = {};
|
|
50181
|
+
if (options.defaults) {
|
|
50182
|
+
object.to = "";
|
|
50183
|
+
object.changelog = "";
|
|
50184
|
+
}
|
|
50185
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
50186
|
+
object.to = message.to;
|
|
50187
|
+
if (message.changelog != null && message.hasOwnProperty("changelog"))
|
|
50188
|
+
object.changelog = message.changelog;
|
|
50189
|
+
return object;
|
|
50190
|
+
};
|
|
50191
|
+
|
|
50192
|
+
/**
|
|
50193
|
+
* Converts this NixModulesUpgradeMapEntry to JSON.
|
|
50194
|
+
* @function toJSON
|
|
50195
|
+
* @memberof replit.goval.api.NixModulesUpgradeMapEntry
|
|
50196
|
+
* @instance
|
|
50197
|
+
* @returns {Object.<string,*>} JSON object
|
|
50198
|
+
*/
|
|
50199
|
+
NixModulesUpgradeMapEntry.prototype.toJSON = function toJSON() {
|
|
50200
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50201
|
+
};
|
|
50202
|
+
|
|
50203
|
+
return NixModulesUpgradeMapEntry;
|
|
50204
|
+
})();
|
|
50205
|
+
|
|
48972
50206
|
api.ToolchainGetRequest = (function() {
|
|
48973
50207
|
|
|
48974
50208
|
/**
|
|
@@ -54082,6 +55316,7 @@
|
|
|
54082
55316
|
* @property {Array.<string>|null} [customDomains] ReplTransfer customDomains
|
|
54083
55317
|
* @property {Array.<replit.goval.api.TLSCertificate|replit.goval.api.ITLSCertificate>|null} [certificates] ReplTransfer certificates
|
|
54084
55318
|
* @property {Array.<string>|null} [flags] ReplTransfer flags
|
|
55319
|
+
* @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [metadata] ReplTransfer metadata
|
|
54085
55320
|
*/
|
|
54086
55321
|
|
|
54087
55322
|
/**
|
|
@@ -54149,6 +55384,14 @@
|
|
|
54149
55384
|
*/
|
|
54150
55385
|
ReplTransfer.prototype.flags = $util.emptyArray;
|
|
54151
55386
|
|
|
55387
|
+
/**
|
|
55388
|
+
* ReplTransfer metadata.
|
|
55389
|
+
* @member {replit.goval.api.repl.Metadata|null|undefined} metadata
|
|
55390
|
+
* @memberof replit.goval.api.ReplTransfer
|
|
55391
|
+
* @instance
|
|
55392
|
+
*/
|
|
55393
|
+
ReplTransfer.prototype.metadata = null;
|
|
55394
|
+
|
|
54152
55395
|
/**
|
|
54153
55396
|
* Creates a new ReplTransfer instance using the specified properties.
|
|
54154
55397
|
* @function create
|
|
@@ -54188,6 +55431,8 @@
|
|
|
54188
55431
|
if (message.flags != null && message.flags.length)
|
|
54189
55432
|
for (var i = 0; i < message.flags.length; ++i)
|
|
54190
55433
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.flags[i]);
|
|
55434
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
55435
|
+
$root.replit.goval.api.repl.Metadata.encode(message.metadata, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
54191
55436
|
return writer;
|
|
54192
55437
|
};
|
|
54193
55438
|
|
|
@@ -54246,6 +55491,9 @@
|
|
|
54246
55491
|
message.flags = [];
|
|
54247
55492
|
message.flags.push(reader.string());
|
|
54248
55493
|
break;
|
|
55494
|
+
case 7:
|
|
55495
|
+
message.metadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
|
|
55496
|
+
break;
|
|
54249
55497
|
default:
|
|
54250
55498
|
reader.skipType(tag & 7);
|
|
54251
55499
|
break;
|
|
@@ -54319,6 +55567,11 @@
|
|
|
54319
55567
|
if (!$util.isString(message.flags[i]))
|
|
54320
55568
|
return "flags: string[] expected";
|
|
54321
55569
|
}
|
|
55570
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
55571
|
+
var error = $root.replit.goval.api.repl.Metadata.verify(message.metadata);
|
|
55572
|
+
if (error)
|
|
55573
|
+
return "metadata." + error;
|
|
55574
|
+
}
|
|
54322
55575
|
return null;
|
|
54323
55576
|
};
|
|
54324
55577
|
|
|
@@ -54373,6 +55626,11 @@
|
|
|
54373
55626
|
for (var i = 0; i < object.flags.length; ++i)
|
|
54374
55627
|
message.flags[i] = String(object.flags[i]);
|
|
54375
55628
|
}
|
|
55629
|
+
if (object.metadata != null) {
|
|
55630
|
+
if (typeof object.metadata !== "object")
|
|
55631
|
+
throw TypeError(".replit.goval.api.ReplTransfer.metadata: object expected");
|
|
55632
|
+
message.metadata = $root.replit.goval.api.repl.Metadata.fromObject(object.metadata);
|
|
55633
|
+
}
|
|
54376
55634
|
return message;
|
|
54377
55635
|
};
|
|
54378
55636
|
|
|
@@ -54398,6 +55656,7 @@
|
|
|
54398
55656
|
object.repl = null;
|
|
54399
55657
|
object.replLimits = null;
|
|
54400
55658
|
object.userLimits = null;
|
|
55659
|
+
object.metadata = null;
|
|
54401
55660
|
}
|
|
54402
55661
|
if (message.repl != null && message.hasOwnProperty("repl"))
|
|
54403
55662
|
object.repl = $root.replit.goval.api.repl.Repl.toObject(message.repl, options);
|
|
@@ -54420,6 +55679,8 @@
|
|
|
54420
55679
|
for (var j = 0; j < message.flags.length; ++j)
|
|
54421
55680
|
object.flags[j] = message.flags[j];
|
|
54422
55681
|
}
|
|
55682
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
55683
|
+
object.metadata = $root.replit.goval.api.repl.Metadata.toObject(message.metadata, options);
|
|
54423
55684
|
return object;
|
|
54424
55685
|
};
|
|
54425
55686
|
|