@replit/protocol 0.3.33 → 0.3.34
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 +249 -1
- package/main/index.js +640 -2
- package/main/index.js.flow +356 -1
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -236,6 +236,7 @@
|
|
|
236
236
|
* @property {replit.goval.api.ReplspaceApiOpenMultipleFiles|replit.goval.api.IReplspaceApiOpenMultipleFiles|null} [replspaceApiOpenMultipleFiles] Command replspaceApiOpenMultipleFiles
|
|
237
237
|
* @property {replit.goval.api.NixModulesGetRegistryRequest|replit.goval.api.INixModulesGetRegistryRequest|null} [nixModulesGetRegistryRequest] Command nixModulesGetRegistryRequest
|
|
238
238
|
* @property {replit.goval.api.NixModulesGetRegistryResponse|replit.goval.api.INixModulesGetRegistryResponse|null} [nixModulesGetRegistryResponse] Command nixModulesGetRegistryResponse
|
|
239
|
+
* @property {replit.goval.api.RiverMessage|replit.goval.api.IRiverMessage|null} [pid2Message] Command pid2Message
|
|
239
240
|
* @property {string|null} [ref] Command ref
|
|
240
241
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
241
242
|
*/
|
|
@@ -1751,6 +1752,14 @@
|
|
|
1751
1752
|
*/
|
|
1752
1753
|
Command.prototype.nixModulesGetRegistryResponse = null;
|
|
1753
1754
|
|
|
1755
|
+
/**
|
|
1756
|
+
* Command pid2Message.
|
|
1757
|
+
* @member {replit.goval.api.RiverMessage|null|undefined} pid2Message
|
|
1758
|
+
* @memberof replit.goval.api.Command
|
|
1759
|
+
* @instance
|
|
1760
|
+
*/
|
|
1761
|
+
Command.prototype.pid2Message = null;
|
|
1762
|
+
|
|
1754
1763
|
/**
|
|
1755
1764
|
* Command ref.
|
|
1756
1765
|
* @member {string} ref
|
|
@@ -1772,12 +1781,12 @@
|
|
|
1772
1781
|
|
|
1773
1782
|
/**
|
|
1774
1783
|
* Command body.
|
|
1775
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"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"|"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"|undefined} body
|
|
1784
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"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"|"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"|"pid2Message"|undefined} body
|
|
1776
1785
|
* @memberof replit.goval.api.Command
|
|
1777
1786
|
* @instance
|
|
1778
1787
|
*/
|
|
1779
1788
|
Object.defineProperty(Command.prototype, "body", {
|
|
1780
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "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", "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"]),
|
|
1789
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "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", "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", "pid2Message"]),
|
|
1781
1790
|
set: $util.oneOfSetter($oneOfFields)
|
|
1782
1791
|
});
|
|
1783
1792
|
|
|
@@ -2171,6 +2180,8 @@
|
|
|
2171
2180
|
$root.replit.goval.api.NixModulesGetRegistryRequest.encode(message.nixModulesGetRegistryRequest, writer.uint32(/* id 439, wireType 2 =*/3514).fork()).ldelim();
|
|
2172
2181
|
if (message.nixModulesGetRegistryResponse != null && Object.hasOwnProperty.call(message, "nixModulesGetRegistryResponse"))
|
|
2173
2182
|
$root.replit.goval.api.NixModulesGetRegistryResponse.encode(message.nixModulesGetRegistryResponse, writer.uint32(/* id 440, wireType 2 =*/3522).fork()).ldelim();
|
|
2183
|
+
if (message.pid2Message != null && Object.hasOwnProperty.call(message, "pid2Message"))
|
|
2184
|
+
$root.replit.goval.api.RiverMessage.encode(message.pid2Message, writer.uint32(/* id 441, wireType 2 =*/3530).fork()).ldelim();
|
|
2174
2185
|
if (message.outputBlockStartEvent != null && Object.hasOwnProperty.call(message, "outputBlockStartEvent"))
|
|
2175
2186
|
$root.replit.goval.api.OutputBlockStartEvent.encode(message.outputBlockStartEvent, writer.uint32(/* id 443, wireType 2 =*/3546).fork()).ldelim();
|
|
2176
2187
|
if (message.outputBlockEndEvent != null && Object.hasOwnProperty.call(message, "outputBlockEndEvent"))
|
|
@@ -2966,6 +2977,10 @@
|
|
|
2966
2977
|
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.decode(reader, reader.uint32());
|
|
2967
2978
|
break;
|
|
2968
2979
|
}
|
|
2980
|
+
case 441: {
|
|
2981
|
+
message.pid2Message = $root.replit.goval.api.RiverMessage.decode(reader, reader.uint32());
|
|
2982
|
+
break;
|
|
2983
|
+
}
|
|
2969
2984
|
case 1000: {
|
|
2970
2985
|
message.ref = reader.string();
|
|
2971
2986
|
break;
|
|
@@ -4849,6 +4864,16 @@
|
|
|
4849
4864
|
return "nixModulesGetRegistryResponse." + error;
|
|
4850
4865
|
}
|
|
4851
4866
|
}
|
|
4867
|
+
if (message.pid2Message != null && message.hasOwnProperty("pid2Message")) {
|
|
4868
|
+
if (properties.body === 1)
|
|
4869
|
+
return "body: multiple values";
|
|
4870
|
+
properties.body = 1;
|
|
4871
|
+
{
|
|
4872
|
+
var error = $root.replit.goval.api.RiverMessage.verify(message.pid2Message);
|
|
4873
|
+
if (error)
|
|
4874
|
+
return "pid2Message." + error;
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4852
4877
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
4853
4878
|
if (!$util.isString(message.ref))
|
|
4854
4879
|
return "ref: string expected";
|
|
@@ -5779,6 +5804,11 @@
|
|
|
5779
5804
|
throw TypeError(".replit.goval.api.Command.nixModulesGetRegistryResponse: object expected");
|
|
5780
5805
|
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.fromObject(object.nixModulesGetRegistryResponse);
|
|
5781
5806
|
}
|
|
5807
|
+
if (object.pid2Message != null) {
|
|
5808
|
+
if (typeof object.pid2Message !== "object")
|
|
5809
|
+
throw TypeError(".replit.goval.api.Command.pid2Message: object expected");
|
|
5810
|
+
message.pid2Message = $root.replit.goval.api.RiverMessage.fromObject(object.pid2Message);
|
|
5811
|
+
}
|
|
5782
5812
|
if (object.ref != null)
|
|
5783
5813
|
message.ref = String(object.ref);
|
|
5784
5814
|
if (object.traceInfo) {
|
|
@@ -6720,6 +6750,11 @@
|
|
|
6720
6750
|
if (options.oneofs)
|
|
6721
6751
|
object.body = "nixModulesGetRegistryResponse";
|
|
6722
6752
|
}
|
|
6753
|
+
if (message.pid2Message != null && message.hasOwnProperty("pid2Message")) {
|
|
6754
|
+
object.pid2Message = $root.replit.goval.api.RiverMessage.toObject(message.pid2Message, options);
|
|
6755
|
+
if (options.oneofs)
|
|
6756
|
+
object.body = "pid2Message";
|
|
6757
|
+
}
|
|
6723
6758
|
if (message.outputBlockStartEvent != null && message.hasOwnProperty("outputBlockStartEvent")) {
|
|
6724
6759
|
object.outputBlockStartEvent = $root.replit.goval.api.OutputBlockStartEvent.toObject(message.outputBlockStartEvent, options);
|
|
6725
6760
|
if (options.oneofs)
|
|
@@ -6780,6 +6815,379 @@
|
|
|
6780
6815
|
return Command;
|
|
6781
6816
|
})();
|
|
6782
6817
|
|
|
6818
|
+
api.RiverMessage = (function() {
|
|
6819
|
+
|
|
6820
|
+
/**
|
|
6821
|
+
* Properties of a RiverMessage.
|
|
6822
|
+
* @memberof replit.goval.api
|
|
6823
|
+
* @interface IRiverMessage
|
|
6824
|
+
* @property {string|null} [id] RiverMessage id
|
|
6825
|
+
* @property {string|null} [replyTo] RiverMessage replyTo
|
|
6826
|
+
* @property {string|null} [from] RiverMessage from
|
|
6827
|
+
* @property {string|null} [to] RiverMessage to
|
|
6828
|
+
* @property {string|null} [serviceName] RiverMessage serviceName
|
|
6829
|
+
* @property {string|null} [procedureName] RiverMessage procedureName
|
|
6830
|
+
* @property {string|null} [ack] RiverMessage ack
|
|
6831
|
+
* @property {Uint8Array|null} [payload] RiverMessage payload
|
|
6832
|
+
*/
|
|
6833
|
+
|
|
6834
|
+
/**
|
|
6835
|
+
* Constructs a new RiverMessage.
|
|
6836
|
+
* @memberof replit.goval.api
|
|
6837
|
+
* @classdesc Represents a RiverMessage.
|
|
6838
|
+
* @constructor
|
|
6839
|
+
* @param {replit.goval.api.IRiverMessage=} [properties] Properties to set
|
|
6840
|
+
*/
|
|
6841
|
+
function RiverMessage(properties) {
|
|
6842
|
+
if (properties)
|
|
6843
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6844
|
+
if (properties[keys[i]] != null)
|
|
6845
|
+
this[keys[i]] = properties[keys[i]];
|
|
6846
|
+
}
|
|
6847
|
+
|
|
6848
|
+
/**
|
|
6849
|
+
* RiverMessage id.
|
|
6850
|
+
* @member {string} id
|
|
6851
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6852
|
+
* @instance
|
|
6853
|
+
*/
|
|
6854
|
+
RiverMessage.prototype.id = "";
|
|
6855
|
+
|
|
6856
|
+
/**
|
|
6857
|
+
* RiverMessage replyTo.
|
|
6858
|
+
* @member {string} replyTo
|
|
6859
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6860
|
+
* @instance
|
|
6861
|
+
*/
|
|
6862
|
+
RiverMessage.prototype.replyTo = "";
|
|
6863
|
+
|
|
6864
|
+
/**
|
|
6865
|
+
* RiverMessage from.
|
|
6866
|
+
* @member {string} from
|
|
6867
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6868
|
+
* @instance
|
|
6869
|
+
*/
|
|
6870
|
+
RiverMessage.prototype.from = "";
|
|
6871
|
+
|
|
6872
|
+
/**
|
|
6873
|
+
* RiverMessage to.
|
|
6874
|
+
* @member {string} to
|
|
6875
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6876
|
+
* @instance
|
|
6877
|
+
*/
|
|
6878
|
+
RiverMessage.prototype.to = "";
|
|
6879
|
+
|
|
6880
|
+
/**
|
|
6881
|
+
* RiverMessage serviceName.
|
|
6882
|
+
* @member {string} serviceName
|
|
6883
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6884
|
+
* @instance
|
|
6885
|
+
*/
|
|
6886
|
+
RiverMessage.prototype.serviceName = "";
|
|
6887
|
+
|
|
6888
|
+
/**
|
|
6889
|
+
* RiverMessage procedureName.
|
|
6890
|
+
* @member {string} procedureName
|
|
6891
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6892
|
+
* @instance
|
|
6893
|
+
*/
|
|
6894
|
+
RiverMessage.prototype.procedureName = "";
|
|
6895
|
+
|
|
6896
|
+
/**
|
|
6897
|
+
* RiverMessage ack.
|
|
6898
|
+
* @member {string} ack
|
|
6899
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6900
|
+
* @instance
|
|
6901
|
+
*/
|
|
6902
|
+
RiverMessage.prototype.ack = "";
|
|
6903
|
+
|
|
6904
|
+
/**
|
|
6905
|
+
* RiverMessage payload.
|
|
6906
|
+
* @member {Uint8Array} payload
|
|
6907
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6908
|
+
* @instance
|
|
6909
|
+
*/
|
|
6910
|
+
RiverMessage.prototype.payload = $util.newBuffer([]);
|
|
6911
|
+
|
|
6912
|
+
/**
|
|
6913
|
+
* Creates a new RiverMessage instance using the specified properties.
|
|
6914
|
+
* @function create
|
|
6915
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6916
|
+
* @static
|
|
6917
|
+
* @param {replit.goval.api.IRiverMessage=} [properties] Properties to set
|
|
6918
|
+
* @returns {replit.goval.api.RiverMessage} RiverMessage instance
|
|
6919
|
+
*/
|
|
6920
|
+
RiverMessage.create = function create(properties) {
|
|
6921
|
+
return RiverMessage.fromObject(properties);
|
|
6922
|
+
};
|
|
6923
|
+
|
|
6924
|
+
/**
|
|
6925
|
+
* Encodes the specified RiverMessage message. Does not implicitly {@link replit.goval.api.RiverMessage.verify|verify} messages.
|
|
6926
|
+
* @function encode
|
|
6927
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6928
|
+
* @static
|
|
6929
|
+
* @param {replit.goval.api.RiverMessage} message RiverMessage message or plain object to encode
|
|
6930
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6931
|
+
* @returns {$protobuf.Writer} Writer
|
|
6932
|
+
*/
|
|
6933
|
+
RiverMessage.encode = function encode(message, writer) {
|
|
6934
|
+
if (!writer)
|
|
6935
|
+
writer = $Writer.create();
|
|
6936
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
6937
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
6938
|
+
if (message.replyTo != null && Object.hasOwnProperty.call(message, "replyTo"))
|
|
6939
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.replyTo);
|
|
6940
|
+
if (message.from != null && Object.hasOwnProperty.call(message, "from"))
|
|
6941
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.from);
|
|
6942
|
+
if (message.to != null && Object.hasOwnProperty.call(message, "to"))
|
|
6943
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.to);
|
|
6944
|
+
if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
|
|
6945
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceName);
|
|
6946
|
+
if (message.procedureName != null && Object.hasOwnProperty.call(message, "procedureName"))
|
|
6947
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.procedureName);
|
|
6948
|
+
if (message.ack != null && Object.hasOwnProperty.call(message, "ack"))
|
|
6949
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.ack);
|
|
6950
|
+
if (message.payload != null && Object.hasOwnProperty.call(message, "payload"))
|
|
6951
|
+
writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.payload);
|
|
6952
|
+
return writer;
|
|
6953
|
+
};
|
|
6954
|
+
|
|
6955
|
+
/**
|
|
6956
|
+
* Encodes the specified RiverMessage message, length delimited. Does not implicitly {@link replit.goval.api.RiverMessage.verify|verify} messages.
|
|
6957
|
+
* @function encodeDelimited
|
|
6958
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6959
|
+
* @static
|
|
6960
|
+
* @param {replit.goval.api.RiverMessage} message RiverMessage message or plain object to encode
|
|
6961
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6962
|
+
* @returns {$protobuf.Writer} Writer
|
|
6963
|
+
*/
|
|
6964
|
+
RiverMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6965
|
+
return this.encode(message, writer).ldelim();
|
|
6966
|
+
};
|
|
6967
|
+
|
|
6968
|
+
/**
|
|
6969
|
+
* Decodes a RiverMessage message from the specified reader or buffer.
|
|
6970
|
+
* @function decode
|
|
6971
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6972
|
+
* @static
|
|
6973
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6974
|
+
* @param {number} [length] Message length if known beforehand
|
|
6975
|
+
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
6976
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6977
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6978
|
+
*/
|
|
6979
|
+
RiverMessage.decode = function decode(reader, length) {
|
|
6980
|
+
if (!(reader instanceof $Reader))
|
|
6981
|
+
reader = $Reader.create(reader);
|
|
6982
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.RiverMessage();
|
|
6983
|
+
while (reader.pos < end) {
|
|
6984
|
+
var tag = reader.uint32();
|
|
6985
|
+
switch (tag >>> 3) {
|
|
6986
|
+
case 1: {
|
|
6987
|
+
message.id = reader.string();
|
|
6988
|
+
break;
|
|
6989
|
+
}
|
|
6990
|
+
case 2: {
|
|
6991
|
+
message.replyTo = reader.string();
|
|
6992
|
+
break;
|
|
6993
|
+
}
|
|
6994
|
+
case 3: {
|
|
6995
|
+
message.from = reader.string();
|
|
6996
|
+
break;
|
|
6997
|
+
}
|
|
6998
|
+
case 4: {
|
|
6999
|
+
message.to = reader.string();
|
|
7000
|
+
break;
|
|
7001
|
+
}
|
|
7002
|
+
case 5: {
|
|
7003
|
+
message.serviceName = reader.string();
|
|
7004
|
+
break;
|
|
7005
|
+
}
|
|
7006
|
+
case 6: {
|
|
7007
|
+
message.procedureName = reader.string();
|
|
7008
|
+
break;
|
|
7009
|
+
}
|
|
7010
|
+
case 7: {
|
|
7011
|
+
message.ack = reader.string();
|
|
7012
|
+
break;
|
|
7013
|
+
}
|
|
7014
|
+
case 10: {
|
|
7015
|
+
message.payload = reader.bytes();
|
|
7016
|
+
break;
|
|
7017
|
+
}
|
|
7018
|
+
default:
|
|
7019
|
+
reader.skipType(tag & 7);
|
|
7020
|
+
break;
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
return message;
|
|
7024
|
+
};
|
|
7025
|
+
|
|
7026
|
+
/**
|
|
7027
|
+
* Decodes a RiverMessage message from the specified reader or buffer, length delimited.
|
|
7028
|
+
* @function decodeDelimited
|
|
7029
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7030
|
+
* @static
|
|
7031
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7032
|
+
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
7033
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7034
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7035
|
+
*/
|
|
7036
|
+
RiverMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
7037
|
+
if (!(reader instanceof $Reader))
|
|
7038
|
+
reader = new $Reader(reader);
|
|
7039
|
+
return this.decode(reader, reader.uint32());
|
|
7040
|
+
};
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* Verifies a RiverMessage message.
|
|
7044
|
+
* @function verify
|
|
7045
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7046
|
+
* @static
|
|
7047
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7048
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7049
|
+
*/
|
|
7050
|
+
RiverMessage.verify = function verify(message) {
|
|
7051
|
+
if (typeof message !== "object" || message === null)
|
|
7052
|
+
return "object expected";
|
|
7053
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
7054
|
+
if (!$util.isString(message.id))
|
|
7055
|
+
return "id: string expected";
|
|
7056
|
+
if (message.replyTo != null && message.hasOwnProperty("replyTo"))
|
|
7057
|
+
if (!$util.isString(message.replyTo))
|
|
7058
|
+
return "replyTo: string expected";
|
|
7059
|
+
if (message.from != null && message.hasOwnProperty("from"))
|
|
7060
|
+
if (!$util.isString(message.from))
|
|
7061
|
+
return "from: string expected";
|
|
7062
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
7063
|
+
if (!$util.isString(message.to))
|
|
7064
|
+
return "to: string expected";
|
|
7065
|
+
if (message.serviceName != null && message.hasOwnProperty("serviceName"))
|
|
7066
|
+
if (!$util.isString(message.serviceName))
|
|
7067
|
+
return "serviceName: string expected";
|
|
7068
|
+
if (message.procedureName != null && message.hasOwnProperty("procedureName"))
|
|
7069
|
+
if (!$util.isString(message.procedureName))
|
|
7070
|
+
return "procedureName: string expected";
|
|
7071
|
+
if (message.ack != null && message.hasOwnProperty("ack"))
|
|
7072
|
+
if (!$util.isString(message.ack))
|
|
7073
|
+
return "ack: string expected";
|
|
7074
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
7075
|
+
if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload)))
|
|
7076
|
+
return "payload: buffer expected";
|
|
7077
|
+
return null;
|
|
7078
|
+
};
|
|
7079
|
+
|
|
7080
|
+
/**
|
|
7081
|
+
* Creates a RiverMessage message from a plain object. Also converts values to their respective internal types.
|
|
7082
|
+
* @function fromObject
|
|
7083
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7084
|
+
* @static
|
|
7085
|
+
* @param {Object.<string,*>} object Plain object
|
|
7086
|
+
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
7087
|
+
*/
|
|
7088
|
+
RiverMessage.fromObject = function fromObject(object) {
|
|
7089
|
+
if (object instanceof $root.replit.goval.api.RiverMessage)
|
|
7090
|
+
return object;
|
|
7091
|
+
var message = new $root.replit.goval.api.RiverMessage();
|
|
7092
|
+
if (object.id != null)
|
|
7093
|
+
message.id = String(object.id);
|
|
7094
|
+
if (object.replyTo != null)
|
|
7095
|
+
message.replyTo = String(object.replyTo);
|
|
7096
|
+
if (object.from != null)
|
|
7097
|
+
message.from = String(object.from);
|
|
7098
|
+
if (object.to != null)
|
|
7099
|
+
message.to = String(object.to);
|
|
7100
|
+
if (object.serviceName != null)
|
|
7101
|
+
message.serviceName = String(object.serviceName);
|
|
7102
|
+
if (object.procedureName != null)
|
|
7103
|
+
message.procedureName = String(object.procedureName);
|
|
7104
|
+
if (object.ack != null)
|
|
7105
|
+
message.ack = String(object.ack);
|
|
7106
|
+
if (object.payload != null)
|
|
7107
|
+
if (typeof object.payload === "string")
|
|
7108
|
+
$util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0);
|
|
7109
|
+
else if (object.payload.length >= 0)
|
|
7110
|
+
message.payload = object.payload;
|
|
7111
|
+
return message;
|
|
7112
|
+
};
|
|
7113
|
+
|
|
7114
|
+
/**
|
|
7115
|
+
* Creates a plain object from a RiverMessage message. Also converts values to other types if specified.
|
|
7116
|
+
* @function toObject
|
|
7117
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7118
|
+
* @static
|
|
7119
|
+
* @param {replit.goval.api.RiverMessage} message RiverMessage
|
|
7120
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7121
|
+
* @returns {Object.<string,*>} Plain object
|
|
7122
|
+
*/
|
|
7123
|
+
RiverMessage.toObject = function toObject(message, options) {
|
|
7124
|
+
if (!options)
|
|
7125
|
+
options = {};
|
|
7126
|
+
var object = {};
|
|
7127
|
+
if (options.defaults) {
|
|
7128
|
+
object.id = "";
|
|
7129
|
+
object.replyTo = "";
|
|
7130
|
+
object.from = "";
|
|
7131
|
+
object.to = "";
|
|
7132
|
+
object.serviceName = "";
|
|
7133
|
+
object.procedureName = "";
|
|
7134
|
+
object.ack = "";
|
|
7135
|
+
if (options.bytes === String)
|
|
7136
|
+
object.payload = "";
|
|
7137
|
+
else {
|
|
7138
|
+
object.payload = [];
|
|
7139
|
+
if (options.bytes !== Array)
|
|
7140
|
+
object.payload = $util.newBuffer(object.payload);
|
|
7141
|
+
}
|
|
7142
|
+
}
|
|
7143
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
7144
|
+
object.id = message.id;
|
|
7145
|
+
if (message.replyTo != null && message.hasOwnProperty("replyTo"))
|
|
7146
|
+
object.replyTo = message.replyTo;
|
|
7147
|
+
if (message.from != null && message.hasOwnProperty("from"))
|
|
7148
|
+
object.from = message.from;
|
|
7149
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
7150
|
+
object.to = message.to;
|
|
7151
|
+
if (message.serviceName != null && message.hasOwnProperty("serviceName"))
|
|
7152
|
+
object.serviceName = message.serviceName;
|
|
7153
|
+
if (message.procedureName != null && message.hasOwnProperty("procedureName"))
|
|
7154
|
+
object.procedureName = message.procedureName;
|
|
7155
|
+
if (message.ack != null && message.hasOwnProperty("ack"))
|
|
7156
|
+
object.ack = message.ack;
|
|
7157
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
7158
|
+
object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload;
|
|
7159
|
+
return object;
|
|
7160
|
+
};
|
|
7161
|
+
|
|
7162
|
+
/**
|
|
7163
|
+
* Converts this RiverMessage to JSON.
|
|
7164
|
+
* @function toJSON
|
|
7165
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7166
|
+
* @instance
|
|
7167
|
+
* @returns {Object.<string,*>} JSON object
|
|
7168
|
+
*/
|
|
7169
|
+
RiverMessage.prototype.toJSON = function toJSON() {
|
|
7170
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7171
|
+
};
|
|
7172
|
+
|
|
7173
|
+
/**
|
|
7174
|
+
* Gets the default type url for RiverMessage
|
|
7175
|
+
* @function getTypeUrl
|
|
7176
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7177
|
+
* @static
|
|
7178
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7179
|
+
* @returns {string} The default type url
|
|
7180
|
+
*/
|
|
7181
|
+
RiverMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7182
|
+
if (typeUrlPrefix === undefined) {
|
|
7183
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7184
|
+
}
|
|
7185
|
+
return typeUrlPrefix + "/replit.goval.api.RiverMessage";
|
|
7186
|
+
};
|
|
7187
|
+
|
|
7188
|
+
return RiverMessage;
|
|
7189
|
+
})();
|
|
7190
|
+
|
|
6783
7191
|
api.NixPackageAddRequest = (function() {
|
|
6784
7192
|
|
|
6785
7193
|
/**
|
|
@@ -60893,6 +61301,7 @@
|
|
|
60893
61301
|
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] ReplToken permissions
|
|
60894
61302
|
* @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
|
|
60895
61303
|
* @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] ReplToken buildInfo
|
|
61304
|
+
* @property {replit.goval.api.repl.Pid2Binary|replit.goval.api.repl.IPid2Binary|null} [pid2Info] ReplToken pid2Info
|
|
60896
61305
|
*/
|
|
60897
61306
|
|
|
60898
61307
|
/**
|
|
@@ -61039,6 +61448,14 @@
|
|
|
61039
61448
|
*/
|
|
61040
61449
|
ReplToken.prototype.buildInfo = null;
|
|
61041
61450
|
|
|
61451
|
+
/**
|
|
61452
|
+
* ReplToken pid2Info.
|
|
61453
|
+
* @member {replit.goval.api.repl.Pid2Binary|null|undefined} pid2Info
|
|
61454
|
+
* @memberof replit.goval.api.ReplToken
|
|
61455
|
+
* @instance
|
|
61456
|
+
*/
|
|
61457
|
+
ReplToken.prototype.pid2Info = null;
|
|
61458
|
+
|
|
61042
61459
|
// OneOf field names bound to virtual getters and setters
|
|
61043
61460
|
var $oneOfFields;
|
|
61044
61461
|
|
|
@@ -61111,6 +61528,8 @@
|
|
|
61111
61528
|
$root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
61112
61529
|
if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
|
|
61113
61530
|
$root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
61531
|
+
if (message.pid2Info != null && Object.hasOwnProperty.call(message, "pid2Info"))
|
|
61532
|
+
$root.replit.goval.api.repl.Pid2Binary.encode(message.pid2Info, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
61114
61533
|
return writer;
|
|
61115
61534
|
};
|
|
61116
61535
|
|
|
@@ -61213,6 +61632,10 @@
|
|
|
61213
61632
|
message.buildInfo = $root.replit.goval.api.repl.BuildInfo.decode(reader, reader.uint32());
|
|
61214
61633
|
break;
|
|
61215
61634
|
}
|
|
61635
|
+
case 19: {
|
|
61636
|
+
message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.decode(reader, reader.uint32());
|
|
61637
|
+
break;
|
|
61638
|
+
}
|
|
61216
61639
|
default:
|
|
61217
61640
|
reader.skipType(tag & 7);
|
|
61218
61641
|
break;
|
|
@@ -61353,6 +61776,11 @@
|
|
|
61353
61776
|
if (error)
|
|
61354
61777
|
return "buildInfo." + error;
|
|
61355
61778
|
}
|
|
61779
|
+
if (message.pid2Info != null && message.hasOwnProperty("pid2Info")) {
|
|
61780
|
+
var error = $root.replit.goval.api.repl.Pid2Binary.verify(message.pid2Info);
|
|
61781
|
+
if (error)
|
|
61782
|
+
return "pid2Info." + error;
|
|
61783
|
+
}
|
|
61356
61784
|
return null;
|
|
61357
61785
|
};
|
|
61358
61786
|
|
|
@@ -61483,6 +61911,11 @@
|
|
|
61483
61911
|
throw TypeError(".replit.goval.api.ReplToken.buildInfo: object expected");
|
|
61484
61912
|
message.buildInfo = $root.replit.goval.api.repl.BuildInfo.fromObject(object.buildInfo);
|
|
61485
61913
|
}
|
|
61914
|
+
if (object.pid2Info != null) {
|
|
61915
|
+
if (typeof object.pid2Info !== "object")
|
|
61916
|
+
throw TypeError(".replit.goval.api.ReplToken.pid2Info: object expected");
|
|
61917
|
+
message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.fromObject(object.pid2Info);
|
|
61918
|
+
}
|
|
61486
61919
|
return message;
|
|
61487
61920
|
};
|
|
61488
61921
|
|
|
@@ -61515,6 +61948,7 @@
|
|
|
61515
61948
|
object.permissions = null;
|
|
61516
61949
|
object.interactiveResourceLimits = null;
|
|
61517
61950
|
object.buildInfo = null;
|
|
61951
|
+
object.pid2Info = null;
|
|
61518
61952
|
}
|
|
61519
61953
|
if (message.iat != null && message.hasOwnProperty("iat"))
|
|
61520
61954
|
object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
|
|
@@ -61563,6 +61997,8 @@
|
|
|
61563
61997
|
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
61564
61998
|
if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
|
|
61565
61999
|
object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
|
|
62000
|
+
if (message.pid2Info != null && message.hasOwnProperty("pid2Info"))
|
|
62001
|
+
object.pid2Info = $root.replit.goval.api.repl.Pid2Binary.toObject(message.pid2Info, options);
|
|
61566
62002
|
return object;
|
|
61567
62003
|
};
|
|
61568
62004
|
|
|
@@ -72874,6 +73310,208 @@
|
|
|
72874
73310
|
return BuildInfo;
|
|
72875
73311
|
})();
|
|
72876
73312
|
|
|
73313
|
+
repl.Pid2Binary = (function() {
|
|
73314
|
+
|
|
73315
|
+
/**
|
|
73316
|
+
* Properties of a Pid2Binary.
|
|
73317
|
+
* @memberof replit.goval.api.repl
|
|
73318
|
+
* @interface IPid2Binary
|
|
73319
|
+
* @property {string|null} [version] Pid2Binary version
|
|
73320
|
+
*/
|
|
73321
|
+
|
|
73322
|
+
/**
|
|
73323
|
+
* Constructs a new Pid2Binary.
|
|
73324
|
+
* @memberof replit.goval.api.repl
|
|
73325
|
+
* @classdesc Represents a Pid2Binary.
|
|
73326
|
+
* @constructor
|
|
73327
|
+
* @param {replit.goval.api.repl.IPid2Binary=} [properties] Properties to set
|
|
73328
|
+
*/
|
|
73329
|
+
function Pid2Binary(properties) {
|
|
73330
|
+
if (properties)
|
|
73331
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
73332
|
+
if (properties[keys[i]] != null)
|
|
73333
|
+
this[keys[i]] = properties[keys[i]];
|
|
73334
|
+
}
|
|
73335
|
+
|
|
73336
|
+
/**
|
|
73337
|
+
* Pid2Binary version.
|
|
73338
|
+
* @member {string} version
|
|
73339
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73340
|
+
* @instance
|
|
73341
|
+
*/
|
|
73342
|
+
Pid2Binary.prototype.version = "";
|
|
73343
|
+
|
|
73344
|
+
/**
|
|
73345
|
+
* Creates a new Pid2Binary instance using the specified properties.
|
|
73346
|
+
* @function create
|
|
73347
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73348
|
+
* @static
|
|
73349
|
+
* @param {replit.goval.api.repl.IPid2Binary=} [properties] Properties to set
|
|
73350
|
+
* @returns {replit.goval.api.repl.Pid2Binary} Pid2Binary instance
|
|
73351
|
+
*/
|
|
73352
|
+
Pid2Binary.create = function create(properties) {
|
|
73353
|
+
return Pid2Binary.fromObject(properties);
|
|
73354
|
+
};
|
|
73355
|
+
|
|
73356
|
+
/**
|
|
73357
|
+
* Encodes the specified Pid2Binary message. Does not implicitly {@link replit.goval.api.repl.Pid2Binary.verify|verify} messages.
|
|
73358
|
+
* @function encode
|
|
73359
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73360
|
+
* @static
|
|
73361
|
+
* @param {replit.goval.api.repl.Pid2Binary} message Pid2Binary message or plain object to encode
|
|
73362
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73363
|
+
* @returns {$protobuf.Writer} Writer
|
|
73364
|
+
*/
|
|
73365
|
+
Pid2Binary.encode = function encode(message, writer) {
|
|
73366
|
+
if (!writer)
|
|
73367
|
+
writer = $Writer.create();
|
|
73368
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
73369
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
|
|
73370
|
+
return writer;
|
|
73371
|
+
};
|
|
73372
|
+
|
|
73373
|
+
/**
|
|
73374
|
+
* Encodes the specified Pid2Binary message, length delimited. Does not implicitly {@link replit.goval.api.repl.Pid2Binary.verify|verify} messages.
|
|
73375
|
+
* @function encodeDelimited
|
|
73376
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73377
|
+
* @static
|
|
73378
|
+
* @param {replit.goval.api.repl.Pid2Binary} message Pid2Binary message or plain object to encode
|
|
73379
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73380
|
+
* @returns {$protobuf.Writer} Writer
|
|
73381
|
+
*/
|
|
73382
|
+
Pid2Binary.encodeDelimited = function encodeDelimited(message, writer) {
|
|
73383
|
+
return this.encode(message, writer).ldelim();
|
|
73384
|
+
};
|
|
73385
|
+
|
|
73386
|
+
/**
|
|
73387
|
+
* Decodes a Pid2Binary message from the specified reader or buffer.
|
|
73388
|
+
* @function decode
|
|
73389
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73390
|
+
* @static
|
|
73391
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73392
|
+
* @param {number} [length] Message length if known beforehand
|
|
73393
|
+
* @returns {replit.goval.api.repl.Pid2Binary} Pid2Binary
|
|
73394
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73395
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73396
|
+
*/
|
|
73397
|
+
Pid2Binary.decode = function decode(reader, length) {
|
|
73398
|
+
if (!(reader instanceof $Reader))
|
|
73399
|
+
reader = $Reader.create(reader);
|
|
73400
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Pid2Binary();
|
|
73401
|
+
while (reader.pos < end) {
|
|
73402
|
+
var tag = reader.uint32();
|
|
73403
|
+
switch (tag >>> 3) {
|
|
73404
|
+
case 1: {
|
|
73405
|
+
message.version = reader.string();
|
|
73406
|
+
break;
|
|
73407
|
+
}
|
|
73408
|
+
default:
|
|
73409
|
+
reader.skipType(tag & 7);
|
|
73410
|
+
break;
|
|
73411
|
+
}
|
|
73412
|
+
}
|
|
73413
|
+
return message;
|
|
73414
|
+
};
|
|
73415
|
+
|
|
73416
|
+
/**
|
|
73417
|
+
* Decodes a Pid2Binary message from the specified reader or buffer, length delimited.
|
|
73418
|
+
* @function decodeDelimited
|
|
73419
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73420
|
+
* @static
|
|
73421
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73422
|
+
* @returns {replit.goval.api.repl.Pid2Binary} Pid2Binary
|
|
73423
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73424
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73425
|
+
*/
|
|
73426
|
+
Pid2Binary.decodeDelimited = function decodeDelimited(reader) {
|
|
73427
|
+
if (!(reader instanceof $Reader))
|
|
73428
|
+
reader = new $Reader(reader);
|
|
73429
|
+
return this.decode(reader, reader.uint32());
|
|
73430
|
+
};
|
|
73431
|
+
|
|
73432
|
+
/**
|
|
73433
|
+
* Verifies a Pid2Binary message.
|
|
73434
|
+
* @function verify
|
|
73435
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73436
|
+
* @static
|
|
73437
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
73438
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
73439
|
+
*/
|
|
73440
|
+
Pid2Binary.verify = function verify(message) {
|
|
73441
|
+
if (typeof message !== "object" || message === null)
|
|
73442
|
+
return "object expected";
|
|
73443
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
73444
|
+
if (!$util.isString(message.version))
|
|
73445
|
+
return "version: string expected";
|
|
73446
|
+
return null;
|
|
73447
|
+
};
|
|
73448
|
+
|
|
73449
|
+
/**
|
|
73450
|
+
* Creates a Pid2Binary message from a plain object. Also converts values to their respective internal types.
|
|
73451
|
+
* @function fromObject
|
|
73452
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73453
|
+
* @static
|
|
73454
|
+
* @param {Object.<string,*>} object Plain object
|
|
73455
|
+
* @returns {replit.goval.api.repl.Pid2Binary} Pid2Binary
|
|
73456
|
+
*/
|
|
73457
|
+
Pid2Binary.fromObject = function fromObject(object) {
|
|
73458
|
+
if (object instanceof $root.replit.goval.api.repl.Pid2Binary)
|
|
73459
|
+
return object;
|
|
73460
|
+
var message = new $root.replit.goval.api.repl.Pid2Binary();
|
|
73461
|
+
if (object.version != null)
|
|
73462
|
+
message.version = String(object.version);
|
|
73463
|
+
return message;
|
|
73464
|
+
};
|
|
73465
|
+
|
|
73466
|
+
/**
|
|
73467
|
+
* Creates a plain object from a Pid2Binary message. Also converts values to other types if specified.
|
|
73468
|
+
* @function toObject
|
|
73469
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73470
|
+
* @static
|
|
73471
|
+
* @param {replit.goval.api.repl.Pid2Binary} message Pid2Binary
|
|
73472
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
73473
|
+
* @returns {Object.<string,*>} Plain object
|
|
73474
|
+
*/
|
|
73475
|
+
Pid2Binary.toObject = function toObject(message, options) {
|
|
73476
|
+
if (!options)
|
|
73477
|
+
options = {};
|
|
73478
|
+
var object = {};
|
|
73479
|
+
if (options.defaults)
|
|
73480
|
+
object.version = "";
|
|
73481
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
73482
|
+
object.version = message.version;
|
|
73483
|
+
return object;
|
|
73484
|
+
};
|
|
73485
|
+
|
|
73486
|
+
/**
|
|
73487
|
+
* Converts this Pid2Binary to JSON.
|
|
73488
|
+
* @function toJSON
|
|
73489
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73490
|
+
* @instance
|
|
73491
|
+
* @returns {Object.<string,*>} JSON object
|
|
73492
|
+
*/
|
|
73493
|
+
Pid2Binary.prototype.toJSON = function toJSON() {
|
|
73494
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
73495
|
+
};
|
|
73496
|
+
|
|
73497
|
+
/**
|
|
73498
|
+
* Gets the default type url for Pid2Binary
|
|
73499
|
+
* @function getTypeUrl
|
|
73500
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73501
|
+
* @static
|
|
73502
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
73503
|
+
* @returns {string} The default type url
|
|
73504
|
+
*/
|
|
73505
|
+
Pid2Binary.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
73506
|
+
if (typeUrlPrefix === undefined) {
|
|
73507
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
73508
|
+
}
|
|
73509
|
+
return typeUrlPrefix + "/replit.goval.api.repl.Pid2Binary";
|
|
73510
|
+
};
|
|
73511
|
+
|
|
73512
|
+
return Pid2Binary;
|
|
73513
|
+
})();
|
|
73514
|
+
|
|
72877
73515
|
return repl;
|
|
72878
73516
|
})();
|
|
72879
73517
|
|