From 4e0ef13b8369a0f069bb0fc97d498a9f50f242c0 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Mon, 14 Dec 2020 14:56:55 -0800 Subject: [PATCH] Generate (sound) TypeScript and Flow declaration files (#9) This change adds Flow declaration types so that we can check the types of the generated code. Notably: - Adds a dependency to flowgen and calls it during compilation, which takes the `.d.ts` and creates a `.flow.js` based on it. - Passes in the `--force-number` flag to pbjs, which causes it to not emit numbers as possibly being `Long`, since this confuses Flow. This only affects JSDoc declarations, not the generated code. - Passes in the `--force-message` flag to pbjs. Otherwise, this emits invalid types: it tries to create code like this: ```TypeScript interface IMessage { field?: T|null; } class Message implements IMessage { field: T; // notice the lack of optionality / nullness. ... } ``` This violates the Liskov Substitution Principle, since `Message` cannot be passed to any place that accepts an `IMessage`, so TypeScript (correctly) rejects this as bogus. With this flag, the number of places that will accept an `IMessage` instead of a `Message` are limited to constructors, where we do want to have partial messages being passed in. This only affects JSDoc declarations, not the generated code. - Removes all `@implements` annotations from the JSDoc, which takes care of the very last `IMessage`/`Message` confusion. This, together with the above element take care of https://github.com/protobufjs/protobuf.js/issues/837 - Forwards calls from `.create()` to `.fromObject()` to avoid breaking existing code (w.r.t. types). --- Makefile | 2 +- js/export.flow.js | 13164 +++++++++++++++++++++++++++++++++++++++++ js/index.d.ts | 1300 ++-- js/index.js | 1774 +++--- js/package-lock.json | 310 +- js/package.json | 7 +- js/tools/flow.js | 33 + js/tools/jsdoc.js | 163 + 8 files changed, 15169 insertions(+), 1584 deletions(-) create mode 100644 js/export.flow.js create mode 100755 js/tools/flow.js create mode 100755 js/tools/jsdoc.js diff --git a/Makefile b/Makefile index af1a697..9a0d9bd 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ build: build-go build-js publish: publish-go publish-js clean-js: - rm -f js/index.d.ts js/index.js + rm -f js/index.d.ts js/index.js js/export.flow.js build-js: clean-js cd js && npm install && npm run prepublishOnly publish-js: diff --git a/js/export.flow.js b/js/export.flow.js new file mode 100644 index 0000000..3979a51 --- /dev/null +++ b/js/export.flow.js @@ -0,0 +1,13164 @@ +/** + * Flowtype definitions for index + * Generated by Flowgen from a Typescript Definition + * Flowgen v1.12.1 + * @flow + */ + +import * as $protobuf from "protobufjs"; +declare var api: typeof npm$namespace$api; + +declare var npm$namespace$api: {| + FileAuthMethod: typeof api$FileAuthMethod, + State: typeof api$State, + Command: typeof api$Command, + Audio: typeof api$Audio, + Audio2: typeof api$Audio2, + ReadMeta: typeof api$ReadMeta, + WriteMeta: typeof api$WriteMeta, + AppendMeta: typeof api$AppendMeta, + Pid1Config: typeof api$Pid1Config, + FSLock: typeof api$FSLock, + FSSnapshot: typeof api$FSSnapshot, + SubscribeFile: typeof api$SubscribeFile, + Flush: typeof api$Flush, + OTLinkFile: typeof api$OTLinkFile, + Auth: typeof api$Auth, + StartVCR: typeof api$StartVCR, + ReadVCR: typeof api$ReadVCR, + VCRLog: typeof api$VCRLog, + ExecInfo: typeof api$ExecInfo, + Debug: typeof api$Debug, + FileAuthReq: typeof api$FileAuthReq, + MultiFileAuthRes: typeof api$MultiFileAuthRes, + FileAuthRes: typeof api$FileAuthRes, + ListObjects: typeof api$ListObjects, + ListObjectsResp: typeof api$ListObjectsResp, + Disconnect: typeof api$Disconnect, + Send: typeof api$Send, + Recv: typeof api$Recv, + Connect: typeof api$Connect, + Hint: typeof api$Hint, + Ping: typeof api$Ping, + Pong: typeof api$Pong, + Hello: typeof api$Hello, + Goodbye: typeof api$Goodbye, + CheckChanges: typeof api$CheckChanges, + EnsurePackages: typeof api$EnsurePackages, + Start: typeof api$Start, + DebugStatus: typeof api$DebugStatus, + StackFrame: typeof api$StackFrame, + ContainedTest: typeof api$ContainedTest, + TestResult: typeof api$TestResult, + TestFailure: typeof api$TestFailure, + ResizeTerm: typeof api$ResizeTerm, + SaneTerm: typeof api$SaneTerm, + LintResults: typeof api$LintResults, + LintResult: typeof api$LintResult, + OK: typeof api$OK, + Move: typeof api$Move, + Files: typeof api$Files, + Clear: typeof api$Clear, + Toast: typeof api$Toast, + Redirect: typeof api$Redirect, + RunMain: typeof api$RunMain, + PortOpen: typeof api$PortOpen, + OTFetchRequest: typeof api$OTFetchRequest, + OTFetchResponse: typeof api$OTFetchResponse, + OTPacket: typeof api$OTPacket, + OTRuneTransformOp: typeof api$OTRuneTransformOp, + OTStatus: typeof api$OTStatus, + OTCursor: typeof api$OTCursor, + ChatMessage: typeof api$ChatMessage, + ChatTyping: typeof api$ChatTyping, + User: typeof api$User, + Roster: typeof api$Roster, + Exec: typeof api$Exec, + Package: typeof api$Package, + PackageSearch: typeof api$PackageSearch, + PackageSearchResp: typeof api$PackageSearchResp, + PackageInfo: typeof api$PackageInfo, + PackageInfoResp: typeof api$PackageInfoResp, + PackageAdd: typeof api$PackageAdd, + PackageRemove: typeof api$PackageRemove, + PackageInstall: typeof api$PackageInstall, + PackageListSpecfile: typeof api$PackageListSpecfile, + PackageListSpecfileResp: typeof api$PackageListSpecfileResp, + PackageCacheSave: typeof api$PackageCacheSave, + ChatScrollback: typeof api$ChatScrollback, + Metrics: typeof api$Metrics, + PprofRequest: typeof api$PprofRequest, + PprofAllocsProfileRequest: typeof api$PprofAllocsProfileRequest, + PprofBlockProfileRequest: typeof api$PprofBlockProfileRequest, + PprofCpuProfileRequest: typeof api$PprofCpuProfileRequest, + PprofHeapProfileRequest: typeof api$PprofHeapProfileRequest, + PprofMutexProfileRequest: typeof api$PprofMutexProfileRequest, + PprofResponse: typeof api$PprofResponse, + PTYConfig: typeof api$PTYConfig, + BootStatus: typeof npm$namespace$api$BootStatus, + FileEvent: typeof npm$namespace$api$FileEvent, + VCREntry: typeof npm$namespace$api$VCREntry, + File: typeof npm$namespace$api$File, + OpenChannel: typeof npm$namespace$api$OpenChannel, + OpenChannelRes: typeof npm$namespace$api$OpenChannelRes, + CloseChannel: typeof npm$namespace$api$CloseChannel, + CloseChannelRes: typeof npm$namespace$api$CloseChannelRes, + ContainerState: typeof npm$namespace$api$ContainerState, +|}; + +/** + * Properties of a Command. + */ +declare type api$ICommand = {| + /** + * Command channel + */ + channel?: number | null, + + /** + * Command session + */ + session?: number | null, + + /** + * Command openChan + */ + openChan?: api$OpenChannel | api$IOpenChannel | null, + + /** + * Command openChanRes + */ + openChanRes?: api$OpenChannelRes | api$IOpenChannelRes | null, + + /** + * Command closeChan + */ + closeChan?: api$CloseChannel | api$ICloseChannel | null, + + /** + * Command closeChanRes + */ + closeChanRes?: api$CloseChannelRes | api$ICloseChannelRes | null, + + /** + * Command containerState + */ + containerState?: api$ContainerState | api$IContainerState | null, + + /** + * Command portOpen + */ + portOpen?: api$PortOpen | api$IPortOpen | null, + + /** + * Command toast + */ + toast?: api$Toast | api$IToast | null, + + /** + * Command redirect + */ + redirect?: api$Redirect | api$IRedirect | null, + + /** + * Command runMain + */ + runMain?: api$RunMain | api$IRunMain | null, + + /** + * Command clear + */ + clear?: api$Clear | api$IClear | null, + + /** + * Command eval + */ + eval?: string | null, + + /** + * Command result + */ + result?: string | null, + + /** + * Command input + */ + input?: string | null, + + /** + * Command output + */ + output?: string | null, + + /** + * Command error + */ + error?: string | null, + + /** + * Command saneTerm + */ + saneTerm?: api$SaneTerm | api$ISaneTerm | null, + + /** + * Command resizeTerm + */ + resizeTerm?: api$ResizeTerm | api$IResizeTerm | null, + + /** + * Command state + */ + state?: $Values | null, + + /** + * Command ok + */ + ok?: api$OK | api$IOK | null, + + /** + * Command persist + */ + persist?: api$File | api$IFile | null, + + /** + * Command persistMirror + */ + persistMirror?: api$File | api$IFile | null, + + /** + * Command write + */ + write?: api$File | api$IFile | null, + + /** + * Command remove + */ + remove?: api$File | api$IFile | null, + + /** + * Command move + */ + move?: api$Move | api$IMove | null, + + /** + * Command tryRemove + */ + tryRemove?: api$File | api$IFile | null, + + /** + * Command mkdir + */ + mkdir?: api$File | api$IFile | null, + + /** + * Command read + */ + read?: api$File | api$IFile | null, + + /** + * Command readdir + */ + readdir?: api$File | api$IFile | null, + + /** + * Command files + */ + files?: api$Files | api$IFiles | null, + + /** + * Command file + */ + file?: api$File | api$IFile | null, + + /** + * Command checkChanges + */ + checkChanges?: api$CheckChanges | api$ICheckChanges | null, + + /** + * Command changedFiles + */ + changedFiles?: api$Files | api$IFiles | null, + + /** + * Command lintResults + */ + lintResults?: api$LintResults | api$ILintResults | null, + + /** + * Command runContainedTest + */ + runContainedTest?: api$ContainedTest | api$IContainedTest | null, + + /** + * Command testResult + */ + testResult?: api$TestResult | api$ITestResult | null, + + /** + * Command debuggerStart + */ + debuggerStart?: string | null, + + /** + * Command debuggerStep + */ + debuggerStep?: api$RunMain | api$IRunMain | null, + + /** + * Command debuggerStatus + */ + debuggerStatus?: api$DebugStatus | api$IDebugStatus | null, + + /** + * Command ensurePackages + */ + ensurePackages?: api$EnsurePackages | api$IEnsurePackages | null, + + /** + * Command ping + */ + ping?: api$Ping | api$IPing | null, + + /** + * Command pong + */ + pong?: api$Pong | api$IPong | null, + + /** + * Command hello + */ + hello?: api$Hello | api$IHello | null, + + /** + * Command goodbye + */ + goodbye?: api$Goodbye | api$IGoodbye | null, + + /** + * Command hint + */ + hint?: api$Hint | api$IHint | null, + + /** + * Command connect + */ + connect?: api$Connect | api$IConnect | null, + + /** + * Command send + */ + send?: api$Send | api$ISend | null, + + /** + * Command recv + */ + recv?: api$Recv | api$IRecv | null, + + /** + * Command disconnect + */ + disconnect?: api$Disconnect | api$IDisconnect | null, + + /** + * Command fileAuthReq + */ + fileAuthReq?: api$FileAuthReq | api$IFileAuthReq | null, + + /** + * Command fileAuthRes + */ + fileAuthRes?: api$FileAuthRes | api$IFileAuthRes | null, + + /** + * Command mutliFileAuthRes + */ + mutliFileAuthRes?: api$MultiFileAuthRes | api$IMultiFileAuthRes | null, + + /** + * Command listObjects + */ + listObjects?: api$ListObjects | api$IListObjects | null, + + /** + * Command listObjectsResp + */ + listObjectsResp?: api$ListObjectsResp | api$IListObjectsResp | null, + + /** + * Command ot + */ + ot?: api$OTPacket | api$IOTPacket | null, + + /** + * Command otstatus + */ + otstatus?: api$OTStatus | api$IOTStatus | null, + + /** + * Command otLinkFile + */ + otLinkFile?: api$OTLinkFile | api$IOTLinkFile | null, + + /** + * Command otNewCursor + */ + otNewCursor?: api$OTCursor | api$IOTCursor | null, + + /** + * Command otDeleteCursor + */ + otDeleteCursor?: api$OTCursor | api$IOTCursor | null, + + /** + * Command otFetchRequest + */ + otFetchRequest?: api$OTFetchRequest | api$IOTFetchRequest | null, + + /** + * Command otFetchResponse + */ + otFetchResponse?: api$OTFetchResponse | api$IOTFetchResponse | null, + + /** + * Command flush + */ + flush?: api$Flush | api$IFlush | null, + + /** + * Command debug + */ + debug?: api$Debug | api$IDebug | null, + + /** + * Command startVCR + */ + startVCR?: api$StartVCR | api$IStartVCR | null, + + /** + * Command readVCR + */ + readVCR?: api$ReadVCR | api$IReadVCR | null, + + /** + * Command VCRLog + */ + VCRLog?: api$VCRLog | api$IVCRLog | null, + + /** + * Command auth + */ + auth?: api$Auth | api$IAuth | null, + + /** + * Command execInfo + */ + execInfo?: api$ExecInfo | api$IExecInfo | null, + + /** + * Command subscribeFile + */ + subscribeFile?: api$SubscribeFile | api$ISubscribeFile | null, + + /** + * Command fileEvent + */ + fileEvent?: api$FileEvent | api$IFileEvent | null, + + /** + * Command roster + */ + roster?: api$Roster | api$IRoster | null, + + /** + * Command join + */ + join?: api$User | api$IUser | null, + + /** + * Command part + */ + part?: api$User | api$IUser | null, + + /** + * Command exec + */ + exec?: api$Exec | api$IExec | null, + + /** + * Command packageSearch + */ + packageSearch?: api$PackageSearch | api$IPackageSearch | null, + + /** + * Command packageSearchResp + */ + packageSearchResp?: api$PackageSearchResp | api$IPackageSearchResp | null, + + /** + * Command packageInfo + */ + packageInfo?: api$PackageInfo | api$IPackageInfo | null, + + /** + * Command packageInfoResp + */ + packageInfoResp?: api$PackageInfoResp | api$IPackageInfoResp | null, + + /** + * Command packageAdd + */ + packageAdd?: api$PackageAdd | api$IPackageAdd | null, + + /** + * Command packageRemove + */ + packageRemove?: api$PackageRemove | api$IPackageRemove | null, + + /** + * Command packageInstall + */ + packageInstall?: api$PackageInstall | api$IPackageInstall | null, + + /** + * Command packageListSpecfile + */ + packageListSpecfile?: + | api$PackageListSpecfile + | api$IPackageListSpecfile + | null, + + /** + * Command packageListSpecfileResp + */ + packageListSpecfileResp?: + | api$PackageListSpecfileResp + | api$IPackageListSpecfileResp + | null, + + /** + * Command packageCacheSave + */ + packageCacheSave?: api$PackageCacheSave | api$IPackageCacheSave | null, + + /** + * Command chatMessage + */ + chatMessage?: api$ChatMessage | api$IChatMessage | null, + + /** + * Command chatTyping + */ + chatTyping?: api$ChatTyping | api$IChatTyping | null, + + /** + * Command chatScrollback + */ + chatScrollback?: api$ChatScrollback | api$IChatScrollback | null, + + /** + * Command fsSnapshot + */ + fsSnapshot?: api$FSSnapshot | api$IFSSnapshot | null, + + /** + * Command fsTakeLock + */ + fsTakeLock?: api$FSLock | api$IFSLock | null, + + /** + * Command fsReleaseLock + */ + fsReleaseLock?: api$FSLock | api$IFSLock | null, + + /** + * Command hasCap + */ + hasCap?: boolean | null, + + /** + * Command pid1Config + */ + pid1Config?: api$Pid1Config | api$IPid1Config | null, + + /** + * Command metrics + */ + metrics?: api$Metrics | api$IMetrics | null, + + /** + * Command bootStatus + */ + bootStatus?: api$BootStatus | api$IBootStatus | null, + + /** + * Command readMeta + */ + readMeta?: api$ReadMeta | api$IReadMeta | null, + + /** + * Command writeMeta + */ + writeMeta?: api$WriteMeta | api$IWriteMeta | null, + + /** + * Command appendMeta + */ + appendMeta?: api$AppendMeta | api$IAppendMeta | null, + + /** + * Command audio + */ + audio?: api$Audio | api$IAudio | null, + + /** + * Command pprofRequest + */ + pprofRequest?: api$PprofRequest | api$IPprofRequest | null, + + /** + * Command pprofResponse + */ + pprofResponse?: api$PprofResponse | api$IPprofResponse | null, + + /** + * Command audio2 + */ + audio2?: api$Audio2 | api$IAudio2 | null, + + /** + * Command PTYConfig + */ + PTYConfig?: api$PTYConfig | api$IPTYConfig | null, + + /** + * Command ref + */ + ref?: string | null, +|}; + +/** + * Represents a Command. + */ +declare class api$Command { + /** + * Constructs a new Command. + * @param [properties] Properties to set + */ + constructor(properties?: api$ICommand): this; + + /** + * Command channel. + */ + channel: number; + + /** + * Command session. + */ + session: number; + + /** + * Command openChan. + */ + openChan?: api$OpenChannel | null; + + /** + * Command openChanRes. + */ + openChanRes?: api$OpenChannelRes | null; + + /** + * Command closeChan. + */ + closeChan?: api$CloseChannel | null; + + /** + * Command closeChanRes. + */ + closeChanRes?: api$CloseChannelRes | null; + + /** + * Command containerState. + */ + containerState?: api$ContainerState | null; + + /** + * Command portOpen. + */ + portOpen?: api$PortOpen | null; + + /** + * Command toast. + */ + toast?: api$Toast | null; + + /** + * Command redirect. + */ + redirect?: api$Redirect | null; + + /** + * Command runMain. + */ + runMain?: api$RunMain | null; + + /** + * Command clear. + */ + clear?: api$Clear | null; + + /** + * Command eval. + */ + eval: string; + + /** + * Command result. + */ + result: string; + + /** + * Command input. + */ + input: string; + + /** + * Command output. + */ + output: string; + + /** + * Command error. + */ + error: string; + + /** + * Command saneTerm. + */ + saneTerm?: api$SaneTerm | null; + + /** + * Command resizeTerm. + */ + resizeTerm?: api$ResizeTerm | null; + + /** + * Command state. + */ + state: $Values; + + /** + * Command ok. + */ + ok?: api$OK | null; + + /** + * Command persist. + */ + persist?: api$File | null; + + /** + * Command persistMirror. + */ + persistMirror?: api$File | null; + + /** + * Command write. + */ + write?: api$File | null; + + /** + * Command remove. + */ + remove?: api$File | null; + + /** + * Command move. + */ + move?: api$Move | null; + + /** + * Command tryRemove. + */ + tryRemove?: api$File | null; + + /** + * Command mkdir. + */ + mkdir?: api$File | null; + + /** + * Command read. + */ + read?: api$File | null; + + /** + * Command readdir. + */ + readdir?: api$File | null; + + /** + * Command files. + */ + files?: api$Files | null; + + /** + * Command file. + */ + file?: api$File | null; + + /** + * Command checkChanges. + */ + checkChanges?: api$CheckChanges | null; + + /** + * Command changedFiles. + */ + changedFiles?: api$Files | null; + + /** + * Command lintResults. + */ + lintResults?: api$LintResults | null; + + /** + * Command runContainedTest. + */ + runContainedTest?: api$ContainedTest | null; + + /** + * Command testResult. + */ + testResult?: api$TestResult | null; + + /** + * Command debuggerStart. + */ + debuggerStart: string; + + /** + * Command debuggerStep. + */ + debuggerStep?: api$RunMain | null; + + /** + * Command debuggerStatus. + */ + debuggerStatus?: api$DebugStatus | null; + + /** + * Command ensurePackages. + */ + ensurePackages?: api$EnsurePackages | null; + + /** + * Command ping. + */ + ping?: api$Ping | null; + + /** + * Command pong. + */ + pong?: api$Pong | null; + + /** + * Command hello. + */ + hello?: api$Hello | null; + + /** + * Command goodbye. + */ + goodbye?: api$Goodbye | null; + + /** + * Command hint. + */ + hint?: api$Hint | null; + + /** + * Command connect. + */ + connect?: api$Connect | null; + + /** + * Command send. + */ + send?: api$Send | null; + + /** + * Command recv. + */ + recv?: api$Recv | null; + + /** + * Command disconnect. + */ + disconnect?: api$Disconnect | null; + + /** + * Command fileAuthReq. + */ + fileAuthReq?: api$FileAuthReq | null; + + /** + * Command fileAuthRes. + */ + fileAuthRes?: api$FileAuthRes | null; + + /** + * Command mutliFileAuthRes. + */ + mutliFileAuthRes?: api$MultiFileAuthRes | null; + + /** + * Command listObjects. + */ + listObjects?: api$ListObjects | null; + + /** + * Command listObjectsResp. + */ + listObjectsResp?: api$ListObjectsResp | null; + + /** + * Command ot. + */ + ot?: api$OTPacket | null; + + /** + * Command otstatus. + */ + otstatus?: api$OTStatus | null; + + /** + * Command otLinkFile. + */ + otLinkFile?: api$OTLinkFile | null; + + /** + * Command otNewCursor. + */ + otNewCursor?: api$OTCursor | null; + + /** + * Command otDeleteCursor. + */ + otDeleteCursor?: api$OTCursor | null; + + /** + * Command otFetchRequest. + */ + otFetchRequest?: api$OTFetchRequest | null; + + /** + * Command otFetchResponse. + */ + otFetchResponse?: api$OTFetchResponse | null; + + /** + * Command flush. + */ + flush?: api$Flush | null; + + /** + * Command debug. + */ + debug?: api$Debug | null; + + /** + * Command startVCR. + */ + startVCR?: api$StartVCR | null; + + /** + * Command readVCR. + */ + readVCR?: api$ReadVCR | null; + + /** + * Command VCRLog. + */ + VCRLog?: api$VCRLog | null; + + /** + * Command auth. + */ + auth?: api$Auth | null; + + /** + * Command execInfo. + */ + execInfo?: api$ExecInfo | null; + + /** + * Command subscribeFile. + */ + subscribeFile?: api$SubscribeFile | null; + + /** + * Command fileEvent. + */ + fileEvent?: api$FileEvent | null; + + /** + * Command roster. + */ + roster?: api$Roster | null; + + /** + * Command join. + */ + join?: api$User | null; + + /** + * Command part. + */ + part?: api$User | null; + + /** + * Command exec. + */ + exec?: api$Exec | null; + + /** + * Command packageSearch. + */ + packageSearch?: api$PackageSearch | null; + + /** + * Command packageSearchResp. + */ + packageSearchResp?: api$PackageSearchResp | null; + + /** + * Command packageInfo. + */ + packageInfo?: api$PackageInfo | null; + + /** + * Command packageInfoResp. + */ + packageInfoResp?: api$PackageInfoResp | null; + + /** + * Command packageAdd. + */ + packageAdd?: api$PackageAdd | null; + + /** + * Command packageRemove. + */ + packageRemove?: api$PackageRemove | null; + + /** + * Command packageInstall. + */ + packageInstall?: api$PackageInstall | null; + + /** + * Command packageListSpecfile. + */ + packageListSpecfile?: api$PackageListSpecfile | null; + + /** + * Command packageListSpecfileResp. + */ + packageListSpecfileResp?: api$PackageListSpecfileResp | null; + + /** + * Command packageCacheSave. + */ + packageCacheSave?: api$PackageCacheSave | null; + + /** + * Command chatMessage. + */ + chatMessage?: api$ChatMessage | null; + + /** + * Command chatTyping. + */ + chatTyping?: api$ChatTyping | null; + + /** + * Command chatScrollback. + */ + chatScrollback?: api$ChatScrollback | null; + + /** + * Command fsSnapshot. + */ + fsSnapshot?: api$FSSnapshot | null; + + /** + * Command fsTakeLock. + */ + fsTakeLock?: api$FSLock | null; + + /** + * Command fsReleaseLock. + */ + fsReleaseLock?: api$FSLock | null; + + /** + * Command hasCap. + */ + hasCap: boolean; + + /** + * Command pid1Config. + */ + pid1Config?: api$Pid1Config | null; + + /** + * Command metrics. + */ + metrics?: api$Metrics | null; + + /** + * Command bootStatus. + */ + bootStatus?: api$BootStatus | null; + + /** + * Command readMeta. + */ + readMeta?: api$ReadMeta | null; + + /** + * Command writeMeta. + */ + writeMeta?: api$WriteMeta | null; + + /** + * Command appendMeta. + */ + appendMeta?: api$AppendMeta | null; + + /** + * Command audio. + */ + audio?: api$Audio | null; + + /** + * Command pprofRequest. + */ + pprofRequest?: api$PprofRequest | null; + + /** + * Command pprofResponse. + */ + pprofResponse?: api$PprofResponse | null; + + /** + * Command audio2. + */ + audio2?: api$Audio2 | null; + + /** + * Command PTYConfig. + */ + PTYConfig?: api$PTYConfig | null; + + /** + * Command ref. + */ + ref: string; + + /** + * Command body. + */ + body?: + | "openChan" + | "openChanRes" + | "closeChan" + | "closeChanRes" + | "containerState" + | "portOpen" + | "toast" + | "redirect" + | "runMain" + | "clear" + | "eval" + | "result" + | "input" + | "output" + | "error" + | "saneTerm" + | "resizeTerm" + | "state" + | "ok" + | "persist" + | "persistMirror" + | "write" + | "remove" + | "move" + | "tryRemove" + | "mkdir" + | "read" + | "readdir" + | "files" + | "file" + | "checkChanges" + | "changedFiles" + | "lintResults" + | "runContainedTest" + | "testResult" + | "debuggerStart" + | "debuggerStep" + | "debuggerStatus" + | "ensurePackages" + | "ping" + | "pong" + | "hello" + | "goodbye" + | "hint" + | "connect" + | "send" + | "recv" + | "disconnect" + | "fileAuthReq" + | "fileAuthRes" + | "mutliFileAuthRes" + | "listObjects" + | "listObjectsResp" + | "ot" + | "otstatus" + | "otLinkFile" + | "otNewCursor" + | "otDeleteCursor" + | "otFetchRequest" + | "otFetchResponse" + | "flush" + | "debug" + | "startVCR" + | "readVCR" + | "VCRLog" + | "auth" + | "execInfo" + | "subscribeFile" + | "fileEvent" + | "roster" + | "join" + | "part" + | "exec" + | "packageSearch" + | "packageSearchResp" + | "packageInfo" + | "packageInfoResp" + | "packageAdd" + | "packageRemove" + | "packageInstall" + | "packageListSpecfile" + | "packageListSpecfileResp" + | "packageCacheSave" + | "chatMessage" + | "chatTyping" + | "chatScrollback" + | "fsSnapshot" + | "fsTakeLock" + | "fsReleaseLock" + | "hasCap" + | "pid1Config" + | "metrics" + | "bootStatus" + | "readMeta" + | "writeMeta" + | "appendMeta" + | "audio" + | "pprofRequest" + | "pprofResponse" + | "audio2" + | "PTYConfig"; + + /** + * Creates a new Command instance using the specified properties. + * @param [properties] Properties to set + * @returns Command instance + */ + static create(properties?: api$ICommand): api$Command; + + /** + * Encodes the specified Command message. Does not implicitly {@link api.Command.verify|verify} messages. + * @param message Command message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Command, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Command message, length delimited. Does not implicitly {@link api.Command.verify|verify} messages. + * @param message Command message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Command, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Command message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Command + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Command; + + /** + * Decodes a Command message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Command + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Command; + + /** + * Verifies a Command message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Command message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Command + */ + static fromObject(object: { + [k: string]: any, + }): api$Command; + + /** + * Creates a plain object from a Command message. Also converts values to other types if specified. + * @param message Command + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Command, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Command to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of an Audio. + */ +declare type api$IAudio = {| + /** + * Audio data + */ + data?: number[] | null, +|}; + +/** + * Represents an Audio. + */ +declare class api$Audio { + /** + * Constructs a new Audio. + * @param [properties] Properties to set + */ + constructor(properties?: api$IAudio): this; + + /** + * Audio data. + */ + data: number[]; + + /** + * Creates a new Audio instance using the specified properties. + * @param [properties] Properties to set + * @returns Audio instance + */ + static create(properties?: api$IAudio): api$Audio; + + /** + * Encodes the specified Audio message. Does not implicitly {@link api.Audio.verify|verify} messages. + * @param message Audio message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Audio, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Audio message, length delimited. Does not implicitly {@link api.Audio.verify|verify} messages. + * @param message Audio message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Audio, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an Audio message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Audio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Audio; + + /** + * Decodes an Audio message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Audio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Audio; + + /** + * Verifies an Audio message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an Audio message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Audio + */ + static fromObject(object: { + [k: string]: any, + }): api$Audio; + + /** + * Creates a plain object from an Audio message. Also converts values to other types if specified. + * @param message Audio + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Audio, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Audio to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of an Audio2. + */ +declare type api$IAudio2 = {| + /** + * Audio2 data + */ + data?: number[] | null, + + /** + * Audio2 samples + */ + samples?: number | null, +|}; + +/** + * Represents an Audio2. + */ +declare class api$Audio2 { + /** + * Constructs a new Audio2. + * @param [properties] Properties to set + */ + constructor(properties?: api$IAudio2): this; + + /** + * Audio2 data. + */ + data: number[]; + + /** + * Audio2 samples. + */ + samples: number; + + /** + * Creates a new Audio2 instance using the specified properties. + * @param [properties] Properties to set + * @returns Audio2 instance + */ + static create(properties?: api$IAudio2): api$Audio2; + + /** + * Encodes the specified Audio2 message. Does not implicitly {@link api.Audio2.verify|verify} messages. + * @param message Audio2 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Audio2, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Audio2 message, length delimited. Does not implicitly {@link api.Audio2.verify|verify} messages. + * @param message Audio2 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Audio2, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an Audio2 message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Audio2 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Audio2; + + /** + * Decodes an Audio2 message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Audio2 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Audio2; + + /** + * Verifies an Audio2 message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an Audio2 message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Audio2 + */ + static fromObject(object: { + [k: string]: any, + }): api$Audio2; + + /** + * Creates a plain object from an Audio2 message. Also converts values to other types if specified. + * @param message Audio2 + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Audio2, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Audio2 to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ReadMeta. + */ +declare type api$IReadMeta = {| + /** + * ReadMeta key + */ + key?: string | null, + + /** + * ReadMeta exists + */ + exists?: boolean | null, + + /** + * ReadMeta data + */ + data?: Uint8Array | null, +|}; + +/** + * Represents a ReadMeta. + */ +declare class api$ReadMeta { + /** + * Constructs a new ReadMeta. + * @param [properties] Properties to set + */ + constructor(properties?: api$IReadMeta): this; + + /** + * ReadMeta key. + */ + key: string; + + /** + * ReadMeta exists. + */ + exists: boolean; + + /** + * ReadMeta data. + */ + data: Uint8Array; + + /** + * Creates a new ReadMeta instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadMeta instance + */ + static create(properties?: api$IReadMeta): api$ReadMeta; + + /** + * Encodes the specified ReadMeta message. Does not implicitly {@link api.ReadMeta.verify|verify} messages. + * @param message ReadMeta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ReadMeta, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ReadMeta message, length delimited. Does not implicitly {@link api.ReadMeta.verify|verify} messages. + * @param message ReadMeta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ReadMeta, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ReadMeta message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadMeta + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ReadMeta; + + /** + * Decodes a ReadMeta message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadMeta + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$ReadMeta; + + /** + * Verifies a ReadMeta message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ReadMeta message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadMeta + */ + static fromObject(object: { + [k: string]: any, + }): api$ReadMeta; + + /** + * Creates a plain object from a ReadMeta message. Also converts values to other types if specified. + * @param message ReadMeta + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ReadMeta, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ReadMeta to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a WriteMeta. + */ +declare type api$IWriteMeta = {| + /** + * WriteMeta key + */ + key?: string | null, + + /** + * WriteMeta data + */ + data?: Uint8Array | null, +|}; + +/** + * Represents a WriteMeta. + */ +declare class api$WriteMeta { + /** + * Constructs a new WriteMeta. + * @param [properties] Properties to set + */ + constructor(properties?: api$IWriteMeta): this; + + /** + * WriteMeta key. + */ + key: string; + + /** + * WriteMeta data. + */ + data: Uint8Array; + + /** + * Creates a new WriteMeta instance using the specified properties. + * @param [properties] Properties to set + * @returns WriteMeta instance + */ + static create(properties?: api$IWriteMeta): api$WriteMeta; + + /** + * Encodes the specified WriteMeta message. Does not implicitly {@link api.WriteMeta.verify|verify} messages. + * @param message WriteMeta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$WriteMeta, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified WriteMeta message, length delimited. Does not implicitly {@link api.WriteMeta.verify|verify} messages. + * @param message WriteMeta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$WriteMeta, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a WriteMeta message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WriteMeta + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$WriteMeta; + + /** + * Decodes a WriteMeta message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WriteMeta + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$WriteMeta; + + /** + * Verifies a WriteMeta message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a WriteMeta message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WriteMeta + */ + static fromObject(object: { + [k: string]: any, + }): api$WriteMeta; + + /** + * Creates a plain object from a WriteMeta message. Also converts values to other types if specified. + * @param message WriteMeta + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$WriteMeta, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this WriteMeta to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of an AppendMeta. + */ +declare type api$IAppendMeta = {| + /** + * AppendMeta key + */ + key?: string | null, + + /** + * AppendMeta data + */ + data?: Uint8Array | null, +|}; + +/** + * Represents an AppendMeta. + */ +declare class api$AppendMeta { + /** + * Constructs a new AppendMeta. + * @param [properties] Properties to set + */ + constructor(properties?: api$IAppendMeta): this; + + /** + * AppendMeta key. + */ + key: string; + + /** + * AppendMeta data. + */ + data: Uint8Array; + + /** + * Creates a new AppendMeta instance using the specified properties. + * @param [properties] Properties to set + * @returns AppendMeta instance + */ + static create(properties?: api$IAppendMeta): api$AppendMeta; + + /** + * Encodes the specified AppendMeta message. Does not implicitly {@link api.AppendMeta.verify|verify} messages. + * @param message AppendMeta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$AppendMeta, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified AppendMeta message, length delimited. Does not implicitly {@link api.AppendMeta.verify|verify} messages. + * @param message AppendMeta message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$AppendMeta, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an AppendMeta message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AppendMeta + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$AppendMeta; + + /** + * Decodes an AppendMeta message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AppendMeta + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$AppendMeta; + + /** + * Verifies an AppendMeta message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an AppendMeta message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AppendMeta + */ + static fromObject(object: { + [k: string]: any, + }): api$AppendMeta; + + /** + * Creates a plain object from an AppendMeta message. Also converts values to other types if specified. + * @param message AppendMeta + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$AppendMeta, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this AppendMeta to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a BootStatus. + */ +declare type api$IBootStatus = {| + /** + * BootStatus stage + */ + stage?: $Values | null, + + /** + * BootStatus progress + */ + progress?: number | null, + + /** + * BootStatus total + */ + total?: number | null, +|}; + +/** + * Represents a BootStatus. + */ +declare class api$BootStatus { + /** + * Constructs a new BootStatus. + * @param [properties] Properties to set + */ + constructor(properties?: api$IBootStatus): this; + + /** + * BootStatus stage. + */ + stage: $Values; + + /** + * BootStatus progress. + */ + progress: number; + + /** + * BootStatus total. + */ + total: number; + + /** + * Creates a new BootStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns BootStatus instance + */ + static create(properties?: api$IBootStatus): api$BootStatus; + + /** + * Encodes the specified BootStatus message. Does not implicitly {@link api.BootStatus.verify|verify} messages. + * @param message BootStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$BootStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified BootStatus message, length delimited. Does not implicitly {@link api.BootStatus.verify|verify} messages. + * @param message BootStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$BootStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a BootStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BootStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$BootStatus; + + /** + * Decodes a BootStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BootStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$BootStatus; + + /** + * Verifies a BootStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a BootStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BootStatus + */ + static fromObject(object: { + [k: string]: any, + }): api$BootStatus; + + /** + * Creates a plain object from a BootStatus message. Also converts values to other types if specified. + * @param message BootStatus + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$BootStatus, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this BootStatus to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$BootStatus: {| + Stage: typeof api$BootStatus$Stage, +|}; + +/** + * Stage enum. + */ + +declare var api$BootStatus$Stage: {| + +HANDSHAKE: 0, // 0 + +ACQUIRING: 3, // 3 + +COMPLETE: 4, // 4 + +PROXY: 5, // 5 + +PULL_FILES: 6, // 6 + +LOAD_BLOCK: 7, // 7 + +RETRY: 8, // 8 +|}; + +/** + * Properties of a Pid1Config. + */ +declare type api$IPid1Config = {| + /** + * Pid1Config cwd + */ + cwd?: string | null, + + /** + * Pid1Config language + */ + language?: string | null, + + /** + * Pid1Config env + */ + env?: { + [k: string]: string, + } | null, +|}; + +/** + * Represents a Pid1Config. + */ +declare class api$Pid1Config { + /** + * Constructs a new Pid1Config. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPid1Config): this; + + /** + * Pid1Config cwd. + */ + cwd: string; + + /** + * Pid1Config language. + */ + language: string; + + /** + * Pid1Config env. + */ + env: { + [k: string]: string, + }; + + /** + * Creates a new Pid1Config instance using the specified properties. + * @param [properties] Properties to set + * @returns Pid1Config instance + */ + static create(properties?: api$IPid1Config): api$Pid1Config; + + /** + * Encodes the specified Pid1Config message. Does not implicitly {@link api.Pid1Config.verify|verify} messages. + * @param message Pid1Config message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Pid1Config, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Pid1Config message, length delimited. Does not implicitly {@link api.Pid1Config.verify|verify} messages. + * @param message Pid1Config message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Pid1Config, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Pid1Config message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Pid1Config + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Pid1Config; + + /** + * Decodes a Pid1Config message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Pid1Config + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Pid1Config; + + /** + * Verifies a Pid1Config message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Pid1Config message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Pid1Config + */ + static fromObject(object: { + [k: string]: any, + }): api$Pid1Config; + + /** + * Creates a plain object from a Pid1Config message. Also converts values to other types if specified. + * @param message Pid1Config + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Pid1Config, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Pid1Config to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a FSLock. + */ +declare type api$IFSLock = {| + /** + * FSLock name + */ + name?: string | null, +|}; + +/** + * Represents a FSLock. + */ +declare class api$FSLock { + /** + * Constructs a new FSLock. + * @param [properties] Properties to set + */ + constructor(properties?: api$IFSLock): this; + + /** + * FSLock name. + */ + name: string; + + /** + * Creates a new FSLock instance using the specified properties. + * @param [properties] Properties to set + * @returns FSLock instance + */ + static create(properties?: api$IFSLock): api$FSLock; + + /** + * Encodes the specified FSLock message. Does not implicitly {@link api.FSLock.verify|verify} messages. + * @param message FSLock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$FSLock, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified FSLock message, length delimited. Does not implicitly {@link api.FSLock.verify|verify} messages. + * @param message FSLock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$FSLock, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a FSLock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FSLock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$FSLock; + + /** + * Decodes a FSLock message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FSLock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$FSLock; + + /** + * Verifies a FSLock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a FSLock message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FSLock + */ + static fromObject(object: { + [k: string]: any, + }): api$FSLock; + + /** + * Creates a plain object from a FSLock message. Also converts values to other types if specified. + * @param message FSLock + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$FSLock, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this FSLock to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a FSSnapshot. + */ +declare type api$IFSSnapshot = {||}; + +/** + * Represents a FSSnapshot. + */ +declare class api$FSSnapshot { + /** + * Constructs a new FSSnapshot. + * @param [properties] Properties to set + */ + constructor(properties?: api$IFSSnapshot): this; + + /** + * Creates a new FSSnapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns FSSnapshot instance + */ + static create(properties?: api$IFSSnapshot): api$FSSnapshot; + + /** + * Encodes the specified FSSnapshot message. Does not implicitly {@link api.FSSnapshot.verify|verify} messages. + * @param message FSSnapshot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$FSSnapshot, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified FSSnapshot message, length delimited. Does not implicitly {@link api.FSSnapshot.verify|verify} messages. + * @param message FSSnapshot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$FSSnapshot, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a FSSnapshot message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FSSnapshot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$FSSnapshot; + + /** + * Decodes a FSSnapshot message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FSSnapshot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$FSSnapshot; + + /** + * Verifies a FSSnapshot message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a FSSnapshot message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FSSnapshot + */ + static fromObject(object: { + [k: string]: any, + }): api$FSSnapshot; + + /** + * Creates a plain object from a FSSnapshot message. Also converts values to other types if specified. + * @param message FSSnapshot + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$FSSnapshot, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this FSSnapshot to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a SubscribeFile. + */ +declare type api$ISubscribeFile = {| + /** + * SubscribeFile files + */ + files?: (api$File | api$IFile)[] | null, +|}; + +/** + * Represents a SubscribeFile. + */ +declare class api$SubscribeFile { + /** + * Constructs a new SubscribeFile. + * @param [properties] Properties to set + */ + constructor(properties?: api$ISubscribeFile): this; + + /** + * SubscribeFile files. + */ + files: api$File[]; + + /** + * Creates a new SubscribeFile instance using the specified properties. + * @param [properties] Properties to set + * @returns SubscribeFile instance + */ + static create(properties?: api$ISubscribeFile): api$SubscribeFile; + + /** + * Encodes the specified SubscribeFile message. Does not implicitly {@link api.SubscribeFile.verify|verify} messages. + * @param message SubscribeFile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$SubscribeFile, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified SubscribeFile message, length delimited. Does not implicitly {@link api.SubscribeFile.verify|verify} messages. + * @param message SubscribeFile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$SubscribeFile, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a SubscribeFile message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SubscribeFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$SubscribeFile; + + /** + * Decodes a SubscribeFile message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SubscribeFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$SubscribeFile; + + /** + * Verifies a SubscribeFile message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a SubscribeFile message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SubscribeFile + */ + static fromObject(object: { + [k: string]: any, + }): api$SubscribeFile; + + /** + * Creates a plain object from a SubscribeFile message. Also converts values to other types if specified. + * @param message SubscribeFile + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$SubscribeFile, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this SubscribeFile to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a FileEvent. + */ +declare type api$IFileEvent = {| + /** + * FileEvent file + */ + file?: api$File | api$IFile | null, + + /** + * FileEvent dest + */ + dest?: api$File | api$IFile | null, + + /** + * FileEvent op + */ + op?: $Values | null, +|}; + +/** + * Represents a FileEvent. + */ +declare class api$FileEvent { + /** + * Constructs a new FileEvent. + * @param [properties] Properties to set + */ + constructor(properties?: api$IFileEvent): this; + + /** + * FileEvent file. + */ + file?: api$File | null; + + /** + * FileEvent dest. + */ + dest?: api$File | null; + + /** + * FileEvent op. + */ + op: $Values; + + /** + * Creates a new FileEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns FileEvent instance + */ + static create(properties?: api$IFileEvent): api$FileEvent; + + /** + * Encodes the specified FileEvent message. Does not implicitly {@link api.FileEvent.verify|verify} messages. + * @param message FileEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$FileEvent, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified FileEvent message, length delimited. Does not implicitly {@link api.FileEvent.verify|verify} messages. + * @param message FileEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$FileEvent, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a FileEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$FileEvent; + + /** + * Decodes a FileEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$FileEvent; + + /** + * Verifies a FileEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a FileEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileEvent + */ + static fromObject(object: { + [k: string]: any, + }): api$FileEvent; + + /** + * Creates a plain object from a FileEvent message. Also converts values to other types if specified. + * @param message FileEvent + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$FileEvent, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this FileEvent to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$FileEvent: {| + Op: typeof api$FileEvent$Op, +|}; + +/** + * Op enum. + */ + +declare var api$FileEvent$Op: {| + +Create: 0, // 0 + +Move: 1, // 1 + +Remove: 2, // 2 + +Modify: 3, // 3 +|}; + +/** + * Properties of a Flush. + */ +declare type api$IFlush = {||}; + +/** + * Represents a Flush. + */ +declare class api$Flush { + /** + * Constructs a new Flush. + * @param [properties] Properties to set + */ + constructor(properties?: api$IFlush): this; + + /** + * Creates a new Flush instance using the specified properties. + * @param [properties] Properties to set + * @returns Flush instance + */ + static create(properties?: api$IFlush): api$Flush; + + /** + * Encodes the specified Flush message. Does not implicitly {@link api.Flush.verify|verify} messages. + * @param message Flush message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Flush, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Flush message, length delimited. Does not implicitly {@link api.Flush.verify|verify} messages. + * @param message Flush message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Flush, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Flush message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Flush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Flush; + + /** + * Decodes a Flush message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Flush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Flush; + + /** + * Verifies a Flush message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Flush message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Flush + */ + static fromObject(object: { + [k: string]: any, + }): api$Flush; + + /** + * Creates a plain object from a Flush message. Also converts values to other types if specified. + * @param message Flush + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Flush, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Flush to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a OTLinkFile. + */ +declare type api$IOTLinkFile = {| + /** + * OTLinkFile file + */ + file?: api$File | api$IFile | null, + + /** + * OTLinkFile highConsistency + */ + highConsistency?: boolean | null, + + /** + * OTLinkFile useModTime + */ + useModTime?: boolean | null, +|}; + +/** + * Represents a OTLinkFile. + */ +declare class api$OTLinkFile { + /** + * Constructs a new OTLinkFile. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOTLinkFile): this; + + /** + * OTLinkFile file. + */ + file?: api$File | null; + + /** + * OTLinkFile highConsistency. + */ + highConsistency: boolean; + + /** + * OTLinkFile useModTime. + */ + useModTime: boolean; + + /** + * Creates a new OTLinkFile instance using the specified properties. + * @param [properties] Properties to set + * @returns OTLinkFile instance + */ + static create(properties?: api$IOTLinkFile): api$OTLinkFile; + + /** + * Encodes the specified OTLinkFile message. Does not implicitly {@link api.OTLinkFile.verify|verify} messages. + * @param message OTLinkFile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OTLinkFile, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OTLinkFile message, length delimited. Does not implicitly {@link api.OTLinkFile.verify|verify} messages. + * @param message OTLinkFile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OTLinkFile, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a OTLinkFile message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OTLinkFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OTLinkFile; + + /** + * Decodes a OTLinkFile message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OTLinkFile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$OTLinkFile; + + /** + * Verifies a OTLinkFile message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a OTLinkFile message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OTLinkFile + */ + static fromObject(object: { + [k: string]: any, + }): api$OTLinkFile; + + /** + * Creates a plain object from a OTLinkFile message. Also converts values to other types if specified. + * @param message OTLinkFile + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OTLinkFile, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OTLinkFile to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of an Auth. + */ +declare type api$IAuth = {| + /** + * Auth token + */ + token?: string | null, + + /** + * Auth containerID + */ + containerID?: string | null, +|}; + +/** + * Represents an Auth. + */ +declare class api$Auth { + /** + * Constructs a new Auth. + * @param [properties] Properties to set + */ + constructor(properties?: api$IAuth): this; + + /** + * Auth token. + */ + token: string; + + /** + * Auth containerID. + */ + containerID: string; + + /** + * Creates a new Auth instance using the specified properties. + * @param [properties] Properties to set + * @returns Auth instance + */ + static create(properties?: api$IAuth): api$Auth; + + /** + * Encodes the specified Auth message. Does not implicitly {@link api.Auth.verify|verify} messages. + * @param message Auth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$Auth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Auth message, length delimited. Does not implicitly {@link api.Auth.verify|verify} messages. + * @param message Auth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Auth, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an Auth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Auth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Auth; + + /** + * Decodes an Auth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Auth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Auth; + + /** + * Verifies an Auth message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an Auth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Auth + */ + static fromObject(object: { + [k: string]: any, + }): api$Auth; + + /** + * Creates a plain object from an Auth message. Also converts values to other types if specified. + * @param message Auth + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Auth, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Auth to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a VCREntry. + */ +declare type api$IVCREntry = {| + /** + * VCREntry timestamp + */ + timestamp?: number | null, + + /** + * VCREntry direction + */ + direction?: $Values | null, + + /** + * VCREntry command + */ + command?: api$Command | api$ICommand | null, + + /** + * VCREntry uid + */ + uid?: string | null, +|}; + +/** + * Represents a VCREntry. + */ +declare class api$VCREntry { + /** + * Constructs a new VCREntry. + * @param [properties] Properties to set + */ + constructor(properties?: api$IVCREntry): this; + + /** + * VCREntry timestamp. + */ + timestamp: number; + + /** + * VCREntry direction. + */ + direction: $Values; + + /** + * VCREntry command. + */ + command?: api$Command | null; + + /** + * VCREntry uid. + */ + uid: string; + + /** + * Creates a new VCREntry instance using the specified properties. + * @param [properties] Properties to set + * @returns VCREntry instance + */ + static create(properties?: api$IVCREntry): api$VCREntry; + + /** + * Encodes the specified VCREntry message. Does not implicitly {@link api.VCREntry.verify|verify} messages. + * @param message VCREntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$VCREntry, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified VCREntry message, length delimited. Does not implicitly {@link api.VCREntry.verify|verify} messages. + * @param message VCREntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$VCREntry, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a VCREntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VCREntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$VCREntry; + + /** + * Decodes a VCREntry message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VCREntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$VCREntry; + + /** + * Verifies a VCREntry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a VCREntry message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VCREntry + */ + static fromObject(object: { + [k: string]: any, + }): api$VCREntry; + + /** + * Creates a plain object from a VCREntry message. Also converts values to other types if specified. + * @param message VCREntry + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$VCREntry, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this VCREntry to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$VCREntry: {| + Direction: typeof api$VCREntry$Direction, +|}; + +/** + * Direction enum. + */ + +declare var api$VCREntry$Direction: {| + +IN: 0, // 0 + +OUT: 1, // 1 +|}; + +/** + * Properties of a StartVCR. + */ +declare type api$IStartVCR = {||}; + +/** + * Represents a StartVCR. + */ +declare class api$StartVCR { + /** + * Constructs a new StartVCR. + * @param [properties] Properties to set + */ + constructor(properties?: api$IStartVCR): this; + + /** + * Creates a new StartVCR instance using the specified properties. + * @param [properties] Properties to set + * @returns StartVCR instance + */ + static create(properties?: api$IStartVCR): api$StartVCR; + + /** + * Encodes the specified StartVCR message. Does not implicitly {@link api.StartVCR.verify|verify} messages. + * @param message StartVCR message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$StartVCR, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified StartVCR message, length delimited. Does not implicitly {@link api.StartVCR.verify|verify} messages. + * @param message StartVCR message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$StartVCR, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a StartVCR message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartVCR + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$StartVCR; + + /** + * Decodes a StartVCR message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartVCR + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$StartVCR; + + /** + * Verifies a StartVCR message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a StartVCR message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartVCR + */ + static fromObject(object: { + [k: string]: any, + }): api$StartVCR; + + /** + * Creates a plain object from a StartVCR message. Also converts values to other types if specified. + * @param message StartVCR + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$StartVCR, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this StartVCR to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ReadVCR. + */ +declare type api$IReadVCR = {||}; + +/** + * Represents a ReadVCR. + */ +declare class api$ReadVCR { + /** + * Constructs a new ReadVCR. + * @param [properties] Properties to set + */ + constructor(properties?: api$IReadVCR): this; + + /** + * Creates a new ReadVCR instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadVCR instance + */ + static create(properties?: api$IReadVCR): api$ReadVCR; + + /** + * Encodes the specified ReadVCR message. Does not implicitly {@link api.ReadVCR.verify|verify} messages. + * @param message ReadVCR message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ReadVCR, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ReadVCR message, length delimited. Does not implicitly {@link api.ReadVCR.verify|verify} messages. + * @param message ReadVCR message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ReadVCR, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ReadVCR message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadVCR + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ReadVCR; + + /** + * Decodes a ReadVCR message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadVCR + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$ReadVCR; + + /** + * Verifies a ReadVCR message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ReadVCR message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadVCR + */ + static fromObject(object: { + [k: string]: any, + }): api$ReadVCR; + + /** + * Creates a plain object from a ReadVCR message. Also converts values to other types if specified. + * @param message ReadVCR + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ReadVCR, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ReadVCR to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a VCRLog. + */ +declare type api$IVCRLog = {| + /** + * VCRLog log + */ + log?: (api$VCREntry | api$IVCREntry)[] | null, + + /** + * VCRLog logfile + */ + logfile?: api$File | api$IFile | null, +|}; + +/** + * Represents a VCRLog. + */ +declare class api$VCRLog { + /** + * Constructs a new VCRLog. + * @param [properties] Properties to set + */ + constructor(properties?: api$IVCRLog): this; + + /** + * VCRLog log. + */ + log: api$VCREntry[]; + + /** + * VCRLog logfile. + */ + logfile?: api$File | null; + + /** + * Creates a new VCRLog instance using the specified properties. + * @param [properties] Properties to set + * @returns VCRLog instance + */ + static create(properties?: api$IVCRLog): api$VCRLog; + + /** + * Encodes the specified VCRLog message. Does not implicitly {@link api.VCRLog.verify|verify} messages. + * @param message VCRLog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$VCRLog, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified VCRLog message, length delimited. Does not implicitly {@link api.VCRLog.verify|verify} messages. + * @param message VCRLog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$VCRLog, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a VCRLog message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VCRLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$VCRLog; + + /** + * Decodes a VCRLog message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VCRLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$VCRLog; + + /** + * Verifies a VCRLog message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a VCRLog message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VCRLog + */ + static fromObject(object: { + [k: string]: any, + }): api$VCRLog; + + /** + * Creates a plain object from a VCRLog message. Also converts values to other types if specified. + * @param message VCRLog + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$VCRLog, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this VCRLog to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of an ExecInfo. + */ +declare type api$IExecInfo = {| + /** + * ExecInfo command + */ + command?: string[] | null, + + /** + * ExecInfo reason + */ + reason?: string | null, +|}; + +/** + * Represents an ExecInfo. + */ +declare class api$ExecInfo { + /** + * Constructs a new ExecInfo. + * @param [properties] Properties to set + */ + constructor(properties?: api$IExecInfo): this; + + /** + * ExecInfo command. + */ + command: string[]; + + /** + * ExecInfo reason. + */ + reason: string; + + /** + * Creates a new ExecInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecInfo instance + */ + static create(properties?: api$IExecInfo): api$ExecInfo; + + /** + * Encodes the specified ExecInfo message. Does not implicitly {@link api.ExecInfo.verify|verify} messages. + * @param message ExecInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ExecInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ExecInfo message, length delimited. Does not implicitly {@link api.ExecInfo.verify|verify} messages. + * @param message ExecInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ExecInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an ExecInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ExecInfo; + + /** + * Decodes an ExecInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$ExecInfo; + + /** + * Verifies an ExecInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an ExecInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecInfo + */ + static fromObject(object: { + [k: string]: any, + }): api$ExecInfo; + + /** + * Creates a plain object from an ExecInfo message. Also converts values to other types if specified. + * @param message ExecInfo + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ExecInfo, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ExecInfo to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Debug. + */ +declare type api$IDebug = {| + /** + * Debug text + */ + text?: string | null, +|}; + +/** + * Represents a Debug. + */ +declare class api$Debug { + /** + * Constructs a new Debug. + * @param [properties] Properties to set + */ + constructor(properties?: api$IDebug): this; + + /** + * Debug text. + */ + text: string; + + /** + * Creates a new Debug instance using the specified properties. + * @param [properties] Properties to set + * @returns Debug instance + */ + static create(properties?: api$IDebug): api$Debug; + + /** + * Encodes the specified Debug message. Does not implicitly {@link api.Debug.verify|verify} messages. + * @param message Debug message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Debug, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Debug message, length delimited. Does not implicitly {@link api.Debug.verify|verify} messages. + * @param message Debug message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Debug, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Debug message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Debug + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Debug; + + /** + * Decodes a Debug message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Debug + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Debug; + + /** + * Verifies a Debug message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Debug message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Debug + */ + static fromObject(object: { + [k: string]: any, + }): api$Debug; + + /** + * Creates a plain object from a Debug message. Also converts values to other types if specified. + * @param message Debug + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Debug, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Debug to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * FileAuthMethod enum. + */ + +declare var api$FileAuthMethod: {| + +GET: 0, // 0 + +HEAD: 1, // 1 + +PUT: 2, // 2 + +DELETE: 3, // 3 +|}; + +/** + * Properties of a FileAuthReq. + */ +declare type api$IFileAuthReq = {| + /** + * FileAuthReq file + */ + file?: api$File | api$IFile | null, + + /** + * FileAuthReq method + */ + method?: $Values | null, +|}; + +/** + * Represents a FileAuthReq. + */ +declare class api$FileAuthReq { + /** + * Constructs a new FileAuthReq. + * @param [properties] Properties to set + */ + constructor(properties?: api$IFileAuthReq): this; + + /** + * FileAuthReq file. + */ + file?: api$File | null; + + /** + * FileAuthReq method. + */ + method: $Values; + + /** + * Creates a new FileAuthReq instance using the specified properties. + * @param [properties] Properties to set + * @returns FileAuthReq instance + */ + static create(properties?: api$IFileAuthReq): api$FileAuthReq; + + /** + * Encodes the specified FileAuthReq message. Does not implicitly {@link api.FileAuthReq.verify|verify} messages. + * @param message FileAuthReq message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$FileAuthReq, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified FileAuthReq message, length delimited. Does not implicitly {@link api.FileAuthReq.verify|verify} messages. + * @param message FileAuthReq message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$FileAuthReq, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a FileAuthReq message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileAuthReq + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$FileAuthReq; + + /** + * Decodes a FileAuthReq message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileAuthReq + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$FileAuthReq; + + /** + * Verifies a FileAuthReq message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a FileAuthReq message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileAuthReq + */ + static fromObject(object: { + [k: string]: any, + }): api$FileAuthReq; + + /** + * Creates a plain object from a FileAuthReq message. Also converts values to other types if specified. + * @param message FileAuthReq + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$FileAuthReq, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this FileAuthReq to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a MultiFileAuthRes. + */ +declare type api$IMultiFileAuthRes = {| + /** + * MultiFileAuthRes put + */ + put?: api$FileAuthRes | api$IFileAuthRes | null, + + /** + * MultiFileAuthRes del + */ + del?: api$FileAuthRes | api$IFileAuthRes | null, + + /** + * MultiFileAuthRes get + */ + get?: api$FileAuthRes | api$IFileAuthRes | null, +|}; + +/** + * Represents a MultiFileAuthRes. + */ +declare class api$MultiFileAuthRes { + /** + * Constructs a new MultiFileAuthRes. + * @param [properties] Properties to set + */ + constructor(properties?: api$IMultiFileAuthRes): this; + + /** + * MultiFileAuthRes put. + */ + put?: api$FileAuthRes | null; + + /** + * MultiFileAuthRes del. + */ + del?: api$FileAuthRes | null; + + /** + * MultiFileAuthRes get. + */ + get?: api$FileAuthRes | null; + + /** + * Creates a new MultiFileAuthRes instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiFileAuthRes instance + */ + static create(properties?: api$IMultiFileAuthRes): api$MultiFileAuthRes; + + /** + * Encodes the specified MultiFileAuthRes message. Does not implicitly {@link api.MultiFileAuthRes.verify|verify} messages. + * @param message MultiFileAuthRes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$MultiFileAuthRes, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified MultiFileAuthRes message, length delimited. Does not implicitly {@link api.MultiFileAuthRes.verify|verify} messages. + * @param message MultiFileAuthRes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$MultiFileAuthRes, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a MultiFileAuthRes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiFileAuthRes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$MultiFileAuthRes; + + /** + * Decodes a MultiFileAuthRes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiFileAuthRes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$MultiFileAuthRes; + + /** + * Verifies a MultiFileAuthRes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a MultiFileAuthRes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiFileAuthRes + */ + static fromObject(object: { + [k: string]: any, + }): api$MultiFileAuthRes; + + /** + * Creates a plain object from a MultiFileAuthRes message. Also converts values to other types if specified. + * @param message MultiFileAuthRes + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$MultiFileAuthRes, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this MultiFileAuthRes to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a FileAuthRes. + */ +declare type api$IFileAuthRes = {| + /** + * FileAuthRes file + */ + file?: api$File | api$IFile | null, + + /** + * FileAuthRes url + */ + url?: string | null, + + /** + * FileAuthRes method + */ + method?: $Values | null, + + /** + * FileAuthRes expire + */ + expire?: number | null, + + /** + * FileAuthRes error + */ + error?: string | null, +|}; + +/** + * Represents a FileAuthRes. + */ +declare class api$FileAuthRes { + /** + * Constructs a new FileAuthRes. + * @param [properties] Properties to set + */ + constructor(properties?: api$IFileAuthRes): this; + + /** + * FileAuthRes file. + */ + file?: api$File | null; + + /** + * FileAuthRes url. + */ + url: string; + + /** + * FileAuthRes method. + */ + method: $Values; + + /** + * FileAuthRes expire. + */ + expire: number; + + /** + * FileAuthRes error. + */ + error: string; + + /** + * Creates a new FileAuthRes instance using the specified properties. + * @param [properties] Properties to set + * @returns FileAuthRes instance + */ + static create(properties?: api$IFileAuthRes): api$FileAuthRes; + + /** + * Encodes the specified FileAuthRes message. Does not implicitly {@link api.FileAuthRes.verify|verify} messages. + * @param message FileAuthRes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$FileAuthRes, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified FileAuthRes message, length delimited. Does not implicitly {@link api.FileAuthRes.verify|verify} messages. + * @param message FileAuthRes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$FileAuthRes, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a FileAuthRes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileAuthRes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$FileAuthRes; + + /** + * Decodes a FileAuthRes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileAuthRes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$FileAuthRes; + + /** + * Verifies a FileAuthRes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a FileAuthRes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileAuthRes + */ + static fromObject(object: { + [k: string]: any, + }): api$FileAuthRes; + + /** + * Creates a plain object from a FileAuthRes message. Also converts values to other types if specified. + * @param message FileAuthRes + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$FileAuthRes, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this FileAuthRes to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ListObjects. + */ +declare type api$IListObjects = {| + /** + * ListObjects prefix + */ + prefix?: string | null, +|}; + +/** + * Represents a ListObjects. + */ +declare class api$ListObjects { + /** + * Constructs a new ListObjects. + * @param [properties] Properties to set + */ + constructor(properties?: api$IListObjects): this; + + /** + * ListObjects prefix. + */ + prefix: string; + + /** + * Creates a new ListObjects instance using the specified properties. + * @param [properties] Properties to set + * @returns ListObjects instance + */ + static create(properties?: api$IListObjects): api$ListObjects; + + /** + * Encodes the specified ListObjects message. Does not implicitly {@link api.ListObjects.verify|verify} messages. + * @param message ListObjects message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ListObjects, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ListObjects message, length delimited. Does not implicitly {@link api.ListObjects.verify|verify} messages. + * @param message ListObjects message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ListObjects, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ListObjects message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListObjects + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ListObjects; + + /** + * Decodes a ListObjects message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListObjects + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$ListObjects; + + /** + * Verifies a ListObjects message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ListObjects message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListObjects + */ + static fromObject(object: { + [k: string]: any, + }): api$ListObjects; + + /** + * Creates a plain object from a ListObjects message. Also converts values to other types if specified. + * @param message ListObjects + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ListObjects, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ListObjects to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ListObjectsResp. + */ +declare type api$IListObjectsResp = {| + /** + * ListObjectsResp objects + */ + objects?: string[] | null, +|}; + +/** + * Represents a ListObjectsResp. + */ +declare class api$ListObjectsResp { + /** + * Constructs a new ListObjectsResp. + * @param [properties] Properties to set + */ + constructor(properties?: api$IListObjectsResp): this; + + /** + * ListObjectsResp objects. + */ + objects: string[]; + + /** + * Creates a new ListObjectsResp instance using the specified properties. + * @param [properties] Properties to set + * @returns ListObjectsResp instance + */ + static create(properties?: api$IListObjectsResp): api$ListObjectsResp; + + /** + * Encodes the specified ListObjectsResp message. Does not implicitly {@link api.ListObjectsResp.verify|verify} messages. + * @param message ListObjectsResp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ListObjectsResp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ListObjectsResp message, length delimited. Does not implicitly {@link api.ListObjectsResp.verify|verify} messages. + * @param message ListObjectsResp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ListObjectsResp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ListObjectsResp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListObjectsResp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ListObjectsResp; + + /** + * Decodes a ListObjectsResp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListObjectsResp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$ListObjectsResp; + + /** + * Verifies a ListObjectsResp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ListObjectsResp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListObjectsResp + */ + static fromObject(object: { + [k: string]: any, + }): api$ListObjectsResp; + + /** + * Creates a plain object from a ListObjectsResp message. Also converts values to other types if specified. + * @param message ListObjectsResp + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ListObjectsResp, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ListObjectsResp to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Disconnect. + */ +declare type api$IDisconnect = {| + /** + * Disconnect error + */ + error?: string | null, +|}; + +/** + * Represents a Disconnect. + */ +declare class api$Disconnect { + /** + * Constructs a new Disconnect. + * @param [properties] Properties to set + */ + constructor(properties?: api$IDisconnect): this; + + /** + * Disconnect error. + */ + error: string; + + /** + * Creates a new Disconnect instance using the specified properties. + * @param [properties] Properties to set + * @returns Disconnect instance + */ + static create(properties?: api$IDisconnect): api$Disconnect; + + /** + * Encodes the specified Disconnect message. Does not implicitly {@link api.Disconnect.verify|verify} messages. + * @param message Disconnect message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Disconnect, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Disconnect message, length delimited. Does not implicitly {@link api.Disconnect.verify|verify} messages. + * @param message Disconnect message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Disconnect, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Disconnect message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Disconnect + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Disconnect; + + /** + * Decodes a Disconnect message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Disconnect + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Disconnect; + + /** + * Verifies a Disconnect message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Disconnect message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Disconnect + */ + static fromObject(object: { + [k: string]: any, + }): api$Disconnect; + + /** + * Creates a plain object from a Disconnect message. Also converts values to other types if specified. + * @param message Disconnect + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Disconnect, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Disconnect to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Send. + */ +declare type api$ISend = {| + /** + * Send buff + */ + buff?: Uint8Array | null, +|}; + +/** + * Represents a Send. + */ +declare class api$Send { + /** + * Constructs a new Send. + * @param [properties] Properties to set + */ + constructor(properties?: api$ISend): this; + + /** + * Send buff. + */ + buff: Uint8Array; + + /** + * Creates a new Send instance using the specified properties. + * @param [properties] Properties to set + * @returns Send instance + */ + static create(properties?: api$ISend): api$Send; + + /** + * Encodes the specified Send message. Does not implicitly {@link api.Send.verify|verify} messages. + * @param message Send message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$Send, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Send message, length delimited. Does not implicitly {@link api.Send.verify|verify} messages. + * @param message Send message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Send, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Send message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Send + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Send; + + /** + * Decodes a Send message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Send + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Send; + + /** + * Verifies a Send message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Send message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Send + */ + static fromObject(object: { + [k: string]: any, + }): api$Send; + + /** + * Creates a plain object from a Send message. Also converts values to other types if specified. + * @param message Send + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Send, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Send to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Recv. + */ +declare type api$IRecv = {| + /** + * Recv buff + */ + buff?: Uint8Array | null, +|}; + +/** + * Represents a Recv. + */ +declare class api$Recv { + /** + * Constructs a new Recv. + * @param [properties] Properties to set + */ + constructor(properties?: api$IRecv): this; + + /** + * Recv buff. + */ + buff: Uint8Array; + + /** + * Creates a new Recv instance using the specified properties. + * @param [properties] Properties to set + * @returns Recv instance + */ + static create(properties?: api$IRecv): api$Recv; + + /** + * Encodes the specified Recv message. Does not implicitly {@link api.Recv.verify|verify} messages. + * @param message Recv message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$Recv, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Recv message, length delimited. Does not implicitly {@link api.Recv.verify|verify} messages. + * @param message Recv message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Recv, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Recv message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Recv + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Recv; + + /** + * Decodes a Recv message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Recv + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Recv; + + /** + * Verifies a Recv message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Recv message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Recv + */ + static fromObject(object: { + [k: string]: any, + }): api$Recv; + + /** + * Creates a plain object from a Recv message. Also converts values to other types if specified. + * @param message Recv + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Recv, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Recv to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Connect. + */ +declare type api$IConnect = {| + /** + * Connect proto + */ + proto?: string | null, + + /** + * Connect addr + */ + addr?: string | null, +|}; + +/** + * Represents a Connect. + */ +declare class api$Connect { + /** + * Constructs a new Connect. + * @param [properties] Properties to set + */ + constructor(properties?: api$IConnect): this; + + /** + * Connect proto. + */ + proto: string; + + /** + * Connect addr. + */ + addr: string; + + /** + * Creates a new Connect instance using the specified properties. + * @param [properties] Properties to set + * @returns Connect instance + */ + static create(properties?: api$IConnect): api$Connect; + + /** + * Encodes the specified Connect message. Does not implicitly {@link api.Connect.verify|verify} messages. + * @param message Connect message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Connect, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Connect message, length delimited. Does not implicitly {@link api.Connect.verify|verify} messages. + * @param message Connect message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Connect, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Connect message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Connect + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Connect; + + /** + * Decodes a Connect message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Connect + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Connect; + + /** + * Verifies a Connect message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Connect message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Connect + */ + static fromObject(object: { + [k: string]: any, + }): api$Connect; + + /** + * Creates a plain object from a Connect message. Also converts values to other types if specified. + * @param message Connect + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Connect, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Connect to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Hint. + */ +declare type api$IHint = {| + /** + * Hint text + */ + text?: string | null, +|}; + +/** + * Represents a Hint. + */ +declare class api$Hint { + /** + * Constructs a new Hint. + * @param [properties] Properties to set + */ + constructor(properties?: api$IHint): this; + + /** + * Hint text. + */ + text: string; + + /** + * Creates a new Hint instance using the specified properties. + * @param [properties] Properties to set + * @returns Hint instance + */ + static create(properties?: api$IHint): api$Hint; + + /** + * Encodes the specified Hint message. Does not implicitly {@link api.Hint.verify|verify} messages. + * @param message Hint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$Hint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Hint message, length delimited. Does not implicitly {@link api.Hint.verify|verify} messages. + * @param message Hint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Hint, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Hint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Hint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Hint; + + /** + * Decodes a Hint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Hint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Hint; + + /** + * Verifies a Hint message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Hint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Hint + */ + static fromObject(object: { + [k: string]: any, + }): api$Hint; + + /** + * Creates a plain object from a Hint message. Also converts values to other types if specified. + * @param message Hint + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Hint, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Hint to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Ping. + */ +declare type api$IPing = {||}; + +/** + * Represents a Ping. + */ +declare class api$Ping { + /** + * Constructs a new Ping. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPing): this; + + /** + * Creates a new Ping instance using the specified properties. + * @param [properties] Properties to set + * @returns Ping instance + */ + static create(properties?: api$IPing): api$Ping; + + /** + * Encodes the specified Ping message. Does not implicitly {@link api.Ping.verify|verify} messages. + * @param message Ping message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$Ping, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Ping message, length delimited. Does not implicitly {@link api.Ping.verify|verify} messages. + * @param message Ping message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Ping, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Ping message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Ping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Ping; + + /** + * Decodes a Ping message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Ping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Ping; + + /** + * Verifies a Ping message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Ping message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Ping + */ + static fromObject(object: { + [k: string]: any, + }): api$Ping; + + /** + * Creates a plain object from a Ping message. Also converts values to other types if specified. + * @param message Ping + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Ping, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Ping to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Pong. + */ +declare type api$IPong = {||}; + +/** + * Represents a Pong. + */ +declare class api$Pong { + /** + * Constructs a new Pong. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPong): this; + + /** + * Creates a new Pong instance using the specified properties. + * @param [properties] Properties to set + * @returns Pong instance + */ + static create(properties?: api$IPong): api$Pong; + + /** + * Encodes the specified Pong message. Does not implicitly {@link api.Pong.verify|verify} messages. + * @param message Pong message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$Pong, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Pong message, length delimited. Does not implicitly {@link api.Pong.verify|verify} messages. + * @param message Pong message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Pong, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Pong message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Pong + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Pong; + + /** + * Decodes a Pong message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Pong + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Pong; + + /** + * Verifies a Pong message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Pong message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Pong + */ + static fromObject(object: { + [k: string]: any, + }): api$Pong; + + /** + * Creates a plain object from a Pong message. Also converts values to other types if specified. + * @param message Pong + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Pong, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Pong to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Hello. + */ +declare type api$IHello = {| + /** + * Hello userid + */ + userid?: number | null, + + /** + * Hello username + */ + username?: string | null, + + /** + * Hello token + */ + token?: string | null, +|}; + +/** + * Represents a Hello. + */ +declare class api$Hello { + /** + * Constructs a new Hello. + * @param [properties] Properties to set + */ + constructor(properties?: api$IHello): this; + + /** + * Hello userid. + */ + userid: number; + + /** + * Hello username. + */ + username: string; + + /** + * Hello token. + */ + token: string; + + /** + * Creates a new Hello instance using the specified properties. + * @param [properties] Properties to set + * @returns Hello instance + */ + static create(properties?: api$IHello): api$Hello; + + /** + * Encodes the specified Hello message. Does not implicitly {@link api.Hello.verify|verify} messages. + * @param message Hello message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Hello, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Hello message, length delimited. Does not implicitly {@link api.Hello.verify|verify} messages. + * @param message Hello message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Hello, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Hello message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Hello + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Hello; + + /** + * Decodes a Hello message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Hello + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Hello; + + /** + * Verifies a Hello message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Hello message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Hello + */ + static fromObject(object: { + [k: string]: any, + }): api$Hello; + + /** + * Creates a plain object from a Hello message. Also converts values to other types if specified. + * @param message Hello + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Hello, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Hello to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Goodbye. + */ +declare type api$IGoodbye = {||}; + +/** + * Represents a Goodbye. + */ +declare class api$Goodbye { + /** + * Constructs a new Goodbye. + * @param [properties] Properties to set + */ + constructor(properties?: api$IGoodbye): this; + + /** + * Creates a new Goodbye instance using the specified properties. + * @param [properties] Properties to set + * @returns Goodbye instance + */ + static create(properties?: api$IGoodbye): api$Goodbye; + + /** + * Encodes the specified Goodbye message. Does not implicitly {@link api.Goodbye.verify|verify} messages. + * @param message Goodbye message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Goodbye, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Goodbye message, length delimited. Does not implicitly {@link api.Goodbye.verify|verify} messages. + * @param message Goodbye message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Goodbye, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Goodbye message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Goodbye + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Goodbye; + + /** + * Decodes a Goodbye message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Goodbye + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Goodbye; + + /** + * Verifies a Goodbye message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Goodbye message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Goodbye + */ + static fromObject(object: { + [k: string]: any, + }): api$Goodbye; + + /** + * Creates a plain object from a Goodbye message. Also converts values to other types if specified. + * @param message Goodbye + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Goodbye, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Goodbye to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * State enum. + */ + +declare var api$State: {| + +Stopped: 0, // 0 + +Running: 1, // 1 +|}; + +/** + * Properties of a CheckChanges. + */ +declare type api$ICheckChanges = {||}; + +/** + * Represents a CheckChanges. + */ +declare class api$CheckChanges { + /** + * Constructs a new CheckChanges. + * @param [properties] Properties to set + */ + constructor(properties?: api$ICheckChanges): this; + + /** + * Creates a new CheckChanges instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckChanges instance + */ + static create(properties?: api$ICheckChanges): api$CheckChanges; + + /** + * Encodes the specified CheckChanges message. Does not implicitly {@link api.CheckChanges.verify|verify} messages. + * @param message CheckChanges message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$CheckChanges, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified CheckChanges message, length delimited. Does not implicitly {@link api.CheckChanges.verify|verify} messages. + * @param message CheckChanges message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$CheckChanges, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a CheckChanges message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckChanges + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$CheckChanges; + + /** + * Decodes a CheckChanges message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckChanges + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$CheckChanges; + + /** + * Verifies a CheckChanges message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a CheckChanges message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckChanges + */ + static fromObject(object: { + [k: string]: any, + }): api$CheckChanges; + + /** + * Creates a plain object from a CheckChanges message. Also converts values to other types if specified. + * @param message CheckChanges + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$CheckChanges, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this CheckChanges to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of an EnsurePackages. + */ +declare type api$IEnsurePackages = {| + /** + * EnsurePackages install + */ + install?: boolean | null, + + /** + * EnsurePackages file + */ + file?: api$File | api$IFile | null, +|}; + +/** + * Represents an EnsurePackages. + */ +declare class api$EnsurePackages { + /** + * Constructs a new EnsurePackages. + * @param [properties] Properties to set + */ + constructor(properties?: api$IEnsurePackages): this; + + /** + * EnsurePackages install. + */ + install: boolean; + + /** + * EnsurePackages file. + */ + file?: api$File | null; + + /** + * Creates a new EnsurePackages instance using the specified properties. + * @param [properties] Properties to set + * @returns EnsurePackages instance + */ + static create(properties?: api$IEnsurePackages): api$EnsurePackages; + + /** + * Encodes the specified EnsurePackages message. Does not implicitly {@link api.EnsurePackages.verify|verify} messages. + * @param message EnsurePackages message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$EnsurePackages, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified EnsurePackages message, length delimited. Does not implicitly {@link api.EnsurePackages.verify|verify} messages. + * @param message EnsurePackages message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$EnsurePackages, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an EnsurePackages message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnsurePackages + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$EnsurePackages; + + /** + * Decodes an EnsurePackages message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnsurePackages + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$EnsurePackages; + + /** + * Verifies an EnsurePackages message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an EnsurePackages message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnsurePackages + */ + static fromObject(object: { + [k: string]: any, + }): api$EnsurePackages; + + /** + * Creates a plain object from an EnsurePackages message. Also converts values to other types if specified. + * @param message EnsurePackages + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$EnsurePackages, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this EnsurePackages to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Start. + */ +declare type api$IStart = {||}; + +/** + * Represents a Start. + */ +declare class api$Start { + /** + * Constructs a new Start. + * @param [properties] Properties to set + */ + constructor(properties?: api$IStart): this; + + /** + * Creates a new Start instance using the specified properties. + * @param [properties] Properties to set + * @returns Start instance + */ + static create(properties?: api$IStart): api$Start; + + /** + * Encodes the specified Start message. Does not implicitly {@link api.Start.verify|verify} messages. + * @param message Start message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Start, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Start message, length delimited. Does not implicitly {@link api.Start.verify|verify} messages. + * @param message Start message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Start, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Start message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Start + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Start; + + /** + * Decodes a Start message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Start + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Start; + + /** + * Verifies a Start message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Start message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Start + */ + static fromObject(object: { + [k: string]: any, + }): api$Start; + + /** + * Creates a plain object from a Start message. Also converts values to other types if specified. + * @param message Start + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Start, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Start to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a DebugStatus. + */ +declare type api$IDebugStatus = {| + /** + * DebugStatus done + */ + done?: boolean | null, + + /** + * DebugStatus stack + */ + stack?: (api$StackFrame | api$IStackFrame)[] | null, +|}; + +/** + * Represents a DebugStatus. + */ +declare class api$DebugStatus { + /** + * Constructs a new DebugStatus. + * @param [properties] Properties to set + */ + constructor(properties?: api$IDebugStatus): this; + + /** + * DebugStatus done. + */ + done: boolean; + + /** + * DebugStatus stack. + */ + stack: api$StackFrame[]; + + /** + * Creates a new DebugStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns DebugStatus instance + */ + static create(properties?: api$IDebugStatus): api$DebugStatus; + + /** + * Encodes the specified DebugStatus message. Does not implicitly {@link api.DebugStatus.verify|verify} messages. + * @param message DebugStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$DebugStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified DebugStatus message, length delimited. Does not implicitly {@link api.DebugStatus.verify|verify} messages. + * @param message DebugStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$DebugStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a DebugStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DebugStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$DebugStatus; + + /** + * Decodes a DebugStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DebugStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$DebugStatus; + + /** + * Verifies a DebugStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a DebugStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DebugStatus + */ + static fromObject(object: { + [k: string]: any, + }): api$DebugStatus; + + /** + * Creates a plain object from a DebugStatus message. Also converts values to other types if specified. + * @param message DebugStatus + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$DebugStatus, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this DebugStatus to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a StackFrame. + */ +declare type api$IStackFrame = {| + /** + * StackFrame function + */ + function?: string | null, + + /** + * StackFrame line + */ + line?: number | null, +|}; + +/** + * Represents a StackFrame. + */ +declare class api$StackFrame { + /** + * Constructs a new StackFrame. + * @param [properties] Properties to set + */ + constructor(properties?: api$IStackFrame): this; + + /** + * StackFrame function. + */ + function: string; + + /** + * StackFrame line. + */ + line: number; + + /** + * Creates a new StackFrame instance using the specified properties. + * @param [properties] Properties to set + * @returns StackFrame instance + */ + static create(properties?: api$IStackFrame): api$StackFrame; + + /** + * Encodes the specified StackFrame message. Does not implicitly {@link api.StackFrame.verify|verify} messages. + * @param message StackFrame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$StackFrame, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified StackFrame message, length delimited. Does not implicitly {@link api.StackFrame.verify|verify} messages. + * @param message StackFrame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$StackFrame, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a StackFrame message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StackFrame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$StackFrame; + + /** + * Decodes a StackFrame message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StackFrame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$StackFrame; + + /** + * Verifies a StackFrame message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a StackFrame message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StackFrame + */ + static fromObject(object: { + [k: string]: any, + }): api$StackFrame; + + /** + * Creates a plain object from a StackFrame message. Also converts values to other types if specified. + * @param message StackFrame + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$StackFrame, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this StackFrame to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ContainedTest. + */ +declare type api$IContainedTest = {| + /** + * ContainedTest suite + */ + suite?: api$File | api$IFile | null, + + /** + * ContainedTest project + */ + project?: (api$File | api$IFile)[] | null, +|}; + +/** + * Represents a ContainedTest. + */ +declare class api$ContainedTest { + /** + * Constructs a new ContainedTest. + * @param [properties] Properties to set + */ + constructor(properties?: api$IContainedTest): this; + + /** + * ContainedTest suite. + */ + suite?: api$File | null; + + /** + * ContainedTest project. + */ + project: api$File[]; + + /** + * Creates a new ContainedTest instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainedTest instance + */ + static create(properties?: api$IContainedTest): api$ContainedTest; + + /** + * Encodes the specified ContainedTest message. Does not implicitly {@link api.ContainedTest.verify|verify} messages. + * @param message ContainedTest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ContainedTest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ContainedTest message, length delimited. Does not implicitly {@link api.ContainedTest.verify|verify} messages. + * @param message ContainedTest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ContainedTest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ContainedTest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainedTest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ContainedTest; + + /** + * Decodes a ContainedTest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContainedTest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$ContainedTest; + + /** + * Verifies a ContainedTest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ContainedTest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContainedTest + */ + static fromObject(object: { + [k: string]: any, + }): api$ContainedTest; + + /** + * Creates a plain object from a ContainedTest message. Also converts values to other types if specified. + * @param message ContainedTest + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ContainedTest, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ContainedTest to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a TestResult. + */ +declare type api$ITestResult = {| + /** + * TestResult passed + */ + passed?: boolean | null, + + /** + * TestResult stderr + */ + stderr?: string | null, + + /** + * TestResult fails + */ + fails?: (api$TestFailure | api$ITestFailure)[] | null, +|}; + +/** + * Represents a TestResult. + */ +declare class api$TestResult { + /** + * Constructs a new TestResult. + * @param [properties] Properties to set + */ + constructor(properties?: api$ITestResult): this; + + /** + * TestResult passed. + */ + passed: boolean; + + /** + * TestResult stderr. + */ + stderr: string; + + /** + * TestResult fails. + */ + fails: api$TestFailure[]; + + /** + * Creates a new TestResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TestResult instance + */ + static create(properties?: api$ITestResult): api$TestResult; + + /** + * Encodes the specified TestResult message. Does not implicitly {@link api.TestResult.verify|verify} messages. + * @param message TestResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$TestResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified TestResult message, length delimited. Does not implicitly {@link api.TestResult.verify|verify} messages. + * @param message TestResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$TestResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a TestResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$TestResult; + + /** + * Decodes a TestResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$TestResult; + + /** + * Verifies a TestResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a TestResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestResult + */ + static fromObject(object: { + [k: string]: any, + }): api$TestResult; + + /** + * Creates a plain object from a TestResult message. Also converts values to other types if specified. + * @param message TestResult + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$TestResult, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this TestResult to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a TestFailure. + */ +declare type api$ITestFailure = {| + /** + * TestFailure name + */ + name?: string | null, + + /** + * TestFailure trace + */ + trace?: string | null, +|}; + +/** + * Represents a TestFailure. + */ +declare class api$TestFailure { + /** + * Constructs a new TestFailure. + * @param [properties] Properties to set + */ + constructor(properties?: api$ITestFailure): this; + + /** + * TestFailure name. + */ + name: string; + + /** + * TestFailure trace. + */ + trace: string; + + /** + * Creates a new TestFailure instance using the specified properties. + * @param [properties] Properties to set + * @returns TestFailure instance + */ + static create(properties?: api$ITestFailure): api$TestFailure; + + /** + * Encodes the specified TestFailure message. Does not implicitly {@link api.TestFailure.verify|verify} messages. + * @param message TestFailure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$TestFailure, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified TestFailure message, length delimited. Does not implicitly {@link api.TestFailure.verify|verify} messages. + * @param message TestFailure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$TestFailure, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a TestFailure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestFailure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$TestFailure; + + /** + * Decodes a TestFailure message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestFailure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$TestFailure; + + /** + * Verifies a TestFailure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a TestFailure message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestFailure + */ + static fromObject(object: { + [k: string]: any, + }): api$TestFailure; + + /** + * Creates a plain object from a TestFailure message. Also converts values to other types if specified. + * @param message TestFailure + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$TestFailure, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this TestFailure to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ResizeTerm. + */ +declare type api$IResizeTerm = {| + /** + * ResizeTerm rows + */ + rows?: number | null, + + /** + * ResizeTerm cols + */ + cols?: number | null, +|}; + +/** + * Represents a ResizeTerm. + */ +declare class api$ResizeTerm { + /** + * Constructs a new ResizeTerm. + * @param [properties] Properties to set + */ + constructor(properties?: api$IResizeTerm): this; + + /** + * ResizeTerm rows. + */ + rows: number; + + /** + * ResizeTerm cols. + */ + cols: number; + + /** + * Creates a new ResizeTerm instance using the specified properties. + * @param [properties] Properties to set + * @returns ResizeTerm instance + */ + static create(properties?: api$IResizeTerm): api$ResizeTerm; + + /** + * Encodes the specified ResizeTerm message. Does not implicitly {@link api.ResizeTerm.verify|verify} messages. + * @param message ResizeTerm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ResizeTerm, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ResizeTerm message, length delimited. Does not implicitly {@link api.ResizeTerm.verify|verify} messages. + * @param message ResizeTerm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ResizeTerm, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ResizeTerm message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResizeTerm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ResizeTerm; + + /** + * Decodes a ResizeTerm message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResizeTerm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$ResizeTerm; + + /** + * Verifies a ResizeTerm message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ResizeTerm message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResizeTerm + */ + static fromObject(object: { + [k: string]: any, + }): api$ResizeTerm; + + /** + * Creates a plain object from a ResizeTerm message. Also converts values to other types if specified. + * @param message ResizeTerm + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ResizeTerm, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ResizeTerm to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a SaneTerm. + */ +declare type api$ISaneTerm = {||}; + +/** + * Represents a SaneTerm. + */ +declare class api$SaneTerm { + /** + * Constructs a new SaneTerm. + * @param [properties] Properties to set + */ + constructor(properties?: api$ISaneTerm): this; + + /** + * Creates a new SaneTerm instance using the specified properties. + * @param [properties] Properties to set + * @returns SaneTerm instance + */ + static create(properties?: api$ISaneTerm): api$SaneTerm; + + /** + * Encodes the specified SaneTerm message. Does not implicitly {@link api.SaneTerm.verify|verify} messages. + * @param message SaneTerm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$SaneTerm, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified SaneTerm message, length delimited. Does not implicitly {@link api.SaneTerm.verify|verify} messages. + * @param message SaneTerm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$SaneTerm, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a SaneTerm message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SaneTerm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$SaneTerm; + + /** + * Decodes a SaneTerm message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SaneTerm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$SaneTerm; + + /** + * Verifies a SaneTerm message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a SaneTerm message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SaneTerm + */ + static fromObject(object: { + [k: string]: any, + }): api$SaneTerm; + + /** + * Creates a plain object from a SaneTerm message. Also converts values to other types if specified. + * @param message SaneTerm + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$SaneTerm, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this SaneTerm to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a LintResults. + */ +declare type api$ILintResults = {| + /** + * LintResults results + */ + results?: (api$LintResult | api$ILintResult)[] | null, +|}; + +/** + * Represents a LintResults. + */ +declare class api$LintResults { + /** + * Constructs a new LintResults. + * @param [properties] Properties to set + */ + constructor(properties?: api$ILintResults): this; + + /** + * LintResults results. + */ + results: api$LintResult[]; + + /** + * Creates a new LintResults instance using the specified properties. + * @param [properties] Properties to set + * @returns LintResults instance + */ + static create(properties?: api$ILintResults): api$LintResults; + + /** + * Encodes the specified LintResults message. Does not implicitly {@link api.LintResults.verify|verify} messages. + * @param message LintResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$LintResults, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified LintResults message, length delimited. Does not implicitly {@link api.LintResults.verify|verify} messages. + * @param message LintResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$LintResults, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a LintResults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LintResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$LintResults; + + /** + * Decodes a LintResults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LintResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$LintResults; + + /** + * Verifies a LintResults message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a LintResults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LintResults + */ + static fromObject(object: { + [k: string]: any, + }): api$LintResults; + + /** + * Creates a plain object from a LintResults message. Also converts values to other types if specified. + * @param message LintResults + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$LintResults, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this LintResults to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a LintResult. + */ +declare type api$ILintResult = {| + /** + * LintResult text + */ + text?: string | null, + + /** + * LintResult row + */ + row?: number | null, + + /** + * LintResult column + */ + column?: number | null, + + /** + * LintResult type + */ + type?: string | null, +|}; + +/** + * Represents a LintResult. + */ +declare class api$LintResult { + /** + * Constructs a new LintResult. + * @param [properties] Properties to set + */ + constructor(properties?: api$ILintResult): this; + + /** + * LintResult text. + */ + text: string; + + /** + * LintResult row. + */ + row: number; + + /** + * LintResult column. + */ + column: number; + + /** + * LintResult type. + */ + type: string; + + /** + * Creates a new LintResult instance using the specified properties. + * @param [properties] Properties to set + * @returns LintResult instance + */ + static create(properties?: api$ILintResult): api$LintResult; + + /** + * Encodes the specified LintResult message. Does not implicitly {@link api.LintResult.verify|verify} messages. + * @param message LintResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$LintResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified LintResult message, length delimited. Does not implicitly {@link api.LintResult.verify|verify} messages. + * @param message LintResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$LintResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a LintResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LintResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$LintResult; + + /** + * Decodes a LintResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LintResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$LintResult; + + /** + * Verifies a LintResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a LintResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LintResult + */ + static fromObject(object: { + [k: string]: any, + }): api$LintResult; + + /** + * Creates a plain object from a LintResult message. Also converts values to other types if specified. + * @param message LintResult + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$LintResult, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this LintResult to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a OK. + */ +declare type api$IOK = {||}; + +/** + * Represents a OK. + */ +declare class api$OK { + /** + * Constructs a new OK. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOK): this; + + /** + * Creates a new OK instance using the specified properties. + * @param [properties] Properties to set + * @returns OK instance + */ + static create(properties?: api$IOK): api$OK; + + /** + * Encodes the specified OK message. Does not implicitly {@link api.OK.verify|verify} messages. + * @param message OK message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$OK, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OK message, length delimited. Does not implicitly {@link api.OK.verify|verify} messages. + * @param message OK message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OK, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a OK message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OK + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode(reader: $protobuf.Reader | Uint8Array, length?: number): api$OK; + + /** + * Decodes a OK message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OK + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$OK; + + /** + * Verifies a OK message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a OK message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OK + */ + static fromObject(object: { + [k: string]: any, + }): api$OK; + + /** + * Creates a plain object from a OK message. Also converts values to other types if specified. + * @param message OK + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OK, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OK to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Move. + */ +declare type api$IMove = {| + /** + * Move oldPath + */ + oldPath?: string | null, + + /** + * Move newPath + */ + newPath?: string | null, +|}; + +/** + * Represents a Move. + */ +declare class api$Move { + /** + * Constructs a new Move. + * @param [properties] Properties to set + */ + constructor(properties?: api$IMove): this; + + /** + * Move oldPath. + */ + oldPath: string; + + /** + * Move newPath. + */ + newPath: string; + + /** + * Creates a new Move instance using the specified properties. + * @param [properties] Properties to set + * @returns Move instance + */ + static create(properties?: api$IMove): api$Move; + + /** + * Encodes the specified Move message. Does not implicitly {@link api.Move.verify|verify} messages. + * @param message Move message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$Move, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Move message, length delimited. Does not implicitly {@link api.Move.verify|verify} messages. + * @param message Move message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Move, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Move message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Move + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Move; + + /** + * Decodes a Move message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Move + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Move; + + /** + * Verifies a Move message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Move message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Move + */ + static fromObject(object: { + [k: string]: any, + }): api$Move; + + /** + * Creates a plain object from a Move message. Also converts values to other types if specified. + * @param message Move + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Move, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Move to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Files. + */ +declare type api$IFiles = {| + /** + * Files files + */ + files?: (api$File | api$IFile)[] | null, +|}; + +/** + * Represents a Files. + */ +declare class api$Files { + /** + * Constructs a new Files. + * @param [properties] Properties to set + */ + constructor(properties?: api$IFiles): this; + + /** + * Files files. + */ + files: api$File[]; + + /** + * Creates a new Files instance using the specified properties. + * @param [properties] Properties to set + * @returns Files instance + */ + static create(properties?: api$IFiles): api$Files; + + /** + * Encodes the specified Files message. Does not implicitly {@link api.Files.verify|verify} messages. + * @param message Files message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Files, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Files message, length delimited. Does not implicitly {@link api.Files.verify|verify} messages. + * @param message Files message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Files, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Files message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Files + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Files; + + /** + * Decodes a Files message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Files + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Files; + + /** + * Verifies a Files message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Files message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Files + */ + static fromObject(object: { + [k: string]: any, + }): api$Files; + + /** + * Creates a plain object from a Files message. Also converts values to other types if specified. + * @param message Files + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Files, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Files to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a File. + */ +declare type api$IFile = {| + /** + * File path + */ + path?: string | null, + + /** + * File type + */ + type?: $Values | null, + + /** + * File content + */ + content?: Uint8Array | null, +|}; + +/** + * Represents a File. + */ +declare class api$File { + /** + * Constructs a new File. + * @param [properties] Properties to set + */ + constructor(properties?: api$IFile): this; + + /** + * File path. + */ + path: string; + + /** + * File type. + */ + type: $Values; + + /** + * File content. + */ + content: Uint8Array; + + /** + * Creates a new File instance using the specified properties. + * @param [properties] Properties to set + * @returns File instance + */ + static create(properties?: api$IFile): api$File; + + /** + * Encodes the specified File message. Does not implicitly {@link api.File.verify|verify} messages. + * @param message File message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$File, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified File message, length delimited. Does not implicitly {@link api.File.verify|verify} messages. + * @param message File message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$File, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a File message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns File + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$File; + + /** + * Decodes a File message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns File + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$File; + + /** + * Verifies a File message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a File message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns File + */ + static fromObject(object: { + [k: string]: any, + }): api$File; + + /** + * Creates a plain object from a File message. Also converts values to other types if specified. + * @param message File + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$File, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this File to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$File: {| + Type: typeof api$File$Type, +|}; + +/** + * Type enum. + */ + +declare var api$File$Type: {| + +REGULAR: 0, // 0 + +DIRECTORY: 1, // 1 +|}; + +/** + * Properties of a Clear. + */ +declare type api$IClear = {||}; + +/** + * Represents a Clear. + */ +declare class api$Clear { + /** + * Constructs a new Clear. + * @param [properties] Properties to set + */ + constructor(properties?: api$IClear): this; + + /** + * Creates a new Clear instance using the specified properties. + * @param [properties] Properties to set + * @returns Clear instance + */ + static create(properties?: api$IClear): api$Clear; + + /** + * Encodes the specified Clear message. Does not implicitly {@link api.Clear.verify|verify} messages. + * @param message Clear message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Clear, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Clear message, length delimited. Does not implicitly {@link api.Clear.verify|verify} messages. + * @param message Clear message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Clear, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Clear message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Clear + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Clear; + + /** + * Decodes a Clear message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Clear + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Clear; + + /** + * Verifies a Clear message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Clear message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Clear + */ + static fromObject(object: { + [k: string]: any, + }): api$Clear; + + /** + * Creates a plain object from a Clear message. Also converts values to other types if specified. + * @param message Clear + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Clear, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Clear to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Toast. + */ +declare type api$IToast = {| + /** + * Toast text + */ + text?: string | null, +|}; + +/** + * Represents a Toast. + */ +declare class api$Toast { + /** + * Constructs a new Toast. + * @param [properties] Properties to set + */ + constructor(properties?: api$IToast): this; + + /** + * Toast text. + */ + text: string; + + /** + * Creates a new Toast instance using the specified properties. + * @param [properties] Properties to set + * @returns Toast instance + */ + static create(properties?: api$IToast): api$Toast; + + /** + * Encodes the specified Toast message. Does not implicitly {@link api.Toast.verify|verify} messages. + * @param message Toast message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Toast, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Toast message, length delimited. Does not implicitly {@link api.Toast.verify|verify} messages. + * @param message Toast message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Toast, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Toast message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Toast + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Toast; + + /** + * Decodes a Toast message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Toast + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Toast; + + /** + * Verifies a Toast message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Toast message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Toast + */ + static fromObject(object: { + [k: string]: any, + }): api$Toast; + + /** + * Creates a plain object from a Toast message. Also converts values to other types if specified. + * @param message Toast + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Toast, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Toast to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Redirect. + */ +declare type api$IRedirect = {| + /** + * Redirect url + */ + url?: string | null, +|}; + +/** + * Represents a Redirect. + */ +declare class api$Redirect { + /** + * Constructs a new Redirect. + * @param [properties] Properties to set + */ + constructor(properties?: api$IRedirect): this; + + /** + * Redirect url. + */ + url: string; + + /** + * Creates a new Redirect instance using the specified properties. + * @param [properties] Properties to set + * @returns Redirect instance + */ + static create(properties?: api$IRedirect): api$Redirect; + + /** + * Encodes the specified Redirect message. Does not implicitly {@link api.Redirect.verify|verify} messages. + * @param message Redirect message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Redirect, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Redirect message, length delimited. Does not implicitly {@link api.Redirect.verify|verify} messages. + * @param message Redirect message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Redirect, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Redirect message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Redirect + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Redirect; + + /** + * Decodes a Redirect message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Redirect + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Redirect; + + /** + * Verifies a Redirect message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Redirect message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Redirect + */ + static fromObject(object: { + [k: string]: any, + }): api$Redirect; + + /** + * Creates a plain object from a Redirect message. Also converts values to other types if specified. + * @param message Redirect + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Redirect, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Redirect to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a RunMain. + */ +declare type api$IRunMain = {||}; + +/** + * Represents a RunMain. + */ +declare class api$RunMain { + /** + * Constructs a new RunMain. + * @param [properties] Properties to set + */ + constructor(properties?: api$IRunMain): this; + + /** + * Creates a new RunMain instance using the specified properties. + * @param [properties] Properties to set + * @returns RunMain instance + */ + static create(properties?: api$IRunMain): api$RunMain; + + /** + * Encodes the specified RunMain message. Does not implicitly {@link api.RunMain.verify|verify} messages. + * @param message RunMain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$RunMain, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified RunMain message, length delimited. Does not implicitly {@link api.RunMain.verify|verify} messages. + * @param message RunMain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$RunMain, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a RunMain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunMain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$RunMain; + + /** + * Decodes a RunMain message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunMain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$RunMain; + + /** + * Verifies a RunMain message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a RunMain message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunMain + */ + static fromObject(object: { + [k: string]: any, + }): api$RunMain; + + /** + * Creates a plain object from a RunMain message. Also converts values to other types if specified. + * @param message RunMain + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$RunMain, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this RunMain to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of an OpenChannel. + */ +declare type api$IOpenChannel = {| + /** + * OpenChannel service + */ + service?: string | null, + + /** + * OpenChannel name + */ + name?: string | null, + + /** + * OpenChannel action + */ + action?: $Values | null, + + /** + * OpenChannel id + */ + id?: number | null, +|}; + +/** + * Represents an OpenChannel. + */ +declare class api$OpenChannel { + /** + * Constructs a new OpenChannel. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOpenChannel): this; + + /** + * OpenChannel service. + */ + service: string; + + /** + * OpenChannel name. + */ + name: string; + + /** + * OpenChannel action. + */ + action: $Values; + + /** + * OpenChannel id. + */ + id: number; + + /** + * Creates a new OpenChannel instance using the specified properties. + * @param [properties] Properties to set + * @returns OpenChannel instance + */ + static create(properties?: api$IOpenChannel): api$OpenChannel; + + /** + * Encodes the specified OpenChannel message. Does not implicitly {@link api.OpenChannel.verify|verify} messages. + * @param message OpenChannel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OpenChannel, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OpenChannel message, length delimited. Does not implicitly {@link api.OpenChannel.verify|verify} messages. + * @param message OpenChannel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OpenChannel, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an OpenChannel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OpenChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OpenChannel; + + /** + * Decodes an OpenChannel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OpenChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$OpenChannel; + + /** + * Verifies an OpenChannel message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an OpenChannel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OpenChannel + */ + static fromObject(object: { + [k: string]: any, + }): api$OpenChannel; + + /** + * Creates a plain object from an OpenChannel message. Also converts values to other types if specified. + * @param message OpenChannel + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OpenChannel, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OpenChannel to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$OpenChannel: {| + Action: typeof api$OpenChannel$Action, +|}; + +/** + * Action enum. + */ + +declare var api$OpenChannel$Action: {| + +CREATE: 0, // 0 + +ATTACH: 1, // 1 + +ATTACH_OR_CREATE: 2, // 2 +|}; + +/** + * Properties of an OpenChannelRes. + */ +declare type api$IOpenChannelRes = {| + /** + * OpenChannelRes id + */ + id?: number | null, + + /** + * OpenChannelRes state + */ + state?: $Values | null, + + /** + * OpenChannelRes error + */ + error?: string | null, +|}; + +/** + * Represents an OpenChannelRes. + */ +declare class api$OpenChannelRes { + /** + * Constructs a new OpenChannelRes. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOpenChannelRes): this; + + /** + * OpenChannelRes id. + */ + id: number; + + /** + * OpenChannelRes state. + */ + state: $Values; + + /** + * OpenChannelRes error. + */ + error: string; + + /** + * Creates a new OpenChannelRes instance using the specified properties. + * @param [properties] Properties to set + * @returns OpenChannelRes instance + */ + static create(properties?: api$IOpenChannelRes): api$OpenChannelRes; + + /** + * Encodes the specified OpenChannelRes message. Does not implicitly {@link api.OpenChannelRes.verify|verify} messages. + * @param message OpenChannelRes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OpenChannelRes, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OpenChannelRes message, length delimited. Does not implicitly {@link api.OpenChannelRes.verify|verify} messages. + * @param message OpenChannelRes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OpenChannelRes, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an OpenChannelRes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OpenChannelRes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OpenChannelRes; + + /** + * Decodes an OpenChannelRes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OpenChannelRes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$OpenChannelRes; + + /** + * Verifies an OpenChannelRes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an OpenChannelRes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OpenChannelRes + */ + static fromObject(object: { + [k: string]: any, + }): api$OpenChannelRes; + + /** + * Creates a plain object from an OpenChannelRes message. Also converts values to other types if specified. + * @param message OpenChannelRes + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OpenChannelRes, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OpenChannelRes to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$OpenChannelRes: {| + State: typeof api$OpenChannelRes$State, +|}; + +/** + * State enum. + */ + +declare var api$OpenChannelRes$State: {| + +CREATED: 0, // 0 + +ATTACHED: 1, // 1 + +ERROR: 2, // 2 +|}; + +/** + * Properties of a CloseChannel. + */ +declare type api$ICloseChannel = {| + /** + * CloseChannel id + */ + id?: number | null, + + /** + * CloseChannel action + */ + action?: $Values | null, +|}; + +/** + * Represents a CloseChannel. + */ +declare class api$CloseChannel { + /** + * Constructs a new CloseChannel. + * @param [properties] Properties to set + */ + constructor(properties?: api$ICloseChannel): this; + + /** + * CloseChannel id. + */ + id: number; + + /** + * CloseChannel action. + */ + action: $Values; + + /** + * Creates a new CloseChannel instance using the specified properties. + * @param [properties] Properties to set + * @returns CloseChannel instance + */ + static create(properties?: api$ICloseChannel): api$CloseChannel; + + /** + * Encodes the specified CloseChannel message. Does not implicitly {@link api.CloseChannel.verify|verify} messages. + * @param message CloseChannel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$CloseChannel, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified CloseChannel message, length delimited. Does not implicitly {@link api.CloseChannel.verify|verify} messages. + * @param message CloseChannel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$CloseChannel, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a CloseChannel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloseChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$CloseChannel; + + /** + * Decodes a CloseChannel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CloseChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$CloseChannel; + + /** + * Verifies a CloseChannel message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a CloseChannel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CloseChannel + */ + static fromObject(object: { + [k: string]: any, + }): api$CloseChannel; + + /** + * Creates a plain object from a CloseChannel message. Also converts values to other types if specified. + * @param message CloseChannel + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$CloseChannel, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this CloseChannel to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$CloseChannel: {| + Action: typeof api$CloseChannel$Action, +|}; + +/** + * Action enum. + */ + +declare var api$CloseChannel$Action: {| + +DISCONNECT: 0, // 0 + +TRY_CLOSE: 1, // 1 + +CLOSE: 2, // 2 +|}; + +/** + * Properties of a CloseChannelRes. + */ +declare type api$ICloseChannelRes = {| + /** + * CloseChannelRes id + */ + id?: number | null, + + /** + * CloseChannelRes status + */ + status?: $Values | null, +|}; + +/** + * Represents a CloseChannelRes. + */ +declare class api$CloseChannelRes { + /** + * Constructs a new CloseChannelRes. + * @param [properties] Properties to set + */ + constructor(properties?: api$ICloseChannelRes): this; + + /** + * CloseChannelRes id. + */ + id: number; + + /** + * CloseChannelRes status. + */ + status: $Values; + + /** + * Creates a new CloseChannelRes instance using the specified properties. + * @param [properties] Properties to set + * @returns CloseChannelRes instance + */ + static create(properties?: api$ICloseChannelRes): api$CloseChannelRes; + + /** + * Encodes the specified CloseChannelRes message. Does not implicitly {@link api.CloseChannelRes.verify|verify} messages. + * @param message CloseChannelRes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$CloseChannelRes, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified CloseChannelRes message, length delimited. Does not implicitly {@link api.CloseChannelRes.verify|verify} messages. + * @param message CloseChannelRes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$CloseChannelRes, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a CloseChannelRes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloseChannelRes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$CloseChannelRes; + + /** + * Decodes a CloseChannelRes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CloseChannelRes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$CloseChannelRes; + + /** + * Verifies a CloseChannelRes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a CloseChannelRes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CloseChannelRes + */ + static fromObject(object: { + [k: string]: any, + }): api$CloseChannelRes; + + /** + * Creates a plain object from a CloseChannelRes message. Also converts values to other types if specified. + * @param message CloseChannelRes + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$CloseChannelRes, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this CloseChannelRes to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$CloseChannelRes: {| + Status: typeof api$CloseChannelRes$Status, +|}; + +/** + * Status enum. + */ + +declare var api$CloseChannelRes$Status: {| + +DISCONNECT: 0, // 0 + +CLOSE: 1, // 1 + +NOTHING: 2, // 2 +|}; + +/** + * Properties of a ContainerState. + */ +declare type api$IContainerState = {| + /** + * ContainerState state + */ + state?: $Values | null, +|}; + +/** + * Represents a ContainerState. + */ +declare class api$ContainerState { + /** + * Constructs a new ContainerState. + * @param [properties] Properties to set + */ + constructor(properties?: api$IContainerState): this; + + /** + * ContainerState state. + */ + state: $Values; + + /** + * Creates a new ContainerState instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerState instance + */ + static create(properties?: api$IContainerState): api$ContainerState; + + /** + * Encodes the specified ContainerState message. Does not implicitly {@link api.ContainerState.verify|verify} messages. + * @param message ContainerState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ContainerState, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ContainerState message, length delimited. Does not implicitly {@link api.ContainerState.verify|verify} messages. + * @param message ContainerState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ContainerState, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ContainerState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ContainerState; + + /** + * Decodes a ContainerState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContainerState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$ContainerState; + + /** + * Verifies a ContainerState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ContainerState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContainerState + */ + static fromObject(object: { + [k: string]: any, + }): api$ContainerState; + + /** + * Creates a plain object from a ContainerState message. Also converts values to other types if specified. + * @param message ContainerState + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ContainerState, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ContainerState to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +declare var npm$namespace$api$ContainerState: {| + State: typeof api$ContainerState$State, +|}; + +/** + * State enum. + */ + +declare var api$ContainerState$State: {| + +SLEEP: 0, // 0 + +READY: 1, // 1 +|}; + +/** + * Properties of a PortOpen. + */ +declare type api$IPortOpen = {| + /** + * PortOpen forwarded + */ + forwarded?: boolean | null, + + /** + * PortOpen port + */ + port?: number | null, + + /** + * PortOpen address + */ + address?: string | null, +|}; + +/** + * Represents a PortOpen. + */ +declare class api$PortOpen { + /** + * Constructs a new PortOpen. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPortOpen): this; + + /** + * PortOpen forwarded. + */ + forwarded: boolean; + + /** + * PortOpen port. + */ + port: number; + + /** + * PortOpen address. + */ + address: string; + + /** + * Creates a new PortOpen instance using the specified properties. + * @param [properties] Properties to set + * @returns PortOpen instance + */ + static create(properties?: api$IPortOpen): api$PortOpen; + + /** + * Encodes the specified PortOpen message. Does not implicitly {@link api.PortOpen.verify|verify} messages. + * @param message PortOpen message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PortOpen, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PortOpen message, length delimited. Does not implicitly {@link api.PortOpen.verify|verify} messages. + * @param message PortOpen message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PortOpen, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PortOpen message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PortOpen + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PortOpen; + + /** + * Decodes a PortOpen message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PortOpen + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$PortOpen; + + /** + * Verifies a PortOpen message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PortOpen message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PortOpen + */ + static fromObject(object: { + [k: string]: any, + }): api$PortOpen; + + /** + * Creates a plain object from a PortOpen message. Also converts values to other types if specified. + * @param message PortOpen + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PortOpen, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PortOpen to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a OTFetchRequest. + */ +declare type api$IOTFetchRequest = {| + /** + * OTFetchRequest versionFrom + */ + versionFrom?: number | null, + + /** + * OTFetchRequest versionTo + */ + versionTo?: number | null, +|}; + +/** + * Represents a OTFetchRequest. + */ +declare class api$OTFetchRequest { + /** + * Constructs a new OTFetchRequest. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOTFetchRequest): this; + + /** + * OTFetchRequest versionFrom. + */ + versionFrom: number; + + /** + * OTFetchRequest versionTo. + */ + versionTo: number; + + /** + * Creates a new OTFetchRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns OTFetchRequest instance + */ + static create(properties?: api$IOTFetchRequest): api$OTFetchRequest; + + /** + * Encodes the specified OTFetchRequest message. Does not implicitly {@link api.OTFetchRequest.verify|verify} messages. + * @param message OTFetchRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OTFetchRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OTFetchRequest message, length delimited. Does not implicitly {@link api.OTFetchRequest.verify|verify} messages. + * @param message OTFetchRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OTFetchRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a OTFetchRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OTFetchRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OTFetchRequest; + + /** + * Decodes a OTFetchRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OTFetchRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$OTFetchRequest; + + /** + * Verifies a OTFetchRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a OTFetchRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OTFetchRequest + */ + static fromObject(object: { + [k: string]: any, + }): api$OTFetchRequest; + + /** + * Creates a plain object from a OTFetchRequest message. Also converts values to other types if specified. + * @param message OTFetchRequest + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OTFetchRequest, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OTFetchRequest to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a OTFetchResponse. + */ +declare type api$IOTFetchResponse = {| + /** + * OTFetchResponse packets + */ + packets?: (api$OTPacket | api$IOTPacket)[] | null, +|}; + +/** + * Represents a OTFetchResponse. + */ +declare class api$OTFetchResponse { + /** + * Constructs a new OTFetchResponse. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOTFetchResponse): this; + + /** + * OTFetchResponse packets. + */ + packets: api$OTPacket[]; + + /** + * Creates a new OTFetchResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns OTFetchResponse instance + */ + static create(properties?: api$IOTFetchResponse): api$OTFetchResponse; + + /** + * Encodes the specified OTFetchResponse message. Does not implicitly {@link api.OTFetchResponse.verify|verify} messages. + * @param message OTFetchResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OTFetchResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OTFetchResponse message, length delimited. Does not implicitly {@link api.OTFetchResponse.verify|verify} messages. + * @param message OTFetchResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OTFetchResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a OTFetchResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OTFetchResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OTFetchResponse; + + /** + * Decodes a OTFetchResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OTFetchResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$OTFetchResponse; + + /** + * Verifies a OTFetchResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a OTFetchResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OTFetchResponse + */ + static fromObject(object: { + [k: string]: any, + }): api$OTFetchResponse; + + /** + * Creates a plain object from a OTFetchResponse message. Also converts values to other types if specified. + * @param message OTFetchResponse + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OTFetchResponse, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OTFetchResponse to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a OTPacket. + */ +declare type api$IOTPacket = {| + /** + * OTPacket spookyVersion + */ + spookyVersion?: number | null, + + /** + * OTPacket version + */ + version?: number | null, + + /** + * OTPacket ops + */ + ops?: (api$OTRuneTransformOp | api$IOTRuneTransformOp)[] | null, + + /** + * OTPacket crc32 + */ + crc32?: number | null, + + /** + * OTPacket committed + */ + committed?: google$protobuf$Timestamp | google$protobuf$ITimestamp | null, + + /** + * OTPacket nonce + */ + nonce?: number | null, +|}; + +/** + * Represents a OTPacket. + */ +declare class api$OTPacket { + /** + * Constructs a new OTPacket. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOTPacket): this; + + /** + * OTPacket spookyVersion. + */ + spookyVersion: number; + + /** + * OTPacket version. + */ + version: number; + + /** + * OTPacket ops. + */ + ops: api$OTRuneTransformOp[]; + + /** + * OTPacket crc32. + */ + crc32: number; + + /** + * OTPacket committed. + */ + committed?: google$protobuf$Timestamp | null; + + /** + * OTPacket nonce. + */ + nonce: number; + + /** + * Creates a new OTPacket instance using the specified properties. + * @param [properties] Properties to set + * @returns OTPacket instance + */ + static create(properties?: api$IOTPacket): api$OTPacket; + + /** + * Encodes the specified OTPacket message. Does not implicitly {@link api.OTPacket.verify|verify} messages. + * @param message OTPacket message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OTPacket, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OTPacket message, length delimited. Does not implicitly {@link api.OTPacket.verify|verify} messages. + * @param message OTPacket message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OTPacket, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a OTPacket message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OTPacket + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OTPacket; + + /** + * Decodes a OTPacket message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OTPacket + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$OTPacket; + + /** + * Verifies a OTPacket message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a OTPacket message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OTPacket + */ + static fromObject(object: { + [k: string]: any, + }): api$OTPacket; + + /** + * Creates a plain object from a OTPacket message. Also converts values to other types if specified. + * @param message OTPacket + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OTPacket, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OTPacket to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a OTRuneTransformOp. + */ +declare type api$IOTRuneTransformOp = {| + /** + * OTRuneTransformOp skip + */ + skip?: number | null, + + /** + * OTRuneTransformOp delete + */ + delete?: number | null, + + /** + * OTRuneTransformOp insert + */ + insert?: string | null, +|}; + +/** + * Represents a OTRuneTransformOp. + */ +declare class api$OTRuneTransformOp { + /** + * Constructs a new OTRuneTransformOp. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOTRuneTransformOp): this; + + /** + * OTRuneTransformOp skip. + */ + skip: number; + + /** + * OTRuneTransformOp delete. + */ + delete: number; + + /** + * OTRuneTransformOp insert. + */ + insert: string; + + /** + * OTRuneTransformOp op. + */ + op?: "skip" | "delete" | "insert"; + + /** + * Creates a new OTRuneTransformOp instance using the specified properties. + * @param [properties] Properties to set + * @returns OTRuneTransformOp instance + */ + static create(properties?: api$IOTRuneTransformOp): api$OTRuneTransformOp; + + /** + * Encodes the specified OTRuneTransformOp message. Does not implicitly {@link api.OTRuneTransformOp.verify|verify} messages. + * @param message OTRuneTransformOp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OTRuneTransformOp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OTRuneTransformOp message, length delimited. Does not implicitly {@link api.OTRuneTransformOp.verify|verify} messages. + * @param message OTRuneTransformOp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OTRuneTransformOp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a OTRuneTransformOp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OTRuneTransformOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OTRuneTransformOp; + + /** + * Decodes a OTRuneTransformOp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OTRuneTransformOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$OTRuneTransformOp; + + /** + * Verifies a OTRuneTransformOp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a OTRuneTransformOp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OTRuneTransformOp + */ + static fromObject(object: { + [k: string]: any, + }): api$OTRuneTransformOp; + + /** + * Creates a plain object from a OTRuneTransformOp message. Also converts values to other types if specified. + * @param message OTRuneTransformOp + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OTRuneTransformOp, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OTRuneTransformOp to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a OTStatus. + */ +declare type api$IOTStatus = {| + /** + * OTStatus contents + */ + contents?: string | null, + + /** + * OTStatus version + */ + version?: number | null, + + /** + * OTStatus linkedFile + */ + linkedFile?: api$File | api$IFile | null, + + /** + * OTStatus cursors + */ + cursors?: (api$OTCursor | api$IOTCursor)[] | null, +|}; + +/** + * Represents a OTStatus. + */ +declare class api$OTStatus { + /** + * Constructs a new OTStatus. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOTStatus): this; + + /** + * OTStatus contents. + */ + contents: string; + + /** + * OTStatus version. + */ + version: number; + + /** + * OTStatus linkedFile. + */ + linkedFile?: api$File | null; + + /** + * OTStatus cursors. + */ + cursors: api$OTCursor[]; + + /** + * Creates a new OTStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns OTStatus instance + */ + static create(properties?: api$IOTStatus): api$OTStatus; + + /** + * Encodes the specified OTStatus message. Does not implicitly {@link api.OTStatus.verify|verify} messages. + * @param message OTStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OTStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OTStatus message, length delimited. Does not implicitly {@link api.OTStatus.verify|verify} messages. + * @param message OTStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OTStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a OTStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OTStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OTStatus; + + /** + * Decodes a OTStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OTStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$OTStatus; + + /** + * Verifies a OTStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a OTStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OTStatus + */ + static fromObject(object: { + [k: string]: any, + }): api$OTStatus; + + /** + * Creates a plain object from a OTStatus message. Also converts values to other types if specified. + * @param message OTStatus + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OTStatus, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OTStatus to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a OTCursor. + */ +declare type api$IOTCursor = {| + /** + * OTCursor position + */ + position?: number | null, + + /** + * OTCursor selectionStart + */ + selectionStart?: number | null, + + /** + * OTCursor selectionEnd + */ + selectionEnd?: number | null, + + /** + * OTCursor user + */ + user?: api$User | api$IUser | null, + + /** + * OTCursor id + */ + id?: string | null, +|}; + +/** + * Represents a OTCursor. + */ +declare class api$OTCursor { + /** + * Constructs a new OTCursor. + * @param [properties] Properties to set + */ + constructor(properties?: api$IOTCursor): this; + + /** + * OTCursor position. + */ + position: number; + + /** + * OTCursor selectionStart. + */ + selectionStart: number; + + /** + * OTCursor selectionEnd. + */ + selectionEnd: number; + + /** + * OTCursor user. + */ + user?: api$User | null; + + /** + * OTCursor id. + */ + id: string; + + /** + * Creates a new OTCursor instance using the specified properties. + * @param [properties] Properties to set + * @returns OTCursor instance + */ + static create(properties?: api$IOTCursor): api$OTCursor; + + /** + * Encodes the specified OTCursor message. Does not implicitly {@link api.OTCursor.verify|verify} messages. + * @param message OTCursor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$OTCursor, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified OTCursor message, length delimited. Does not implicitly {@link api.OTCursor.verify|verify} messages. + * @param message OTCursor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$OTCursor, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a OTCursor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OTCursor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$OTCursor; + + /** + * Decodes a OTCursor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OTCursor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$OTCursor; + + /** + * Verifies a OTCursor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a OTCursor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OTCursor + */ + static fromObject(object: { + [k: string]: any, + }): api$OTCursor; + + /** + * Creates a plain object from a OTCursor message. Also converts values to other types if specified. + * @param message OTCursor + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$OTCursor, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this OTCursor to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ChatMessage. + */ +declare type api$IChatMessage = {| + /** + * ChatMessage username + */ + username?: string | null, + + /** + * ChatMessage text + */ + text?: string | null, +|}; + +/** + * Represents a ChatMessage. + */ +declare class api$ChatMessage { + /** + * Constructs a new ChatMessage. + * @param [properties] Properties to set + */ + constructor(properties?: api$IChatMessage): this; + + /** + * ChatMessage username. + */ + username: string; + + /** + * ChatMessage text. + */ + text: string; + + /** + * Creates a new ChatMessage instance using the specified properties. + * @param [properties] Properties to set + * @returns ChatMessage instance + */ + static create(properties?: api$IChatMessage): api$ChatMessage; + + /** + * Encodes the specified ChatMessage message. Does not implicitly {@link api.ChatMessage.verify|verify} messages. + * @param message ChatMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ChatMessage, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ChatMessage message, length delimited. Does not implicitly {@link api.ChatMessage.verify|verify} messages. + * @param message ChatMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ChatMessage, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ChatMessage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChatMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ChatMessage; + + /** + * Decodes a ChatMessage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChatMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$ChatMessage; + + /** + * Verifies a ChatMessage message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ChatMessage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChatMessage + */ + static fromObject(object: { + [k: string]: any, + }): api$ChatMessage; + + /** + * Creates a plain object from a ChatMessage message. Also converts values to other types if specified. + * @param message ChatMessage + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ChatMessage, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ChatMessage to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ChatTyping. + */ +declare type api$IChatTyping = {| + /** + * ChatTyping username + */ + username?: string | null, + + /** + * ChatTyping typing + */ + typing?: boolean | null, +|}; + +/** + * Represents a ChatTyping. + */ +declare class api$ChatTyping { + /** + * Constructs a new ChatTyping. + * @param [properties] Properties to set + */ + constructor(properties?: api$IChatTyping): this; + + /** + * ChatTyping username. + */ + username: string; + + /** + * ChatTyping typing. + */ + typing: boolean; + + /** + * Creates a new ChatTyping instance using the specified properties. + * @param [properties] Properties to set + * @returns ChatTyping instance + */ + static create(properties?: api$IChatTyping): api$ChatTyping; + + /** + * Encodes the specified ChatTyping message. Does not implicitly {@link api.ChatTyping.verify|verify} messages. + * @param message ChatTyping message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ChatTyping, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ChatTyping message, length delimited. Does not implicitly {@link api.ChatTyping.verify|verify} messages. + * @param message ChatTyping message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ChatTyping, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ChatTyping message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChatTyping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ChatTyping; + + /** + * Decodes a ChatTyping message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChatTyping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$ChatTyping; + + /** + * Verifies a ChatTyping message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ChatTyping message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChatTyping + */ + static fromObject(object: { + [k: string]: any, + }): api$ChatTyping; + + /** + * Creates a plain object from a ChatTyping message. Also converts values to other types if specified. + * @param message ChatTyping + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ChatTyping, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ChatTyping to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a User. + */ +declare type api$IUser = {| + /** + * User id + */ + id?: number | null, + + /** + * User name + */ + name?: string | null, + + /** + * User roles + */ + roles?: string[] | null, + + /** + * User session + */ + session?: number | null, +|}; + +/** + * Represents a User. + */ +declare class api$User { + /** + * Constructs a new User. + * @param [properties] Properties to set + */ + constructor(properties?: api$IUser): this; + + /** + * User id. + */ + id: number; + + /** + * User name. + */ + name: string; + + /** + * User roles. + */ + roles: string[]; + + /** + * User session. + */ + session: number; + + /** + * Creates a new User instance using the specified properties. + * @param [properties] Properties to set + * @returns User instance + */ + static create(properties?: api$IUser): api$User; + + /** + * Encodes the specified User message. Does not implicitly {@link api.User.verify|verify} messages. + * @param message User message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$User, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified User message, length delimited. Does not implicitly {@link api.User.verify|verify} messages. + * @param message User message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$User, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a User message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns User + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$User; + + /** + * Decodes a User message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns User + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$User; + + /** + * Verifies a User message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a User message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns User + */ + static fromObject(object: { + [k: string]: any, + }): api$User; + + /** + * Creates a plain object from a User message. Also converts values to other types if specified. + * @param message User + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$User, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this User to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Roster. + */ +declare type api$IRoster = {| + /** + * Roster user + */ + user?: (api$User | api$IUser)[] | null, +|}; + +/** + * Represents a Roster. + */ +declare class api$Roster { + /** + * Constructs a new Roster. + * @param [properties] Properties to set + */ + constructor(properties?: api$IRoster): this; + + /** + * Roster user. + */ + user: api$User[]; + + /** + * Creates a new Roster instance using the specified properties. + * @param [properties] Properties to set + * @returns Roster instance + */ + static create(properties?: api$IRoster): api$Roster; + + /** + * Encodes the specified Roster message. Does not implicitly {@link api.Roster.verify|verify} messages. + * @param message Roster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Roster, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Roster message, length delimited. Does not implicitly {@link api.Roster.verify|verify} messages. + * @param message Roster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Roster, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Roster message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Roster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Roster; + + /** + * Decodes a Roster message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Roster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Roster; + + /** + * Verifies a Roster message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Roster message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Roster + */ + static fromObject(object: { + [k: string]: any, + }): api$Roster; + + /** + * Creates a plain object from a Roster message. Also converts values to other types if specified. + * @param message Roster + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Roster, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Roster to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of an Exec. + */ +declare type api$IExec = {| + /** + * Exec args + */ + args?: string[] | null, + + /** + * Exec env + */ + env?: { + [k: string]: string, + } | null, + + /** + * Exec blocking + */ + blocking?: boolean | null, +|}; + +/** + * Represents an Exec. + */ +declare class api$Exec { + /** + * Constructs a new Exec. + * @param [properties] Properties to set + */ + constructor(properties?: api$IExec): this; + + /** + * Exec args. + */ + args: string[]; + + /** + * Exec env. + */ + env: { + [k: string]: string, + }; + + /** + * Exec blocking. + */ + blocking: boolean; + + /** + * Creates a new Exec instance using the specified properties. + * @param [properties] Properties to set + * @returns Exec instance + */ + static create(properties?: api$IExec): api$Exec; + + /** + * Encodes the specified Exec message. Does not implicitly {@link api.Exec.verify|verify} messages. + * @param message Exec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode(message: api$Exec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Exec message, length delimited. Does not implicitly {@link api.Exec.verify|verify} messages. + * @param message Exec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Exec, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes an Exec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Exec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Exec; + + /** + * Decodes an Exec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Exec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Exec; + + /** + * Verifies an Exec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates an Exec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Exec + */ + static fromObject(object: { + [k: string]: any, + }): api$Exec; + + /** + * Creates a plain object from an Exec message. Also converts values to other types if specified. + * @param message Exec + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Exec, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Exec to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Package. + */ +declare type api$IPackage = {| + /** + * Package name + */ + name?: string | null, + + /** + * Package spec + */ + spec?: string | null, + + /** + * Package description + */ + description?: string | null, + + /** + * Package version + */ + version?: string | null, + + /** + * Package homepageURL + */ + homepageURL?: string | null, + + /** + * Package documentationURL + */ + documentationURL?: string | null, + + /** + * Package sourceCodeURL + */ + sourceCodeURL?: string | null, + + /** + * Package bugTrackerURL + */ + bugTrackerURL?: string | null, + + /** + * Package author + */ + author?: string | null, + + /** + * Package license + */ + license?: string | null, + + /** + * Package dependencies + */ + dependencies?: (api$Package | api$IPackage)[] | null, +|}; + +/** + * Represents a Package. + */ +declare class api$Package { + /** + * Constructs a new Package. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackage): this; + + /** + * Package name. + */ + name: string; + + /** + * Package spec. + */ + spec: string; + + /** + * Package description. + */ + description: string; + + /** + * Package version. + */ + version: string; + + /** + * Package homepageURL. + */ + homepageURL: string; + + /** + * Package documentationURL. + */ + documentationURL: string; + + /** + * Package sourceCodeURL. + */ + sourceCodeURL: string; + + /** + * Package bugTrackerURL. + */ + bugTrackerURL: string; + + /** + * Package author. + */ + author: string; + + /** + * Package license. + */ + license: string; + + /** + * Package dependencies. + */ + dependencies: api$Package[]; + + /** + * Creates a new Package instance using the specified properties. + * @param [properties] Properties to set + * @returns Package instance + */ + static create(properties?: api$IPackage): api$Package; + + /** + * Encodes the specified Package message. Does not implicitly {@link api.Package.verify|verify} messages. + * @param message Package message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Package, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Package message, length delimited. Does not implicitly {@link api.Package.verify|verify} messages. + * @param message Package message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Package, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Package message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Package + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Package; + + /** + * Decodes a Package message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Package + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Package; + + /** + * Verifies a Package message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Package message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Package + */ + static fromObject(object: { + [k: string]: any, + }): api$Package; + + /** + * Creates a plain object from a Package message. Also converts values to other types if specified. + * @param message Package + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Package, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Package to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageSearch. + */ +declare type api$IPackageSearch = {| + /** + * PackageSearch query + */ + query?: string | null, +|}; + +/** + * Represents a PackageSearch. + */ +declare class api$PackageSearch { + /** + * Constructs a new PackageSearch. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageSearch): this; + + /** + * PackageSearch query. + */ + query: string; + + /** + * Creates a new PackageSearch instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageSearch instance + */ + static create(properties?: api$IPackageSearch): api$PackageSearch; + + /** + * Encodes the specified PackageSearch message. Does not implicitly {@link api.PackageSearch.verify|verify} messages. + * @param message PackageSearch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageSearch, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageSearch message, length delimited. Does not implicitly {@link api.PackageSearch.verify|verify} messages. + * @param message PackageSearch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageSearch, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageSearch message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageSearch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageSearch; + + /** + * Decodes a PackageSearch message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageSearch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageSearch; + + /** + * Verifies a PackageSearch message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageSearch message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageSearch + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageSearch; + + /** + * Creates a plain object from a PackageSearch message. Also converts values to other types if specified. + * @param message PackageSearch + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageSearch, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageSearch to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageSearchResp. + */ +declare type api$IPackageSearchResp = {| + /** + * PackageSearchResp results + */ + results?: (api$Package | api$IPackage)[] | null, +|}; + +/** + * Represents a PackageSearchResp. + */ +declare class api$PackageSearchResp { + /** + * Constructs a new PackageSearchResp. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageSearchResp): this; + + /** + * PackageSearchResp results. + */ + results: api$Package[]; + + /** + * Creates a new PackageSearchResp instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageSearchResp instance + */ + static create(properties?: api$IPackageSearchResp): api$PackageSearchResp; + + /** + * Encodes the specified PackageSearchResp message. Does not implicitly {@link api.PackageSearchResp.verify|verify} messages. + * @param message PackageSearchResp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageSearchResp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageSearchResp message, length delimited. Does not implicitly {@link api.PackageSearchResp.verify|verify} messages. + * @param message PackageSearchResp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageSearchResp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageSearchResp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageSearchResp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageSearchResp; + + /** + * Decodes a PackageSearchResp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageSearchResp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageSearchResp; + + /** + * Verifies a PackageSearchResp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageSearchResp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageSearchResp + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageSearchResp; + + /** + * Creates a plain object from a PackageSearchResp message. Also converts values to other types if specified. + * @param message PackageSearchResp + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageSearchResp, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageSearchResp to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageInfo. + */ +declare type api$IPackageInfo = {| + /** + * PackageInfo pkg + */ + pkg?: api$Package | api$IPackage | null, +|}; + +/** + * Represents a PackageInfo. + */ +declare class api$PackageInfo { + /** + * Constructs a new PackageInfo. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageInfo): this; + + /** + * PackageInfo pkg. + */ + pkg?: api$Package | null; + + /** + * Creates a new PackageInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageInfo instance + */ + static create(properties?: api$IPackageInfo): api$PackageInfo; + + /** + * Encodes the specified PackageInfo message. Does not implicitly {@link api.PackageInfo.verify|verify} messages. + * @param message PackageInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageInfo message, length delimited. Does not implicitly {@link api.PackageInfo.verify|verify} messages. + * @param message PackageInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageInfo; + + /** + * Decodes a PackageInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageInfo; + + /** + * Verifies a PackageInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageInfo + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageInfo; + + /** + * Creates a plain object from a PackageInfo message. Also converts values to other types if specified. + * @param message PackageInfo + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageInfo, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageInfo to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageInfoResp. + */ +declare type api$IPackageInfoResp = {| + /** + * PackageInfoResp pkg + */ + pkg?: api$Package | api$IPackage | null, +|}; + +/** + * Represents a PackageInfoResp. + */ +declare class api$PackageInfoResp { + /** + * Constructs a new PackageInfoResp. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageInfoResp): this; + + /** + * PackageInfoResp pkg. + */ + pkg?: api$Package | null; + + /** + * Creates a new PackageInfoResp instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageInfoResp instance + */ + static create(properties?: api$IPackageInfoResp): api$PackageInfoResp; + + /** + * Encodes the specified PackageInfoResp message. Does not implicitly {@link api.PackageInfoResp.verify|verify} messages. + * @param message PackageInfoResp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageInfoResp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageInfoResp message, length delimited. Does not implicitly {@link api.PackageInfoResp.verify|verify} messages. + * @param message PackageInfoResp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageInfoResp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageInfoResp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageInfoResp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageInfoResp; + + /** + * Decodes a PackageInfoResp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageInfoResp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageInfoResp; + + /** + * Verifies a PackageInfoResp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageInfoResp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageInfoResp + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageInfoResp; + + /** + * Creates a plain object from a PackageInfoResp message. Also converts values to other types if specified. + * @param message PackageInfoResp + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageInfoResp, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageInfoResp to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageAdd. + */ +declare type api$IPackageAdd = {| + /** + * PackageAdd pkgs + */ + pkgs?: (api$Package | api$IPackage)[] | null, +|}; + +/** + * Represents a PackageAdd. + */ +declare class api$PackageAdd { + /** + * Constructs a new PackageAdd. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageAdd): this; + + /** + * PackageAdd pkgs. + */ + pkgs: api$Package[]; + + /** + * Creates a new PackageAdd instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageAdd instance + */ + static create(properties?: api$IPackageAdd): api$PackageAdd; + + /** + * Encodes the specified PackageAdd message. Does not implicitly {@link api.PackageAdd.verify|verify} messages. + * @param message PackageAdd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageAdd, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageAdd message, length delimited. Does not implicitly {@link api.PackageAdd.verify|verify} messages. + * @param message PackageAdd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageAdd, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageAdd message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageAdd; + + /** + * Decodes a PackageAdd message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$PackageAdd; + + /** + * Verifies a PackageAdd message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageAdd message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageAdd + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageAdd; + + /** + * Creates a plain object from a PackageAdd message. Also converts values to other types if specified. + * @param message PackageAdd + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageAdd, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageAdd to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageRemove. + */ +declare type api$IPackageRemove = {| + /** + * PackageRemove pkgs + */ + pkgs?: (api$Package | api$IPackage)[] | null, +|}; + +/** + * Represents a PackageRemove. + */ +declare class api$PackageRemove { + /** + * Constructs a new PackageRemove. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageRemove): this; + + /** + * PackageRemove pkgs. + */ + pkgs: api$Package[]; + + /** + * Creates a new PackageRemove instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageRemove instance + */ + static create(properties?: api$IPackageRemove): api$PackageRemove; + + /** + * Encodes the specified PackageRemove message. Does not implicitly {@link api.PackageRemove.verify|verify} messages. + * @param message PackageRemove message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageRemove, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageRemove message, length delimited. Does not implicitly {@link api.PackageRemove.verify|verify} messages. + * @param message PackageRemove message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageRemove, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageRemove message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageRemove + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageRemove; + + /** + * Decodes a PackageRemove message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageRemove + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageRemove; + + /** + * Verifies a PackageRemove message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageRemove message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageRemove + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageRemove; + + /** + * Creates a plain object from a PackageRemove message. Also converts values to other types if specified. + * @param message PackageRemove + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageRemove, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageRemove to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageInstall. + */ +declare type api$IPackageInstall = {||}; + +/** + * Represents a PackageInstall. + */ +declare class api$PackageInstall { + /** + * Constructs a new PackageInstall. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageInstall): this; + + /** + * Creates a new PackageInstall instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageInstall instance + */ + static create(properties?: api$IPackageInstall): api$PackageInstall; + + /** + * Encodes the specified PackageInstall message. Does not implicitly {@link api.PackageInstall.verify|verify} messages. + * @param message PackageInstall message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageInstall, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageInstall message, length delimited. Does not implicitly {@link api.PackageInstall.verify|verify} messages. + * @param message PackageInstall message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageInstall, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageInstall message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageInstall + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageInstall; + + /** + * Decodes a PackageInstall message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageInstall + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageInstall; + + /** + * Verifies a PackageInstall message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageInstall message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageInstall + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageInstall; + + /** + * Creates a plain object from a PackageInstall message. Also converts values to other types if specified. + * @param message PackageInstall + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageInstall, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageInstall to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageListSpecfile. + */ +declare type api$IPackageListSpecfile = {||}; + +/** + * Represents a PackageListSpecfile. + */ +declare class api$PackageListSpecfile { + /** + * Constructs a new PackageListSpecfile. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageListSpecfile): this; + + /** + * Creates a new PackageListSpecfile instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageListSpecfile instance + */ + static create(properties?: api$IPackageListSpecfile): api$PackageListSpecfile; + + /** + * Encodes the specified PackageListSpecfile message. Does not implicitly {@link api.PackageListSpecfile.verify|verify} messages. + * @param message PackageListSpecfile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageListSpecfile, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageListSpecfile message, length delimited. Does not implicitly {@link api.PackageListSpecfile.verify|verify} messages. + * @param message PackageListSpecfile message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageListSpecfile, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageListSpecfile message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageListSpecfile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageListSpecfile; + + /** + * Decodes a PackageListSpecfile message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageListSpecfile + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageListSpecfile; + + /** + * Verifies a PackageListSpecfile message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageListSpecfile message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageListSpecfile + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageListSpecfile; + + /** + * Creates a plain object from a PackageListSpecfile message. Also converts values to other types if specified. + * @param message PackageListSpecfile + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageListSpecfile, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageListSpecfile to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageListSpecfileResp. + */ +declare type api$IPackageListSpecfileResp = {| + /** + * PackageListSpecfileResp pkgs + */ + pkgs?: (api$Package | api$IPackage)[] | null, +|}; + +/** + * Represents a PackageListSpecfileResp. + */ +declare class api$PackageListSpecfileResp { + /** + * Constructs a new PackageListSpecfileResp. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageListSpecfileResp): this; + + /** + * PackageListSpecfileResp pkgs. + */ + pkgs: api$Package[]; + + /** + * Creates a new PackageListSpecfileResp instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageListSpecfileResp instance + */ + static create( + properties?: api$IPackageListSpecfileResp + ): api$PackageListSpecfileResp; + + /** + * Encodes the specified PackageListSpecfileResp message. Does not implicitly {@link api.PackageListSpecfileResp.verify|verify} messages. + * @param message PackageListSpecfileResp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageListSpecfileResp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageListSpecfileResp message, length delimited. Does not implicitly {@link api.PackageListSpecfileResp.verify|verify} messages. + * @param message PackageListSpecfileResp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageListSpecfileResp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageListSpecfileResp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageListSpecfileResp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageListSpecfileResp; + + /** + * Decodes a PackageListSpecfileResp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageListSpecfileResp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageListSpecfileResp; + + /** + * Verifies a PackageListSpecfileResp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageListSpecfileResp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageListSpecfileResp + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageListSpecfileResp; + + /** + * Creates a plain object from a PackageListSpecfileResp message. Also converts values to other types if specified. + * @param message PackageListSpecfileResp + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageListSpecfileResp, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageListSpecfileResp to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PackageCacheSave. + */ +declare type api$IPackageCacheSave = {||}; + +/** + * Represents a PackageCacheSave. + */ +declare class api$PackageCacheSave { + /** + * Constructs a new PackageCacheSave. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPackageCacheSave): this; + + /** + * Creates a new PackageCacheSave instance using the specified properties. + * @param [properties] Properties to set + * @returns PackageCacheSave instance + */ + static create(properties?: api$IPackageCacheSave): api$PackageCacheSave; + + /** + * Encodes the specified PackageCacheSave message. Does not implicitly {@link api.PackageCacheSave.verify|verify} messages. + * @param message PackageCacheSave message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PackageCacheSave, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PackageCacheSave message, length delimited. Does not implicitly {@link api.PackageCacheSave.verify|verify} messages. + * @param message PackageCacheSave message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PackageCacheSave, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PackageCacheSave message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PackageCacheSave + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PackageCacheSave; + + /** + * Decodes a PackageCacheSave message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PackageCacheSave + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PackageCacheSave; + + /** + * Verifies a PackageCacheSave message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PackageCacheSave message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PackageCacheSave + */ + static fromObject(object: { + [k: string]: any, + }): api$PackageCacheSave; + + /** + * Creates a plain object from a PackageCacheSave message. Also converts values to other types if specified. + * @param message PackageCacheSave + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PackageCacheSave, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PackageCacheSave to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a ChatScrollback. + */ +declare type api$IChatScrollback = {| + /** + * ChatScrollback scrollback + */ + scrollback?: (api$ChatMessage | api$IChatMessage)[] | null, +|}; + +/** + * Represents a ChatScrollback. + */ +declare class api$ChatScrollback { + /** + * Constructs a new ChatScrollback. + * @param [properties] Properties to set + */ + constructor(properties?: api$IChatScrollback): this; + + /** + * ChatScrollback scrollback. + */ + scrollback: api$ChatMessage[]; + + /** + * Creates a new ChatScrollback instance using the specified properties. + * @param [properties] Properties to set + * @returns ChatScrollback instance + */ + static create(properties?: api$IChatScrollback): api$ChatScrollback; + + /** + * Encodes the specified ChatScrollback message. Does not implicitly {@link api.ChatScrollback.verify|verify} messages. + * @param message ChatScrollback message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$ChatScrollback, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified ChatScrollback message, length delimited. Does not implicitly {@link api.ChatScrollback.verify|verify} messages. + * @param message ChatScrollback message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$ChatScrollback, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a ChatScrollback message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChatScrollback + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$ChatScrollback; + + /** + * Decodes a ChatScrollback message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChatScrollback + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$ChatScrollback; + + /** + * Verifies a ChatScrollback message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a ChatScrollback message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChatScrollback + */ + static fromObject(object: { + [k: string]: any, + }): api$ChatScrollback; + + /** + * Creates a plain object from a ChatScrollback message. Also converts values to other types if specified. + * @param message ChatScrollback + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$ChatScrollback, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this ChatScrollback to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a Metrics. + */ +declare type api$IMetrics = {| + /** + * Metrics prometheusMetricFamilies + */ + prometheusMetricFamilies?: Uint8Array[] | null, +|}; + +/** + * Represents a Metrics. + */ +declare class api$Metrics { + /** + * Constructs a new Metrics. + * @param [properties] Properties to set + */ + constructor(properties?: api$IMetrics): this; + + /** + * Metrics prometheusMetricFamilies. + */ + prometheusMetricFamilies: Uint8Array[]; + + /** + * Creates a new Metrics instance using the specified properties. + * @param [properties] Properties to set + * @returns Metrics instance + */ + static create(properties?: api$IMetrics): api$Metrics; + + /** + * Encodes the specified Metrics message. Does not implicitly {@link api.Metrics.verify|verify} messages. + * @param message Metrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$Metrics, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Metrics message, length delimited. Does not implicitly {@link api.Metrics.verify|verify} messages. + * @param message Metrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$Metrics, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Metrics message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$Metrics; + + /** + * Decodes a Metrics message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$Metrics; + + /** + * Verifies a Metrics message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Metrics message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metrics + */ + static fromObject(object: { + [k: string]: any, + }): api$Metrics; + + /** + * Creates a plain object from a Metrics message. Also converts values to other types if specified. + * @param message Metrics + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$Metrics, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Metrics to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PprofRequest. + */ +declare type api$IPprofRequest = {| + /** + * PprofRequest id + */ + id?: string | null, + + /** + * PprofRequest pprofCpuProfileRequest + */ + pprofCpuProfileRequest?: + | api$PprofCpuProfileRequest + | api$IPprofCpuProfileRequest + | null, + + /** + * PprofRequest pprofHeapProfileRequest + */ + pprofHeapProfileRequest?: + | api$PprofHeapProfileRequest + | api$IPprofHeapProfileRequest + | null, + + /** + * PprofRequest pprofAllocsProfileRequest + */ + pprofAllocsProfileRequest?: + | api$PprofAllocsProfileRequest + | api$IPprofAllocsProfileRequest + | null, + + /** + * PprofRequest pprofBlockProfileRequest + */ + pprofBlockProfileRequest?: + | api$PprofBlockProfileRequest + | api$IPprofBlockProfileRequest + | null, + + /** + * PprofRequest pprofMutexProfileRequest + */ + pprofMutexProfileRequest?: + | api$PprofMutexProfileRequest + | api$IPprofMutexProfileRequest + | null, +|}; + +/** + * Represents a PprofRequest. + */ +declare class api$PprofRequest { + /** + * Constructs a new PprofRequest. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPprofRequest): this; + + /** + * PprofRequest id. + */ + id: string; + + /** + * PprofRequest pprofCpuProfileRequest. + */ + pprofCpuProfileRequest?: api$PprofCpuProfileRequest | null; + + /** + * PprofRequest pprofHeapProfileRequest. + */ + pprofHeapProfileRequest?: api$PprofHeapProfileRequest | null; + + /** + * PprofRequest pprofAllocsProfileRequest. + */ + pprofAllocsProfileRequest?: api$PprofAllocsProfileRequest | null; + + /** + * PprofRequest pprofBlockProfileRequest. + */ + pprofBlockProfileRequest?: api$PprofBlockProfileRequest | null; + + /** + * PprofRequest pprofMutexProfileRequest. + */ + pprofMutexProfileRequest?: api$PprofMutexProfileRequest | null; + + /** + * PprofRequest body. + */ + body?: + | "pprofCpuProfileRequest" + | "pprofHeapProfileRequest" + | "pprofAllocsProfileRequest" + | "pprofBlockProfileRequest" + | "pprofMutexProfileRequest"; + + /** + * Creates a new PprofRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PprofRequest instance + */ + static create(properties?: api$IPprofRequest): api$PprofRequest; + + /** + * Encodes the specified PprofRequest message. Does not implicitly {@link api.PprofRequest.verify|verify} messages. + * @param message PprofRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PprofRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PprofRequest message, length delimited. Does not implicitly {@link api.PprofRequest.verify|verify} messages. + * @param message PprofRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PprofRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PprofRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PprofRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PprofRequest; + + /** + * Decodes a PprofRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PprofRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PprofRequest; + + /** + * Verifies a PprofRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PprofRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PprofRequest + */ + static fromObject(object: { + [k: string]: any, + }): api$PprofRequest; + + /** + * Creates a plain object from a PprofRequest message. Also converts values to other types if specified. + * @param message PprofRequest + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PprofRequest, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PprofRequest to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PprofAllocsProfileRequest. + */ +declare type api$IPprofAllocsProfileRequest = {| + /** + * PprofAllocsProfileRequest debug + */ + debug?: boolean | null, +|}; + +/** + * Represents a PprofAllocsProfileRequest. + */ +declare class api$PprofAllocsProfileRequest { + /** + * Constructs a new PprofAllocsProfileRequest. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPprofAllocsProfileRequest): this; + + /** + * PprofAllocsProfileRequest debug. + */ + debug: boolean; + + /** + * Creates a new PprofAllocsProfileRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PprofAllocsProfileRequest instance + */ + static create( + properties?: api$IPprofAllocsProfileRequest + ): api$PprofAllocsProfileRequest; + + /** + * Encodes the specified PprofAllocsProfileRequest message. Does not implicitly {@link api.PprofAllocsProfileRequest.verify|verify} messages. + * @param message PprofAllocsProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PprofAllocsProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PprofAllocsProfileRequest message, length delimited. Does not implicitly {@link api.PprofAllocsProfileRequest.verify|verify} messages. + * @param message PprofAllocsProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PprofAllocsProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PprofAllocsProfileRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PprofAllocsProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PprofAllocsProfileRequest; + + /** + * Decodes a PprofAllocsProfileRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PprofAllocsProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PprofAllocsProfileRequest; + + /** + * Verifies a PprofAllocsProfileRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PprofAllocsProfileRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PprofAllocsProfileRequest + */ + static fromObject(object: { + [k: string]: any, + }): api$PprofAllocsProfileRequest; + + /** + * Creates a plain object from a PprofAllocsProfileRequest message. Also converts values to other types if specified. + * @param message PprofAllocsProfileRequest + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PprofAllocsProfileRequest, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PprofAllocsProfileRequest to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PprofBlockProfileRequest. + */ +declare type api$IPprofBlockProfileRequest = {| + /** + * PprofBlockProfileRequest debug + */ + debug?: boolean | null, +|}; + +/** + * Represents a PprofBlockProfileRequest. + */ +declare class api$PprofBlockProfileRequest { + /** + * Constructs a new PprofBlockProfileRequest. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPprofBlockProfileRequest): this; + + /** + * PprofBlockProfileRequest debug. + */ + debug: boolean; + + /** + * Creates a new PprofBlockProfileRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PprofBlockProfileRequest instance + */ + static create( + properties?: api$IPprofBlockProfileRequest + ): api$PprofBlockProfileRequest; + + /** + * Encodes the specified PprofBlockProfileRequest message. Does not implicitly {@link api.PprofBlockProfileRequest.verify|verify} messages. + * @param message PprofBlockProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PprofBlockProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PprofBlockProfileRequest message, length delimited. Does not implicitly {@link api.PprofBlockProfileRequest.verify|verify} messages. + * @param message PprofBlockProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PprofBlockProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PprofBlockProfileRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PprofBlockProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PprofBlockProfileRequest; + + /** + * Decodes a PprofBlockProfileRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PprofBlockProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PprofBlockProfileRequest; + + /** + * Verifies a PprofBlockProfileRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PprofBlockProfileRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PprofBlockProfileRequest + */ + static fromObject(object: { + [k: string]: any, + }): api$PprofBlockProfileRequest; + + /** + * Creates a plain object from a PprofBlockProfileRequest message. Also converts values to other types if specified. + * @param message PprofBlockProfileRequest + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PprofBlockProfileRequest, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PprofBlockProfileRequest to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PprofCpuProfileRequest. + */ +declare type api$IPprofCpuProfileRequest = {| + /** + * PprofCpuProfileRequest seconds + */ + seconds?: number | null, +|}; + +/** + * Represents a PprofCpuProfileRequest. + */ +declare class api$PprofCpuProfileRequest { + /** + * Constructs a new PprofCpuProfileRequest. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPprofCpuProfileRequest): this; + + /** + * PprofCpuProfileRequest seconds. + */ + seconds: number; + + /** + * Creates a new PprofCpuProfileRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PprofCpuProfileRequest instance + */ + static create( + properties?: api$IPprofCpuProfileRequest + ): api$PprofCpuProfileRequest; + + /** + * Encodes the specified PprofCpuProfileRequest message. Does not implicitly {@link api.PprofCpuProfileRequest.verify|verify} messages. + * @param message PprofCpuProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PprofCpuProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PprofCpuProfileRequest message, length delimited. Does not implicitly {@link api.PprofCpuProfileRequest.verify|verify} messages. + * @param message PprofCpuProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PprofCpuProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PprofCpuProfileRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PprofCpuProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PprofCpuProfileRequest; + + /** + * Decodes a PprofCpuProfileRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PprofCpuProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PprofCpuProfileRequest; + + /** + * Verifies a PprofCpuProfileRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PprofCpuProfileRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PprofCpuProfileRequest + */ + static fromObject(object: { + [k: string]: any, + }): api$PprofCpuProfileRequest; + + /** + * Creates a plain object from a PprofCpuProfileRequest message. Also converts values to other types if specified. + * @param message PprofCpuProfileRequest + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PprofCpuProfileRequest, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PprofCpuProfileRequest to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PprofHeapProfileRequest. + */ +declare type api$IPprofHeapProfileRequest = {| + /** + * PprofHeapProfileRequest gc + */ + gc?: boolean | null, + + /** + * PprofHeapProfileRequest debug + */ + debug?: boolean | null, +|}; + +/** + * Represents a PprofHeapProfileRequest. + */ +declare class api$PprofHeapProfileRequest { + /** + * Constructs a new PprofHeapProfileRequest. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPprofHeapProfileRequest): this; + + /** + * PprofHeapProfileRequest gc. + */ + gc: boolean; + + /** + * PprofHeapProfileRequest debug. + */ + debug: boolean; + + /** + * Creates a new PprofHeapProfileRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PprofHeapProfileRequest instance + */ + static create( + properties?: api$IPprofHeapProfileRequest + ): api$PprofHeapProfileRequest; + + /** + * Encodes the specified PprofHeapProfileRequest message. Does not implicitly {@link api.PprofHeapProfileRequest.verify|verify} messages. + * @param message PprofHeapProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PprofHeapProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PprofHeapProfileRequest message, length delimited. Does not implicitly {@link api.PprofHeapProfileRequest.verify|verify} messages. + * @param message PprofHeapProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PprofHeapProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PprofHeapProfileRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PprofHeapProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PprofHeapProfileRequest; + + /** + * Decodes a PprofHeapProfileRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PprofHeapProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PprofHeapProfileRequest; + + /** + * Verifies a PprofHeapProfileRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PprofHeapProfileRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PprofHeapProfileRequest + */ + static fromObject(object: { + [k: string]: any, + }): api$PprofHeapProfileRequest; + + /** + * Creates a plain object from a PprofHeapProfileRequest message. Also converts values to other types if specified. + * @param message PprofHeapProfileRequest + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PprofHeapProfileRequest, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PprofHeapProfileRequest to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PprofMutexProfileRequest. + */ +declare type api$IPprofMutexProfileRequest = {| + /** + * PprofMutexProfileRequest debug + */ + debug?: boolean | null, +|}; + +/** + * Represents a PprofMutexProfileRequest. + */ +declare class api$PprofMutexProfileRequest { + /** + * Constructs a new PprofMutexProfileRequest. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPprofMutexProfileRequest): this; + + /** + * PprofMutexProfileRequest debug. + */ + debug: boolean; + + /** + * Creates a new PprofMutexProfileRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PprofMutexProfileRequest instance + */ + static create( + properties?: api$IPprofMutexProfileRequest + ): api$PprofMutexProfileRequest; + + /** + * Encodes the specified PprofMutexProfileRequest message. Does not implicitly {@link api.PprofMutexProfileRequest.verify|verify} messages. + * @param message PprofMutexProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PprofMutexProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PprofMutexProfileRequest message, length delimited. Does not implicitly {@link api.PprofMutexProfileRequest.verify|verify} messages. + * @param message PprofMutexProfileRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PprofMutexProfileRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PprofMutexProfileRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PprofMutexProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PprofMutexProfileRequest; + + /** + * Decodes a PprofMutexProfileRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PprofMutexProfileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PprofMutexProfileRequest; + + /** + * Verifies a PprofMutexProfileRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PprofMutexProfileRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PprofMutexProfileRequest + */ + static fromObject(object: { + [k: string]: any, + }): api$PprofMutexProfileRequest; + + /** + * Creates a plain object from a PprofMutexProfileRequest message. Also converts values to other types if specified. + * @param message PprofMutexProfileRequest + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PprofMutexProfileRequest, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PprofMutexProfileRequest to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PprofResponse. + */ +declare type api$IPprofResponse = {| + /** + * PprofResponse id + */ + id?: string | null, + + /** + * PprofResponse profile + */ + profile?: Uint8Array | null, +|}; + +/** + * Represents a PprofResponse. + */ +declare class api$PprofResponse { + /** + * Constructs a new PprofResponse. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPprofResponse): this; + + /** + * PprofResponse id. + */ + id: string; + + /** + * PprofResponse profile. + */ + profile: Uint8Array; + + /** + * Creates a new PprofResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PprofResponse instance + */ + static create(properties?: api$IPprofResponse): api$PprofResponse; + + /** + * Encodes the specified PprofResponse message. Does not implicitly {@link api.PprofResponse.verify|verify} messages. + * @param message PprofResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PprofResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PprofResponse message, length delimited. Does not implicitly {@link api.PprofResponse.verify|verify} messages. + * @param message PprofResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PprofResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PprofResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PprofResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PprofResponse; + + /** + * Decodes a PprofResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PprofResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): api$PprofResponse; + + /** + * Verifies a PprofResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PprofResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PprofResponse + */ + static fromObject(object: { + [k: string]: any, + }): api$PprofResponse; + + /** + * Creates a plain object from a PprofResponse message. Also converts values to other types if specified. + * @param message PprofResponse + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PprofResponse, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PprofResponse to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} + +/** + * Properties of a PTYConfig. + */ +declare type api$IPTYConfig = {| + /** + * PTYConfig pipeMode + */ + pipeMode?: boolean | null, +|}; + +/** + * Represents a PTYConfig. + */ +declare class api$PTYConfig { + /** + * Constructs a new PTYConfig. + * @param [properties] Properties to set + */ + constructor(properties?: api$IPTYConfig): this; + + /** + * PTYConfig pipeMode. + */ + pipeMode: boolean; + + /** + * Creates a new PTYConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PTYConfig instance + */ + static create(properties?: api$IPTYConfig): api$PTYConfig; + + /** + * Encodes the specified PTYConfig message. Does not implicitly {@link api.PTYConfig.verify|verify} messages. + * @param message PTYConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: api$PTYConfig, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified PTYConfig message, length delimited. Does not implicitly {@link api.PTYConfig.verify|verify} messages. + * @param message PTYConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: api$PTYConfig, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a PTYConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PTYConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): api$PTYConfig; + + /** + * Decodes a PTYConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PTYConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$PTYConfig; + + /** + * Verifies a PTYConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a PTYConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PTYConfig + */ + static fromObject(object: { + [k: string]: any, + }): api$PTYConfig; + + /** + * Creates a plain object from a PTYConfig message. Also converts values to other types if specified. + * @param message PTYConfig + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: api$PTYConfig, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this PTYConfig to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} +declare var google: typeof npm$namespace$google; + +declare var npm$namespace$google: {| + protobuf: typeof npm$namespace$google$protobuf, +|}; + +declare var npm$namespace$google$protobuf: {| + Timestamp: typeof google$protobuf$Timestamp, +|}; + +/** + * Properties of a Timestamp. + */ +declare type google$protobuf$ITimestamp = {| + /** + * Timestamp seconds + */ + seconds?: number | null, + + /** + * Timestamp nanos + */ + nanos?: number | null, +|}; + +/** + * Represents a Timestamp. + */ +declare class google$protobuf$Timestamp { + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google$protobuf$ITimestamp): this; + + /** + * Timestamp seconds. + */ + seconds: number; + + /** + * Timestamp nanos. + */ + nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + static create( + properties?: google$protobuf$ITimestamp + ): google$protobuf$Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encode( + message: google$protobuf$Timestamp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + static encodeDelimited( + message: google$protobuf$Timestamp, + writer?: $protobuf.Writer + ): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): google$protobuf$Timestamp; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): google$protobuf$Timestamp; + + /** + * Verifies a Timestamp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + static verify(message: { + [k: string]: any, + }): string | null; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Timestamp + */ + static fromObject(object: { + [k: string]: any, + }): google$protobuf$Timestamp; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp + * @param [options] Conversion options + * @returns Plain object + */ + static toObject( + message: google$protobuf$Timestamp, + options?: $protobuf.IConversionOptions + ): { + [k: string]: any, + }; + + /** + * Converts this Timestamp to JSON. + * @returns JSON object + */ + toJSON(): { + [k: string]: any, + }; +} diff --git a/js/index.d.ts b/js/index.d.ts index b7fb2c9..44fedf2 100644 --- a/js/index.d.ts +++ b/js/index.d.ts @@ -12,34 +12,34 @@ export namespace api { session?: (number|null); /** Command openChan */ - openChan?: (api.IOpenChannel|null); + openChan?: (api.OpenChannel|api.IOpenChannel|null); /** Command openChanRes */ - openChanRes?: (api.IOpenChannelRes|null); + openChanRes?: (api.OpenChannelRes|api.IOpenChannelRes|null); /** Command closeChan */ - closeChan?: (api.ICloseChannel|null); + closeChan?: (api.CloseChannel|api.ICloseChannel|null); /** Command closeChanRes */ - closeChanRes?: (api.ICloseChannelRes|null); + closeChanRes?: (api.CloseChannelRes|api.ICloseChannelRes|null); /** Command containerState */ - containerState?: (api.IContainerState|null); + containerState?: (api.ContainerState|api.IContainerState|null); /** Command portOpen */ - portOpen?: (api.IPortOpen|null); + portOpen?: (api.PortOpen|api.IPortOpen|null); /** Command toast */ - toast?: (api.IToast|null); + toast?: (api.Toast|api.IToast|null); /** Command redirect */ - redirect?: (api.IRedirect|null); + redirect?: (api.Redirect|api.IRedirect|null); /** Command runMain */ - runMain?: (api.IRunMain|null); + runMain?: (api.RunMain|api.IRunMain|null); /** Command clear */ - clear?: (api.IClear|null); + clear?: (api.Clear|api.IClear|null); /** Command eval */ "eval"?: (string|null); @@ -57,275 +57,275 @@ export namespace api { error?: (string|null); /** Command saneTerm */ - saneTerm?: (api.ISaneTerm|null); + saneTerm?: (api.SaneTerm|api.ISaneTerm|null); /** Command resizeTerm */ - resizeTerm?: (api.IResizeTerm|null); + resizeTerm?: (api.ResizeTerm|api.IResizeTerm|null); /** Command state */ state?: (api.State|null); /** Command ok */ - ok?: (api.IOK|null); + ok?: (api.OK|api.IOK|null); /** Command persist */ - persist?: (api.IFile|null); + persist?: (api.File|api.IFile|null); /** Command persistMirror */ - persistMirror?: (api.IFile|null); + persistMirror?: (api.File|api.IFile|null); /** Command write */ - write?: (api.IFile|null); + write?: (api.File|api.IFile|null); /** Command remove */ - remove?: (api.IFile|null); + remove?: (api.File|api.IFile|null); /** Command move */ - move?: (api.IMove|null); + move?: (api.Move|api.IMove|null); /** Command tryRemove */ - tryRemove?: (api.IFile|null); + tryRemove?: (api.File|api.IFile|null); /** Command mkdir */ - mkdir?: (api.IFile|null); + mkdir?: (api.File|api.IFile|null); /** Command read */ - read?: (api.IFile|null); + read?: (api.File|api.IFile|null); /** Command readdir */ - readdir?: (api.IFile|null); + readdir?: (api.File|api.IFile|null); /** Command files */ - files?: (api.IFiles|null); + files?: (api.Files|api.IFiles|null); /** Command file */ - file?: (api.IFile|null); + file?: (api.File|api.IFile|null); /** Command checkChanges */ - checkChanges?: (api.ICheckChanges|null); + checkChanges?: (api.CheckChanges|api.ICheckChanges|null); /** Command changedFiles */ - changedFiles?: (api.IFiles|null); + changedFiles?: (api.Files|api.IFiles|null); /** Command lintResults */ - lintResults?: (api.ILintResults|null); + lintResults?: (api.LintResults|api.ILintResults|null); /** Command runContainedTest */ - runContainedTest?: (api.IContainedTest|null); + runContainedTest?: (api.ContainedTest|api.IContainedTest|null); /** Command testResult */ - testResult?: (api.ITestResult|null); + testResult?: (api.TestResult|api.ITestResult|null); /** Command debuggerStart */ debuggerStart?: (string|null); /** Command debuggerStep */ - debuggerStep?: (api.IRunMain|null); + debuggerStep?: (api.RunMain|api.IRunMain|null); /** Command debuggerStatus */ - debuggerStatus?: (api.IDebugStatus|null); + debuggerStatus?: (api.DebugStatus|api.IDebugStatus|null); /** Command ensurePackages */ - ensurePackages?: (api.IEnsurePackages|null); + ensurePackages?: (api.EnsurePackages|api.IEnsurePackages|null); /** Command ping */ - ping?: (api.IPing|null); + ping?: (api.Ping|api.IPing|null); /** Command pong */ - pong?: (api.IPong|null); + pong?: (api.Pong|api.IPong|null); /** Command hello */ - hello?: (api.IHello|null); + hello?: (api.Hello|api.IHello|null); /** Command goodbye */ - goodbye?: (api.IGoodbye|null); + goodbye?: (api.Goodbye|api.IGoodbye|null); /** Command hint */ - hint?: (api.IHint|null); + hint?: (api.Hint|api.IHint|null); /** Command connect */ - connect?: (api.IConnect|null); + connect?: (api.Connect|api.IConnect|null); /** Command send */ - send?: (api.ISend|null); + send?: (api.Send|api.ISend|null); /** Command recv */ - recv?: (api.IRecv|null); + recv?: (api.Recv|api.IRecv|null); /** Command disconnect */ - disconnect?: (api.IDisconnect|null); + disconnect?: (api.Disconnect|api.IDisconnect|null); /** Command fileAuthReq */ - fileAuthReq?: (api.IFileAuthReq|null); + fileAuthReq?: (api.FileAuthReq|api.IFileAuthReq|null); /** Command fileAuthRes */ - fileAuthRes?: (api.IFileAuthRes|null); + fileAuthRes?: (api.FileAuthRes|api.IFileAuthRes|null); /** Command mutliFileAuthRes */ - mutliFileAuthRes?: (api.IMultiFileAuthRes|null); + mutliFileAuthRes?: (api.MultiFileAuthRes|api.IMultiFileAuthRes|null); /** Command listObjects */ - listObjects?: (api.IListObjects|null); + listObjects?: (api.ListObjects|api.IListObjects|null); /** Command listObjectsResp */ - listObjectsResp?: (api.IListObjectsResp|null); + listObjectsResp?: (api.ListObjectsResp|api.IListObjectsResp|null); /** Command ot */ - ot?: (api.IOTPacket|null); + ot?: (api.OTPacket|api.IOTPacket|null); /** Command otstatus */ - otstatus?: (api.IOTStatus|null); + otstatus?: (api.OTStatus|api.IOTStatus|null); /** Command otLinkFile */ - otLinkFile?: (api.IOTLinkFile|null); + otLinkFile?: (api.OTLinkFile|api.IOTLinkFile|null); /** Command otNewCursor */ - otNewCursor?: (api.IOTCursor|null); + otNewCursor?: (api.OTCursor|api.IOTCursor|null); /** Command otDeleteCursor */ - otDeleteCursor?: (api.IOTCursor|null); + otDeleteCursor?: (api.OTCursor|api.IOTCursor|null); /** Command otFetchRequest */ - otFetchRequest?: (api.IOTFetchRequest|null); + otFetchRequest?: (api.OTFetchRequest|api.IOTFetchRequest|null); /** Command otFetchResponse */ - otFetchResponse?: (api.IOTFetchResponse|null); + otFetchResponse?: (api.OTFetchResponse|api.IOTFetchResponse|null); /** Command flush */ - flush?: (api.IFlush|null); + flush?: (api.Flush|api.IFlush|null); /** Command debug */ - debug?: (api.IDebug|null); + debug?: (api.Debug|api.IDebug|null); /** Command startVCR */ - startVCR?: (api.IStartVCR|null); + startVCR?: (api.StartVCR|api.IStartVCR|null); /** Command readVCR */ - readVCR?: (api.IReadVCR|null); + readVCR?: (api.ReadVCR|api.IReadVCR|null); /** Command VCRLog */ - VCRLog?: (api.IVCRLog|null); + VCRLog?: (api.VCRLog|api.IVCRLog|null); /** Command auth */ - auth?: (api.IAuth|null); + auth?: (api.Auth|api.IAuth|null); /** Command execInfo */ - execInfo?: (api.IExecInfo|null); + execInfo?: (api.ExecInfo|api.IExecInfo|null); /** Command subscribeFile */ - subscribeFile?: (api.ISubscribeFile|null); + subscribeFile?: (api.SubscribeFile|api.ISubscribeFile|null); /** Command fileEvent */ - fileEvent?: (api.IFileEvent|null); + fileEvent?: (api.FileEvent|api.IFileEvent|null); /** Command roster */ - roster?: (api.IRoster|null); + roster?: (api.Roster|api.IRoster|null); /** Command join */ - join?: (api.IUser|null); + join?: (api.User|api.IUser|null); /** Command part */ - part?: (api.IUser|null); + part?: (api.User|api.IUser|null); /** Command exec */ - exec?: (api.IExec|null); + exec?: (api.Exec|api.IExec|null); /** Command packageSearch */ - packageSearch?: (api.IPackageSearch|null); + packageSearch?: (api.PackageSearch|api.IPackageSearch|null); /** Command packageSearchResp */ - packageSearchResp?: (api.IPackageSearchResp|null); + packageSearchResp?: (api.PackageSearchResp|api.IPackageSearchResp|null); /** Command packageInfo */ - packageInfo?: (api.IPackageInfo|null); + packageInfo?: (api.PackageInfo|api.IPackageInfo|null); /** Command packageInfoResp */ - packageInfoResp?: (api.IPackageInfoResp|null); + packageInfoResp?: (api.PackageInfoResp|api.IPackageInfoResp|null); /** Command packageAdd */ - packageAdd?: (api.IPackageAdd|null); + packageAdd?: (api.PackageAdd|api.IPackageAdd|null); /** Command packageRemove */ - packageRemove?: (api.IPackageRemove|null); + packageRemove?: (api.PackageRemove|api.IPackageRemove|null); /** Command packageInstall */ - packageInstall?: (api.IPackageInstall|null); + packageInstall?: (api.PackageInstall|api.IPackageInstall|null); /** Command packageListSpecfile */ - packageListSpecfile?: (api.IPackageListSpecfile|null); + packageListSpecfile?: (api.PackageListSpecfile|api.IPackageListSpecfile|null); /** Command packageListSpecfileResp */ - packageListSpecfileResp?: (api.IPackageListSpecfileResp|null); + packageListSpecfileResp?: (api.PackageListSpecfileResp|api.IPackageListSpecfileResp|null); /** Command packageCacheSave */ - packageCacheSave?: (api.IPackageCacheSave|null); + packageCacheSave?: (api.PackageCacheSave|api.IPackageCacheSave|null); /** Command chatMessage */ - chatMessage?: (api.IChatMessage|null); + chatMessage?: (api.ChatMessage|api.IChatMessage|null); /** Command chatTyping */ - chatTyping?: (api.IChatTyping|null); + chatTyping?: (api.ChatTyping|api.IChatTyping|null); /** Command chatScrollback */ - chatScrollback?: (api.IChatScrollback|null); + chatScrollback?: (api.ChatScrollback|api.IChatScrollback|null); /** Command fsSnapshot */ - fsSnapshot?: (api.IFSSnapshot|null); + fsSnapshot?: (api.FSSnapshot|api.IFSSnapshot|null); /** Command fsTakeLock */ - fsTakeLock?: (api.IFSLock|null); + fsTakeLock?: (api.FSLock|api.IFSLock|null); /** Command fsReleaseLock */ - fsReleaseLock?: (api.IFSLock|null); + fsReleaseLock?: (api.FSLock|api.IFSLock|null); /** Command hasCap */ hasCap?: (boolean|null); /** Command pid1Config */ - pid1Config?: (api.IPid1Config|null); + pid1Config?: (api.Pid1Config|api.IPid1Config|null); /** Command metrics */ - metrics?: (api.IMetrics|null); + metrics?: (api.Metrics|api.IMetrics|null); /** Command bootStatus */ - bootStatus?: (api.IBootStatus|null); + bootStatus?: (api.BootStatus|api.IBootStatus|null); /** Command readMeta */ - readMeta?: (api.IReadMeta|null); + readMeta?: (api.ReadMeta|api.IReadMeta|null); /** Command writeMeta */ - writeMeta?: (api.IWriteMeta|null); + writeMeta?: (api.WriteMeta|api.IWriteMeta|null); /** Command appendMeta */ - appendMeta?: (api.IAppendMeta|null); + appendMeta?: (api.AppendMeta|api.IAppendMeta|null); /** Command audio */ - audio?: (api.IAudio|null); + audio?: (api.Audio|api.IAudio|null); /** Command pprofRequest */ - pprofRequest?: (api.IPprofRequest|null); + pprofRequest?: (api.PprofRequest|api.IPprofRequest|null); /** Command pprofResponse */ - pprofResponse?: (api.IPprofResponse|null); + pprofResponse?: (api.PprofResponse|api.IPprofResponse|null); /** Command audio2 */ - audio2?: (api.IAudio2|null); + audio2?: (api.Audio2|api.IAudio2|null); /** Command PTYConfig */ - PTYConfig?: (api.IPTYConfig|null); + PTYConfig?: (api.PTYConfig|api.IPTYConfig|null); /** Command ref */ ref?: (string|null); } /** Represents a Command. */ - class Command implements ICommand { + class Command { /** * Constructs a new Command. * @param [properties] Properties to set */ - constructor(properties?: api.ICommand); + private constructor(properties?: api.ICommand); /** Command channel. */ public channel: number; @@ -334,34 +334,34 @@ export namespace api { public session: number; /** Command openChan. */ - public openChan?: (api.IOpenChannel|null); + public openChan?: (api.OpenChannel|null); /** Command openChanRes. */ - public openChanRes?: (api.IOpenChannelRes|null); + public openChanRes?: (api.OpenChannelRes|null); /** Command closeChan. */ - public closeChan?: (api.ICloseChannel|null); + public closeChan?: (api.CloseChannel|null); /** Command closeChanRes. */ - public closeChanRes?: (api.ICloseChannelRes|null); + public closeChanRes?: (api.CloseChannelRes|null); /** Command containerState. */ - public containerState?: (api.IContainerState|null); + public containerState?: (api.ContainerState|null); /** Command portOpen. */ - public portOpen?: (api.IPortOpen|null); + public portOpen?: (api.PortOpen|null); /** Command toast. */ - public toast?: (api.IToast|null); + public toast?: (api.Toast|null); /** Command redirect. */ - public redirect?: (api.IRedirect|null); + public redirect?: (api.Redirect|null); /** Command runMain. */ - public runMain?: (api.IRunMain|null); + public runMain?: (api.RunMain|null); /** Command clear. */ - public clear?: (api.IClear|null); + public clear?: (api.Clear|null); /** Command eval. */ public eval: string; @@ -379,262 +379,262 @@ export namespace api { public error: string; /** Command saneTerm. */ - public saneTerm?: (api.ISaneTerm|null); + public saneTerm?: (api.SaneTerm|null); /** Command resizeTerm. */ - public resizeTerm?: (api.IResizeTerm|null); + public resizeTerm?: (api.ResizeTerm|null); /** Command state. */ public state: api.State; /** Command ok. */ - public ok?: (api.IOK|null); + public ok?: (api.OK|null); /** Command persist. */ - public persist?: (api.IFile|null); + public persist?: (api.File|null); /** Command persistMirror. */ - public persistMirror?: (api.IFile|null); + public persistMirror?: (api.File|null); /** Command write. */ - public write?: (api.IFile|null); + public write?: (api.File|null); /** Command remove. */ - public remove?: (api.IFile|null); + public remove?: (api.File|null); /** Command move. */ - public move?: (api.IMove|null); + public move?: (api.Move|null); /** Command tryRemove. */ - public tryRemove?: (api.IFile|null); + public tryRemove?: (api.File|null); /** Command mkdir. */ - public mkdir?: (api.IFile|null); + public mkdir?: (api.File|null); /** Command read. */ - public read?: (api.IFile|null); + public read?: (api.File|null); /** Command readdir. */ - public readdir?: (api.IFile|null); + public readdir?: (api.File|null); /** Command files. */ - public files?: (api.IFiles|null); + public files?: (api.Files|null); /** Command file. */ - public file?: (api.IFile|null); + public file?: (api.File|null); /** Command checkChanges. */ - public checkChanges?: (api.ICheckChanges|null); + public checkChanges?: (api.CheckChanges|null); /** Command changedFiles. */ - public changedFiles?: (api.IFiles|null); + public changedFiles?: (api.Files|null); /** Command lintResults. */ - public lintResults?: (api.ILintResults|null); + public lintResults?: (api.LintResults|null); /** Command runContainedTest. */ - public runContainedTest?: (api.IContainedTest|null); + public runContainedTest?: (api.ContainedTest|null); /** Command testResult. */ - public testResult?: (api.ITestResult|null); + public testResult?: (api.TestResult|null); /** Command debuggerStart. */ public debuggerStart: string; /** Command debuggerStep. */ - public debuggerStep?: (api.IRunMain|null); + public debuggerStep?: (api.RunMain|null); /** Command debuggerStatus. */ - public debuggerStatus?: (api.IDebugStatus|null); + public debuggerStatus?: (api.DebugStatus|null); /** Command ensurePackages. */ - public ensurePackages?: (api.IEnsurePackages|null); + public ensurePackages?: (api.EnsurePackages|null); /** Command ping. */ - public ping?: (api.IPing|null); + public ping?: (api.Ping|null); /** Command pong. */ - public pong?: (api.IPong|null); + public pong?: (api.Pong|null); /** Command hello. */ - public hello?: (api.IHello|null); + public hello?: (api.Hello|null); /** Command goodbye. */ - public goodbye?: (api.IGoodbye|null); + public goodbye?: (api.Goodbye|null); /** Command hint. */ - public hint?: (api.IHint|null); + public hint?: (api.Hint|null); /** Command connect. */ - public connect?: (api.IConnect|null); + public connect?: (api.Connect|null); /** Command send. */ - public send?: (api.ISend|null); + public send?: (api.Send|null); /** Command recv. */ - public recv?: (api.IRecv|null); + public recv?: (api.Recv|null); /** Command disconnect. */ - public disconnect?: (api.IDisconnect|null); + public disconnect?: (api.Disconnect|null); /** Command fileAuthReq. */ - public fileAuthReq?: (api.IFileAuthReq|null); + public fileAuthReq?: (api.FileAuthReq|null); /** Command fileAuthRes. */ - public fileAuthRes?: (api.IFileAuthRes|null); + public fileAuthRes?: (api.FileAuthRes|null); /** Command mutliFileAuthRes. */ - public mutliFileAuthRes?: (api.IMultiFileAuthRes|null); + public mutliFileAuthRes?: (api.MultiFileAuthRes|null); /** Command listObjects. */ - public listObjects?: (api.IListObjects|null); + public listObjects?: (api.ListObjects|null); /** Command listObjectsResp. */ - public listObjectsResp?: (api.IListObjectsResp|null); + public listObjectsResp?: (api.ListObjectsResp|null); /** Command ot. */ - public ot?: (api.IOTPacket|null); + public ot?: (api.OTPacket|null); /** Command otstatus. */ - public otstatus?: (api.IOTStatus|null); + public otstatus?: (api.OTStatus|null); /** Command otLinkFile. */ - public otLinkFile?: (api.IOTLinkFile|null); + public otLinkFile?: (api.OTLinkFile|null); /** Command otNewCursor. */ - public otNewCursor?: (api.IOTCursor|null); + public otNewCursor?: (api.OTCursor|null); /** Command otDeleteCursor. */ - public otDeleteCursor?: (api.IOTCursor|null); + public otDeleteCursor?: (api.OTCursor|null); /** Command otFetchRequest. */ - public otFetchRequest?: (api.IOTFetchRequest|null); + public otFetchRequest?: (api.OTFetchRequest|null); /** Command otFetchResponse. */ - public otFetchResponse?: (api.IOTFetchResponse|null); + public otFetchResponse?: (api.OTFetchResponse|null); /** Command flush. */ - public flush?: (api.IFlush|null); + public flush?: (api.Flush|null); /** Command debug. */ - public debug?: (api.IDebug|null); + public debug?: (api.Debug|null); /** Command startVCR. */ - public startVCR?: (api.IStartVCR|null); + public startVCR?: (api.StartVCR|null); /** Command readVCR. */ - public readVCR?: (api.IReadVCR|null); + public readVCR?: (api.ReadVCR|null); /** Command VCRLog. */ - public VCRLog?: (api.IVCRLog|null); + public VCRLog?: (api.VCRLog|null); /** Command auth. */ - public auth?: (api.IAuth|null); + public auth?: (api.Auth|null); /** Command execInfo. */ - public execInfo?: (api.IExecInfo|null); + public execInfo?: (api.ExecInfo|null); /** Command subscribeFile. */ - public subscribeFile?: (api.ISubscribeFile|null); + public subscribeFile?: (api.SubscribeFile|null); /** Command fileEvent. */ - public fileEvent?: (api.IFileEvent|null); + public fileEvent?: (api.FileEvent|null); /** Command roster. */ - public roster?: (api.IRoster|null); + public roster?: (api.Roster|null); /** Command join. */ - public join?: (api.IUser|null); + public join?: (api.User|null); /** Command part. */ - public part?: (api.IUser|null); + public part?: (api.User|null); /** Command exec. */ - public exec?: (api.IExec|null); + public exec?: (api.Exec|null); /** Command packageSearch. */ - public packageSearch?: (api.IPackageSearch|null); + public packageSearch?: (api.PackageSearch|null); /** Command packageSearchResp. */ - public packageSearchResp?: (api.IPackageSearchResp|null); + public packageSearchResp?: (api.PackageSearchResp|null); /** Command packageInfo. */ - public packageInfo?: (api.IPackageInfo|null); + public packageInfo?: (api.PackageInfo|null); /** Command packageInfoResp. */ - public packageInfoResp?: (api.IPackageInfoResp|null); + public packageInfoResp?: (api.PackageInfoResp|null); /** Command packageAdd. */ - public packageAdd?: (api.IPackageAdd|null); + public packageAdd?: (api.PackageAdd|null); /** Command packageRemove. */ - public packageRemove?: (api.IPackageRemove|null); + public packageRemove?: (api.PackageRemove|null); /** Command packageInstall. */ - public packageInstall?: (api.IPackageInstall|null); + public packageInstall?: (api.PackageInstall|null); /** Command packageListSpecfile. */ - public packageListSpecfile?: (api.IPackageListSpecfile|null); + public packageListSpecfile?: (api.PackageListSpecfile|null); /** Command packageListSpecfileResp. */ - public packageListSpecfileResp?: (api.IPackageListSpecfileResp|null); + public packageListSpecfileResp?: (api.PackageListSpecfileResp|null); /** Command packageCacheSave. */ - public packageCacheSave?: (api.IPackageCacheSave|null); + public packageCacheSave?: (api.PackageCacheSave|null); /** Command chatMessage. */ - public chatMessage?: (api.IChatMessage|null); + public chatMessage?: (api.ChatMessage|null); /** Command chatTyping. */ - public chatTyping?: (api.IChatTyping|null); + public chatTyping?: (api.ChatTyping|null); /** Command chatScrollback. */ - public chatScrollback?: (api.IChatScrollback|null); + public chatScrollback?: (api.ChatScrollback|null); /** Command fsSnapshot. */ - public fsSnapshot?: (api.IFSSnapshot|null); + public fsSnapshot?: (api.FSSnapshot|null); /** Command fsTakeLock. */ - public fsTakeLock?: (api.IFSLock|null); + public fsTakeLock?: (api.FSLock|null); /** Command fsReleaseLock. */ - public fsReleaseLock?: (api.IFSLock|null); + public fsReleaseLock?: (api.FSLock|null); /** Command hasCap. */ public hasCap: boolean; /** Command pid1Config. */ - public pid1Config?: (api.IPid1Config|null); + public pid1Config?: (api.Pid1Config|null); /** Command metrics. */ - public metrics?: (api.IMetrics|null); + public metrics?: (api.Metrics|null); /** Command bootStatus. */ - public bootStatus?: (api.IBootStatus|null); + public bootStatus?: (api.BootStatus|null); /** Command readMeta. */ - public readMeta?: (api.IReadMeta|null); + public readMeta?: (api.ReadMeta|null); /** Command writeMeta. */ - public writeMeta?: (api.IWriteMeta|null); + public writeMeta?: (api.WriteMeta|null); /** Command appendMeta. */ - public appendMeta?: (api.IAppendMeta|null); + public appendMeta?: (api.AppendMeta|null); /** Command audio. */ - public audio?: (api.IAudio|null); + public audio?: (api.Audio|null); /** Command pprofRequest. */ - public pprofRequest?: (api.IPprofRequest|null); + public pprofRequest?: (api.PprofRequest|null); /** Command pprofResponse. */ - public pprofResponse?: (api.IPprofResponse|null); + public pprofResponse?: (api.PprofResponse|null); /** Command audio2. */ - public audio2?: (api.IAudio2|null); + public audio2?: (api.Audio2|null); /** Command PTYConfig. */ - public PTYConfig?: (api.IPTYConfig|null); + public PTYConfig?: (api.PTYConfig|null); /** Command ref. */ public ref: string; @@ -655,7 +655,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ICommand, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Command, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Command message, length delimited. Does not implicitly {@link api.Command.verify|verify} messages. @@ -663,7 +663,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ICommand, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Command, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Command message from the specified reader or buffer. @@ -721,13 +721,13 @@ export namespace api { } /** Represents an Audio. */ - class Audio implements IAudio { + class Audio { /** * Constructs a new Audio. * @param [properties] Properties to set */ - constructor(properties?: api.IAudio); + private constructor(properties?: api.IAudio); /** Audio data. */ public data: number[]; @@ -745,7 +745,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IAudio, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Audio, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Audio message, length delimited. Does not implicitly {@link api.Audio.verify|verify} messages. @@ -753,7 +753,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IAudio, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Audio, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Audio message from the specified reader or buffer. @@ -810,23 +810,23 @@ export namespace api { data?: (number[]|null); /** Audio2 samples */ - samples?: (number|Long|null); + samples?: (number|null); } /** Represents an Audio2. */ - class Audio2 implements IAudio2 { + class Audio2 { /** * Constructs a new Audio2. * @param [properties] Properties to set */ - constructor(properties?: api.IAudio2); + private constructor(properties?: api.IAudio2); /** Audio2 data. */ public data: number[]; /** Audio2 samples. */ - public samples: (number|Long); + public samples: number; /** * Creates a new Audio2 instance using the specified properties. @@ -841,7 +841,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IAudio2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Audio2, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Audio2 message, length delimited. Does not implicitly {@link api.Audio2.verify|verify} messages. @@ -849,7 +849,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IAudio2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Audio2, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Audio2 message from the specified reader or buffer. @@ -913,13 +913,13 @@ export namespace api { } /** Represents a ReadMeta. */ - class ReadMeta implements IReadMeta { + class ReadMeta { /** * Constructs a new ReadMeta. * @param [properties] Properties to set */ - constructor(properties?: api.IReadMeta); + private constructor(properties?: api.IReadMeta); /** ReadMeta key. */ public key: string; @@ -943,7 +943,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IReadMeta, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ReadMeta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ReadMeta message, length delimited. Does not implicitly {@link api.ReadMeta.verify|verify} messages. @@ -951,7 +951,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IReadMeta, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ReadMeta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ReadMeta message from the specified reader or buffer. @@ -1012,13 +1012,13 @@ export namespace api { } /** Represents a WriteMeta. */ - class WriteMeta implements IWriteMeta { + class WriteMeta { /** * Constructs a new WriteMeta. * @param [properties] Properties to set */ - constructor(properties?: api.IWriteMeta); + private constructor(properties?: api.IWriteMeta); /** WriteMeta key. */ public key: string; @@ -1039,7 +1039,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IWriteMeta, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.WriteMeta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified WriteMeta message, length delimited. Does not implicitly {@link api.WriteMeta.verify|verify} messages. @@ -1047,7 +1047,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IWriteMeta, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.WriteMeta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a WriteMeta message from the specified reader or buffer. @@ -1108,13 +1108,13 @@ export namespace api { } /** Represents an AppendMeta. */ - class AppendMeta implements IAppendMeta { + class AppendMeta { /** * Constructs a new AppendMeta. * @param [properties] Properties to set */ - constructor(properties?: api.IAppendMeta); + private constructor(properties?: api.IAppendMeta); /** AppendMeta key. */ public key: string; @@ -1135,7 +1135,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IAppendMeta, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.AppendMeta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AppendMeta message, length delimited. Does not implicitly {@link api.AppendMeta.verify|verify} messages. @@ -1143,7 +1143,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IAppendMeta, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.AppendMeta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AppendMeta message from the specified reader or buffer. @@ -1207,13 +1207,13 @@ export namespace api { } /** Represents a BootStatus. */ - class BootStatus implements IBootStatus { + class BootStatus { /** * Constructs a new BootStatus. * @param [properties] Properties to set */ - constructor(properties?: api.IBootStatus); + private constructor(properties?: api.IBootStatus); /** BootStatus stage. */ public stage: api.BootStatus.Stage; @@ -1237,7 +1237,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IBootStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.BootStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BootStatus message, length delimited. Does not implicitly {@link api.BootStatus.verify|verify} messages. @@ -1245,7 +1245,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IBootStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.BootStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BootStatus message from the specified reader or buffer. @@ -1323,13 +1323,13 @@ export namespace api { } /** Represents a Pid1Config. */ - class Pid1Config implements IPid1Config { + class Pid1Config { /** * Constructs a new Pid1Config. * @param [properties] Properties to set */ - constructor(properties?: api.IPid1Config); + private constructor(properties?: api.IPid1Config); /** Pid1Config cwd. */ public cwd: string; @@ -1353,7 +1353,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPid1Config, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Pid1Config, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Pid1Config message, length delimited. Does not implicitly {@link api.Pid1Config.verify|verify} messages. @@ -1361,7 +1361,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPid1Config, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Pid1Config, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Pid1Config message from the specified reader or buffer. @@ -1419,13 +1419,13 @@ export namespace api { } /** Represents a FSLock. */ - class FSLock implements IFSLock { + class FSLock { /** * Constructs a new FSLock. * @param [properties] Properties to set */ - constructor(properties?: api.IFSLock); + private constructor(properties?: api.IFSLock); /** FSLock name. */ public name: string; @@ -1443,7 +1443,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IFSLock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.FSLock, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified FSLock message, length delimited. Does not implicitly {@link api.FSLock.verify|verify} messages. @@ -1451,7 +1451,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IFSLock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.FSLock, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FSLock message from the specified reader or buffer. @@ -1506,13 +1506,13 @@ export namespace api { } /** Represents a FSSnapshot. */ - class FSSnapshot implements IFSSnapshot { + class FSSnapshot { /** * Constructs a new FSSnapshot. * @param [properties] Properties to set */ - constructor(properties?: api.IFSSnapshot); + private constructor(properties?: api.IFSSnapshot); /** * Creates a new FSSnapshot instance using the specified properties. @@ -1527,7 +1527,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IFSSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.FSSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified FSSnapshot message, length delimited. Does not implicitly {@link api.FSSnapshot.verify|verify} messages. @@ -1535,7 +1535,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IFSSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.FSSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FSSnapshot message from the specified reader or buffer. @@ -1589,20 +1589,20 @@ export namespace api { interface ISubscribeFile { /** SubscribeFile files */ - files?: (api.IFile[]|null); + files?: ((api.File|api.IFile)[]|null); } /** Represents a SubscribeFile. */ - class SubscribeFile implements ISubscribeFile { + class SubscribeFile { /** * Constructs a new SubscribeFile. * @param [properties] Properties to set */ - constructor(properties?: api.ISubscribeFile); + private constructor(properties?: api.ISubscribeFile); /** SubscribeFile files. */ - public files: api.IFile[]; + public files: api.File[]; /** * Creates a new SubscribeFile instance using the specified properties. @@ -1617,7 +1617,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ISubscribeFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.SubscribeFile, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SubscribeFile message, length delimited. Does not implicitly {@link api.SubscribeFile.verify|verify} messages. @@ -1625,7 +1625,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ISubscribeFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.SubscribeFile, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SubscribeFile message from the specified reader or buffer. @@ -1679,29 +1679,29 @@ export namespace api { interface IFileEvent { /** FileEvent file */ - file?: (api.IFile|null); + file?: (api.File|api.IFile|null); /** FileEvent dest */ - dest?: (api.IFile|null); + dest?: (api.File|api.IFile|null); /** FileEvent op */ op?: (api.FileEvent.Op|null); } /** Represents a FileEvent. */ - class FileEvent implements IFileEvent { + class FileEvent { /** * Constructs a new FileEvent. * @param [properties] Properties to set */ - constructor(properties?: api.IFileEvent); + private constructor(properties?: api.IFileEvent); /** FileEvent file. */ - public file?: (api.IFile|null); + public file?: (api.File|null); /** FileEvent dest. */ - public dest?: (api.IFile|null); + public dest?: (api.File|null); /** FileEvent op. */ public op: api.FileEvent.Op; @@ -1719,7 +1719,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IFileEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.FileEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified FileEvent message, length delimited. Does not implicitly {@link api.FileEvent.verify|verify} messages. @@ -1727,7 +1727,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IFileEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.FileEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FileEvent message from the specified reader or buffer. @@ -1793,13 +1793,13 @@ export namespace api { } /** Represents a Flush. */ - class Flush implements IFlush { + class Flush { /** * Constructs a new Flush. * @param [properties] Properties to set */ - constructor(properties?: api.IFlush); + private constructor(properties?: api.IFlush); /** * Creates a new Flush instance using the specified properties. @@ -1814,7 +1814,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IFlush, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Flush, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Flush message, length delimited. Does not implicitly {@link api.Flush.verify|verify} messages. @@ -1822,7 +1822,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IFlush, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Flush, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Flush message from the specified reader or buffer. @@ -1876,7 +1876,7 @@ export namespace api { interface IOTLinkFile { /** OTLinkFile file */ - file?: (api.IFile|null); + file?: (api.File|api.IFile|null); /** OTLinkFile highConsistency */ highConsistency?: (boolean|null); @@ -1886,16 +1886,16 @@ export namespace api { } /** Represents a OTLinkFile. */ - class OTLinkFile implements IOTLinkFile { + class OTLinkFile { /** * Constructs a new OTLinkFile. * @param [properties] Properties to set */ - constructor(properties?: api.IOTLinkFile); + private constructor(properties?: api.IOTLinkFile); /** OTLinkFile file. */ - public file?: (api.IFile|null); + public file?: (api.File|null); /** OTLinkFile highConsistency. */ public highConsistency: boolean; @@ -1916,7 +1916,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOTLinkFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OTLinkFile, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OTLinkFile message, length delimited. Does not implicitly {@link api.OTLinkFile.verify|verify} messages. @@ -1924,7 +1924,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOTLinkFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OTLinkFile, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a OTLinkFile message from the specified reader or buffer. @@ -1985,13 +1985,13 @@ export namespace api { } /** Represents an Auth. */ - class Auth implements IAuth { + class Auth { /** * Constructs a new Auth. * @param [properties] Properties to set */ - constructor(properties?: api.IAuth); + private constructor(properties?: api.IAuth); /** Auth token. */ public token: string; @@ -2012,7 +2012,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Auth, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Auth message, length delimited. Does not implicitly {@link api.Auth.verify|verify} messages. @@ -2020,7 +2020,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Auth, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Auth message from the specified reader or buffer. @@ -2074,35 +2074,35 @@ export namespace api { interface IVCREntry { /** VCREntry timestamp */ - timestamp?: (number|Long|null); + timestamp?: (number|null); /** VCREntry direction */ direction?: (api.VCREntry.Direction|null); /** VCREntry command */ - command?: (api.ICommand|null); + command?: (api.Command|api.ICommand|null); /** VCREntry uid */ uid?: (string|null); } /** Represents a VCREntry. */ - class VCREntry implements IVCREntry { + class VCREntry { /** * Constructs a new VCREntry. * @param [properties] Properties to set */ - constructor(properties?: api.IVCREntry); + private constructor(properties?: api.IVCREntry); /** VCREntry timestamp. */ - public timestamp: (number|Long); + public timestamp: number; /** VCREntry direction. */ public direction: api.VCREntry.Direction; /** VCREntry command. */ - public command?: (api.ICommand|null); + public command?: (api.Command|null); /** VCREntry uid. */ public uid: string; @@ -2120,7 +2120,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IVCREntry, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.VCREntry, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified VCREntry message, length delimited. Does not implicitly {@link api.VCREntry.verify|verify} messages. @@ -2128,7 +2128,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IVCREntry, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.VCREntry, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a VCREntry message from the specified reader or buffer. @@ -2192,13 +2192,13 @@ export namespace api { } /** Represents a StartVCR. */ - class StartVCR implements IStartVCR { + class StartVCR { /** * Constructs a new StartVCR. * @param [properties] Properties to set */ - constructor(properties?: api.IStartVCR); + private constructor(properties?: api.IStartVCR); /** * Creates a new StartVCR instance using the specified properties. @@ -2213,7 +2213,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IStartVCR, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.StartVCR, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified StartVCR message, length delimited. Does not implicitly {@link api.StartVCR.verify|verify} messages. @@ -2221,7 +2221,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IStartVCR, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.StartVCR, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StartVCR message from the specified reader or buffer. @@ -2276,13 +2276,13 @@ export namespace api { } /** Represents a ReadVCR. */ - class ReadVCR implements IReadVCR { + class ReadVCR { /** * Constructs a new ReadVCR. * @param [properties] Properties to set */ - constructor(properties?: api.IReadVCR); + private constructor(properties?: api.IReadVCR); /** * Creates a new ReadVCR instance using the specified properties. @@ -2297,7 +2297,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IReadVCR, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ReadVCR, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ReadVCR message, length delimited. Does not implicitly {@link api.ReadVCR.verify|verify} messages. @@ -2305,7 +2305,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IReadVCR, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ReadVCR, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ReadVCR message from the specified reader or buffer. @@ -2359,26 +2359,26 @@ export namespace api { interface IVCRLog { /** VCRLog log */ - log?: (api.IVCREntry[]|null); + log?: ((api.VCREntry|api.IVCREntry)[]|null); /** VCRLog logfile */ - logfile?: (api.IFile|null); + logfile?: (api.File|api.IFile|null); } /** Represents a VCRLog. */ - class VCRLog implements IVCRLog { + class VCRLog { /** * Constructs a new VCRLog. * @param [properties] Properties to set */ - constructor(properties?: api.IVCRLog); + private constructor(properties?: api.IVCRLog); /** VCRLog log. */ - public log: api.IVCREntry[]; + public log: api.VCREntry[]; /** VCRLog logfile. */ - public logfile?: (api.IFile|null); + public logfile?: (api.File|null); /** * Creates a new VCRLog instance using the specified properties. @@ -2393,7 +2393,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IVCRLog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.VCRLog, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified VCRLog message, length delimited. Does not implicitly {@link api.VCRLog.verify|verify} messages. @@ -2401,7 +2401,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IVCRLog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.VCRLog, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a VCRLog message from the specified reader or buffer. @@ -2462,13 +2462,13 @@ export namespace api { } /** Represents an ExecInfo. */ - class ExecInfo implements IExecInfo { + class ExecInfo { /** * Constructs a new ExecInfo. * @param [properties] Properties to set */ - constructor(properties?: api.IExecInfo); + private constructor(properties?: api.IExecInfo); /** ExecInfo command. */ public command: string[]; @@ -2489,7 +2489,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IExecInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ExecInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ExecInfo message, length delimited. Does not implicitly {@link api.ExecInfo.verify|verify} messages. @@ -2497,7 +2497,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IExecInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ExecInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ExecInfo message from the specified reader or buffer. @@ -2555,13 +2555,13 @@ export namespace api { } /** Represents a Debug. */ - class Debug implements IDebug { + class Debug { /** * Constructs a new Debug. * @param [properties] Properties to set */ - constructor(properties?: api.IDebug); + private constructor(properties?: api.IDebug); /** Debug text. */ public text: string; @@ -2579,7 +2579,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IDebug, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Debug, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Debug message, length delimited. Does not implicitly {@link api.Debug.verify|verify} messages. @@ -2587,7 +2587,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IDebug, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Debug, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Debug message from the specified reader or buffer. @@ -2649,23 +2649,23 @@ export namespace api { interface IFileAuthReq { /** FileAuthReq file */ - file?: (api.IFile|null); + file?: (api.File|api.IFile|null); /** FileAuthReq method */ method?: (api.FileAuthMethod|null); } /** Represents a FileAuthReq. */ - class FileAuthReq implements IFileAuthReq { + class FileAuthReq { /** * Constructs a new FileAuthReq. * @param [properties] Properties to set */ - constructor(properties?: api.IFileAuthReq); + private constructor(properties?: api.IFileAuthReq); /** FileAuthReq file. */ - public file?: (api.IFile|null); + public file?: (api.File|null); /** FileAuthReq method. */ public method: api.FileAuthMethod; @@ -2683,7 +2683,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IFileAuthReq, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.FileAuthReq, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified FileAuthReq message, length delimited. Does not implicitly {@link api.FileAuthReq.verify|verify} messages. @@ -2691,7 +2691,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IFileAuthReq, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.FileAuthReq, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FileAuthReq message from the specified reader or buffer. @@ -2745,32 +2745,32 @@ export namespace api { interface IMultiFileAuthRes { /** MultiFileAuthRes put */ - put?: (api.IFileAuthRes|null); + put?: (api.FileAuthRes|api.IFileAuthRes|null); /** MultiFileAuthRes del */ - del?: (api.IFileAuthRes|null); + del?: (api.FileAuthRes|api.IFileAuthRes|null); /** MultiFileAuthRes get */ - get?: (api.IFileAuthRes|null); + get?: (api.FileAuthRes|api.IFileAuthRes|null); } /** Represents a MultiFileAuthRes. */ - class MultiFileAuthRes implements IMultiFileAuthRes { + class MultiFileAuthRes { /** * Constructs a new MultiFileAuthRes. * @param [properties] Properties to set */ - constructor(properties?: api.IMultiFileAuthRes); + private constructor(properties?: api.IMultiFileAuthRes); /** MultiFileAuthRes put. */ - public put?: (api.IFileAuthRes|null); + public put?: (api.FileAuthRes|null); /** MultiFileAuthRes del. */ - public del?: (api.IFileAuthRes|null); + public del?: (api.FileAuthRes|null); /** MultiFileAuthRes get. */ - public get?: (api.IFileAuthRes|null); + public get?: (api.FileAuthRes|null); /** * Creates a new MultiFileAuthRes instance using the specified properties. @@ -2785,7 +2785,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IMultiFileAuthRes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.MultiFileAuthRes, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified MultiFileAuthRes message, length delimited. Does not implicitly {@link api.MultiFileAuthRes.verify|verify} messages. @@ -2793,7 +2793,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IMultiFileAuthRes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.MultiFileAuthRes, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MultiFileAuthRes message from the specified reader or buffer. @@ -2847,7 +2847,7 @@ export namespace api { interface IFileAuthRes { /** FileAuthRes file */ - file?: (api.IFile|null); + file?: (api.File|api.IFile|null); /** FileAuthRes url */ url?: (string|null); @@ -2856,23 +2856,23 @@ export namespace api { method?: (api.FileAuthMethod|null); /** FileAuthRes expire */ - expire?: (number|Long|null); + expire?: (number|null); /** FileAuthRes error */ error?: (string|null); } /** Represents a FileAuthRes. */ - class FileAuthRes implements IFileAuthRes { + class FileAuthRes { /** * Constructs a new FileAuthRes. * @param [properties] Properties to set */ - constructor(properties?: api.IFileAuthRes); + private constructor(properties?: api.IFileAuthRes); /** FileAuthRes file. */ - public file?: (api.IFile|null); + public file?: (api.File|null); /** FileAuthRes url. */ public url: string; @@ -2881,7 +2881,7 @@ export namespace api { public method: api.FileAuthMethod; /** FileAuthRes expire. */ - public expire: (number|Long); + public expire: number; /** FileAuthRes error. */ public error: string; @@ -2899,7 +2899,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IFileAuthRes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.FileAuthRes, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified FileAuthRes message, length delimited. Does not implicitly {@link api.FileAuthRes.verify|verify} messages. @@ -2907,7 +2907,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IFileAuthRes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.FileAuthRes, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FileAuthRes message from the specified reader or buffer. @@ -2965,13 +2965,13 @@ export namespace api { } /** Represents a ListObjects. */ - class ListObjects implements IListObjects { + class ListObjects { /** * Constructs a new ListObjects. * @param [properties] Properties to set */ - constructor(properties?: api.IListObjects); + private constructor(properties?: api.IListObjects); /** ListObjects prefix. */ public prefix: string; @@ -2989,7 +2989,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IListObjects, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ListObjects, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListObjects message, length delimited. Does not implicitly {@link api.ListObjects.verify|verify} messages. @@ -2997,7 +2997,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IListObjects, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ListObjects, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListObjects message from the specified reader or buffer. @@ -3055,13 +3055,13 @@ export namespace api { } /** Represents a ListObjectsResp. */ - class ListObjectsResp implements IListObjectsResp { + class ListObjectsResp { /** * Constructs a new ListObjectsResp. * @param [properties] Properties to set */ - constructor(properties?: api.IListObjectsResp); + private constructor(properties?: api.IListObjectsResp); /** ListObjectsResp objects. */ public objects: string[]; @@ -3079,7 +3079,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IListObjectsResp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ListObjectsResp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListObjectsResp message, length delimited. Does not implicitly {@link api.ListObjectsResp.verify|verify} messages. @@ -3087,7 +3087,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IListObjectsResp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ListObjectsResp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListObjectsResp message from the specified reader or buffer. @@ -3145,13 +3145,13 @@ export namespace api { } /** Represents a Disconnect. */ - class Disconnect implements IDisconnect { + class Disconnect { /** * Constructs a new Disconnect. * @param [properties] Properties to set */ - constructor(properties?: api.IDisconnect); + private constructor(properties?: api.IDisconnect); /** Disconnect error. */ public error: string; @@ -3169,7 +3169,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IDisconnect, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Disconnect, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Disconnect message, length delimited. Does not implicitly {@link api.Disconnect.verify|verify} messages. @@ -3177,7 +3177,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IDisconnect, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Disconnect, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Disconnect message from the specified reader or buffer. @@ -3235,13 +3235,13 @@ export namespace api { } /** Represents a Send. */ - class Send implements ISend { + class Send { /** * Constructs a new Send. * @param [properties] Properties to set */ - constructor(properties?: api.ISend); + private constructor(properties?: api.ISend); /** Send buff. */ public buff: Uint8Array; @@ -3259,7 +3259,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ISend, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Send, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Send message, length delimited. Does not implicitly {@link api.Send.verify|verify} messages. @@ -3267,7 +3267,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ISend, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Send, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Send message from the specified reader or buffer. @@ -3325,13 +3325,13 @@ export namespace api { } /** Represents a Recv. */ - class Recv implements IRecv { + class Recv { /** * Constructs a new Recv. * @param [properties] Properties to set */ - constructor(properties?: api.IRecv); + private constructor(properties?: api.IRecv); /** Recv buff. */ public buff: Uint8Array; @@ -3349,7 +3349,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IRecv, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Recv, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Recv message, length delimited. Does not implicitly {@link api.Recv.verify|verify} messages. @@ -3357,7 +3357,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IRecv, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Recv, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Recv message from the specified reader or buffer. @@ -3418,13 +3418,13 @@ export namespace api { } /** Represents a Connect. */ - class Connect implements IConnect { + class Connect { /** * Constructs a new Connect. * @param [properties] Properties to set */ - constructor(properties?: api.IConnect); + private constructor(properties?: api.IConnect); /** Connect proto. */ public proto: string; @@ -3445,7 +3445,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IConnect, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Connect, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Connect message, length delimited. Does not implicitly {@link api.Connect.verify|verify} messages. @@ -3453,7 +3453,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IConnect, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Connect, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Connect message from the specified reader or buffer. @@ -3511,13 +3511,13 @@ export namespace api { } /** Represents a Hint. */ - class Hint implements IHint { + class Hint { /** * Constructs a new Hint. * @param [properties] Properties to set */ - constructor(properties?: api.IHint); + private constructor(properties?: api.IHint); /** Hint text. */ public text: string; @@ -3535,7 +3535,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IHint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Hint, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Hint message, length delimited. Does not implicitly {@link api.Hint.verify|verify} messages. @@ -3543,7 +3543,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IHint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Hint, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Hint message from the specified reader or buffer. @@ -3598,13 +3598,13 @@ export namespace api { } /** Represents a Ping. */ - class Ping implements IPing { + class Ping { /** * Constructs a new Ping. * @param [properties] Properties to set */ - constructor(properties?: api.IPing); + private constructor(properties?: api.IPing); /** * Creates a new Ping instance using the specified properties. @@ -3619,7 +3619,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPing, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Ping, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Ping message, length delimited. Does not implicitly {@link api.Ping.verify|verify} messages. @@ -3627,7 +3627,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPing, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Ping, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Ping message from the specified reader or buffer. @@ -3682,13 +3682,13 @@ export namespace api { } /** Represents a Pong. */ - class Pong implements IPong { + class Pong { /** * Constructs a new Pong. * @param [properties] Properties to set */ - constructor(properties?: api.IPong); + private constructor(properties?: api.IPong); /** * Creates a new Pong instance using the specified properties. @@ -3703,7 +3703,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPong, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Pong, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Pong message, length delimited. Does not implicitly {@link api.Pong.verify|verify} messages. @@ -3711,7 +3711,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPong, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Pong, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Pong message from the specified reader or buffer. @@ -3775,13 +3775,13 @@ export namespace api { } /** Represents a Hello. */ - class Hello implements IHello { + class Hello { /** * Constructs a new Hello. * @param [properties] Properties to set */ - constructor(properties?: api.IHello); + private constructor(properties?: api.IHello); /** Hello userid. */ public userid: number; @@ -3805,7 +3805,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IHello, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Hello, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Hello message, length delimited. Does not implicitly {@link api.Hello.verify|verify} messages. @@ -3813,7 +3813,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IHello, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Hello, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Hello message from the specified reader or buffer. @@ -3868,13 +3868,13 @@ export namespace api { } /** Represents a Goodbye. */ - class Goodbye implements IGoodbye { + class Goodbye { /** * Constructs a new Goodbye. * @param [properties] Properties to set */ - constructor(properties?: api.IGoodbye); + private constructor(properties?: api.IGoodbye); /** * Creates a new Goodbye instance using the specified properties. @@ -3889,7 +3889,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IGoodbye, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Goodbye, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Goodbye message, length delimited. Does not implicitly {@link api.Goodbye.verify|verify} messages. @@ -3897,7 +3897,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IGoodbye, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Goodbye, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Goodbye message from the specified reader or buffer. @@ -3958,13 +3958,13 @@ export namespace api { } /** Represents a CheckChanges. */ - class CheckChanges implements ICheckChanges { + class CheckChanges { /** * Constructs a new CheckChanges. * @param [properties] Properties to set */ - constructor(properties?: api.ICheckChanges); + private constructor(properties?: api.ICheckChanges); /** * Creates a new CheckChanges instance using the specified properties. @@ -3979,7 +3979,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ICheckChanges, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.CheckChanges, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CheckChanges message, length delimited. Does not implicitly {@link api.CheckChanges.verify|verify} messages. @@ -3987,7 +3987,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ICheckChanges, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.CheckChanges, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CheckChanges message from the specified reader or buffer. @@ -4044,23 +4044,23 @@ export namespace api { install?: (boolean|null); /** EnsurePackages file */ - file?: (api.IFile|null); + file?: (api.File|api.IFile|null); } /** Represents an EnsurePackages. */ - class EnsurePackages implements IEnsurePackages { + class EnsurePackages { /** * Constructs a new EnsurePackages. * @param [properties] Properties to set */ - constructor(properties?: api.IEnsurePackages); + private constructor(properties?: api.IEnsurePackages); /** EnsurePackages install. */ public install: boolean; /** EnsurePackages file. */ - public file?: (api.IFile|null); + public file?: (api.File|null); /** * Creates a new EnsurePackages instance using the specified properties. @@ -4075,7 +4075,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IEnsurePackages, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.EnsurePackages, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified EnsurePackages message, length delimited. Does not implicitly {@link api.EnsurePackages.verify|verify} messages. @@ -4083,7 +4083,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IEnsurePackages, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.EnsurePackages, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an EnsurePackages message from the specified reader or buffer. @@ -4138,13 +4138,13 @@ export namespace api { } /** Represents a Start. */ - class Start implements IStart { + class Start { /** * Constructs a new Start. * @param [properties] Properties to set */ - constructor(properties?: api.IStart); + private constructor(properties?: api.IStart); /** * Creates a new Start instance using the specified properties. @@ -4159,7 +4159,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IStart, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Start, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Start message, length delimited. Does not implicitly {@link api.Start.verify|verify} messages. @@ -4167,7 +4167,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IStart, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Start, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Start message from the specified reader or buffer. @@ -4224,23 +4224,23 @@ export namespace api { done?: (boolean|null); /** DebugStatus stack */ - stack?: (api.IStackFrame[]|null); + stack?: ((api.StackFrame|api.IStackFrame)[]|null); } /** Represents a DebugStatus. */ - class DebugStatus implements IDebugStatus { + class DebugStatus { /** * Constructs a new DebugStatus. * @param [properties] Properties to set */ - constructor(properties?: api.IDebugStatus); + private constructor(properties?: api.IDebugStatus); /** DebugStatus done. */ public done: boolean; /** DebugStatus stack. */ - public stack: api.IStackFrame[]; + public stack: api.StackFrame[]; /** * Creates a new DebugStatus instance using the specified properties. @@ -4255,7 +4255,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IDebugStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.DebugStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified DebugStatus message, length delimited. Does not implicitly {@link api.DebugStatus.verify|verify} messages. @@ -4263,7 +4263,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IDebugStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.DebugStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DebugStatus message from the specified reader or buffer. @@ -4324,13 +4324,13 @@ export namespace api { } /** Represents a StackFrame. */ - class StackFrame implements IStackFrame { + class StackFrame { /** * Constructs a new StackFrame. * @param [properties] Properties to set */ - constructor(properties?: api.IStackFrame); + private constructor(properties?: api.IStackFrame); /** StackFrame function. */ public function: string; @@ -4351,7 +4351,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IStackFrame, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.StackFrame, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified StackFrame message, length delimited. Does not implicitly {@link api.StackFrame.verify|verify} messages. @@ -4359,7 +4359,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IStackFrame, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.StackFrame, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StackFrame message from the specified reader or buffer. @@ -4413,26 +4413,26 @@ export namespace api { interface IContainedTest { /** ContainedTest suite */ - suite?: (api.IFile|null); + suite?: (api.File|api.IFile|null); /** ContainedTest project */ - project?: (api.IFile[]|null); + project?: ((api.File|api.IFile)[]|null); } /** Represents a ContainedTest. */ - class ContainedTest implements IContainedTest { + class ContainedTest { /** * Constructs a new ContainedTest. * @param [properties] Properties to set */ - constructor(properties?: api.IContainedTest); + private constructor(properties?: api.IContainedTest); /** ContainedTest suite. */ - public suite?: (api.IFile|null); + public suite?: (api.File|null); /** ContainedTest project. */ - public project: api.IFile[]; + public project: api.File[]; /** * Creates a new ContainedTest instance using the specified properties. @@ -4447,7 +4447,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IContainedTest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ContainedTest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ContainedTest message, length delimited. Does not implicitly {@link api.ContainedTest.verify|verify} messages. @@ -4455,7 +4455,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IContainedTest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ContainedTest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ContainedTest message from the specified reader or buffer. @@ -4515,17 +4515,17 @@ export namespace api { stderr?: (string|null); /** TestResult fails */ - fails?: (api.ITestFailure[]|null); + fails?: ((api.TestFailure|api.ITestFailure)[]|null); } /** Represents a TestResult. */ - class TestResult implements ITestResult { + class TestResult { /** * Constructs a new TestResult. * @param [properties] Properties to set */ - constructor(properties?: api.ITestResult); + private constructor(properties?: api.ITestResult); /** TestResult passed. */ public passed: boolean; @@ -4534,7 +4534,7 @@ export namespace api { public stderr: string; /** TestResult fails. */ - public fails: api.ITestFailure[]; + public fails: api.TestFailure[]; /** * Creates a new TestResult instance using the specified properties. @@ -4549,7 +4549,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ITestResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.TestResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified TestResult message, length delimited. Does not implicitly {@link api.TestResult.verify|verify} messages. @@ -4557,7 +4557,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ITestResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.TestResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TestResult message from the specified reader or buffer. @@ -4618,13 +4618,13 @@ export namespace api { } /** Represents a TestFailure. */ - class TestFailure implements ITestFailure { + class TestFailure { /** * Constructs a new TestFailure. * @param [properties] Properties to set */ - constructor(properties?: api.ITestFailure); + private constructor(properties?: api.ITestFailure); /** TestFailure name. */ public name: string; @@ -4645,7 +4645,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ITestFailure, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.TestFailure, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified TestFailure message, length delimited. Does not implicitly {@link api.TestFailure.verify|verify} messages. @@ -4653,7 +4653,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ITestFailure, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.TestFailure, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TestFailure message from the specified reader or buffer. @@ -4714,13 +4714,13 @@ export namespace api { } /** Represents a ResizeTerm. */ - class ResizeTerm implements IResizeTerm { + class ResizeTerm { /** * Constructs a new ResizeTerm. * @param [properties] Properties to set */ - constructor(properties?: api.IResizeTerm); + private constructor(properties?: api.IResizeTerm); /** ResizeTerm rows. */ public rows: number; @@ -4741,7 +4741,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IResizeTerm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ResizeTerm, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ResizeTerm message, length delimited. Does not implicitly {@link api.ResizeTerm.verify|verify} messages. @@ -4749,7 +4749,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IResizeTerm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ResizeTerm, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ResizeTerm message from the specified reader or buffer. @@ -4804,13 +4804,13 @@ export namespace api { } /** Represents a SaneTerm. */ - class SaneTerm implements ISaneTerm { + class SaneTerm { /** * Constructs a new SaneTerm. * @param [properties] Properties to set */ - constructor(properties?: api.ISaneTerm); + private constructor(properties?: api.ISaneTerm); /** * Creates a new SaneTerm instance using the specified properties. @@ -4825,7 +4825,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ISaneTerm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.SaneTerm, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SaneTerm message, length delimited. Does not implicitly {@link api.SaneTerm.verify|verify} messages. @@ -4833,7 +4833,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ISaneTerm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.SaneTerm, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SaneTerm message from the specified reader or buffer. @@ -4887,20 +4887,20 @@ export namespace api { interface ILintResults { /** LintResults results */ - results?: (api.ILintResult[]|null); + results?: ((api.LintResult|api.ILintResult)[]|null); } /** Represents a LintResults. */ - class LintResults implements ILintResults { + class LintResults { /** * Constructs a new LintResults. * @param [properties] Properties to set */ - constructor(properties?: api.ILintResults); + private constructor(properties?: api.ILintResults); /** LintResults results. */ - public results: api.ILintResult[]; + public results: api.LintResult[]; /** * Creates a new LintResults instance using the specified properties. @@ -4915,7 +4915,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ILintResults, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.LintResults, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified LintResults message, length delimited. Does not implicitly {@link api.LintResults.verify|verify} messages. @@ -4923,7 +4923,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ILintResults, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.LintResults, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LintResults message from the specified reader or buffer. @@ -4990,13 +4990,13 @@ export namespace api { } /** Represents a LintResult. */ - class LintResult implements ILintResult { + class LintResult { /** * Constructs a new LintResult. * @param [properties] Properties to set */ - constructor(properties?: api.ILintResult); + private constructor(properties?: api.ILintResult); /** LintResult text. */ public text: string; @@ -5023,7 +5023,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ILintResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.LintResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified LintResult message, length delimited. Does not implicitly {@link api.LintResult.verify|verify} messages. @@ -5031,7 +5031,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ILintResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.LintResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LintResult message from the specified reader or buffer. @@ -5086,13 +5086,13 @@ export namespace api { } /** Represents a OK. */ - class OK implements IOK { + class OK { /** * Constructs a new OK. * @param [properties] Properties to set */ - constructor(properties?: api.IOK); + private constructor(properties?: api.IOK); /** * Creates a new OK instance using the specified properties. @@ -5107,7 +5107,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOK, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OK, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OK message, length delimited. Does not implicitly {@link api.OK.verify|verify} messages. @@ -5115,7 +5115,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOK, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OK, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a OK message from the specified reader or buffer. @@ -5176,13 +5176,13 @@ export namespace api { } /** Represents a Move. */ - class Move implements IMove { + class Move { /** * Constructs a new Move. * @param [properties] Properties to set */ - constructor(properties?: api.IMove); + private constructor(properties?: api.IMove); /** Move oldPath. */ public oldPath: string; @@ -5203,7 +5203,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IMove, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Move, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Move message, length delimited. Does not implicitly {@link api.Move.verify|verify} messages. @@ -5211,7 +5211,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IMove, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Move, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Move message from the specified reader or buffer. @@ -5265,20 +5265,20 @@ export namespace api { interface IFiles { /** Files files */ - files?: (api.IFile[]|null); + files?: ((api.File|api.IFile)[]|null); } /** Represents a Files. */ - class Files implements IFiles { + class Files { /** * Constructs a new Files. * @param [properties] Properties to set */ - constructor(properties?: api.IFiles); + private constructor(properties?: api.IFiles); /** Files files. */ - public files: api.IFile[]; + public files: api.File[]; /** * Creates a new Files instance using the specified properties. @@ -5293,7 +5293,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IFiles, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Files, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Files message, length delimited. Does not implicitly {@link api.Files.verify|verify} messages. @@ -5301,7 +5301,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IFiles, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Files, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Files message from the specified reader or buffer. @@ -5365,13 +5365,13 @@ export namespace api { } /** Represents a File. */ - class File implements IFile { + class File { /** * Constructs a new File. * @param [properties] Properties to set */ - constructor(properties?: api.IFile); + private constructor(properties?: api.IFile); /** File path. */ public path: string; @@ -5395,7 +5395,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.File, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified File message, length delimited. Does not implicitly {@link api.File.verify|verify} messages. @@ -5403,7 +5403,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.File, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a File message from the specified reader or buffer. @@ -5467,13 +5467,13 @@ export namespace api { } /** Represents a Clear. */ - class Clear implements IClear { + class Clear { /** * Constructs a new Clear. * @param [properties] Properties to set */ - constructor(properties?: api.IClear); + private constructor(properties?: api.IClear); /** * Creates a new Clear instance using the specified properties. @@ -5488,7 +5488,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IClear, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Clear, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Clear message, length delimited. Does not implicitly {@link api.Clear.verify|verify} messages. @@ -5496,7 +5496,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IClear, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Clear, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Clear message from the specified reader or buffer. @@ -5554,13 +5554,13 @@ export namespace api { } /** Represents a Toast. */ - class Toast implements IToast { + class Toast { /** * Constructs a new Toast. * @param [properties] Properties to set */ - constructor(properties?: api.IToast); + private constructor(properties?: api.IToast); /** Toast text. */ public text: string; @@ -5578,7 +5578,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IToast, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Toast, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Toast message, length delimited. Does not implicitly {@link api.Toast.verify|verify} messages. @@ -5586,7 +5586,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IToast, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Toast, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Toast message from the specified reader or buffer. @@ -5644,13 +5644,13 @@ export namespace api { } /** Represents a Redirect. */ - class Redirect implements IRedirect { + class Redirect { /** * Constructs a new Redirect. * @param [properties] Properties to set */ - constructor(properties?: api.IRedirect); + private constructor(properties?: api.IRedirect); /** Redirect url. */ public url: string; @@ -5668,7 +5668,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IRedirect, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Redirect, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Redirect message, length delimited. Does not implicitly {@link api.Redirect.verify|verify} messages. @@ -5676,7 +5676,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IRedirect, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Redirect, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Redirect message from the specified reader or buffer. @@ -5731,13 +5731,13 @@ export namespace api { } /** Represents a RunMain. */ - class RunMain implements IRunMain { + class RunMain { /** * Constructs a new RunMain. * @param [properties] Properties to set */ - constructor(properties?: api.IRunMain); + private constructor(properties?: api.IRunMain); /** * Creates a new RunMain instance using the specified properties. @@ -5752,7 +5752,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IRunMain, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.RunMain, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified RunMain message, length delimited. Does not implicitly {@link api.RunMain.verify|verify} messages. @@ -5760,7 +5760,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IRunMain, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.RunMain, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a RunMain message from the specified reader or buffer. @@ -5827,13 +5827,13 @@ export namespace api { } /** Represents an OpenChannel. */ - class OpenChannel implements IOpenChannel { + class OpenChannel { /** * Constructs a new OpenChannel. * @param [properties] Properties to set */ - constructor(properties?: api.IOpenChannel); + private constructor(properties?: api.IOpenChannel); /** OpenChannel service. */ public service: string; @@ -5860,7 +5860,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOpenChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OpenChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OpenChannel message, length delimited. Does not implicitly {@link api.OpenChannel.verify|verify} messages. @@ -5868,7 +5868,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOpenChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OpenChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an OpenChannel message from the specified reader or buffer. @@ -5942,13 +5942,13 @@ export namespace api { } /** Represents an OpenChannelRes. */ - class OpenChannelRes implements IOpenChannelRes { + class OpenChannelRes { /** * Constructs a new OpenChannelRes. * @param [properties] Properties to set */ - constructor(properties?: api.IOpenChannelRes); + private constructor(properties?: api.IOpenChannelRes); /** OpenChannelRes id. */ public id: number; @@ -5972,7 +5972,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOpenChannelRes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OpenChannelRes, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OpenChannelRes message, length delimited. Does not implicitly {@link api.OpenChannelRes.verify|verify} messages. @@ -5980,7 +5980,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOpenChannelRes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OpenChannelRes, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an OpenChannelRes message from the specified reader or buffer. @@ -6051,13 +6051,13 @@ export namespace api { } /** Represents a CloseChannel. */ - class CloseChannel implements ICloseChannel { + class CloseChannel { /** * Constructs a new CloseChannel. * @param [properties] Properties to set */ - constructor(properties?: api.ICloseChannel); + private constructor(properties?: api.ICloseChannel); /** CloseChannel id. */ public id: number; @@ -6078,7 +6078,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ICloseChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.CloseChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CloseChannel message, length delimited. Does not implicitly {@link api.CloseChannel.verify|verify} messages. @@ -6086,7 +6086,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ICloseChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.CloseChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CloseChannel message from the specified reader or buffer. @@ -6157,13 +6157,13 @@ export namespace api { } /** Represents a CloseChannelRes. */ - class CloseChannelRes implements ICloseChannelRes { + class CloseChannelRes { /** * Constructs a new CloseChannelRes. * @param [properties] Properties to set */ - constructor(properties?: api.ICloseChannelRes); + private constructor(properties?: api.ICloseChannelRes); /** CloseChannelRes id. */ public id: number; @@ -6184,7 +6184,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.ICloseChannelRes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.CloseChannelRes, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CloseChannelRes message, length delimited. Does not implicitly {@link api.CloseChannelRes.verify|verify} messages. @@ -6192,7 +6192,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.ICloseChannelRes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.CloseChannelRes, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CloseChannelRes message from the specified reader or buffer. @@ -6260,13 +6260,13 @@ export namespace api { } /** Represents a ContainerState. */ - class ContainerState implements IContainerState { + class ContainerState { /** * Constructs a new ContainerState. * @param [properties] Properties to set */ - constructor(properties?: api.IContainerState); + private constructor(properties?: api.IContainerState); /** ContainerState state. */ public state: api.ContainerState.State; @@ -6284,7 +6284,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IContainerState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ContainerState, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ContainerState message, length delimited. Does not implicitly {@link api.ContainerState.verify|verify} messages. @@ -6292,7 +6292,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IContainerState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ContainerState, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ContainerState message from the specified reader or buffer. @@ -6365,13 +6365,13 @@ export namespace api { } /** Represents a PortOpen. */ - class PortOpen implements IPortOpen { + class PortOpen { /** * Constructs a new PortOpen. * @param [properties] Properties to set */ - constructor(properties?: api.IPortOpen); + private constructor(properties?: api.IPortOpen); /** PortOpen forwarded. */ public forwarded: boolean; @@ -6395,7 +6395,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPortOpen, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PortOpen, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PortOpen message, length delimited. Does not implicitly {@link api.PortOpen.verify|verify} messages. @@ -6403,7 +6403,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPortOpen, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PortOpen, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PortOpen message from the specified reader or buffer. @@ -6464,13 +6464,13 @@ export namespace api { } /** Represents a OTFetchRequest. */ - class OTFetchRequest implements IOTFetchRequest { + class OTFetchRequest { /** * Constructs a new OTFetchRequest. * @param [properties] Properties to set */ - constructor(properties?: api.IOTFetchRequest); + private constructor(properties?: api.IOTFetchRequest); /** OTFetchRequest versionFrom. */ public versionFrom: number; @@ -6491,7 +6491,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOTFetchRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OTFetchRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OTFetchRequest message, length delimited. Does not implicitly {@link api.OTFetchRequest.verify|verify} messages. @@ -6499,7 +6499,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOTFetchRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OTFetchRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a OTFetchRequest message from the specified reader or buffer. @@ -6553,20 +6553,20 @@ export namespace api { interface IOTFetchResponse { /** OTFetchResponse packets */ - packets?: (api.IOTPacket[]|null); + packets?: ((api.OTPacket|api.IOTPacket)[]|null); } /** Represents a OTFetchResponse. */ - class OTFetchResponse implements IOTFetchResponse { + class OTFetchResponse { /** * Constructs a new OTFetchResponse. * @param [properties] Properties to set */ - constructor(properties?: api.IOTFetchResponse); + private constructor(properties?: api.IOTFetchResponse); /** OTFetchResponse packets. */ - public packets: api.IOTPacket[]; + public packets: api.OTPacket[]; /** * Creates a new OTFetchResponse instance using the specified properties. @@ -6581,7 +6581,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOTFetchResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OTFetchResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OTFetchResponse message, length delimited. Does not implicitly {@link api.OTFetchResponse.verify|verify} messages. @@ -6589,7 +6589,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOTFetchResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OTFetchResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a OTFetchResponse message from the specified reader or buffer. @@ -6649,26 +6649,26 @@ export namespace api { version?: (number|null); /** OTPacket ops */ - ops?: (api.IOTRuneTransformOp[]|null); + ops?: ((api.OTRuneTransformOp|api.IOTRuneTransformOp)[]|null); /** OTPacket crc32 */ crc32?: (number|null); /** OTPacket committed */ - committed?: (google.protobuf.ITimestamp|null); + committed?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null); /** OTPacket nonce */ nonce?: (number|null); } /** Represents a OTPacket. */ - class OTPacket implements IOTPacket { + class OTPacket { /** * Constructs a new OTPacket. * @param [properties] Properties to set */ - constructor(properties?: api.IOTPacket); + private constructor(properties?: api.IOTPacket); /** OTPacket spookyVersion. */ public spookyVersion: number; @@ -6677,13 +6677,13 @@ export namespace api { public version: number; /** OTPacket ops. */ - public ops: api.IOTRuneTransformOp[]; + public ops: api.OTRuneTransformOp[]; /** OTPacket crc32. */ public crc32: number; /** OTPacket committed. */ - public committed?: (google.protobuf.ITimestamp|null); + public committed?: (google.protobuf.Timestamp|null); /** OTPacket nonce. */ public nonce: number; @@ -6701,7 +6701,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOTPacket, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OTPacket, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OTPacket message, length delimited. Does not implicitly {@link api.OTPacket.verify|verify} messages. @@ -6709,7 +6709,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOTPacket, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OTPacket, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a OTPacket message from the specified reader or buffer. @@ -6773,13 +6773,13 @@ export namespace api { } /** Represents a OTRuneTransformOp. */ - class OTRuneTransformOp implements IOTRuneTransformOp { + class OTRuneTransformOp { /** * Constructs a new OTRuneTransformOp. * @param [properties] Properties to set */ - constructor(properties?: api.IOTRuneTransformOp); + private constructor(properties?: api.IOTRuneTransformOp); /** OTRuneTransformOp skip. */ public skip: number; @@ -6806,7 +6806,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOTRuneTransformOp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OTRuneTransformOp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OTRuneTransformOp message, length delimited. Does not implicitly {@link api.OTRuneTransformOp.verify|verify} messages. @@ -6814,7 +6814,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOTRuneTransformOp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OTRuneTransformOp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a OTRuneTransformOp message from the specified reader or buffer. @@ -6874,20 +6874,20 @@ export namespace api { version?: (number|null); /** OTStatus linkedFile */ - linkedFile?: (api.IFile|null); + linkedFile?: (api.File|api.IFile|null); /** OTStatus cursors */ - cursors?: (api.IOTCursor[]|null); + cursors?: ((api.OTCursor|api.IOTCursor)[]|null); } /** Represents a OTStatus. */ - class OTStatus implements IOTStatus { + class OTStatus { /** * Constructs a new OTStatus. * @param [properties] Properties to set */ - constructor(properties?: api.IOTStatus); + private constructor(properties?: api.IOTStatus); /** OTStatus contents. */ public contents: string; @@ -6896,10 +6896,10 @@ export namespace api { public version: number; /** OTStatus linkedFile. */ - public linkedFile?: (api.IFile|null); + public linkedFile?: (api.File|null); /** OTStatus cursors. */ - public cursors: api.IOTCursor[]; + public cursors: api.OTCursor[]; /** * Creates a new OTStatus instance using the specified properties. @@ -6914,7 +6914,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOTStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OTStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OTStatus message, length delimited. Does not implicitly {@link api.OTStatus.verify|verify} messages. @@ -6922,7 +6922,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOTStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OTStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a OTStatus message from the specified reader or buffer. @@ -6985,20 +6985,20 @@ export namespace api { selectionEnd?: (number|null); /** OTCursor user */ - user?: (api.IUser|null); + user?: (api.User|api.IUser|null); /** OTCursor id */ id?: (string|null); } /** Represents a OTCursor. */ - class OTCursor implements IOTCursor { + class OTCursor { /** * Constructs a new OTCursor. * @param [properties] Properties to set */ - constructor(properties?: api.IOTCursor); + private constructor(properties?: api.IOTCursor); /** OTCursor position. */ public position: number; @@ -7010,7 +7010,7 @@ export namespace api { public selectionEnd: number; /** OTCursor user. */ - public user?: (api.IUser|null); + public user?: (api.User|null); /** OTCursor id. */ public id: string; @@ -7028,7 +7028,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IOTCursor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.OTCursor, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OTCursor message, length delimited. Does not implicitly {@link api.OTCursor.verify|verify} messages. @@ -7036,7 +7036,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IOTCursor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.OTCursor, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a OTCursor message from the specified reader or buffer. @@ -7097,13 +7097,13 @@ export namespace api { } /** Represents a ChatMessage. */ - class ChatMessage implements IChatMessage { + class ChatMessage { /** * Constructs a new ChatMessage. * @param [properties] Properties to set */ - constructor(properties?: api.IChatMessage); + private constructor(properties?: api.IChatMessage); /** ChatMessage username. */ public username: string; @@ -7124,7 +7124,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IChatMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ChatMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ChatMessage message, length delimited. Does not implicitly {@link api.ChatMessage.verify|verify} messages. @@ -7132,7 +7132,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IChatMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ChatMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ChatMessage message from the specified reader or buffer. @@ -7193,13 +7193,13 @@ export namespace api { } /** Represents a ChatTyping. */ - class ChatTyping implements IChatTyping { + class ChatTyping { /** * Constructs a new ChatTyping. * @param [properties] Properties to set */ - constructor(properties?: api.IChatTyping); + private constructor(properties?: api.IChatTyping); /** ChatTyping username. */ public username: string; @@ -7220,7 +7220,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IChatTyping, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ChatTyping, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ChatTyping message, length delimited. Does not implicitly {@link api.ChatTyping.verify|verify} messages. @@ -7228,7 +7228,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IChatTyping, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ChatTyping, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ChatTyping message from the specified reader or buffer. @@ -7295,13 +7295,13 @@ export namespace api { } /** Represents a User. */ - class User implements IUser { + class User { /** * Constructs a new User. * @param [properties] Properties to set */ - constructor(properties?: api.IUser); + private constructor(properties?: api.IUser); /** User id. */ public id: number; @@ -7328,7 +7328,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.User, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified User message, length delimited. Does not implicitly {@link api.User.verify|verify} messages. @@ -7336,7 +7336,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.User, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a User message from the specified reader or buffer. @@ -7390,20 +7390,20 @@ export namespace api { interface IRoster { /** Roster user */ - user?: (api.IUser[]|null); + user?: ((api.User|api.IUser)[]|null); } /** Represents a Roster. */ - class Roster implements IRoster { + class Roster { /** * Constructs a new Roster. * @param [properties] Properties to set */ - constructor(properties?: api.IRoster); + private constructor(properties?: api.IRoster); /** Roster user. */ - public user: api.IUser[]; + public user: api.User[]; /** * Creates a new Roster instance using the specified properties. @@ -7418,7 +7418,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IRoster, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Roster, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Roster message, length delimited. Does not implicitly {@link api.Roster.verify|verify} messages. @@ -7426,7 +7426,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IRoster, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Roster, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Roster message from the specified reader or buffer. @@ -7490,13 +7490,13 @@ export namespace api { } /** Represents an Exec. */ - class Exec implements IExec { + class Exec { /** * Constructs a new Exec. * @param [properties] Properties to set */ - constructor(properties?: api.IExec); + private constructor(properties?: api.IExec); /** Exec args. */ public args: string[]; @@ -7520,7 +7520,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IExec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Exec, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Exec message, length delimited. Does not implicitly {@link api.Exec.verify|verify} messages. @@ -7528,7 +7528,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IExec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Exec, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Exec message from the specified reader or buffer. @@ -7612,17 +7612,17 @@ export namespace api { license?: (string|null); /** Package dependencies */ - dependencies?: (api.IPackage[]|null); + dependencies?: ((api.Package|api.IPackage)[]|null); } /** Represents a Package. */ - class Package implements IPackage { + class Package { /** * Constructs a new Package. * @param [properties] Properties to set */ - constructor(properties?: api.IPackage); + private constructor(properties?: api.IPackage); /** Package name. */ public name: string; @@ -7655,7 +7655,7 @@ export namespace api { public license: string; /** Package dependencies. */ - public dependencies: api.IPackage[]; + public dependencies: api.Package[]; /** * Creates a new Package instance using the specified properties. @@ -7670,7 +7670,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Package, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Package message, length delimited. Does not implicitly {@link api.Package.verify|verify} messages. @@ -7678,7 +7678,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Package, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Package message from the specified reader or buffer. @@ -7736,13 +7736,13 @@ export namespace api { } /** Represents a PackageSearch. */ - class PackageSearch implements IPackageSearch { + class PackageSearch { /** * Constructs a new PackageSearch. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageSearch); + private constructor(properties?: api.IPackageSearch); /** PackageSearch query. */ public query: string; @@ -7760,7 +7760,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageSearch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageSearch, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageSearch message, length delimited. Does not implicitly {@link api.PackageSearch.verify|verify} messages. @@ -7768,7 +7768,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageSearch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageSearch, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageSearch message from the specified reader or buffer. @@ -7822,20 +7822,20 @@ export namespace api { interface IPackageSearchResp { /** PackageSearchResp results */ - results?: (api.IPackage[]|null); + results?: ((api.Package|api.IPackage)[]|null); } /** Represents a PackageSearchResp. */ - class PackageSearchResp implements IPackageSearchResp { + class PackageSearchResp { /** * Constructs a new PackageSearchResp. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageSearchResp); + private constructor(properties?: api.IPackageSearchResp); /** PackageSearchResp results. */ - public results: api.IPackage[]; + public results: api.Package[]; /** * Creates a new PackageSearchResp instance using the specified properties. @@ -7850,7 +7850,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageSearchResp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageSearchResp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageSearchResp message, length delimited. Does not implicitly {@link api.PackageSearchResp.verify|verify} messages. @@ -7858,7 +7858,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageSearchResp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageSearchResp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageSearchResp message from the specified reader or buffer. @@ -7912,20 +7912,20 @@ export namespace api { interface IPackageInfo { /** PackageInfo pkg */ - pkg?: (api.IPackage|null); + pkg?: (api.Package|api.IPackage|null); } /** Represents a PackageInfo. */ - class PackageInfo implements IPackageInfo { + class PackageInfo { /** * Constructs a new PackageInfo. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageInfo); + private constructor(properties?: api.IPackageInfo); /** PackageInfo pkg. */ - public pkg?: (api.IPackage|null); + public pkg?: (api.Package|null); /** * Creates a new PackageInfo instance using the specified properties. @@ -7940,7 +7940,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageInfo message, length delimited. Does not implicitly {@link api.PackageInfo.verify|verify} messages. @@ -7948,7 +7948,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageInfo message from the specified reader or buffer. @@ -8002,20 +8002,20 @@ export namespace api { interface IPackageInfoResp { /** PackageInfoResp pkg */ - pkg?: (api.IPackage|null); + pkg?: (api.Package|api.IPackage|null); } /** Represents a PackageInfoResp. */ - class PackageInfoResp implements IPackageInfoResp { + class PackageInfoResp { /** * Constructs a new PackageInfoResp. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageInfoResp); + private constructor(properties?: api.IPackageInfoResp); /** PackageInfoResp pkg. */ - public pkg?: (api.IPackage|null); + public pkg?: (api.Package|null); /** * Creates a new PackageInfoResp instance using the specified properties. @@ -8030,7 +8030,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageInfoResp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageInfoResp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageInfoResp message, length delimited. Does not implicitly {@link api.PackageInfoResp.verify|verify} messages. @@ -8038,7 +8038,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageInfoResp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageInfoResp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageInfoResp message from the specified reader or buffer. @@ -8092,20 +8092,20 @@ export namespace api { interface IPackageAdd { /** PackageAdd pkgs */ - pkgs?: (api.IPackage[]|null); + pkgs?: ((api.Package|api.IPackage)[]|null); } /** Represents a PackageAdd. */ - class PackageAdd implements IPackageAdd { + class PackageAdd { /** * Constructs a new PackageAdd. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageAdd); + private constructor(properties?: api.IPackageAdd); /** PackageAdd pkgs. */ - public pkgs: api.IPackage[]; + public pkgs: api.Package[]; /** * Creates a new PackageAdd instance using the specified properties. @@ -8120,7 +8120,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageAdd, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageAdd, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageAdd message, length delimited. Does not implicitly {@link api.PackageAdd.verify|verify} messages. @@ -8128,7 +8128,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageAdd, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageAdd, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageAdd message from the specified reader or buffer. @@ -8182,20 +8182,20 @@ export namespace api { interface IPackageRemove { /** PackageRemove pkgs */ - pkgs?: (api.IPackage[]|null); + pkgs?: ((api.Package|api.IPackage)[]|null); } /** Represents a PackageRemove. */ - class PackageRemove implements IPackageRemove { + class PackageRemove { /** * Constructs a new PackageRemove. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageRemove); + private constructor(properties?: api.IPackageRemove); /** PackageRemove pkgs. */ - public pkgs: api.IPackage[]; + public pkgs: api.Package[]; /** * Creates a new PackageRemove instance using the specified properties. @@ -8210,7 +8210,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageRemove, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageRemove, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageRemove message, length delimited. Does not implicitly {@link api.PackageRemove.verify|verify} messages. @@ -8218,7 +8218,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageRemove, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageRemove, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageRemove message from the specified reader or buffer. @@ -8273,13 +8273,13 @@ export namespace api { } /** Represents a PackageInstall. */ - class PackageInstall implements IPackageInstall { + class PackageInstall { /** * Constructs a new PackageInstall. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageInstall); + private constructor(properties?: api.IPackageInstall); /** * Creates a new PackageInstall instance using the specified properties. @@ -8294,7 +8294,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageInstall, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageInstall, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageInstall message, length delimited. Does not implicitly {@link api.PackageInstall.verify|verify} messages. @@ -8302,7 +8302,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageInstall, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageInstall, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageInstall message from the specified reader or buffer. @@ -8357,13 +8357,13 @@ export namespace api { } /** Represents a PackageListSpecfile. */ - class PackageListSpecfile implements IPackageListSpecfile { + class PackageListSpecfile { /** * Constructs a new PackageListSpecfile. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageListSpecfile); + private constructor(properties?: api.IPackageListSpecfile); /** * Creates a new PackageListSpecfile instance using the specified properties. @@ -8378,7 +8378,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageListSpecfile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageListSpecfile, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageListSpecfile message, length delimited. Does not implicitly {@link api.PackageListSpecfile.verify|verify} messages. @@ -8386,7 +8386,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageListSpecfile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageListSpecfile, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageListSpecfile message from the specified reader or buffer. @@ -8440,20 +8440,20 @@ export namespace api { interface IPackageListSpecfileResp { /** PackageListSpecfileResp pkgs */ - pkgs?: (api.IPackage[]|null); + pkgs?: ((api.Package|api.IPackage)[]|null); } /** Represents a PackageListSpecfileResp. */ - class PackageListSpecfileResp implements IPackageListSpecfileResp { + class PackageListSpecfileResp { /** * Constructs a new PackageListSpecfileResp. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageListSpecfileResp); + private constructor(properties?: api.IPackageListSpecfileResp); /** PackageListSpecfileResp pkgs. */ - public pkgs: api.IPackage[]; + public pkgs: api.Package[]; /** * Creates a new PackageListSpecfileResp instance using the specified properties. @@ -8468,7 +8468,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageListSpecfileResp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageListSpecfileResp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageListSpecfileResp message, length delimited. Does not implicitly {@link api.PackageListSpecfileResp.verify|verify} messages. @@ -8476,7 +8476,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageListSpecfileResp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageListSpecfileResp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageListSpecfileResp message from the specified reader or buffer. @@ -8531,13 +8531,13 @@ export namespace api { } /** Represents a PackageCacheSave. */ - class PackageCacheSave implements IPackageCacheSave { + class PackageCacheSave { /** * Constructs a new PackageCacheSave. * @param [properties] Properties to set */ - constructor(properties?: api.IPackageCacheSave); + private constructor(properties?: api.IPackageCacheSave); /** * Creates a new PackageCacheSave instance using the specified properties. @@ -8552,7 +8552,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPackageCacheSave, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PackageCacheSave, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PackageCacheSave message, length delimited. Does not implicitly {@link api.PackageCacheSave.verify|verify} messages. @@ -8560,7 +8560,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPackageCacheSave, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PackageCacheSave, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PackageCacheSave message from the specified reader or buffer. @@ -8614,20 +8614,20 @@ export namespace api { interface IChatScrollback { /** ChatScrollback scrollback */ - scrollback?: (api.IChatMessage[]|null); + scrollback?: ((api.ChatMessage|api.IChatMessage)[]|null); } /** Represents a ChatScrollback. */ - class ChatScrollback implements IChatScrollback { + class ChatScrollback { /** * Constructs a new ChatScrollback. * @param [properties] Properties to set */ - constructor(properties?: api.IChatScrollback); + private constructor(properties?: api.IChatScrollback); /** ChatScrollback scrollback. */ - public scrollback: api.IChatMessage[]; + public scrollback: api.ChatMessage[]; /** * Creates a new ChatScrollback instance using the specified properties. @@ -8642,7 +8642,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IChatScrollback, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.ChatScrollback, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ChatScrollback message, length delimited. Does not implicitly {@link api.ChatScrollback.verify|verify} messages. @@ -8650,7 +8650,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IChatScrollback, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.ChatScrollback, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ChatScrollback message from the specified reader or buffer. @@ -8708,13 +8708,13 @@ export namespace api { } /** Represents a Metrics. */ - class Metrics implements IMetrics { + class Metrics { /** * Constructs a new Metrics. * @param [properties] Properties to set */ - constructor(properties?: api.IMetrics); + private constructor(properties?: api.IMetrics); /** Metrics prometheusMetricFamilies. */ public prometheusMetricFamilies: Uint8Array[]; @@ -8732,7 +8732,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.Metrics, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Metrics message, length delimited. Does not implicitly {@link api.Metrics.verify|verify} messages. @@ -8740,7 +8740,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.Metrics, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Metrics message from the specified reader or buffer. @@ -8797,47 +8797,47 @@ export namespace api { id?: (string|null); /** PprofRequest pprofCpuProfileRequest */ - pprofCpuProfileRequest?: (api.IPprofCpuProfileRequest|null); + pprofCpuProfileRequest?: (api.PprofCpuProfileRequest|api.IPprofCpuProfileRequest|null); /** PprofRequest pprofHeapProfileRequest */ - pprofHeapProfileRequest?: (api.IPprofHeapProfileRequest|null); + pprofHeapProfileRequest?: (api.PprofHeapProfileRequest|api.IPprofHeapProfileRequest|null); /** PprofRequest pprofAllocsProfileRequest */ - pprofAllocsProfileRequest?: (api.IPprofAllocsProfileRequest|null); + pprofAllocsProfileRequest?: (api.PprofAllocsProfileRequest|api.IPprofAllocsProfileRequest|null); /** PprofRequest pprofBlockProfileRequest */ - pprofBlockProfileRequest?: (api.IPprofBlockProfileRequest|null); + pprofBlockProfileRequest?: (api.PprofBlockProfileRequest|api.IPprofBlockProfileRequest|null); /** PprofRequest pprofMutexProfileRequest */ - pprofMutexProfileRequest?: (api.IPprofMutexProfileRequest|null); + pprofMutexProfileRequest?: (api.PprofMutexProfileRequest|api.IPprofMutexProfileRequest|null); } /** Represents a PprofRequest. */ - class PprofRequest implements IPprofRequest { + class PprofRequest { /** * Constructs a new PprofRequest. * @param [properties] Properties to set */ - constructor(properties?: api.IPprofRequest); + private constructor(properties?: api.IPprofRequest); /** PprofRequest id. */ public id: string; /** PprofRequest pprofCpuProfileRequest. */ - public pprofCpuProfileRequest?: (api.IPprofCpuProfileRequest|null); + public pprofCpuProfileRequest?: (api.PprofCpuProfileRequest|null); /** PprofRequest pprofHeapProfileRequest. */ - public pprofHeapProfileRequest?: (api.IPprofHeapProfileRequest|null); + public pprofHeapProfileRequest?: (api.PprofHeapProfileRequest|null); /** PprofRequest pprofAllocsProfileRequest. */ - public pprofAllocsProfileRequest?: (api.IPprofAllocsProfileRequest|null); + public pprofAllocsProfileRequest?: (api.PprofAllocsProfileRequest|null); /** PprofRequest pprofBlockProfileRequest. */ - public pprofBlockProfileRequest?: (api.IPprofBlockProfileRequest|null); + public pprofBlockProfileRequest?: (api.PprofBlockProfileRequest|null); /** PprofRequest pprofMutexProfileRequest. */ - public pprofMutexProfileRequest?: (api.IPprofMutexProfileRequest|null); + public pprofMutexProfileRequest?: (api.PprofMutexProfileRequest|null); /** PprofRequest body. */ public body?: ("pprofCpuProfileRequest"|"pprofHeapProfileRequest"|"pprofAllocsProfileRequest"|"pprofBlockProfileRequest"|"pprofMutexProfileRequest"); @@ -8855,7 +8855,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPprofRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PprofRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PprofRequest message, length delimited. Does not implicitly {@link api.PprofRequest.verify|verify} messages. @@ -8863,7 +8863,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPprofRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PprofRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PprofRequest message from the specified reader or buffer. @@ -8921,13 +8921,13 @@ export namespace api { } /** Represents a PprofAllocsProfileRequest. */ - class PprofAllocsProfileRequest implements IPprofAllocsProfileRequest { + class PprofAllocsProfileRequest { /** * Constructs a new PprofAllocsProfileRequest. * @param [properties] Properties to set */ - constructor(properties?: api.IPprofAllocsProfileRequest); + private constructor(properties?: api.IPprofAllocsProfileRequest); /** PprofAllocsProfileRequest debug. */ public debug: boolean; @@ -8945,7 +8945,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPprofAllocsProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PprofAllocsProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PprofAllocsProfileRequest message, length delimited. Does not implicitly {@link api.PprofAllocsProfileRequest.verify|verify} messages. @@ -8953,7 +8953,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPprofAllocsProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PprofAllocsProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PprofAllocsProfileRequest message from the specified reader or buffer. @@ -9011,13 +9011,13 @@ export namespace api { } /** Represents a PprofBlockProfileRequest. */ - class PprofBlockProfileRequest implements IPprofBlockProfileRequest { + class PprofBlockProfileRequest { /** * Constructs a new PprofBlockProfileRequest. * @param [properties] Properties to set */ - constructor(properties?: api.IPprofBlockProfileRequest); + private constructor(properties?: api.IPprofBlockProfileRequest); /** PprofBlockProfileRequest debug. */ public debug: boolean; @@ -9035,7 +9035,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPprofBlockProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PprofBlockProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PprofBlockProfileRequest message, length delimited. Does not implicitly {@link api.PprofBlockProfileRequest.verify|verify} messages. @@ -9043,7 +9043,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPprofBlockProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PprofBlockProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PprofBlockProfileRequest message from the specified reader or buffer. @@ -9097,20 +9097,20 @@ export namespace api { interface IPprofCpuProfileRequest { /** PprofCpuProfileRequest seconds */ - seconds?: (number|Long|null); + seconds?: (number|null); } /** Represents a PprofCpuProfileRequest. */ - class PprofCpuProfileRequest implements IPprofCpuProfileRequest { + class PprofCpuProfileRequest { /** * Constructs a new PprofCpuProfileRequest. * @param [properties] Properties to set */ - constructor(properties?: api.IPprofCpuProfileRequest); + private constructor(properties?: api.IPprofCpuProfileRequest); /** PprofCpuProfileRequest seconds. */ - public seconds: (number|Long); + public seconds: number; /** * Creates a new PprofCpuProfileRequest instance using the specified properties. @@ -9125,7 +9125,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPprofCpuProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PprofCpuProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PprofCpuProfileRequest message, length delimited. Does not implicitly {@link api.PprofCpuProfileRequest.verify|verify} messages. @@ -9133,7 +9133,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPprofCpuProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PprofCpuProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PprofCpuProfileRequest message from the specified reader or buffer. @@ -9194,13 +9194,13 @@ export namespace api { } /** Represents a PprofHeapProfileRequest. */ - class PprofHeapProfileRequest implements IPprofHeapProfileRequest { + class PprofHeapProfileRequest { /** * Constructs a new PprofHeapProfileRequest. * @param [properties] Properties to set */ - constructor(properties?: api.IPprofHeapProfileRequest); + private constructor(properties?: api.IPprofHeapProfileRequest); /** PprofHeapProfileRequest gc. */ public gc: boolean; @@ -9221,7 +9221,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPprofHeapProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PprofHeapProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PprofHeapProfileRequest message, length delimited. Does not implicitly {@link api.PprofHeapProfileRequest.verify|verify} messages. @@ -9229,7 +9229,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPprofHeapProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PprofHeapProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PprofHeapProfileRequest message from the specified reader or buffer. @@ -9287,13 +9287,13 @@ export namespace api { } /** Represents a PprofMutexProfileRequest. */ - class PprofMutexProfileRequest implements IPprofMutexProfileRequest { + class PprofMutexProfileRequest { /** * Constructs a new PprofMutexProfileRequest. * @param [properties] Properties to set */ - constructor(properties?: api.IPprofMutexProfileRequest); + private constructor(properties?: api.IPprofMutexProfileRequest); /** PprofMutexProfileRequest debug. */ public debug: boolean; @@ -9311,7 +9311,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPprofMutexProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PprofMutexProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PprofMutexProfileRequest message, length delimited. Does not implicitly {@link api.PprofMutexProfileRequest.verify|verify} messages. @@ -9319,7 +9319,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPprofMutexProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PprofMutexProfileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PprofMutexProfileRequest message from the specified reader or buffer. @@ -9380,13 +9380,13 @@ export namespace api { } /** Represents a PprofResponse. */ - class PprofResponse implements IPprofResponse { + class PprofResponse { /** * Constructs a new PprofResponse. * @param [properties] Properties to set */ - constructor(properties?: api.IPprofResponse); + private constructor(properties?: api.IPprofResponse); /** PprofResponse id. */ public id: string; @@ -9407,7 +9407,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPprofResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PprofResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PprofResponse message, length delimited. Does not implicitly {@link api.PprofResponse.verify|verify} messages. @@ -9415,7 +9415,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPprofResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PprofResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PprofResponse message from the specified reader or buffer. @@ -9473,13 +9473,13 @@ export namespace api { } /** Represents a PTYConfig. */ - class PTYConfig implements IPTYConfig { + class PTYConfig { /** * Constructs a new PTYConfig. * @param [properties] Properties to set */ - constructor(properties?: api.IPTYConfig); + private constructor(properties?: api.IPTYConfig); /** PTYConfig pipeMode. */ public pipeMode: boolean; @@ -9497,7 +9497,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: api.IPTYConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: api.PTYConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PTYConfig message, length delimited. Does not implicitly {@link api.PTYConfig.verify|verify} messages. @@ -9505,7 +9505,7 @@ export namespace api { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: api.IPTYConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: api.PTYConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PTYConfig message from the specified reader or buffer. @@ -9566,23 +9566,23 @@ export namespace google { interface ITimestamp { /** Timestamp seconds */ - seconds?: (number|Long|null); + seconds?: (number|null); /** Timestamp nanos */ nanos?: (number|null); } /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + class Timestamp { /** * Constructs a new Timestamp. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ITimestamp); + private constructor(properties?: google.protobuf.ITimestamp); /** Timestamp seconds. */ - public seconds: (number|Long); + public seconds: number; /** Timestamp nanos. */ public nanos: number; @@ -9600,7 +9600,7 @@ export namespace google { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.Timestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. @@ -9608,7 +9608,7 @@ export namespace google { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.Timestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Timestamp message from the specified reader or buffer. diff --git a/js/index.js b/js/index.js index 0d9b9af..fb86933 100644 --- a/js/index.js +++ b/js/index.js @@ -33,107 +33,107 @@ * @interface ICommand * @property {number|null} [channel] Command channel * @property {number|null} [session] Command session - * @property {api.IOpenChannel|null} [openChan] Command openChan - * @property {api.IOpenChannelRes|null} [openChanRes] Command openChanRes - * @property {api.ICloseChannel|null} [closeChan] Command closeChan - * @property {api.ICloseChannelRes|null} [closeChanRes] Command closeChanRes - * @property {api.IContainerState|null} [containerState] Command containerState - * @property {api.IPortOpen|null} [portOpen] Command portOpen - * @property {api.IToast|null} [toast] Command toast - * @property {api.IRedirect|null} [redirect] Command redirect - * @property {api.IRunMain|null} [runMain] Command runMain - * @property {api.IClear|null} [clear] Command clear + * @property {api.OpenChannel|api.IOpenChannel|null} [openChan] Command openChan + * @property {api.OpenChannelRes|api.IOpenChannelRes|null} [openChanRes] Command openChanRes + * @property {api.CloseChannel|api.ICloseChannel|null} [closeChan] Command closeChan + * @property {api.CloseChannelRes|api.ICloseChannelRes|null} [closeChanRes] Command closeChanRes + * @property {api.ContainerState|api.IContainerState|null} [containerState] Command containerState + * @property {api.PortOpen|api.IPortOpen|null} [portOpen] Command portOpen + * @property {api.Toast|api.IToast|null} [toast] Command toast + * @property {api.Redirect|api.IRedirect|null} [redirect] Command redirect + * @property {api.RunMain|api.IRunMain|null} [runMain] Command runMain + * @property {api.Clear|api.IClear|null} [clear] Command clear * @property {string|null} ["eval"] Command eval * @property {string|null} [result] Command result * @property {string|null} [input] Command input * @property {string|null} [output] Command output * @property {string|null} [error] Command error - * @property {api.ISaneTerm|null} [saneTerm] Command saneTerm - * @property {api.IResizeTerm|null} [resizeTerm] Command resizeTerm + * @property {api.SaneTerm|api.ISaneTerm|null} [saneTerm] Command saneTerm + * @property {api.ResizeTerm|api.IResizeTerm|null} [resizeTerm] Command resizeTerm * @property {api.State|null} [state] Command state - * @property {api.IOK|null} [ok] Command ok - * @property {api.IFile|null} [persist] Command persist - * @property {api.IFile|null} [persistMirror] Command persistMirror - * @property {api.IFile|null} [write] Command write - * @property {api.IFile|null} [remove] Command remove - * @property {api.IMove|null} [move] Command move - * @property {api.IFile|null} [tryRemove] Command tryRemove - * @property {api.IFile|null} [mkdir] Command mkdir - * @property {api.IFile|null} [read] Command read - * @property {api.IFile|null} [readdir] Command readdir - * @property {api.IFiles|null} [files] Command files - * @property {api.IFile|null} [file] Command file - * @property {api.ICheckChanges|null} [checkChanges] Command checkChanges - * @property {api.IFiles|null} [changedFiles] Command changedFiles - * @property {api.ILintResults|null} [lintResults] Command lintResults - * @property {api.IContainedTest|null} [runContainedTest] Command runContainedTest - * @property {api.ITestResult|null} [testResult] Command testResult + * @property {api.OK|api.IOK|null} [ok] Command ok + * @property {api.File|api.IFile|null} [persist] Command persist + * @property {api.File|api.IFile|null} [persistMirror] Command persistMirror + * @property {api.File|api.IFile|null} [write] Command write + * @property {api.File|api.IFile|null} [remove] Command remove + * @property {api.Move|api.IMove|null} [move] Command move + * @property {api.File|api.IFile|null} [tryRemove] Command tryRemove + * @property {api.File|api.IFile|null} [mkdir] Command mkdir + * @property {api.File|api.IFile|null} [read] Command read + * @property {api.File|api.IFile|null} [readdir] Command readdir + * @property {api.Files|api.IFiles|null} [files] Command files + * @property {api.File|api.IFile|null} [file] Command file + * @property {api.CheckChanges|api.ICheckChanges|null} [checkChanges] Command checkChanges + * @property {api.Files|api.IFiles|null} [changedFiles] Command changedFiles + * @property {api.LintResults|api.ILintResults|null} [lintResults] Command lintResults + * @property {api.ContainedTest|api.IContainedTest|null} [runContainedTest] Command runContainedTest + * @property {api.TestResult|api.ITestResult|null} [testResult] Command testResult * @property {string|null} [debuggerStart] Command debuggerStart - * @property {api.IRunMain|null} [debuggerStep] Command debuggerStep - * @property {api.IDebugStatus|null} [debuggerStatus] Command debuggerStatus - * @property {api.IEnsurePackages|null} [ensurePackages] Command ensurePackages - * @property {api.IPing|null} [ping] Command ping - * @property {api.IPong|null} [pong] Command pong - * @property {api.IHello|null} [hello] Command hello - * @property {api.IGoodbye|null} [goodbye] Command goodbye - * @property {api.IHint|null} [hint] Command hint - * @property {api.IConnect|null} [connect] Command connect - * @property {api.ISend|null} [send] Command send - * @property {api.IRecv|null} [recv] Command recv - * @property {api.IDisconnect|null} [disconnect] Command disconnect - * @property {api.IFileAuthReq|null} [fileAuthReq] Command fileAuthReq - * @property {api.IFileAuthRes|null} [fileAuthRes] Command fileAuthRes - * @property {api.IMultiFileAuthRes|null} [mutliFileAuthRes] Command mutliFileAuthRes - * @property {api.IListObjects|null} [listObjects] Command listObjects - * @property {api.IListObjectsResp|null} [listObjectsResp] Command listObjectsResp - * @property {api.IOTPacket|null} [ot] Command ot - * @property {api.IOTStatus|null} [otstatus] Command otstatus - * @property {api.IOTLinkFile|null} [otLinkFile] Command otLinkFile - * @property {api.IOTCursor|null} [otNewCursor] Command otNewCursor - * @property {api.IOTCursor|null} [otDeleteCursor] Command otDeleteCursor - * @property {api.IOTFetchRequest|null} [otFetchRequest] Command otFetchRequest - * @property {api.IOTFetchResponse|null} [otFetchResponse] Command otFetchResponse - * @property {api.IFlush|null} [flush] Command flush - * @property {api.IDebug|null} [debug] Command debug - * @property {api.IStartVCR|null} [startVCR] Command startVCR - * @property {api.IReadVCR|null} [readVCR] Command readVCR - * @property {api.IVCRLog|null} [VCRLog] Command VCRLog - * @property {api.IAuth|null} [auth] Command auth - * @property {api.IExecInfo|null} [execInfo] Command execInfo - * @property {api.ISubscribeFile|null} [subscribeFile] Command subscribeFile - * @property {api.IFileEvent|null} [fileEvent] Command fileEvent - * @property {api.IRoster|null} [roster] Command roster - * @property {api.IUser|null} [join] Command join - * @property {api.IUser|null} [part] Command part - * @property {api.IExec|null} [exec] Command exec - * @property {api.IPackageSearch|null} [packageSearch] Command packageSearch - * @property {api.IPackageSearchResp|null} [packageSearchResp] Command packageSearchResp - * @property {api.IPackageInfo|null} [packageInfo] Command packageInfo - * @property {api.IPackageInfoResp|null} [packageInfoResp] Command packageInfoResp - * @property {api.IPackageAdd|null} [packageAdd] Command packageAdd - * @property {api.IPackageRemove|null} [packageRemove] Command packageRemove - * @property {api.IPackageInstall|null} [packageInstall] Command packageInstall - * @property {api.IPackageListSpecfile|null} [packageListSpecfile] Command packageListSpecfile - * @property {api.IPackageListSpecfileResp|null} [packageListSpecfileResp] Command packageListSpecfileResp - * @property {api.IPackageCacheSave|null} [packageCacheSave] Command packageCacheSave - * @property {api.IChatMessage|null} [chatMessage] Command chatMessage - * @property {api.IChatTyping|null} [chatTyping] Command chatTyping - * @property {api.IChatScrollback|null} [chatScrollback] Command chatScrollback - * @property {api.IFSSnapshot|null} [fsSnapshot] Command fsSnapshot - * @property {api.IFSLock|null} [fsTakeLock] Command fsTakeLock - * @property {api.IFSLock|null} [fsReleaseLock] Command fsReleaseLock + * @property {api.RunMain|api.IRunMain|null} [debuggerStep] Command debuggerStep + * @property {api.DebugStatus|api.IDebugStatus|null} [debuggerStatus] Command debuggerStatus + * @property {api.EnsurePackages|api.IEnsurePackages|null} [ensurePackages] Command ensurePackages + * @property {api.Ping|api.IPing|null} [ping] Command ping + * @property {api.Pong|api.IPong|null} [pong] Command pong + * @property {api.Hello|api.IHello|null} [hello] Command hello + * @property {api.Goodbye|api.IGoodbye|null} [goodbye] Command goodbye + * @property {api.Hint|api.IHint|null} [hint] Command hint + * @property {api.Connect|api.IConnect|null} [connect] Command connect + * @property {api.Send|api.ISend|null} [send] Command send + * @property {api.Recv|api.IRecv|null} [recv] Command recv + * @property {api.Disconnect|api.IDisconnect|null} [disconnect] Command disconnect + * @property {api.FileAuthReq|api.IFileAuthReq|null} [fileAuthReq] Command fileAuthReq + * @property {api.FileAuthRes|api.IFileAuthRes|null} [fileAuthRes] Command fileAuthRes + * @property {api.MultiFileAuthRes|api.IMultiFileAuthRes|null} [mutliFileAuthRes] Command mutliFileAuthRes + * @property {api.ListObjects|api.IListObjects|null} [listObjects] Command listObjects + * @property {api.ListObjectsResp|api.IListObjectsResp|null} [listObjectsResp] Command listObjectsResp + * @property {api.OTPacket|api.IOTPacket|null} [ot] Command ot + * @property {api.OTStatus|api.IOTStatus|null} [otstatus] Command otstatus + * @property {api.OTLinkFile|api.IOTLinkFile|null} [otLinkFile] Command otLinkFile + * @property {api.OTCursor|api.IOTCursor|null} [otNewCursor] Command otNewCursor + * @property {api.OTCursor|api.IOTCursor|null} [otDeleteCursor] Command otDeleteCursor + * @property {api.OTFetchRequest|api.IOTFetchRequest|null} [otFetchRequest] Command otFetchRequest + * @property {api.OTFetchResponse|api.IOTFetchResponse|null} [otFetchResponse] Command otFetchResponse + * @property {api.Flush|api.IFlush|null} [flush] Command flush + * @property {api.Debug|api.IDebug|null} [debug] Command debug + * @property {api.StartVCR|api.IStartVCR|null} [startVCR] Command startVCR + * @property {api.ReadVCR|api.IReadVCR|null} [readVCR] Command readVCR + * @property {api.VCRLog|api.IVCRLog|null} [VCRLog] Command VCRLog + * @property {api.Auth|api.IAuth|null} [auth] Command auth + * @property {api.ExecInfo|api.IExecInfo|null} [execInfo] Command execInfo + * @property {api.SubscribeFile|api.ISubscribeFile|null} [subscribeFile] Command subscribeFile + * @property {api.FileEvent|api.IFileEvent|null} [fileEvent] Command fileEvent + * @property {api.Roster|api.IRoster|null} [roster] Command roster + * @property {api.User|api.IUser|null} [join] Command join + * @property {api.User|api.IUser|null} [part] Command part + * @property {api.Exec|api.IExec|null} [exec] Command exec + * @property {api.PackageSearch|api.IPackageSearch|null} [packageSearch] Command packageSearch + * @property {api.PackageSearchResp|api.IPackageSearchResp|null} [packageSearchResp] Command packageSearchResp + * @property {api.PackageInfo|api.IPackageInfo|null} [packageInfo] Command packageInfo + * @property {api.PackageInfoResp|api.IPackageInfoResp|null} [packageInfoResp] Command packageInfoResp + * @property {api.PackageAdd|api.IPackageAdd|null} [packageAdd] Command packageAdd + * @property {api.PackageRemove|api.IPackageRemove|null} [packageRemove] Command packageRemove + * @property {api.PackageInstall|api.IPackageInstall|null} [packageInstall] Command packageInstall + * @property {api.PackageListSpecfile|api.IPackageListSpecfile|null} [packageListSpecfile] Command packageListSpecfile + * @property {api.PackageListSpecfileResp|api.IPackageListSpecfileResp|null} [packageListSpecfileResp] Command packageListSpecfileResp + * @property {api.PackageCacheSave|api.IPackageCacheSave|null} [packageCacheSave] Command packageCacheSave + * @property {api.ChatMessage|api.IChatMessage|null} [chatMessage] Command chatMessage + * @property {api.ChatTyping|api.IChatTyping|null} [chatTyping] Command chatTyping + * @property {api.ChatScrollback|api.IChatScrollback|null} [chatScrollback] Command chatScrollback + * @property {api.FSSnapshot|api.IFSSnapshot|null} [fsSnapshot] Command fsSnapshot + * @property {api.FSLock|api.IFSLock|null} [fsTakeLock] Command fsTakeLock + * @property {api.FSLock|api.IFSLock|null} [fsReleaseLock] Command fsReleaseLock * @property {boolean|null} [hasCap] Command hasCap - * @property {api.IPid1Config|null} [pid1Config] Command pid1Config - * @property {api.IMetrics|null} [metrics] Command metrics - * @property {api.IBootStatus|null} [bootStatus] Command bootStatus - * @property {api.IReadMeta|null} [readMeta] Command readMeta - * @property {api.IWriteMeta|null} [writeMeta] Command writeMeta - * @property {api.IAppendMeta|null} [appendMeta] Command appendMeta - * @property {api.IAudio|null} [audio] Command audio - * @property {api.IPprofRequest|null} [pprofRequest] Command pprofRequest - * @property {api.IPprofResponse|null} [pprofResponse] Command pprofResponse - * @property {api.IAudio2|null} [audio2] Command audio2 - * @property {api.IPTYConfig|null} [PTYConfig] Command PTYConfig + * @property {api.Pid1Config|api.IPid1Config|null} [pid1Config] Command pid1Config + * @property {api.Metrics|api.IMetrics|null} [metrics] Command metrics + * @property {api.BootStatus|api.IBootStatus|null} [bootStatus] Command bootStatus + * @property {api.ReadMeta|api.IReadMeta|null} [readMeta] Command readMeta + * @property {api.WriteMeta|api.IWriteMeta|null} [writeMeta] Command writeMeta + * @property {api.AppendMeta|api.IAppendMeta|null} [appendMeta] Command appendMeta + * @property {api.Audio|api.IAudio|null} [audio] Command audio + * @property {api.PprofRequest|api.IPprofRequest|null} [pprofRequest] Command pprofRequest + * @property {api.PprofResponse|api.IPprofResponse|null} [pprofResponse] Command pprofResponse + * @property {api.Audio2|api.IAudio2|null} [audio2] Command audio2 + * @property {api.PTYConfig|api.IPTYConfig|null} [PTYConfig] Command PTYConfig * @property {string|null} [ref] Command ref */ @@ -141,7 +141,6 @@ * Constructs a new Command. * @memberof api * @classdesc Represents a Command. - * @implements ICommand * @constructor * @param {api.ICommand=} [properties] Properties to set */ @@ -170,7 +169,7 @@ /** * Command openChan. - * @member {api.IOpenChannel|null|undefined} openChan + * @member {api.OpenChannel|null|undefined} openChan * @memberof api.Command * @instance */ @@ -178,7 +177,7 @@ /** * Command openChanRes. - * @member {api.IOpenChannelRes|null|undefined} openChanRes + * @member {api.OpenChannelRes|null|undefined} openChanRes * @memberof api.Command * @instance */ @@ -186,7 +185,7 @@ /** * Command closeChan. - * @member {api.ICloseChannel|null|undefined} closeChan + * @member {api.CloseChannel|null|undefined} closeChan * @memberof api.Command * @instance */ @@ -194,7 +193,7 @@ /** * Command closeChanRes. - * @member {api.ICloseChannelRes|null|undefined} closeChanRes + * @member {api.CloseChannelRes|null|undefined} closeChanRes * @memberof api.Command * @instance */ @@ -202,7 +201,7 @@ /** * Command containerState. - * @member {api.IContainerState|null|undefined} containerState + * @member {api.ContainerState|null|undefined} containerState * @memberof api.Command * @instance */ @@ -210,7 +209,7 @@ /** * Command portOpen. - * @member {api.IPortOpen|null|undefined} portOpen + * @member {api.PortOpen|null|undefined} portOpen * @memberof api.Command * @instance */ @@ -218,7 +217,7 @@ /** * Command toast. - * @member {api.IToast|null|undefined} toast + * @member {api.Toast|null|undefined} toast * @memberof api.Command * @instance */ @@ -226,7 +225,7 @@ /** * Command redirect. - * @member {api.IRedirect|null|undefined} redirect + * @member {api.Redirect|null|undefined} redirect * @memberof api.Command * @instance */ @@ -234,7 +233,7 @@ /** * Command runMain. - * @member {api.IRunMain|null|undefined} runMain + * @member {api.RunMain|null|undefined} runMain * @memberof api.Command * @instance */ @@ -242,7 +241,7 @@ /** * Command clear. - * @member {api.IClear|null|undefined} clear + * @member {api.Clear|null|undefined} clear * @memberof api.Command * @instance */ @@ -290,7 +289,7 @@ /** * Command saneTerm. - * @member {api.ISaneTerm|null|undefined} saneTerm + * @member {api.SaneTerm|null|undefined} saneTerm * @memberof api.Command * @instance */ @@ -298,7 +297,7 @@ /** * Command resizeTerm. - * @member {api.IResizeTerm|null|undefined} resizeTerm + * @member {api.ResizeTerm|null|undefined} resizeTerm * @memberof api.Command * @instance */ @@ -314,7 +313,7 @@ /** * Command ok. - * @member {api.IOK|null|undefined} ok + * @member {api.OK|null|undefined} ok * @memberof api.Command * @instance */ @@ -322,7 +321,7 @@ /** * Command persist. - * @member {api.IFile|null|undefined} persist + * @member {api.File|null|undefined} persist * @memberof api.Command * @instance */ @@ -330,7 +329,7 @@ /** * Command persistMirror. - * @member {api.IFile|null|undefined} persistMirror + * @member {api.File|null|undefined} persistMirror * @memberof api.Command * @instance */ @@ -338,7 +337,7 @@ /** * Command write. - * @member {api.IFile|null|undefined} write + * @member {api.File|null|undefined} write * @memberof api.Command * @instance */ @@ -346,7 +345,7 @@ /** * Command remove. - * @member {api.IFile|null|undefined} remove + * @member {api.File|null|undefined} remove * @memberof api.Command * @instance */ @@ -354,7 +353,7 @@ /** * Command move. - * @member {api.IMove|null|undefined} move + * @member {api.Move|null|undefined} move * @memberof api.Command * @instance */ @@ -362,7 +361,7 @@ /** * Command tryRemove. - * @member {api.IFile|null|undefined} tryRemove + * @member {api.File|null|undefined} tryRemove * @memberof api.Command * @instance */ @@ -370,7 +369,7 @@ /** * Command mkdir. - * @member {api.IFile|null|undefined} mkdir + * @member {api.File|null|undefined} mkdir * @memberof api.Command * @instance */ @@ -378,7 +377,7 @@ /** * Command read. - * @member {api.IFile|null|undefined} read + * @member {api.File|null|undefined} read * @memberof api.Command * @instance */ @@ -386,7 +385,7 @@ /** * Command readdir. - * @member {api.IFile|null|undefined} readdir + * @member {api.File|null|undefined} readdir * @memberof api.Command * @instance */ @@ -394,7 +393,7 @@ /** * Command files. - * @member {api.IFiles|null|undefined} files + * @member {api.Files|null|undefined} files * @memberof api.Command * @instance */ @@ -402,7 +401,7 @@ /** * Command file. - * @member {api.IFile|null|undefined} file + * @member {api.File|null|undefined} file * @memberof api.Command * @instance */ @@ -410,7 +409,7 @@ /** * Command checkChanges. - * @member {api.ICheckChanges|null|undefined} checkChanges + * @member {api.CheckChanges|null|undefined} checkChanges * @memberof api.Command * @instance */ @@ -418,7 +417,7 @@ /** * Command changedFiles. - * @member {api.IFiles|null|undefined} changedFiles + * @member {api.Files|null|undefined} changedFiles * @memberof api.Command * @instance */ @@ -426,7 +425,7 @@ /** * Command lintResults. - * @member {api.ILintResults|null|undefined} lintResults + * @member {api.LintResults|null|undefined} lintResults * @memberof api.Command * @instance */ @@ -434,7 +433,7 @@ /** * Command runContainedTest. - * @member {api.IContainedTest|null|undefined} runContainedTest + * @member {api.ContainedTest|null|undefined} runContainedTest * @memberof api.Command * @instance */ @@ -442,7 +441,7 @@ /** * Command testResult. - * @member {api.ITestResult|null|undefined} testResult + * @member {api.TestResult|null|undefined} testResult * @memberof api.Command * @instance */ @@ -458,7 +457,7 @@ /** * Command debuggerStep. - * @member {api.IRunMain|null|undefined} debuggerStep + * @member {api.RunMain|null|undefined} debuggerStep * @memberof api.Command * @instance */ @@ -466,7 +465,7 @@ /** * Command debuggerStatus. - * @member {api.IDebugStatus|null|undefined} debuggerStatus + * @member {api.DebugStatus|null|undefined} debuggerStatus * @memberof api.Command * @instance */ @@ -474,7 +473,7 @@ /** * Command ensurePackages. - * @member {api.IEnsurePackages|null|undefined} ensurePackages + * @member {api.EnsurePackages|null|undefined} ensurePackages * @memberof api.Command * @instance */ @@ -482,7 +481,7 @@ /** * Command ping. - * @member {api.IPing|null|undefined} ping + * @member {api.Ping|null|undefined} ping * @memberof api.Command * @instance */ @@ -490,7 +489,7 @@ /** * Command pong. - * @member {api.IPong|null|undefined} pong + * @member {api.Pong|null|undefined} pong * @memberof api.Command * @instance */ @@ -498,7 +497,7 @@ /** * Command hello. - * @member {api.IHello|null|undefined} hello + * @member {api.Hello|null|undefined} hello * @memberof api.Command * @instance */ @@ -506,7 +505,7 @@ /** * Command goodbye. - * @member {api.IGoodbye|null|undefined} goodbye + * @member {api.Goodbye|null|undefined} goodbye * @memberof api.Command * @instance */ @@ -514,7 +513,7 @@ /** * Command hint. - * @member {api.IHint|null|undefined} hint + * @member {api.Hint|null|undefined} hint * @memberof api.Command * @instance */ @@ -522,7 +521,7 @@ /** * Command connect. - * @member {api.IConnect|null|undefined} connect + * @member {api.Connect|null|undefined} connect * @memberof api.Command * @instance */ @@ -530,7 +529,7 @@ /** * Command send. - * @member {api.ISend|null|undefined} send + * @member {api.Send|null|undefined} send * @memberof api.Command * @instance */ @@ -538,7 +537,7 @@ /** * Command recv. - * @member {api.IRecv|null|undefined} recv + * @member {api.Recv|null|undefined} recv * @memberof api.Command * @instance */ @@ -546,7 +545,7 @@ /** * Command disconnect. - * @member {api.IDisconnect|null|undefined} disconnect + * @member {api.Disconnect|null|undefined} disconnect * @memberof api.Command * @instance */ @@ -554,7 +553,7 @@ /** * Command fileAuthReq. - * @member {api.IFileAuthReq|null|undefined} fileAuthReq + * @member {api.FileAuthReq|null|undefined} fileAuthReq * @memberof api.Command * @instance */ @@ -562,7 +561,7 @@ /** * Command fileAuthRes. - * @member {api.IFileAuthRes|null|undefined} fileAuthRes + * @member {api.FileAuthRes|null|undefined} fileAuthRes * @memberof api.Command * @instance */ @@ -570,7 +569,7 @@ /** * Command mutliFileAuthRes. - * @member {api.IMultiFileAuthRes|null|undefined} mutliFileAuthRes + * @member {api.MultiFileAuthRes|null|undefined} mutliFileAuthRes * @memberof api.Command * @instance */ @@ -578,7 +577,7 @@ /** * Command listObjects. - * @member {api.IListObjects|null|undefined} listObjects + * @member {api.ListObjects|null|undefined} listObjects * @memberof api.Command * @instance */ @@ -586,7 +585,7 @@ /** * Command listObjectsResp. - * @member {api.IListObjectsResp|null|undefined} listObjectsResp + * @member {api.ListObjectsResp|null|undefined} listObjectsResp * @memberof api.Command * @instance */ @@ -594,7 +593,7 @@ /** * Command ot. - * @member {api.IOTPacket|null|undefined} ot + * @member {api.OTPacket|null|undefined} ot * @memberof api.Command * @instance */ @@ -602,7 +601,7 @@ /** * Command otstatus. - * @member {api.IOTStatus|null|undefined} otstatus + * @member {api.OTStatus|null|undefined} otstatus * @memberof api.Command * @instance */ @@ -610,7 +609,7 @@ /** * Command otLinkFile. - * @member {api.IOTLinkFile|null|undefined} otLinkFile + * @member {api.OTLinkFile|null|undefined} otLinkFile * @memberof api.Command * @instance */ @@ -618,7 +617,7 @@ /** * Command otNewCursor. - * @member {api.IOTCursor|null|undefined} otNewCursor + * @member {api.OTCursor|null|undefined} otNewCursor * @memberof api.Command * @instance */ @@ -626,7 +625,7 @@ /** * Command otDeleteCursor. - * @member {api.IOTCursor|null|undefined} otDeleteCursor + * @member {api.OTCursor|null|undefined} otDeleteCursor * @memberof api.Command * @instance */ @@ -634,7 +633,7 @@ /** * Command otFetchRequest. - * @member {api.IOTFetchRequest|null|undefined} otFetchRequest + * @member {api.OTFetchRequest|null|undefined} otFetchRequest * @memberof api.Command * @instance */ @@ -642,7 +641,7 @@ /** * Command otFetchResponse. - * @member {api.IOTFetchResponse|null|undefined} otFetchResponse + * @member {api.OTFetchResponse|null|undefined} otFetchResponse * @memberof api.Command * @instance */ @@ -650,7 +649,7 @@ /** * Command flush. - * @member {api.IFlush|null|undefined} flush + * @member {api.Flush|null|undefined} flush * @memberof api.Command * @instance */ @@ -658,7 +657,7 @@ /** * Command debug. - * @member {api.IDebug|null|undefined} debug + * @member {api.Debug|null|undefined} debug * @memberof api.Command * @instance */ @@ -666,7 +665,7 @@ /** * Command startVCR. - * @member {api.IStartVCR|null|undefined} startVCR + * @member {api.StartVCR|null|undefined} startVCR * @memberof api.Command * @instance */ @@ -674,7 +673,7 @@ /** * Command readVCR. - * @member {api.IReadVCR|null|undefined} readVCR + * @member {api.ReadVCR|null|undefined} readVCR * @memberof api.Command * @instance */ @@ -682,7 +681,7 @@ /** * Command VCRLog. - * @member {api.IVCRLog|null|undefined} VCRLog + * @member {api.VCRLog|null|undefined} VCRLog * @memberof api.Command * @instance */ @@ -690,7 +689,7 @@ /** * Command auth. - * @member {api.IAuth|null|undefined} auth + * @member {api.Auth|null|undefined} auth * @memberof api.Command * @instance */ @@ -698,7 +697,7 @@ /** * Command execInfo. - * @member {api.IExecInfo|null|undefined} execInfo + * @member {api.ExecInfo|null|undefined} execInfo * @memberof api.Command * @instance */ @@ -706,7 +705,7 @@ /** * Command subscribeFile. - * @member {api.ISubscribeFile|null|undefined} subscribeFile + * @member {api.SubscribeFile|null|undefined} subscribeFile * @memberof api.Command * @instance */ @@ -714,7 +713,7 @@ /** * Command fileEvent. - * @member {api.IFileEvent|null|undefined} fileEvent + * @member {api.FileEvent|null|undefined} fileEvent * @memberof api.Command * @instance */ @@ -722,7 +721,7 @@ /** * Command roster. - * @member {api.IRoster|null|undefined} roster + * @member {api.Roster|null|undefined} roster * @memberof api.Command * @instance */ @@ -730,7 +729,7 @@ /** * Command join. - * @member {api.IUser|null|undefined} join + * @member {api.User|null|undefined} join * @memberof api.Command * @instance */ @@ -738,7 +737,7 @@ /** * Command part. - * @member {api.IUser|null|undefined} part + * @member {api.User|null|undefined} part * @memberof api.Command * @instance */ @@ -746,7 +745,7 @@ /** * Command exec. - * @member {api.IExec|null|undefined} exec + * @member {api.Exec|null|undefined} exec * @memberof api.Command * @instance */ @@ -754,7 +753,7 @@ /** * Command packageSearch. - * @member {api.IPackageSearch|null|undefined} packageSearch + * @member {api.PackageSearch|null|undefined} packageSearch * @memberof api.Command * @instance */ @@ -762,7 +761,7 @@ /** * Command packageSearchResp. - * @member {api.IPackageSearchResp|null|undefined} packageSearchResp + * @member {api.PackageSearchResp|null|undefined} packageSearchResp * @memberof api.Command * @instance */ @@ -770,7 +769,7 @@ /** * Command packageInfo. - * @member {api.IPackageInfo|null|undefined} packageInfo + * @member {api.PackageInfo|null|undefined} packageInfo * @memberof api.Command * @instance */ @@ -778,7 +777,7 @@ /** * Command packageInfoResp. - * @member {api.IPackageInfoResp|null|undefined} packageInfoResp + * @member {api.PackageInfoResp|null|undefined} packageInfoResp * @memberof api.Command * @instance */ @@ -786,7 +785,7 @@ /** * Command packageAdd. - * @member {api.IPackageAdd|null|undefined} packageAdd + * @member {api.PackageAdd|null|undefined} packageAdd * @memberof api.Command * @instance */ @@ -794,7 +793,7 @@ /** * Command packageRemove. - * @member {api.IPackageRemove|null|undefined} packageRemove + * @member {api.PackageRemove|null|undefined} packageRemove * @memberof api.Command * @instance */ @@ -802,7 +801,7 @@ /** * Command packageInstall. - * @member {api.IPackageInstall|null|undefined} packageInstall + * @member {api.PackageInstall|null|undefined} packageInstall * @memberof api.Command * @instance */ @@ -810,7 +809,7 @@ /** * Command packageListSpecfile. - * @member {api.IPackageListSpecfile|null|undefined} packageListSpecfile + * @member {api.PackageListSpecfile|null|undefined} packageListSpecfile * @memberof api.Command * @instance */ @@ -818,7 +817,7 @@ /** * Command packageListSpecfileResp. - * @member {api.IPackageListSpecfileResp|null|undefined} packageListSpecfileResp + * @member {api.PackageListSpecfileResp|null|undefined} packageListSpecfileResp * @memberof api.Command * @instance */ @@ -826,7 +825,7 @@ /** * Command packageCacheSave. - * @member {api.IPackageCacheSave|null|undefined} packageCacheSave + * @member {api.PackageCacheSave|null|undefined} packageCacheSave * @memberof api.Command * @instance */ @@ -834,7 +833,7 @@ /** * Command chatMessage. - * @member {api.IChatMessage|null|undefined} chatMessage + * @member {api.ChatMessage|null|undefined} chatMessage * @memberof api.Command * @instance */ @@ -842,7 +841,7 @@ /** * Command chatTyping. - * @member {api.IChatTyping|null|undefined} chatTyping + * @member {api.ChatTyping|null|undefined} chatTyping * @memberof api.Command * @instance */ @@ -850,7 +849,7 @@ /** * Command chatScrollback. - * @member {api.IChatScrollback|null|undefined} chatScrollback + * @member {api.ChatScrollback|null|undefined} chatScrollback * @memberof api.Command * @instance */ @@ -858,7 +857,7 @@ /** * Command fsSnapshot. - * @member {api.IFSSnapshot|null|undefined} fsSnapshot + * @member {api.FSSnapshot|null|undefined} fsSnapshot * @memberof api.Command * @instance */ @@ -866,7 +865,7 @@ /** * Command fsTakeLock. - * @member {api.IFSLock|null|undefined} fsTakeLock + * @member {api.FSLock|null|undefined} fsTakeLock * @memberof api.Command * @instance */ @@ -874,7 +873,7 @@ /** * Command fsReleaseLock. - * @member {api.IFSLock|null|undefined} fsReleaseLock + * @member {api.FSLock|null|undefined} fsReleaseLock * @memberof api.Command * @instance */ @@ -890,7 +889,7 @@ /** * Command pid1Config. - * @member {api.IPid1Config|null|undefined} pid1Config + * @member {api.Pid1Config|null|undefined} pid1Config * @memberof api.Command * @instance */ @@ -898,7 +897,7 @@ /** * Command metrics. - * @member {api.IMetrics|null|undefined} metrics + * @member {api.Metrics|null|undefined} metrics * @memberof api.Command * @instance */ @@ -906,7 +905,7 @@ /** * Command bootStatus. - * @member {api.IBootStatus|null|undefined} bootStatus + * @member {api.BootStatus|null|undefined} bootStatus * @memberof api.Command * @instance */ @@ -914,7 +913,7 @@ /** * Command readMeta. - * @member {api.IReadMeta|null|undefined} readMeta + * @member {api.ReadMeta|null|undefined} readMeta * @memberof api.Command * @instance */ @@ -922,7 +921,7 @@ /** * Command writeMeta. - * @member {api.IWriteMeta|null|undefined} writeMeta + * @member {api.WriteMeta|null|undefined} writeMeta * @memberof api.Command * @instance */ @@ -930,7 +929,7 @@ /** * Command appendMeta. - * @member {api.IAppendMeta|null|undefined} appendMeta + * @member {api.AppendMeta|null|undefined} appendMeta * @memberof api.Command * @instance */ @@ -938,7 +937,7 @@ /** * Command audio. - * @member {api.IAudio|null|undefined} audio + * @member {api.Audio|null|undefined} audio * @memberof api.Command * @instance */ @@ -946,7 +945,7 @@ /** * Command pprofRequest. - * @member {api.IPprofRequest|null|undefined} pprofRequest + * @member {api.PprofRequest|null|undefined} pprofRequest * @memberof api.Command * @instance */ @@ -954,7 +953,7 @@ /** * Command pprofResponse. - * @member {api.IPprofResponse|null|undefined} pprofResponse + * @member {api.PprofResponse|null|undefined} pprofResponse * @memberof api.Command * @instance */ @@ -962,7 +961,7 @@ /** * Command audio2. - * @member {api.IAudio2|null|undefined} audio2 + * @member {api.Audio2|null|undefined} audio2 * @memberof api.Command * @instance */ @@ -970,7 +969,7 @@ /** * Command PTYConfig. - * @member {api.IPTYConfig|null|undefined} PTYConfig + * @member {api.PTYConfig|null|undefined} PTYConfig * @memberof api.Command * @instance */ @@ -1007,7 +1006,7 @@ * @returns {api.Command} Command instance */ Command.create = function create(properties) { - return new Command(properties); + return Command.fromObject(properties); }; /** @@ -1015,220 +1014,220 @@ * @function encode * @memberof api.Command * @static - * @param {api.ICommand} message Command message or plain object to encode + * @param {api.Command} message Command message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Command.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel != null && message.hasOwnProperty("channel")) + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channel); - if (message.session != null && message.hasOwnProperty("session")) + if (message.session != null && Object.hasOwnProperty.call(message, "session")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.session); - if (message.openChan != null && message.hasOwnProperty("openChan")) + if (message.openChan != null && Object.hasOwnProperty.call(message, "openChan")) $root.api.OpenChannel.encode(message.openChan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.openChanRes != null && message.hasOwnProperty("openChanRes")) + if (message.openChanRes != null && Object.hasOwnProperty.call(message, "openChanRes")) $root.api.OpenChannelRes.encode(message.openChanRes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.closeChan != null && message.hasOwnProperty("closeChan")) + if (message.closeChan != null && Object.hasOwnProperty.call(message, "closeChan")) $root.api.CloseChannel.encode(message.closeChan, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.closeChanRes != null && message.hasOwnProperty("closeChanRes")) + if (message.closeChanRes != null && Object.hasOwnProperty.call(message, "closeChanRes")) $root.api.CloseChannelRes.encode(message.closeChanRes, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.containerState != null && message.hasOwnProperty("containerState")) + if (message.containerState != null && Object.hasOwnProperty.call(message, "containerState")) $root.api.ContainerState.encode(message.containerState, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.portOpen != null && message.hasOwnProperty("portOpen")) + if (message.portOpen != null && Object.hasOwnProperty.call(message, "portOpen")) $root.api.PortOpen.encode(message.portOpen, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.toast != null && message.hasOwnProperty("toast")) + if (message.toast != null && Object.hasOwnProperty.call(message, "toast")) $root.api.Toast.encode(message.toast, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.redirect != null && message.hasOwnProperty("redirect")) + if (message.redirect != null && Object.hasOwnProperty.call(message, "redirect")) $root.api.Redirect.encode(message.redirect, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.runMain != null && message.hasOwnProperty("runMain")) + if (message.runMain != null && Object.hasOwnProperty.call(message, "runMain")) $root.api.RunMain.encode(message.runMain, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.clear != null && message.hasOwnProperty("clear")) + if (message.clear != null && Object.hasOwnProperty.call(message, "clear")) $root.api.Clear.encode(message.clear, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message["eval"] != null && message.hasOwnProperty("eval")) + if (message["eval"] != null && Object.hasOwnProperty.call(message, "eval")) writer.uint32(/* id 20, wireType 2 =*/162).string(message["eval"]); - if (message.result != null && message.hasOwnProperty("result")) + if (message.result != null && Object.hasOwnProperty.call(message, "result")) writer.uint32(/* id 21, wireType 2 =*/170).string(message.result); - if (message.input != null && message.hasOwnProperty("input")) + if (message.input != null && Object.hasOwnProperty.call(message, "input")) writer.uint32(/* id 22, wireType 2 =*/178).string(message.input); - if (message.output != null && message.hasOwnProperty("output")) + if (message.output != null && Object.hasOwnProperty.call(message, "output")) writer.uint32(/* id 23, wireType 2 =*/186).string(message.output); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) writer.uint32(/* id 24, wireType 2 =*/194).string(message.error); - if (message.saneTerm != null && message.hasOwnProperty("saneTerm")) + if (message.saneTerm != null && Object.hasOwnProperty.call(message, "saneTerm")) $root.api.SaneTerm.encode(message.saneTerm, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); - if (message.resizeTerm != null && message.hasOwnProperty("resizeTerm")) + if (message.resizeTerm != null && Object.hasOwnProperty.call(message, "resizeTerm")) $root.api.ResizeTerm.encode(message.resizeTerm, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); - if (message.state != null && message.hasOwnProperty("state")) + if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 28, wireType 0 =*/224).int32(message.state); - if (message.ok != null && message.hasOwnProperty("ok")) + if (message.ok != null && Object.hasOwnProperty.call(message, "ok")) $root.api.OK.encode(message.ok, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); - if (message.persist != null && message.hasOwnProperty("persist")) + if (message.persist != null && Object.hasOwnProperty.call(message, "persist")) $root.api.File.encode(message.persist, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); - if (message.write != null && message.hasOwnProperty("write")) + if (message.write != null && Object.hasOwnProperty.call(message, "write")) $root.api.File.encode(message.write, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); - if (message.remove != null && message.hasOwnProperty("remove")) + if (message.remove != null && Object.hasOwnProperty.call(message, "remove")) $root.api.File.encode(message.remove, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); - if (message.move != null && message.hasOwnProperty("move")) + if (message.move != null && Object.hasOwnProperty.call(message, "move")) $root.api.Move.encode(message.move, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); - if (message.read != null && message.hasOwnProperty("read")) + if (message.read != null && Object.hasOwnProperty.call(message, "read")) $root.api.File.encode(message.read, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); - if (message.tryRemove != null && message.hasOwnProperty("tryRemove")) + if (message.tryRemove != null && Object.hasOwnProperty.call(message, "tryRemove")) $root.api.File.encode(message.tryRemove, writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim(); - if (message.readdir != null && message.hasOwnProperty("readdir")) + if (message.readdir != null && Object.hasOwnProperty.call(message, "readdir")) $root.api.File.encode(message.readdir, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); - if (message.files != null && message.hasOwnProperty("files")) + if (message.files != null && Object.hasOwnProperty.call(message, "files")) $root.api.Files.encode(message.files, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); - if (message.mkdir != null && message.hasOwnProperty("mkdir")) + if (message.mkdir != null && Object.hasOwnProperty.call(message, "mkdir")) $root.api.File.encode(message.mkdir, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); - if (message.file != null && message.hasOwnProperty("file")) + if (message.file != null && Object.hasOwnProperty.call(message, "file")) $root.api.File.encode(message.file, writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); - if (message.persistMirror != null && message.hasOwnProperty("persistMirror")) + if (message.persistMirror != null && Object.hasOwnProperty.call(message, "persistMirror")) $root.api.File.encode(message.persistMirror, writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); - if (message.checkChanges != null && message.hasOwnProperty("checkChanges")) + if (message.checkChanges != null && Object.hasOwnProperty.call(message, "checkChanges")) $root.api.CheckChanges.encode(message.checkChanges, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); - if (message.changedFiles != null && message.hasOwnProperty("changedFiles")) + if (message.changedFiles != null && Object.hasOwnProperty.call(message, "changedFiles")) $root.api.Files.encode(message.changedFiles, writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim(); - if (message.lintResults != null && message.hasOwnProperty("lintResults")) + if (message.lintResults != null && Object.hasOwnProperty.call(message, "lintResults")) $root.api.LintResults.encode(message.lintResults, writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim(); - if (message.runContainedTest != null && message.hasOwnProperty("runContainedTest")) + if (message.runContainedTest != null && Object.hasOwnProperty.call(message, "runContainedTest")) $root.api.ContainedTest.encode(message.runContainedTest, writer.uint32(/* id 70, wireType 2 =*/562).fork()).ldelim(); - if (message.testResult != null && message.hasOwnProperty("testResult")) + if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) $root.api.TestResult.encode(message.testResult, writer.uint32(/* id 71, wireType 2 =*/570).fork()).ldelim(); - if (message.debuggerStart != null && message.hasOwnProperty("debuggerStart")) + if (message.debuggerStart != null && Object.hasOwnProperty.call(message, "debuggerStart")) writer.uint32(/* id 90, wireType 2 =*/722).string(message.debuggerStart); - if (message.debuggerStep != null && message.hasOwnProperty("debuggerStep")) + if (message.debuggerStep != null && Object.hasOwnProperty.call(message, "debuggerStep")) $root.api.RunMain.encode(message.debuggerStep, writer.uint32(/* id 91, wireType 2 =*/730).fork()).ldelim(); - if (message.debuggerStatus != null && message.hasOwnProperty("debuggerStatus")) + if (message.debuggerStatus != null && Object.hasOwnProperty.call(message, "debuggerStatus")) $root.api.DebugStatus.encode(message.debuggerStatus, writer.uint32(/* id 92, wireType 2 =*/738).fork()).ldelim(); - if (message.ensurePackages != null && message.hasOwnProperty("ensurePackages")) + if (message.ensurePackages != null && Object.hasOwnProperty.call(message, "ensurePackages")) $root.api.EnsurePackages.encode(message.ensurePackages, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.ping != null && message.hasOwnProperty("ping")) + if (message.ping != null && Object.hasOwnProperty.call(message, "ping")) $root.api.Ping.encode(message.ping, writer.uint32(/* id 120, wireType 2 =*/962).fork()).ldelim(); - if (message.pong != null && message.hasOwnProperty("pong")) + if (message.pong != null && Object.hasOwnProperty.call(message, "pong")) $root.api.Pong.encode(message.pong, writer.uint32(/* id 121, wireType 2 =*/970).fork()).ldelim(); - if (message.hello != null && message.hasOwnProperty("hello")) + if (message.hello != null && Object.hasOwnProperty.call(message, "hello")) $root.api.Hello.encode(message.hello, writer.uint32(/* id 122, wireType 2 =*/978).fork()).ldelim(); - if (message.goodbye != null && message.hasOwnProperty("goodbye")) + if (message.goodbye != null && Object.hasOwnProperty.call(message, "goodbye")) $root.api.Goodbye.encode(message.goodbye, writer.uint32(/* id 123, wireType 2 =*/986).fork()).ldelim(); - if (message.hint != null && message.hasOwnProperty("hint")) + if (message.hint != null && Object.hasOwnProperty.call(message, "hint")) $root.api.Hint.encode(message.hint, writer.uint32(/* id 130, wireType 2 =*/1042).fork()).ldelim(); - if (message.connect != null && message.hasOwnProperty("connect")) + if (message.connect != null && Object.hasOwnProperty.call(message, "connect")) $root.api.Connect.encode(message.connect, writer.uint32(/* id 150, wireType 2 =*/1202).fork()).ldelim(); - if (message.send != null && message.hasOwnProperty("send")) + if (message.send != null && Object.hasOwnProperty.call(message, "send")) $root.api.Send.encode(message.send, writer.uint32(/* id 151, wireType 2 =*/1210).fork()).ldelim(); - if (message.recv != null && message.hasOwnProperty("recv")) + if (message.recv != null && Object.hasOwnProperty.call(message, "recv")) $root.api.Recv.encode(message.recv, writer.uint32(/* id 152, wireType 2 =*/1218).fork()).ldelim(); - if (message.disconnect != null && message.hasOwnProperty("disconnect")) + if (message.disconnect != null && Object.hasOwnProperty.call(message, "disconnect")) $root.api.Disconnect.encode(message.disconnect, writer.uint32(/* id 153, wireType 2 =*/1226).fork()).ldelim(); - if (message.fileAuthReq != null && message.hasOwnProperty("fileAuthReq")) + if (message.fileAuthReq != null && Object.hasOwnProperty.call(message, "fileAuthReq")) $root.api.FileAuthReq.encode(message.fileAuthReq, writer.uint32(/* id 200, wireType 2 =*/1602).fork()).ldelim(); - if (message.fileAuthRes != null && message.hasOwnProperty("fileAuthRes")) + if (message.fileAuthRes != null && Object.hasOwnProperty.call(message, "fileAuthRes")) $root.api.FileAuthRes.encode(message.fileAuthRes, writer.uint32(/* id 201, wireType 2 =*/1610).fork()).ldelim(); - if (message.mutliFileAuthRes != null && message.hasOwnProperty("mutliFileAuthRes")) + if (message.mutliFileAuthRes != null && Object.hasOwnProperty.call(message, "mutliFileAuthRes")) $root.api.MultiFileAuthRes.encode(message.mutliFileAuthRes, writer.uint32(/* id 202, wireType 2 =*/1618).fork()).ldelim(); - if (message.listObjects != null && message.hasOwnProperty("listObjects")) + if (message.listObjects != null && Object.hasOwnProperty.call(message, "listObjects")) $root.api.ListObjects.encode(message.listObjects, writer.uint32(/* id 205, wireType 2 =*/1642).fork()).ldelim(); - if (message.listObjectsResp != null && message.hasOwnProperty("listObjectsResp")) + if (message.listObjectsResp != null && Object.hasOwnProperty.call(message, "listObjectsResp")) $root.api.ListObjectsResp.encode(message.listObjectsResp, writer.uint32(/* id 206, wireType 2 =*/1650).fork()).ldelim(); - if (message.ot != null && message.hasOwnProperty("ot")) + if (message.ot != null && Object.hasOwnProperty.call(message, "ot")) $root.api.OTPacket.encode(message.ot, writer.uint32(/* id 220, wireType 2 =*/1762).fork()).ldelim(); - if (message.otstatus != null && message.hasOwnProperty("otstatus")) + if (message.otstatus != null && Object.hasOwnProperty.call(message, "otstatus")) $root.api.OTStatus.encode(message.otstatus, writer.uint32(/* id 221, wireType 2 =*/1770).fork()).ldelim(); - if (message.otLinkFile != null && message.hasOwnProperty("otLinkFile")) + if (message.otLinkFile != null && Object.hasOwnProperty.call(message, "otLinkFile")) $root.api.OTLinkFile.encode(message.otLinkFile, writer.uint32(/* id 222, wireType 2 =*/1778).fork()).ldelim(); - if (message.otNewCursor != null && message.hasOwnProperty("otNewCursor")) + if (message.otNewCursor != null && Object.hasOwnProperty.call(message, "otNewCursor")) $root.api.OTCursor.encode(message.otNewCursor, writer.uint32(/* id 223, wireType 2 =*/1786).fork()).ldelim(); - if (message.otDeleteCursor != null && message.hasOwnProperty("otDeleteCursor")) + if (message.otDeleteCursor != null && Object.hasOwnProperty.call(message, "otDeleteCursor")) $root.api.OTCursor.encode(message.otDeleteCursor, writer.uint32(/* id 224, wireType 2 =*/1794).fork()).ldelim(); - if (message.otFetchRequest != null && message.hasOwnProperty("otFetchRequest")) + if (message.otFetchRequest != null && Object.hasOwnProperty.call(message, "otFetchRequest")) $root.api.OTFetchRequest.encode(message.otFetchRequest, writer.uint32(/* id 225, wireType 2 =*/1802).fork()).ldelim(); - if (message.otFetchResponse != null && message.hasOwnProperty("otFetchResponse")) + if (message.otFetchResponse != null && Object.hasOwnProperty.call(message, "otFetchResponse")) $root.api.OTFetchResponse.encode(message.otFetchResponse, writer.uint32(/* id 226, wireType 2 =*/1810).fork()).ldelim(); - if (message.debug != null && message.hasOwnProperty("debug")) + if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) $root.api.Debug.encode(message.debug, writer.uint32(/* id 230, wireType 2 =*/1842).fork()).ldelim(); - if (message.startVCR != null && message.hasOwnProperty("startVCR")) + if (message.startVCR != null && Object.hasOwnProperty.call(message, "startVCR")) $root.api.StartVCR.encode(message.startVCR, writer.uint32(/* id 231, wireType 2 =*/1850).fork()).ldelim(); - if (message.readVCR != null && message.hasOwnProperty("readVCR")) + if (message.readVCR != null && Object.hasOwnProperty.call(message, "readVCR")) $root.api.ReadVCR.encode(message.readVCR, writer.uint32(/* id 232, wireType 2 =*/1858).fork()).ldelim(); - if (message.VCRLog != null && message.hasOwnProperty("VCRLog")) + if (message.VCRLog != null && Object.hasOwnProperty.call(message, "VCRLog")) $root.api.VCRLog.encode(message.VCRLog, writer.uint32(/* id 233, wireType 2 =*/1866).fork()).ldelim(); - if (message.auth != null && message.hasOwnProperty("auth")) + if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) $root.api.Auth.encode(message.auth, writer.uint32(/* id 235, wireType 2 =*/1882).fork()).ldelim(); - if (message.execInfo != null && message.hasOwnProperty("execInfo")) + if (message.execInfo != null && Object.hasOwnProperty.call(message, "execInfo")) $root.api.ExecInfo.encode(message.execInfo, writer.uint32(/* id 240, wireType 2 =*/1922).fork()).ldelim(); - if (message.flush != null && message.hasOwnProperty("flush")) + if (message.flush != null && Object.hasOwnProperty.call(message, "flush")) $root.api.Flush.encode(message.flush, writer.uint32(/* id 251, wireType 2 =*/2010).fork()).ldelim(); - if (message.subscribeFile != null && message.hasOwnProperty("subscribeFile")) + if (message.subscribeFile != null && Object.hasOwnProperty.call(message, "subscribeFile")) $root.api.SubscribeFile.encode(message.subscribeFile, writer.uint32(/* id 256, wireType 2 =*/2050).fork()).ldelim(); - if (message.fileEvent != null && message.hasOwnProperty("fileEvent")) + if (message.fileEvent != null && Object.hasOwnProperty.call(message, "fileEvent")) $root.api.FileEvent.encode(message.fileEvent, writer.uint32(/* id 257, wireType 2 =*/2058).fork()).ldelim(); - if (message.roster != null && message.hasOwnProperty("roster")) + if (message.roster != null && Object.hasOwnProperty.call(message, "roster")) $root.api.Roster.encode(message.roster, writer.uint32(/* id 260, wireType 2 =*/2082).fork()).ldelim(); - if (message.join != null && message.hasOwnProperty("join")) + if (message.join != null && Object.hasOwnProperty.call(message, "join")) $root.api.User.encode(message.join, writer.uint32(/* id 261, wireType 2 =*/2090).fork()).ldelim(); - if (message.part != null && message.hasOwnProperty("part")) + if (message.part != null && Object.hasOwnProperty.call(message, "part")) $root.api.User.encode(message.part, writer.uint32(/* id 262, wireType 2 =*/2098).fork()).ldelim(); - if (message.exec != null && message.hasOwnProperty("exec")) + if (message.exec != null && Object.hasOwnProperty.call(message, "exec")) $root.api.Exec.encode(message.exec, writer.uint32(/* id 270, wireType 2 =*/2162).fork()).ldelim(); - if (message.packageSearch != null && message.hasOwnProperty("packageSearch")) + if (message.packageSearch != null && Object.hasOwnProperty.call(message, "packageSearch")) $root.api.PackageSearch.encode(message.packageSearch, writer.uint32(/* id 280, wireType 2 =*/2242).fork()).ldelim(); - if (message.packageSearchResp != null && message.hasOwnProperty("packageSearchResp")) + if (message.packageSearchResp != null && Object.hasOwnProperty.call(message, "packageSearchResp")) $root.api.PackageSearchResp.encode(message.packageSearchResp, writer.uint32(/* id 281, wireType 2 =*/2250).fork()).ldelim(); - if (message.packageInfo != null && message.hasOwnProperty("packageInfo")) + if (message.packageInfo != null && Object.hasOwnProperty.call(message, "packageInfo")) $root.api.PackageInfo.encode(message.packageInfo, writer.uint32(/* id 282, wireType 2 =*/2258).fork()).ldelim(); - if (message.packageInfoResp != null && message.hasOwnProperty("packageInfoResp")) + if (message.packageInfoResp != null && Object.hasOwnProperty.call(message, "packageInfoResp")) $root.api.PackageInfoResp.encode(message.packageInfoResp, writer.uint32(/* id 283, wireType 2 =*/2266).fork()).ldelim(); - if (message.packageAdd != null && message.hasOwnProperty("packageAdd")) + if (message.packageAdd != null && Object.hasOwnProperty.call(message, "packageAdd")) $root.api.PackageAdd.encode(message.packageAdd, writer.uint32(/* id 284, wireType 2 =*/2274).fork()).ldelim(); - if (message.packageRemove != null && message.hasOwnProperty("packageRemove")) + if (message.packageRemove != null && Object.hasOwnProperty.call(message, "packageRemove")) $root.api.PackageRemove.encode(message.packageRemove, writer.uint32(/* id 285, wireType 2 =*/2282).fork()).ldelim(); - if (message.packageInstall != null && message.hasOwnProperty("packageInstall")) + if (message.packageInstall != null && Object.hasOwnProperty.call(message, "packageInstall")) $root.api.PackageInstall.encode(message.packageInstall, writer.uint32(/* id 286, wireType 2 =*/2290).fork()).ldelim(); - if (message.packageListSpecfile != null && message.hasOwnProperty("packageListSpecfile")) + if (message.packageListSpecfile != null && Object.hasOwnProperty.call(message, "packageListSpecfile")) $root.api.PackageListSpecfile.encode(message.packageListSpecfile, writer.uint32(/* id 287, wireType 2 =*/2298).fork()).ldelim(); - if (message.packageListSpecfileResp != null && message.hasOwnProperty("packageListSpecfileResp")) + if (message.packageListSpecfileResp != null && Object.hasOwnProperty.call(message, "packageListSpecfileResp")) $root.api.PackageListSpecfileResp.encode(message.packageListSpecfileResp, writer.uint32(/* id 288, wireType 2 =*/2306).fork()).ldelim(); - if (message.packageCacheSave != null && message.hasOwnProperty("packageCacheSave")) + if (message.packageCacheSave != null && Object.hasOwnProperty.call(message, "packageCacheSave")) $root.api.PackageCacheSave.encode(message.packageCacheSave, writer.uint32(/* id 289, wireType 2 =*/2314).fork()).ldelim(); - if (message.chatMessage != null && message.hasOwnProperty("chatMessage")) + if (message.chatMessage != null && Object.hasOwnProperty.call(message, "chatMessage")) $root.api.ChatMessage.encode(message.chatMessage, writer.uint32(/* id 310, wireType 2 =*/2482).fork()).ldelim(); - if (message.chatTyping != null && message.hasOwnProperty("chatTyping")) + if (message.chatTyping != null && Object.hasOwnProperty.call(message, "chatTyping")) $root.api.ChatTyping.encode(message.chatTyping, writer.uint32(/* id 311, wireType 2 =*/2490).fork()).ldelim(); - if (message.chatScrollback != null && message.hasOwnProperty("chatScrollback")) + if (message.chatScrollback != null && Object.hasOwnProperty.call(message, "chatScrollback")) $root.api.ChatScrollback.encode(message.chatScrollback, writer.uint32(/* id 312, wireType 2 =*/2498).fork()).ldelim(); - if (message.fsSnapshot != null && message.hasOwnProperty("fsSnapshot")) + if (message.fsSnapshot != null && Object.hasOwnProperty.call(message, "fsSnapshot")) $root.api.FSSnapshot.encode(message.fsSnapshot, writer.uint32(/* id 330, wireType 2 =*/2642).fork()).ldelim(); - if (message.fsTakeLock != null && message.hasOwnProperty("fsTakeLock")) + if (message.fsTakeLock != null && Object.hasOwnProperty.call(message, "fsTakeLock")) $root.api.FSLock.encode(message.fsTakeLock, writer.uint32(/* id 331, wireType 2 =*/2650).fork()).ldelim(); - if (message.fsReleaseLock != null && message.hasOwnProperty("fsReleaseLock")) + if (message.fsReleaseLock != null && Object.hasOwnProperty.call(message, "fsReleaseLock")) $root.api.FSLock.encode(message.fsReleaseLock, writer.uint32(/* id 332, wireType 2 =*/2658).fork()).ldelim(); - if (message.hasCap != null && message.hasOwnProperty("hasCap")) + if (message.hasCap != null && Object.hasOwnProperty.call(message, "hasCap")) writer.uint32(/* id 335, wireType 0 =*/2680).bool(message.hasCap); - if (message.pid1Config != null && message.hasOwnProperty("pid1Config")) + if (message.pid1Config != null && Object.hasOwnProperty.call(message, "pid1Config")) $root.api.Pid1Config.encode(message.pid1Config, writer.uint32(/* id 340, wireType 2 =*/2722).fork()).ldelim(); - if (message.metrics != null && message.hasOwnProperty("metrics")) + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) $root.api.Metrics.encode(message.metrics, writer.uint32(/* id 350, wireType 2 =*/2802).fork()).ldelim(); - if (message.bootStatus != null && message.hasOwnProperty("bootStatus")) + if (message.bootStatus != null && Object.hasOwnProperty.call(message, "bootStatus")) $root.api.BootStatus.encode(message.bootStatus, writer.uint32(/* id 351, wireType 2 =*/2810).fork()).ldelim(); - if (message.readMeta != null && message.hasOwnProperty("readMeta")) + if (message.readMeta != null && Object.hasOwnProperty.call(message, "readMeta")) $root.api.ReadMeta.encode(message.readMeta, writer.uint32(/* id 360, wireType 2 =*/2882).fork()).ldelim(); - if (message.writeMeta != null && message.hasOwnProperty("writeMeta")) + if (message.writeMeta != null && Object.hasOwnProperty.call(message, "writeMeta")) $root.api.WriteMeta.encode(message.writeMeta, writer.uint32(/* id 361, wireType 2 =*/2890).fork()).ldelim(); - if (message.appendMeta != null && message.hasOwnProperty("appendMeta")) + if (message.appendMeta != null && Object.hasOwnProperty.call(message, "appendMeta")) $root.api.AppendMeta.encode(message.appendMeta, writer.uint32(/* id 362, wireType 2 =*/2898).fork()).ldelim(); - if (message.audio != null && message.hasOwnProperty("audio")) + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) $root.api.Audio.encode(message.audio, writer.uint32(/* id 363, wireType 2 =*/2906).fork()).ldelim(); - if (message.pprofRequest != null && message.hasOwnProperty("pprofRequest")) + if (message.pprofRequest != null && Object.hasOwnProperty.call(message, "pprofRequest")) $root.api.PprofRequest.encode(message.pprofRequest, writer.uint32(/* id 364, wireType 2 =*/2914).fork()).ldelim(); - if (message.pprofResponse != null && message.hasOwnProperty("pprofResponse")) + if (message.pprofResponse != null && Object.hasOwnProperty.call(message, "pprofResponse")) $root.api.PprofResponse.encode(message.pprofResponse, writer.uint32(/* id 365, wireType 2 =*/2922).fork()).ldelim(); - if (message.audio2 != null && message.hasOwnProperty("audio2")) + if (message.audio2 != null && Object.hasOwnProperty.call(message, "audio2")) $root.api.Audio2.encode(message.audio2, writer.uint32(/* id 366, wireType 2 =*/2930).fork()).ldelim(); - if (message.PTYConfig != null && message.hasOwnProperty("PTYConfig")) + if (message.PTYConfig != null && Object.hasOwnProperty.call(message, "PTYConfig")) $root.api.PTYConfig.encode(message.PTYConfig, writer.uint32(/* id 367, wireType 2 =*/2938).fork()).ldelim(); - if (message.ref != null && message.hasOwnProperty("ref")) + if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref); return writer; }; @@ -1238,7 +1237,7 @@ * @function encodeDelimited * @memberof api.Command * @static - * @param {api.ICommand} message Command message or plain object to encode + * @param {api.Command} message Command message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3682,7 +3681,6 @@ * Constructs a new Audio. * @memberof api * @classdesc Represents an Audio. - * @implements IAudio * @constructor * @param {api.IAudio=} [properties] Properties to set */ @@ -3711,7 +3709,7 @@ * @returns {api.Audio} Audio instance */ Audio.create = function create(properties) { - return new Audio(properties); + return Audio.fromObject(properties); }; /** @@ -3719,7 +3717,7 @@ * @function encode * @memberof api.Audio * @static - * @param {api.IAudio} message Audio message or plain object to encode + * @param {api.Audio} message Audio message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3740,7 +3738,7 @@ * @function encodeDelimited * @memberof api.Audio * @static - * @param {api.IAudio} message Audio message or plain object to encode + * @param {api.Audio} message Audio message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3887,14 +3885,13 @@ * @memberof api * @interface IAudio2 * @property {Array.|null} [data] Audio2 data - * @property {number|Long|null} [samples] Audio2 samples + * @property {number|null} [samples] Audio2 samples */ /** * Constructs a new Audio2. * @memberof api * @classdesc Represents an Audio2. - * @implements IAudio2 * @constructor * @param {api.IAudio2=} [properties] Properties to set */ @@ -3916,7 +3913,7 @@ /** * Audio2 samples. - * @member {number|Long} samples + * @member {number} samples * @memberof api.Audio2 * @instance */ @@ -3931,7 +3928,7 @@ * @returns {api.Audio2} Audio2 instance */ Audio2.create = function create(properties) { - return new Audio2(properties); + return Audio2.fromObject(properties); }; /** @@ -3939,7 +3936,7 @@ * @function encode * @memberof api.Audio2 * @static - * @param {api.IAudio2} message Audio2 message or plain object to encode + * @param {api.Audio2} message Audio2 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3952,7 +3949,7 @@ writer.sint32(message.data[i]); writer.ldelim(); } - if (message.samples != null && message.hasOwnProperty("samples")) + if (message.samples != null && Object.hasOwnProperty.call(message, "samples")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.samples); return writer; }; @@ -3962,7 +3959,7 @@ * @function encodeDelimited * @memberof api.Audio2 * @static - * @param {api.IAudio2} message Audio2 message or plain object to encode + * @param {api.Audio2} message Audio2 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4143,7 +4140,6 @@ * Constructs a new ReadMeta. * @memberof api * @classdesc Represents a ReadMeta. - * @implements IReadMeta * @constructor * @param {api.IReadMeta=} [properties] Properties to set */ @@ -4187,7 +4183,7 @@ * @returns {api.ReadMeta} ReadMeta instance */ ReadMeta.create = function create(properties) { - return new ReadMeta(properties); + return ReadMeta.fromObject(properties); }; /** @@ -4195,18 +4191,18 @@ * @function encode * @memberof api.ReadMeta * @static - * @param {api.IReadMeta} message ReadMeta message or plain object to encode + * @param {api.ReadMeta} message ReadMeta message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ ReadMeta.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.exists != null && message.hasOwnProperty("exists")) + if (message.exists != null && Object.hasOwnProperty.call(message, "exists")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.exists); - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "data")) writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); return writer; }; @@ -4216,7 +4212,7 @@ * @function encodeDelimited * @memberof api.ReadMeta * @static - * @param {api.IReadMeta} message ReadMeta message or plain object to encode + * @param {api.ReadMeta} message ReadMeta message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4383,7 +4379,6 @@ * Constructs a new WriteMeta. * @memberof api * @classdesc Represents a WriteMeta. - * @implements IWriteMeta * @constructor * @param {api.IWriteMeta=} [properties] Properties to set */ @@ -4419,7 +4414,7 @@ * @returns {api.WriteMeta} WriteMeta instance */ WriteMeta.create = function create(properties) { - return new WriteMeta(properties); + return WriteMeta.fromObject(properties); }; /** @@ -4427,16 +4422,16 @@ * @function encode * @memberof api.WriteMeta * @static - * @param {api.IWriteMeta} message WriteMeta message or plain object to encode + * @param {api.WriteMeta} message WriteMeta message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ WriteMeta.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "data")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); return writer; }; @@ -4446,7 +4441,7 @@ * @function encodeDelimited * @memberof api.WriteMeta * @static - * @param {api.IWriteMeta} message WriteMeta message or plain object to encode + * @param {api.WriteMeta} message WriteMeta message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4602,7 +4597,6 @@ * Constructs a new AppendMeta. * @memberof api * @classdesc Represents an AppendMeta. - * @implements IAppendMeta * @constructor * @param {api.IAppendMeta=} [properties] Properties to set */ @@ -4638,7 +4632,7 @@ * @returns {api.AppendMeta} AppendMeta instance */ AppendMeta.create = function create(properties) { - return new AppendMeta(properties); + return AppendMeta.fromObject(properties); }; /** @@ -4646,16 +4640,16 @@ * @function encode * @memberof api.AppendMeta * @static - * @param {api.IAppendMeta} message AppendMeta message or plain object to encode + * @param {api.AppendMeta} message AppendMeta message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ AppendMeta.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && Object.hasOwnProperty.call(message, "data")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); return writer; }; @@ -4665,7 +4659,7 @@ * @function encodeDelimited * @memberof api.AppendMeta * @static - * @param {api.IAppendMeta} message AppendMeta message or plain object to encode + * @param {api.AppendMeta} message AppendMeta message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4822,7 +4816,6 @@ * Constructs a new BootStatus. * @memberof api * @classdesc Represents a BootStatus. - * @implements IBootStatus * @constructor * @param {api.IBootStatus=} [properties] Properties to set */ @@ -4866,7 +4859,7 @@ * @returns {api.BootStatus} BootStatus instance */ BootStatus.create = function create(properties) { - return new BootStatus(properties); + return BootStatus.fromObject(properties); }; /** @@ -4874,18 +4867,18 @@ * @function encode * @memberof api.BootStatus * @static - * @param {api.IBootStatus} message BootStatus message or plain object to encode + * @param {api.BootStatus} message BootStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ BootStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.stage != null && message.hasOwnProperty("stage")) + if (message.stage != null && Object.hasOwnProperty.call(message, "stage")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.stage); - if (message.progress != null && message.hasOwnProperty("progress")) + if (message.progress != null && Object.hasOwnProperty.call(message, "progress")) writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.progress); - if (message.total != null && message.hasOwnProperty("total")) + if (message.total != null && Object.hasOwnProperty.call(message, "total")) writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.total); return writer; }; @@ -4895,7 +4888,7 @@ * @function encodeDelimited * @memberof api.BootStatus * @static - * @param {api.IBootStatus} message BootStatus message or plain object to encode + * @param {api.BootStatus} message BootStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5077,7 +5070,7 @@ /** * Stage enum. * @name api.BootStatus.Stage - * @enum {string} + * @enum {number} * @property {number} HANDSHAKE=0 HANDSHAKE value * @property {number} ACQUIRING=3 ACQUIRING value * @property {number} COMPLETE=4 COMPLETE value @@ -5116,7 +5109,6 @@ * Constructs a new Pid1Config. * @memberof api * @classdesc Represents a Pid1Config. - * @implements IPid1Config * @constructor * @param {api.IPid1Config=} [properties] Properties to set */ @@ -5161,7 +5153,7 @@ * @returns {api.Pid1Config} Pid1Config instance */ Pid1Config.create = function create(properties) { - return new Pid1Config(properties); + return Pid1Config.fromObject(properties); }; /** @@ -5169,18 +5161,18 @@ * @function encode * @memberof api.Pid1Config * @static - * @param {api.IPid1Config} message Pid1Config message or plain object to encode + * @param {api.Pid1Config} message Pid1Config message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Pid1Config.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cwd != null && message.hasOwnProperty("cwd")) + if (message.cwd != null && Object.hasOwnProperty.call(message, "cwd")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.cwd); - if (message.language != null && message.hasOwnProperty("language")) + if (message.language != null && Object.hasOwnProperty.call(message, "language")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.language); - if (message.env != null && message.hasOwnProperty("env")) + if (message.env != null && Object.hasOwnProperty.call(message, "env")) for (var keys = Object.keys(message.env), i = 0; i < keys.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.env[keys[i]]).ldelim(); return writer; @@ -5191,7 +5183,7 @@ * @function encodeDelimited * @memberof api.Pid1Config * @static - * @param {api.IPid1Config} message Pid1Config message or plain object to encode + * @param {api.Pid1Config} message Pid1Config message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5213,7 +5205,7 @@ Pid1Config.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.Pid1Config(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.Pid1Config(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -5224,12 +5216,26 @@ message.language = reader.string(); break; case 3: - reader.skip().pos++; if (message.env === $util.emptyObject) message.env = {}; - key = reader.string(); - reader.pos++; - message.env[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.env[key] = value; break; default: reader.skipType(tag & 7); @@ -5368,7 +5374,6 @@ * Constructs a new FSLock. * @memberof api * @classdesc Represents a FSLock. - * @implements IFSLock * @constructor * @param {api.IFSLock=} [properties] Properties to set */ @@ -5396,7 +5401,7 @@ * @returns {api.FSLock} FSLock instance */ FSLock.create = function create(properties) { - return new FSLock(properties); + return FSLock.fromObject(properties); }; /** @@ -5404,14 +5409,14 @@ * @function encode * @memberof api.FSLock * @static - * @param {api.IFSLock} message FSLock message or plain object to encode + * @param {api.FSLock} message FSLock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ FSLock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; @@ -5421,7 +5426,7 @@ * @function encodeDelimited * @memberof api.FSLock * @static - * @param {api.IFSLock} message FSLock message or plain object to encode + * @param {api.FSLock} message FSLock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5554,7 +5559,6 @@ * Constructs a new FSSnapshot. * @memberof api * @classdesc Represents a FSSnapshot. - * @implements IFSSnapshot * @constructor * @param {api.IFSSnapshot=} [properties] Properties to set */ @@ -5574,7 +5578,7 @@ * @returns {api.FSSnapshot} FSSnapshot instance */ FSSnapshot.create = function create(properties) { - return new FSSnapshot(properties); + return FSSnapshot.fromObject(properties); }; /** @@ -5582,7 +5586,7 @@ * @function encode * @memberof api.FSSnapshot * @static - * @param {api.IFSSnapshot} message FSSnapshot message or plain object to encode + * @param {api.FSSnapshot} message FSSnapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5597,7 +5601,7 @@ * @function encodeDelimited * @memberof api.FSSnapshot * @static - * @param {api.IFSSnapshot} message FSSnapshot message or plain object to encode + * @param {api.FSSnapshot} message FSSnapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5708,14 +5712,13 @@ * Properties of a SubscribeFile. * @memberof api * @interface ISubscribeFile - * @property {Array.|null} [files] SubscribeFile files + * @property {Array.|null} [files] SubscribeFile files */ /** * Constructs a new SubscribeFile. * @memberof api * @classdesc Represents a SubscribeFile. - * @implements ISubscribeFile * @constructor * @param {api.ISubscribeFile=} [properties] Properties to set */ @@ -5729,7 +5732,7 @@ /** * SubscribeFile files. - * @member {Array.} files + * @member {Array.} files * @memberof api.SubscribeFile * @instance */ @@ -5744,7 +5747,7 @@ * @returns {api.SubscribeFile} SubscribeFile instance */ SubscribeFile.create = function create(properties) { - return new SubscribeFile(properties); + return SubscribeFile.fromObject(properties); }; /** @@ -5752,7 +5755,7 @@ * @function encode * @memberof api.SubscribeFile * @static - * @param {api.ISubscribeFile} message SubscribeFile message or plain object to encode + * @param {api.SubscribeFile} message SubscribeFile message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5770,7 +5773,7 @@ * @function encodeDelimited * @memberof api.SubscribeFile * @static - * @param {api.ISubscribeFile} message SubscribeFile message or plain object to encode + * @param {api.SubscribeFile} message SubscribeFile message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5916,8 +5919,8 @@ * Properties of a FileEvent. * @memberof api * @interface IFileEvent - * @property {api.IFile|null} [file] FileEvent file - * @property {api.IFile|null} [dest] FileEvent dest + * @property {api.File|api.IFile|null} [file] FileEvent file + * @property {api.File|api.IFile|null} [dest] FileEvent dest * @property {api.FileEvent.Op|null} [op] FileEvent op */ @@ -5925,7 +5928,6 @@ * Constructs a new FileEvent. * @memberof api * @classdesc Represents a FileEvent. - * @implements IFileEvent * @constructor * @param {api.IFileEvent=} [properties] Properties to set */ @@ -5938,7 +5940,7 @@ /** * FileEvent file. - * @member {api.IFile|null|undefined} file + * @member {api.File|null|undefined} file * @memberof api.FileEvent * @instance */ @@ -5946,7 +5948,7 @@ /** * FileEvent dest. - * @member {api.IFile|null|undefined} dest + * @member {api.File|null|undefined} dest * @memberof api.FileEvent * @instance */ @@ -5969,7 +5971,7 @@ * @returns {api.FileEvent} FileEvent instance */ FileEvent.create = function create(properties) { - return new FileEvent(properties); + return FileEvent.fromObject(properties); }; /** @@ -5977,18 +5979,18 @@ * @function encode * @memberof api.FileEvent * @static - * @param {api.IFileEvent} message FileEvent message or plain object to encode + * @param {api.FileEvent} message FileEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ FileEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.file != null && message.hasOwnProperty("file")) + if (message.file != null && Object.hasOwnProperty.call(message, "file")) $root.api.File.encode(message.file, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.op != null && message.hasOwnProperty("op")) + if (message.op != null && Object.hasOwnProperty.call(message, "op")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.op); - if (message.dest != null && message.hasOwnProperty("dest")) + if (message.dest != null && Object.hasOwnProperty.call(message, "dest")) $root.api.File.encode(message.dest, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -5998,7 +6000,7 @@ * @function encodeDelimited * @memberof api.FileEvent * @static - * @param {api.IFileEvent} message FileEvent message or plain object to encode + * @param {api.FileEvent} message FileEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6175,7 +6177,7 @@ /** * Op enum. * @name api.FileEvent.Op - * @enum {string} + * @enum {number} * @property {number} Create=0 Create value * @property {number} Move=1 Move value * @property {number} Remove=2 Remove value @@ -6205,7 +6207,6 @@ * Constructs a new Flush. * @memberof api * @classdesc Represents a Flush. - * @implements IFlush * @constructor * @param {api.IFlush=} [properties] Properties to set */ @@ -6225,7 +6226,7 @@ * @returns {api.Flush} Flush instance */ Flush.create = function create(properties) { - return new Flush(properties); + return Flush.fromObject(properties); }; /** @@ -6233,7 +6234,7 @@ * @function encode * @memberof api.Flush * @static - * @param {api.IFlush} message Flush message or plain object to encode + * @param {api.Flush} message Flush message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6248,7 +6249,7 @@ * @function encodeDelimited * @memberof api.Flush * @static - * @param {api.IFlush} message Flush message or plain object to encode + * @param {api.Flush} message Flush message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6359,7 +6360,7 @@ * Properties of a OTLinkFile. * @memberof api * @interface IOTLinkFile - * @property {api.IFile|null} [file] OTLinkFile file + * @property {api.File|api.IFile|null} [file] OTLinkFile file * @property {boolean|null} [highConsistency] OTLinkFile highConsistency * @property {boolean|null} [useModTime] OTLinkFile useModTime */ @@ -6368,7 +6369,6 @@ * Constructs a new OTLinkFile. * @memberof api * @classdesc Represents a OTLinkFile. - * @implements IOTLinkFile * @constructor * @param {api.IOTLinkFile=} [properties] Properties to set */ @@ -6381,7 +6381,7 @@ /** * OTLinkFile file. - * @member {api.IFile|null|undefined} file + * @member {api.File|null|undefined} file * @memberof api.OTLinkFile * @instance */ @@ -6412,7 +6412,7 @@ * @returns {api.OTLinkFile} OTLinkFile instance */ OTLinkFile.create = function create(properties) { - return new OTLinkFile(properties); + return OTLinkFile.fromObject(properties); }; /** @@ -6420,18 +6420,18 @@ * @function encode * @memberof api.OTLinkFile * @static - * @param {api.IOTLinkFile} message OTLinkFile message or plain object to encode + * @param {api.OTLinkFile} message OTLinkFile message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ OTLinkFile.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.file != null && message.hasOwnProperty("file")) + if (message.file != null && Object.hasOwnProperty.call(message, "file")) $root.api.File.encode(message.file, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.highConsistency != null && message.hasOwnProperty("highConsistency")) + if (message.highConsistency != null && Object.hasOwnProperty.call(message, "highConsistency")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.highConsistency); - if (message.useModTime != null && message.hasOwnProperty("useModTime")) + if (message.useModTime != null && Object.hasOwnProperty.call(message, "useModTime")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useModTime); return writer; }; @@ -6441,7 +6441,7 @@ * @function encodeDelimited * @memberof api.OTLinkFile * @static - * @param {api.IOTLinkFile} message OTLinkFile message or plain object to encode + * @param {api.OTLinkFile} message OTLinkFile message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6604,7 +6604,6 @@ * Constructs a new Auth. * @memberof api * @classdesc Represents an Auth. - * @implements IAuth * @constructor * @param {api.IAuth=} [properties] Properties to set */ @@ -6640,7 +6639,7 @@ * @returns {api.Auth} Auth instance */ Auth.create = function create(properties) { - return new Auth(properties); + return Auth.fromObject(properties); }; /** @@ -6648,16 +6647,16 @@ * @function encode * @memberof api.Auth * @static - * @param {api.IAuth} message Auth message or plain object to encode + * @param {api.Auth} message Auth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Auth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.token != null && message.hasOwnProperty("token")) + if (message.token != null && Object.hasOwnProperty.call(message, "token")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); - if (message.containerID != null && message.hasOwnProperty("containerID")) + if (message.containerID != null && Object.hasOwnProperty.call(message, "containerID")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.containerID); return writer; }; @@ -6667,7 +6666,7 @@ * @function encodeDelimited * @memberof api.Auth * @static - * @param {api.IAuth} message Auth message or plain object to encode + * @param {api.Auth} message Auth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6806,9 +6805,9 @@ * Properties of a VCREntry. * @memberof api * @interface IVCREntry - * @property {number|Long|null} [timestamp] VCREntry timestamp + * @property {number|null} [timestamp] VCREntry timestamp * @property {api.VCREntry.Direction|null} [direction] VCREntry direction - * @property {api.ICommand|null} [command] VCREntry command + * @property {api.Command|api.ICommand|null} [command] VCREntry command * @property {string|null} [uid] VCREntry uid */ @@ -6816,7 +6815,6 @@ * Constructs a new VCREntry. * @memberof api * @classdesc Represents a VCREntry. - * @implements IVCREntry * @constructor * @param {api.IVCREntry=} [properties] Properties to set */ @@ -6829,7 +6827,7 @@ /** * VCREntry timestamp. - * @member {number|Long} timestamp + * @member {number} timestamp * @memberof api.VCREntry * @instance */ @@ -6845,7 +6843,7 @@ /** * VCREntry command. - * @member {api.ICommand|null|undefined} command + * @member {api.Command|null|undefined} command * @memberof api.VCREntry * @instance */ @@ -6868,7 +6866,7 @@ * @returns {api.VCREntry} VCREntry instance */ VCREntry.create = function create(properties) { - return new VCREntry(properties); + return VCREntry.fromObject(properties); }; /** @@ -6876,20 +6874,20 @@ * @function encode * @memberof api.VCREntry * @static - * @param {api.IVCREntry} message VCREntry message or plain object to encode + * @param {api.VCREntry} message VCREntry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ VCREntry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp); - if (message.direction != null && message.hasOwnProperty("direction")) + if (message.direction != null && Object.hasOwnProperty.call(message, "direction")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.direction); - if (message.command != null && message.hasOwnProperty("command")) + if (message.command != null && Object.hasOwnProperty.call(message, "command")) $root.api.Command.encode(message.command, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.uid != null && message.hasOwnProperty("uid")) + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.uid); return writer; }; @@ -6899,7 +6897,7 @@ * @function encodeDelimited * @memberof api.VCREntry * @static - * @param {api.IVCREntry} message VCREntry message or plain object to encode + * @param {api.VCREntry} message VCREntry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7086,7 +7084,7 @@ /** * Direction enum. * @name api.VCREntry.Direction - * @enum {string} + * @enum {number} * @property {number} IN=0 IN value * @property {number} OUT=1 OUT value */ @@ -7112,7 +7110,6 @@ * Constructs a new StartVCR. * @memberof api * @classdesc Represents a StartVCR. - * @implements IStartVCR * @constructor * @param {api.IStartVCR=} [properties] Properties to set */ @@ -7132,7 +7129,7 @@ * @returns {api.StartVCR} StartVCR instance */ StartVCR.create = function create(properties) { - return new StartVCR(properties); + return StartVCR.fromObject(properties); }; /** @@ -7140,7 +7137,7 @@ * @function encode * @memberof api.StartVCR * @static - * @param {api.IStartVCR} message StartVCR message or plain object to encode + * @param {api.StartVCR} message StartVCR message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7155,7 +7152,7 @@ * @function encodeDelimited * @memberof api.StartVCR * @static - * @param {api.IStartVCR} message StartVCR message or plain object to encode + * @param {api.StartVCR} message StartVCR message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7272,7 +7269,6 @@ * Constructs a new ReadVCR. * @memberof api * @classdesc Represents a ReadVCR. - * @implements IReadVCR * @constructor * @param {api.IReadVCR=} [properties] Properties to set */ @@ -7292,7 +7288,7 @@ * @returns {api.ReadVCR} ReadVCR instance */ ReadVCR.create = function create(properties) { - return new ReadVCR(properties); + return ReadVCR.fromObject(properties); }; /** @@ -7300,7 +7296,7 @@ * @function encode * @memberof api.ReadVCR * @static - * @param {api.IReadVCR} message ReadVCR message or plain object to encode + * @param {api.ReadVCR} message ReadVCR message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7315,7 +7311,7 @@ * @function encodeDelimited * @memberof api.ReadVCR * @static - * @param {api.IReadVCR} message ReadVCR message or plain object to encode + * @param {api.ReadVCR} message ReadVCR message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7426,15 +7422,14 @@ * Properties of a VCRLog. * @memberof api * @interface IVCRLog - * @property {Array.|null} [log] VCRLog log - * @property {api.IFile|null} [logfile] VCRLog logfile + * @property {Array.|null} [log] VCRLog log + * @property {api.File|api.IFile|null} [logfile] VCRLog logfile */ /** * Constructs a new VCRLog. * @memberof api * @classdesc Represents a VCRLog. - * @implements IVCRLog * @constructor * @param {api.IVCRLog=} [properties] Properties to set */ @@ -7448,7 +7443,7 @@ /** * VCRLog log. - * @member {Array.} log + * @member {Array.} log * @memberof api.VCRLog * @instance */ @@ -7456,7 +7451,7 @@ /** * VCRLog logfile. - * @member {api.IFile|null|undefined} logfile + * @member {api.File|null|undefined} logfile * @memberof api.VCRLog * @instance */ @@ -7471,7 +7466,7 @@ * @returns {api.VCRLog} VCRLog instance */ VCRLog.create = function create(properties) { - return new VCRLog(properties); + return VCRLog.fromObject(properties); }; /** @@ -7479,7 +7474,7 @@ * @function encode * @memberof api.VCRLog * @static - * @param {api.IVCRLog} message VCRLog message or plain object to encode + * @param {api.VCRLog} message VCRLog message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7489,7 +7484,7 @@ if (message.log != null && message.log.length) for (var i = 0; i < message.log.length; ++i) $root.api.VCREntry.encode(message.log[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.logfile != null && message.hasOwnProperty("logfile")) + if (message.logfile != null && Object.hasOwnProperty.call(message, "logfile")) $root.api.File.encode(message.logfile, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -7499,7 +7494,7 @@ * @function encodeDelimited * @memberof api.VCRLog * @static - * @param {api.IVCRLog} message VCRLog message or plain object to encode + * @param {api.VCRLog} message VCRLog message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7670,7 +7665,6 @@ * Constructs a new ExecInfo. * @memberof api * @classdesc Represents an ExecInfo. - * @implements IExecInfo * @constructor * @param {api.IExecInfo=} [properties] Properties to set */ @@ -7707,7 +7701,7 @@ * @returns {api.ExecInfo} ExecInfo instance */ ExecInfo.create = function create(properties) { - return new ExecInfo(properties); + return ExecInfo.fromObject(properties); }; /** @@ -7715,7 +7709,7 @@ * @function encode * @memberof api.ExecInfo * @static - * @param {api.IExecInfo} message ExecInfo message or plain object to encode + * @param {api.ExecInfo} message ExecInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7725,7 +7719,7 @@ if (message.command != null && message.command.length) for (var i = 0; i < message.command.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.command[i]); - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason); return writer; }; @@ -7735,7 +7729,7 @@ * @function encodeDelimited * @memberof api.ExecInfo * @static - * @param {api.IExecInfo} message ExecInfo message or plain object to encode + * @param {api.ExecInfo} message ExecInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7895,7 +7889,6 @@ * Constructs a new Debug. * @memberof api * @classdesc Represents a Debug. - * @implements IDebug * @constructor * @param {api.IDebug=} [properties] Properties to set */ @@ -7923,7 +7916,7 @@ * @returns {api.Debug} Debug instance */ Debug.create = function create(properties) { - return new Debug(properties); + return Debug.fromObject(properties); }; /** @@ -7931,14 +7924,14 @@ * @function encode * @memberof api.Debug * @static - * @param {api.IDebug} message Debug message or plain object to encode + * @param {api.Debug} message Debug message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Debug.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.hasOwnProperty("text")) + if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); return writer; }; @@ -7948,7 +7941,7 @@ * @function encodeDelimited * @memberof api.Debug * @static - * @param {api.IDebug} message Debug message or plain object to encode + * @param {api.Debug} message Debug message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8072,7 +8065,7 @@ /** * FileAuthMethod enum. * @name api.FileAuthMethod - * @enum {string} + * @enum {number} * @property {number} GET=0 GET value * @property {number} HEAD=1 HEAD value * @property {number} PUT=2 PUT value @@ -8093,7 +8086,7 @@ * Properties of a FileAuthReq. * @memberof api * @interface IFileAuthReq - * @property {api.IFile|null} [file] FileAuthReq file + * @property {api.File|api.IFile|null} [file] FileAuthReq file * @property {api.FileAuthMethod|null} [method] FileAuthReq method */ @@ -8101,7 +8094,6 @@ * Constructs a new FileAuthReq. * @memberof api * @classdesc Represents a FileAuthReq. - * @implements IFileAuthReq * @constructor * @param {api.IFileAuthReq=} [properties] Properties to set */ @@ -8114,7 +8106,7 @@ /** * FileAuthReq file. - * @member {api.IFile|null|undefined} file + * @member {api.File|null|undefined} file * @memberof api.FileAuthReq * @instance */ @@ -8137,7 +8129,7 @@ * @returns {api.FileAuthReq} FileAuthReq instance */ FileAuthReq.create = function create(properties) { - return new FileAuthReq(properties); + return FileAuthReq.fromObject(properties); }; /** @@ -8145,16 +8137,16 @@ * @function encode * @memberof api.FileAuthReq * @static - * @param {api.IFileAuthReq} message FileAuthReq message or plain object to encode + * @param {api.FileAuthReq} message FileAuthReq message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ FileAuthReq.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.file != null && message.hasOwnProperty("file")) + if (message.file != null && Object.hasOwnProperty.call(message, "file")) $root.api.File.encode(message.file, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.method != null && message.hasOwnProperty("method")) + if (message.method != null && Object.hasOwnProperty.call(message, "method")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.method); return writer; }; @@ -8164,7 +8156,7 @@ * @function encodeDelimited * @memberof api.FileAuthReq * @static - * @param {api.IFileAuthReq} message FileAuthReq message or plain object to encode + * @param {api.FileAuthReq} message FileAuthReq message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8331,16 +8323,15 @@ * Properties of a MultiFileAuthRes. * @memberof api * @interface IMultiFileAuthRes - * @property {api.IFileAuthRes|null} [put] MultiFileAuthRes put - * @property {api.IFileAuthRes|null} [del] MultiFileAuthRes del - * @property {api.IFileAuthRes|null} [get] MultiFileAuthRes get + * @property {api.FileAuthRes|api.IFileAuthRes|null} [put] MultiFileAuthRes put + * @property {api.FileAuthRes|api.IFileAuthRes|null} [del] MultiFileAuthRes del + * @property {api.FileAuthRes|api.IFileAuthRes|null} [get] MultiFileAuthRes get */ /** * Constructs a new MultiFileAuthRes. * @memberof api * @classdesc Represents a MultiFileAuthRes. - * @implements IMultiFileAuthRes * @constructor * @param {api.IMultiFileAuthRes=} [properties] Properties to set */ @@ -8353,7 +8344,7 @@ /** * MultiFileAuthRes put. - * @member {api.IFileAuthRes|null|undefined} put + * @member {api.FileAuthRes|null|undefined} put * @memberof api.MultiFileAuthRes * @instance */ @@ -8361,7 +8352,7 @@ /** * MultiFileAuthRes del. - * @member {api.IFileAuthRes|null|undefined} del + * @member {api.FileAuthRes|null|undefined} del * @memberof api.MultiFileAuthRes * @instance */ @@ -8369,7 +8360,7 @@ /** * MultiFileAuthRes get. - * @member {api.IFileAuthRes|null|undefined} get + * @member {api.FileAuthRes|null|undefined} get * @memberof api.MultiFileAuthRes * @instance */ @@ -8384,7 +8375,7 @@ * @returns {api.MultiFileAuthRes} MultiFileAuthRes instance */ MultiFileAuthRes.create = function create(properties) { - return new MultiFileAuthRes(properties); + return MultiFileAuthRes.fromObject(properties); }; /** @@ -8392,18 +8383,18 @@ * @function encode * @memberof api.MultiFileAuthRes * @static - * @param {api.IMultiFileAuthRes} message MultiFileAuthRes message or plain object to encode + * @param {api.MultiFileAuthRes} message MultiFileAuthRes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ MultiFileAuthRes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.put != null && message.hasOwnProperty("put")) + if (message.put != null && Object.hasOwnProperty.call(message, "put")) $root.api.FileAuthRes.encode(message.put, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.del != null && message.hasOwnProperty("del")) + if (message.del != null && Object.hasOwnProperty.call(message, "del")) $root.api.FileAuthRes.encode(message.del, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.get != null && message.hasOwnProperty("get")) + if (message.get != null && Object.hasOwnProperty.call(message, "get")) $root.api.FileAuthRes.encode(message.get, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -8413,7 +8404,7 @@ * @function encodeDelimited * @memberof api.MultiFileAuthRes * @static - * @param {api.IMultiFileAuthRes} message MultiFileAuthRes message or plain object to encode + * @param {api.MultiFileAuthRes} message MultiFileAuthRes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8578,10 +8569,10 @@ * Properties of a FileAuthRes. * @memberof api * @interface IFileAuthRes - * @property {api.IFile|null} [file] FileAuthRes file + * @property {api.File|api.IFile|null} [file] FileAuthRes file * @property {string|null} [url] FileAuthRes url * @property {api.FileAuthMethod|null} [method] FileAuthRes method - * @property {number|Long|null} [expire] FileAuthRes expire + * @property {number|null} [expire] FileAuthRes expire * @property {string|null} [error] FileAuthRes error */ @@ -8589,7 +8580,6 @@ * Constructs a new FileAuthRes. * @memberof api * @classdesc Represents a FileAuthRes. - * @implements IFileAuthRes * @constructor * @param {api.IFileAuthRes=} [properties] Properties to set */ @@ -8602,7 +8592,7 @@ /** * FileAuthRes file. - * @member {api.IFile|null|undefined} file + * @member {api.File|null|undefined} file * @memberof api.FileAuthRes * @instance */ @@ -8626,7 +8616,7 @@ /** * FileAuthRes expire. - * @member {number|Long} expire + * @member {number} expire * @memberof api.FileAuthRes * @instance */ @@ -8649,7 +8639,7 @@ * @returns {api.FileAuthRes} FileAuthRes instance */ FileAuthRes.create = function create(properties) { - return new FileAuthRes(properties); + return FileAuthRes.fromObject(properties); }; /** @@ -8657,22 +8647,22 @@ * @function encode * @memberof api.FileAuthRes * @static - * @param {api.IFileAuthRes} message FileAuthRes message or plain object to encode + * @param {api.FileAuthRes} message FileAuthRes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ FileAuthRes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.file != null && message.hasOwnProperty("file")) + if (message.file != null && Object.hasOwnProperty.call(message, "file")) $root.api.File.encode(message.file, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.url); - if (message.method != null && message.hasOwnProperty("method")) + if (message.method != null && Object.hasOwnProperty.call(message, "method")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.method); - if (message.expire != null && message.hasOwnProperty("expire")) + if (message.expire != null && Object.hasOwnProperty.call(message, "expire")) writer.uint32(/* id 4, wireType 0 =*/32).int64(message.expire); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.error); return writer; }; @@ -8682,7 +8672,7 @@ * @function encodeDelimited * @memberof api.FileAuthRes * @static - * @param {api.IFileAuthRes} message FileAuthRes message or plain object to encode + * @param {api.FileAuthRes} message FileAuthRes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8903,7 +8893,6 @@ * Constructs a new ListObjects. * @memberof api * @classdesc Represents a ListObjects. - * @implements IListObjects * @constructor * @param {api.IListObjects=} [properties] Properties to set */ @@ -8931,7 +8920,7 @@ * @returns {api.ListObjects} ListObjects instance */ ListObjects.create = function create(properties) { - return new ListObjects(properties); + return ListObjects.fromObject(properties); }; /** @@ -8939,14 +8928,14 @@ * @function encode * @memberof api.ListObjects * @static - * @param {api.IListObjects} message ListObjects message or plain object to encode + * @param {api.ListObjects} message ListObjects message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ ListObjects.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.prefix != null && message.hasOwnProperty("prefix")) + if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.prefix); return writer; }; @@ -8956,7 +8945,7 @@ * @function encodeDelimited * @memberof api.ListObjects * @static - * @param {api.IListObjects} message ListObjects message or plain object to encode + * @param {api.ListObjects} message ListObjects message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9090,7 +9079,6 @@ * Constructs a new ListObjectsResp. * @memberof api * @classdesc Represents a ListObjectsResp. - * @implements IListObjectsResp * @constructor * @param {api.IListObjectsResp=} [properties] Properties to set */ @@ -9119,7 +9107,7 @@ * @returns {api.ListObjectsResp} ListObjectsResp instance */ ListObjectsResp.create = function create(properties) { - return new ListObjectsResp(properties); + return ListObjectsResp.fromObject(properties); }; /** @@ -9127,7 +9115,7 @@ * @function encode * @memberof api.ListObjectsResp * @static - * @param {api.IListObjectsResp} message ListObjectsResp message or plain object to encode + * @param {api.ListObjectsResp} message ListObjectsResp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9145,7 +9133,7 @@ * @function encodeDelimited * @memberof api.ListObjectsResp * @static - * @param {api.IListObjectsResp} message ListObjectsResp message or plain object to encode + * @param {api.ListObjectsResp} message ListObjectsResp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9293,7 +9281,6 @@ * Constructs a new Disconnect. * @memberof api * @classdesc Represents a Disconnect. - * @implements IDisconnect * @constructor * @param {api.IDisconnect=} [properties] Properties to set */ @@ -9321,7 +9308,7 @@ * @returns {api.Disconnect} Disconnect instance */ Disconnect.create = function create(properties) { - return new Disconnect(properties); + return Disconnect.fromObject(properties); }; /** @@ -9329,14 +9316,14 @@ * @function encode * @memberof api.Disconnect * @static - * @param {api.IDisconnect} message Disconnect message or plain object to encode + * @param {api.Disconnect} message Disconnect message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Disconnect.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.error); return writer; }; @@ -9346,7 +9333,7 @@ * @function encodeDelimited * @memberof api.Disconnect * @static - * @param {api.IDisconnect} message Disconnect message or plain object to encode + * @param {api.Disconnect} message Disconnect message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9480,7 +9467,6 @@ * Constructs a new Send. * @memberof api * @classdesc Represents a Send. - * @implements ISend * @constructor * @param {api.ISend=} [properties] Properties to set */ @@ -9508,7 +9494,7 @@ * @returns {api.Send} Send instance */ Send.create = function create(properties) { - return new Send(properties); + return Send.fromObject(properties); }; /** @@ -9516,14 +9502,14 @@ * @function encode * @memberof api.Send * @static - * @param {api.ISend} message Send message or plain object to encode + * @param {api.Send} message Send message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Send.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.buff != null && message.hasOwnProperty("buff")) + if (message.buff != null && Object.hasOwnProperty.call(message, "buff")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.buff); return writer; }; @@ -9533,7 +9519,7 @@ * @function encodeDelimited * @memberof api.Send * @static - * @param {api.ISend} message Send message or plain object to encode + * @param {api.Send} message Send message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9676,7 +9662,6 @@ * Constructs a new Recv. * @memberof api * @classdesc Represents a Recv. - * @implements IRecv * @constructor * @param {api.IRecv=} [properties] Properties to set */ @@ -9704,7 +9689,7 @@ * @returns {api.Recv} Recv instance */ Recv.create = function create(properties) { - return new Recv(properties); + return Recv.fromObject(properties); }; /** @@ -9712,14 +9697,14 @@ * @function encode * @memberof api.Recv * @static - * @param {api.IRecv} message Recv message or plain object to encode + * @param {api.Recv} message Recv message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Recv.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.buff != null && message.hasOwnProperty("buff")) + if (message.buff != null && Object.hasOwnProperty.call(message, "buff")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.buff); return writer; }; @@ -9729,7 +9714,7 @@ * @function encodeDelimited * @memberof api.Recv * @static - * @param {api.IRecv} message Recv message or plain object to encode + * @param {api.Recv} message Recv message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9873,7 +9858,6 @@ * Constructs a new Connect. * @memberof api * @classdesc Represents a Connect. - * @implements IConnect * @constructor * @param {api.IConnect=} [properties] Properties to set */ @@ -9909,7 +9893,7 @@ * @returns {api.Connect} Connect instance */ Connect.create = function create(properties) { - return new Connect(properties); + return Connect.fromObject(properties); }; /** @@ -9917,16 +9901,16 @@ * @function encode * @memberof api.Connect * @static - * @param {api.IConnect} message Connect message or plain object to encode + * @param {api.Connect} message Connect message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Connect.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.proto != null && message.hasOwnProperty("proto")) + if (message.proto != null && Object.hasOwnProperty.call(message, "proto")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.proto); - if (message.addr != null && message.hasOwnProperty("addr")) + if (message.addr != null && Object.hasOwnProperty.call(message, "addr")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.addr); return writer; }; @@ -9936,7 +9920,7 @@ * @function encodeDelimited * @memberof api.Connect * @static - * @param {api.IConnect} message Connect message or plain object to encode + * @param {api.Connect} message Connect message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10082,7 +10066,6 @@ * Constructs a new Hint. * @memberof api * @classdesc Represents a Hint. - * @implements IHint * @constructor * @param {api.IHint=} [properties] Properties to set */ @@ -10110,7 +10093,7 @@ * @returns {api.Hint} Hint instance */ Hint.create = function create(properties) { - return new Hint(properties); + return Hint.fromObject(properties); }; /** @@ -10118,14 +10101,14 @@ * @function encode * @memberof api.Hint * @static - * @param {api.IHint} message Hint message or plain object to encode + * @param {api.Hint} message Hint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Hint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.hasOwnProperty("text")) + if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); return writer; }; @@ -10135,7 +10118,7 @@ * @function encodeDelimited * @memberof api.Hint * @static - * @param {api.IHint} message Hint message or plain object to encode + * @param {api.Hint} message Hint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10268,7 +10251,6 @@ * Constructs a new Ping. * @memberof api * @classdesc Represents a Ping. - * @implements IPing * @constructor * @param {api.IPing=} [properties] Properties to set */ @@ -10288,7 +10270,7 @@ * @returns {api.Ping} Ping instance */ Ping.create = function create(properties) { - return new Ping(properties); + return Ping.fromObject(properties); }; /** @@ -10296,7 +10278,7 @@ * @function encode * @memberof api.Ping * @static - * @param {api.IPing} message Ping message or plain object to encode + * @param {api.Ping} message Ping message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10311,7 +10293,7 @@ * @function encodeDelimited * @memberof api.Ping * @static - * @param {api.IPing} message Ping message or plain object to encode + * @param {api.Ping} message Ping message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10428,7 +10410,6 @@ * Constructs a new Pong. * @memberof api * @classdesc Represents a Pong. - * @implements IPong * @constructor * @param {api.IPong=} [properties] Properties to set */ @@ -10448,7 +10429,7 @@ * @returns {api.Pong} Pong instance */ Pong.create = function create(properties) { - return new Pong(properties); + return Pong.fromObject(properties); }; /** @@ -10456,7 +10437,7 @@ * @function encode * @memberof api.Pong * @static - * @param {api.IPong} message Pong message or plain object to encode + * @param {api.Pong} message Pong message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10471,7 +10452,7 @@ * @function encodeDelimited * @memberof api.Pong * @static - * @param {api.IPong} message Pong message or plain object to encode + * @param {api.Pong} message Pong message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10591,7 +10572,6 @@ * Constructs a new Hello. * @memberof api * @classdesc Represents a Hello. - * @implements IHello * @constructor * @param {api.IHello=} [properties] Properties to set */ @@ -10635,7 +10615,7 @@ * @returns {api.Hello} Hello instance */ Hello.create = function create(properties) { - return new Hello(properties); + return Hello.fromObject(properties); }; /** @@ -10643,18 +10623,18 @@ * @function encode * @memberof api.Hello * @static - * @param {api.IHello} message Hello message or plain object to encode + * @param {api.Hello} message Hello message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Hello.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userid != null && message.hasOwnProperty("userid")) + if (message.userid != null && Object.hasOwnProperty.call(message, "userid")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.userid); - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.token != null && message.hasOwnProperty("token")) + if (message.token != null && Object.hasOwnProperty.call(message, "token")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); return writer; }; @@ -10664,7 +10644,7 @@ * @function encodeDelimited * @memberof api.Hello * @static - * @param {api.IHello} message Hello message or plain object to encode + * @param {api.Hello} message Hello message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10820,7 +10800,6 @@ * Constructs a new Goodbye. * @memberof api * @classdesc Represents a Goodbye. - * @implements IGoodbye * @constructor * @param {api.IGoodbye=} [properties] Properties to set */ @@ -10840,7 +10819,7 @@ * @returns {api.Goodbye} Goodbye instance */ Goodbye.create = function create(properties) { - return new Goodbye(properties); + return Goodbye.fromObject(properties); }; /** @@ -10848,7 +10827,7 @@ * @function encode * @memberof api.Goodbye * @static - * @param {api.IGoodbye} message Goodbye message or plain object to encode + * @param {api.Goodbye} message Goodbye message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10863,7 +10842,7 @@ * @function encodeDelimited * @memberof api.Goodbye * @static - * @param {api.IGoodbye} message Goodbye message or plain object to encode + * @param {api.Goodbye} message Goodbye message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10971,7 +10950,7 @@ /** * State enum. * @name api.State - * @enum {string} + * @enum {number} * @property {number} Stopped=0 Stopped value * @property {number} Running=1 Running value */ @@ -10994,7 +10973,6 @@ * Constructs a new CheckChanges. * @memberof api * @classdesc Represents a CheckChanges. - * @implements ICheckChanges * @constructor * @param {api.ICheckChanges=} [properties] Properties to set */ @@ -11014,7 +10992,7 @@ * @returns {api.CheckChanges} CheckChanges instance */ CheckChanges.create = function create(properties) { - return new CheckChanges(properties); + return CheckChanges.fromObject(properties); }; /** @@ -11022,7 +11000,7 @@ * @function encode * @memberof api.CheckChanges * @static - * @param {api.ICheckChanges} message CheckChanges message or plain object to encode + * @param {api.CheckChanges} message CheckChanges message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11037,7 +11015,7 @@ * @function encodeDelimited * @memberof api.CheckChanges * @static - * @param {api.ICheckChanges} message CheckChanges message or plain object to encode + * @param {api.CheckChanges} message CheckChanges message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11149,14 +11127,13 @@ * @memberof api * @interface IEnsurePackages * @property {boolean|null} [install] EnsurePackages install - * @property {api.IFile|null} [file] EnsurePackages file + * @property {api.File|api.IFile|null} [file] EnsurePackages file */ /** * Constructs a new EnsurePackages. * @memberof api * @classdesc Represents an EnsurePackages. - * @implements IEnsurePackages * @constructor * @param {api.IEnsurePackages=} [properties] Properties to set */ @@ -11177,7 +11154,7 @@ /** * EnsurePackages file. - * @member {api.IFile|null|undefined} file + * @member {api.File|null|undefined} file * @memberof api.EnsurePackages * @instance */ @@ -11192,7 +11169,7 @@ * @returns {api.EnsurePackages} EnsurePackages instance */ EnsurePackages.create = function create(properties) { - return new EnsurePackages(properties); + return EnsurePackages.fromObject(properties); }; /** @@ -11200,16 +11177,16 @@ * @function encode * @memberof api.EnsurePackages * @static - * @param {api.IEnsurePackages} message EnsurePackages message or plain object to encode + * @param {api.EnsurePackages} message EnsurePackages message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ EnsurePackages.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.install != null && message.hasOwnProperty("install")) + if (message.install != null && Object.hasOwnProperty.call(message, "install")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.install); - if (message.file != null && message.hasOwnProperty("file")) + if (message.file != null && Object.hasOwnProperty.call(message, "file")) $root.api.File.encode(message.file, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -11219,7 +11196,7 @@ * @function encodeDelimited * @memberof api.EnsurePackages * @static - * @param {api.IEnsurePackages} message EnsurePackages message or plain object to encode + * @param {api.EnsurePackages} message EnsurePackages message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11369,7 +11346,6 @@ * Constructs a new Start. * @memberof api * @classdesc Represents a Start. - * @implements IStart * @constructor * @param {api.IStart=} [properties] Properties to set */ @@ -11389,7 +11365,7 @@ * @returns {api.Start} Start instance */ Start.create = function create(properties) { - return new Start(properties); + return Start.fromObject(properties); }; /** @@ -11397,7 +11373,7 @@ * @function encode * @memberof api.Start * @static - * @param {api.IStart} message Start message or plain object to encode + * @param {api.Start} message Start message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11412,7 +11388,7 @@ * @function encodeDelimited * @memberof api.Start * @static - * @param {api.IStart} message Start message or plain object to encode + * @param {api.Start} message Start message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11524,14 +11500,13 @@ * @memberof api * @interface IDebugStatus * @property {boolean|null} [done] DebugStatus done - * @property {Array.|null} [stack] DebugStatus stack + * @property {Array.|null} [stack] DebugStatus stack */ /** * Constructs a new DebugStatus. * @memberof api * @classdesc Represents a DebugStatus. - * @implements IDebugStatus * @constructor * @param {api.IDebugStatus=} [properties] Properties to set */ @@ -11553,7 +11528,7 @@ /** * DebugStatus stack. - * @member {Array.} stack + * @member {Array.} stack * @memberof api.DebugStatus * @instance */ @@ -11568,7 +11543,7 @@ * @returns {api.DebugStatus} DebugStatus instance */ DebugStatus.create = function create(properties) { - return new DebugStatus(properties); + return DebugStatus.fromObject(properties); }; /** @@ -11576,14 +11551,14 @@ * @function encode * @memberof api.DebugStatus * @static - * @param {api.IDebugStatus} message DebugStatus message or plain object to encode + * @param {api.DebugStatus} message DebugStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ DebugStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.done != null && message.hasOwnProperty("done")) + if (message.done != null && Object.hasOwnProperty.call(message, "done")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.done); if (message.stack != null && message.stack.length) for (var i = 0; i < message.stack.length; ++i) @@ -11596,7 +11571,7 @@ * @function encodeDelimited * @memberof api.DebugStatus * @static - * @param {api.IDebugStatus} message DebugStatus message or plain object to encode + * @param {api.DebugStatus} message DebugStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11762,7 +11737,6 @@ * Constructs a new StackFrame. * @memberof api * @classdesc Represents a StackFrame. - * @implements IStackFrame * @constructor * @param {api.IStackFrame=} [properties] Properties to set */ @@ -11798,7 +11772,7 @@ * @returns {api.StackFrame} StackFrame instance */ StackFrame.create = function create(properties) { - return new StackFrame(properties); + return StackFrame.fromObject(properties); }; /** @@ -11806,16 +11780,16 @@ * @function encode * @memberof api.StackFrame * @static - * @param {api.IStackFrame} message StackFrame message or plain object to encode + * @param {api.StackFrame} message StackFrame message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ StackFrame.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message["function"] != null && message.hasOwnProperty("function")) + if (message["function"] != null && Object.hasOwnProperty.call(message, "function")) writer.uint32(/* id 1, wireType 2 =*/10).string(message["function"]); - if (message.line != null && message.hasOwnProperty("line")) + if (message.line != null && Object.hasOwnProperty.call(message, "line")) writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.line); return writer; }; @@ -11825,7 +11799,7 @@ * @function encodeDelimited * @memberof api.StackFrame * @static - * @param {api.IStackFrame} message StackFrame message or plain object to encode + * @param {api.StackFrame} message StackFrame message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11964,15 +11938,14 @@ * Properties of a ContainedTest. * @memberof api * @interface IContainedTest - * @property {api.IFile|null} [suite] ContainedTest suite - * @property {Array.|null} [project] ContainedTest project + * @property {api.File|api.IFile|null} [suite] ContainedTest suite + * @property {Array.|null} [project] ContainedTest project */ /** * Constructs a new ContainedTest. * @memberof api * @classdesc Represents a ContainedTest. - * @implements IContainedTest * @constructor * @param {api.IContainedTest=} [properties] Properties to set */ @@ -11986,7 +11959,7 @@ /** * ContainedTest suite. - * @member {api.IFile|null|undefined} suite + * @member {api.File|null|undefined} suite * @memberof api.ContainedTest * @instance */ @@ -11994,7 +11967,7 @@ /** * ContainedTest project. - * @member {Array.} project + * @member {Array.} project * @memberof api.ContainedTest * @instance */ @@ -12009,7 +11982,7 @@ * @returns {api.ContainedTest} ContainedTest instance */ ContainedTest.create = function create(properties) { - return new ContainedTest(properties); + return ContainedTest.fromObject(properties); }; /** @@ -12017,14 +11990,14 @@ * @function encode * @memberof api.ContainedTest * @static - * @param {api.IContainedTest} message ContainedTest message or plain object to encode + * @param {api.ContainedTest} message ContainedTest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ ContainedTest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.suite != null && message.hasOwnProperty("suite")) + if (message.suite != null && Object.hasOwnProperty.call(message, "suite")) $root.api.File.encode(message.suite, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.project != null && message.project.length) for (var i = 0; i < message.project.length; ++i) @@ -12037,7 +12010,7 @@ * @function encodeDelimited * @memberof api.ContainedTest * @static - * @param {api.IContainedTest} message ContainedTest message or plain object to encode + * @param {api.ContainedTest} message ContainedTest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12202,14 +12175,13 @@ * @interface ITestResult * @property {boolean|null} [passed] TestResult passed * @property {string|null} [stderr] TestResult stderr - * @property {Array.|null} [fails] TestResult fails + * @property {Array.|null} [fails] TestResult fails */ /** * Constructs a new TestResult. * @memberof api * @classdesc Represents a TestResult. - * @implements ITestResult * @constructor * @param {api.ITestResult=} [properties] Properties to set */ @@ -12239,7 +12211,7 @@ /** * TestResult fails. - * @member {Array.} fails + * @member {Array.} fails * @memberof api.TestResult * @instance */ @@ -12254,7 +12226,7 @@ * @returns {api.TestResult} TestResult instance */ TestResult.create = function create(properties) { - return new TestResult(properties); + return TestResult.fromObject(properties); }; /** @@ -12262,16 +12234,16 @@ * @function encode * @memberof api.TestResult * @static - * @param {api.ITestResult} message TestResult message or plain object to encode + * @param {api.TestResult} message TestResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ TestResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.passed != null && message.hasOwnProperty("passed")) + if (message.passed != null && Object.hasOwnProperty.call(message, "passed")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.passed); - if (message.stderr != null && message.hasOwnProperty("stderr")) + if (message.stderr != null && Object.hasOwnProperty.call(message, "stderr")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.stderr); if (message.fails != null && message.fails.length) for (var i = 0; i < message.fails.length; ++i) @@ -12284,7 +12256,7 @@ * @function encodeDelimited * @memberof api.TestResult * @static - * @param {api.ITestResult} message TestResult message or plain object to encode + * @param {api.TestResult} message TestResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12462,7 +12434,6 @@ * Constructs a new TestFailure. * @memberof api * @classdesc Represents a TestFailure. - * @implements ITestFailure * @constructor * @param {api.ITestFailure=} [properties] Properties to set */ @@ -12498,7 +12469,7 @@ * @returns {api.TestFailure} TestFailure instance */ TestFailure.create = function create(properties) { - return new TestFailure(properties); + return TestFailure.fromObject(properties); }; /** @@ -12506,16 +12477,16 @@ * @function encode * @memberof api.TestFailure * @static - * @param {api.ITestFailure} message TestFailure message or plain object to encode + * @param {api.TestFailure} message TestFailure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ TestFailure.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.trace != null && message.hasOwnProperty("trace")) + if (message.trace != null && Object.hasOwnProperty.call(message, "trace")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.trace); return writer; }; @@ -12525,7 +12496,7 @@ * @function encodeDelimited * @memberof api.TestFailure * @static - * @param {api.ITestFailure} message TestFailure message or plain object to encode + * @param {api.TestFailure} message TestFailure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12672,7 +12643,6 @@ * Constructs a new ResizeTerm. * @memberof api * @classdesc Represents a ResizeTerm. - * @implements IResizeTerm * @constructor * @param {api.IResizeTerm=} [properties] Properties to set */ @@ -12708,7 +12678,7 @@ * @returns {api.ResizeTerm} ResizeTerm instance */ ResizeTerm.create = function create(properties) { - return new ResizeTerm(properties); + return ResizeTerm.fromObject(properties); }; /** @@ -12716,16 +12686,16 @@ * @function encode * @memberof api.ResizeTerm * @static - * @param {api.IResizeTerm} message ResizeTerm message or plain object to encode + * @param {api.ResizeTerm} message ResizeTerm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ ResizeTerm.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows != null && message.hasOwnProperty("rows")) + if (message.rows != null && Object.hasOwnProperty.call(message, "rows")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.rows); - if (message.cols != null && message.hasOwnProperty("cols")) + if (message.cols != null && Object.hasOwnProperty.call(message, "cols")) writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.cols); return writer; }; @@ -12735,7 +12705,7 @@ * @function encodeDelimited * @memberof api.ResizeTerm * @static - * @param {api.IResizeTerm} message ResizeTerm message or plain object to encode + * @param {api.ResizeTerm} message ResizeTerm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12880,7 +12850,6 @@ * Constructs a new SaneTerm. * @memberof api * @classdesc Represents a SaneTerm. - * @implements ISaneTerm * @constructor * @param {api.ISaneTerm=} [properties] Properties to set */ @@ -12900,7 +12869,7 @@ * @returns {api.SaneTerm} SaneTerm instance */ SaneTerm.create = function create(properties) { - return new SaneTerm(properties); + return SaneTerm.fromObject(properties); }; /** @@ -12908,7 +12877,7 @@ * @function encode * @memberof api.SaneTerm * @static - * @param {api.ISaneTerm} message SaneTerm message or plain object to encode + * @param {api.SaneTerm} message SaneTerm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12923,7 +12892,7 @@ * @function encodeDelimited * @memberof api.SaneTerm * @static - * @param {api.ISaneTerm} message SaneTerm message or plain object to encode + * @param {api.SaneTerm} message SaneTerm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13034,14 +13003,13 @@ * Properties of a LintResults. * @memberof api * @interface ILintResults - * @property {Array.|null} [results] LintResults results + * @property {Array.|null} [results] LintResults results */ /** * Constructs a new LintResults. * @memberof api * @classdesc Represents a LintResults. - * @implements ILintResults * @constructor * @param {api.ILintResults=} [properties] Properties to set */ @@ -13055,7 +13023,7 @@ /** * LintResults results. - * @member {Array.} results + * @member {Array.} results * @memberof api.LintResults * @instance */ @@ -13070,7 +13038,7 @@ * @returns {api.LintResults} LintResults instance */ LintResults.create = function create(properties) { - return new LintResults(properties); + return LintResults.fromObject(properties); }; /** @@ -13078,7 +13046,7 @@ * @function encode * @memberof api.LintResults * @static - * @param {api.ILintResults} message LintResults message or plain object to encode + * @param {api.LintResults} message LintResults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13096,7 +13064,7 @@ * @function encodeDelimited * @memberof api.LintResults * @static - * @param {api.ILintResults} message LintResults message or plain object to encode + * @param {api.LintResults} message LintResults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13252,7 +13220,6 @@ * Constructs a new LintResult. * @memberof api * @classdesc Represents a LintResult. - * @implements ILintResult * @constructor * @param {api.ILintResult=} [properties] Properties to set */ @@ -13304,7 +13271,7 @@ * @returns {api.LintResult} LintResult instance */ LintResult.create = function create(properties) { - return new LintResult(properties); + return LintResult.fromObject(properties); }; /** @@ -13312,20 +13279,20 @@ * @function encode * @memberof api.LintResult * @static - * @param {api.ILintResult} message LintResult message or plain object to encode + * @param {api.LintResult} message LintResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ LintResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.hasOwnProperty("text")) + if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.row != null && message.hasOwnProperty("row")) + if (message.row != null && Object.hasOwnProperty.call(message, "row")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.row); - if (message.column != null && message.hasOwnProperty("column")) + if (message.column != null && Object.hasOwnProperty.call(message, "column")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.column); - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.type); return writer; }; @@ -13335,7 +13302,7 @@ * @function encodeDelimited * @memberof api.LintResult * @static - * @param {api.ILintResult} message LintResult message or plain object to encode + * @param {api.LintResult} message LintResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13502,7 +13469,6 @@ * Constructs a new OK. * @memberof api * @classdesc Represents a OK. - * @implements IOK * @constructor * @param {api.IOK=} [properties] Properties to set */ @@ -13522,7 +13488,7 @@ * @returns {api.OK} OK instance */ OK.create = function create(properties) { - return new OK(properties); + return OK.fromObject(properties); }; /** @@ -13530,7 +13496,7 @@ * @function encode * @memberof api.OK * @static - * @param {api.IOK} message OK message or plain object to encode + * @param {api.OK} message OK message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13545,7 +13511,7 @@ * @function encodeDelimited * @memberof api.OK * @static - * @param {api.IOK} message OK message or plain object to encode + * @param {api.OK} message OK message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13664,7 +13630,6 @@ * Constructs a new Move. * @memberof api * @classdesc Represents a Move. - * @implements IMove * @constructor * @param {api.IMove=} [properties] Properties to set */ @@ -13700,7 +13665,7 @@ * @returns {api.Move} Move instance */ Move.create = function create(properties) { - return new Move(properties); + return Move.fromObject(properties); }; /** @@ -13708,16 +13673,16 @@ * @function encode * @memberof api.Move * @static - * @param {api.IMove} message Move message or plain object to encode + * @param {api.Move} message Move message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Move.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.oldPath != null && message.hasOwnProperty("oldPath")) + if (message.oldPath != null && Object.hasOwnProperty.call(message, "oldPath")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.oldPath); - if (message.newPath != null && message.hasOwnProperty("newPath")) + if (message.newPath != null && Object.hasOwnProperty.call(message, "newPath")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.newPath); return writer; }; @@ -13727,7 +13692,7 @@ * @function encodeDelimited * @memberof api.Move * @static - * @param {api.IMove} message Move message or plain object to encode + * @param {api.Move} message Move message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13866,14 +13831,13 @@ * Properties of a Files. * @memberof api * @interface IFiles - * @property {Array.|null} [files] Files files + * @property {Array.|null} [files] Files files */ /** * Constructs a new Files. * @memberof api * @classdesc Represents a Files. - * @implements IFiles * @constructor * @param {api.IFiles=} [properties] Properties to set */ @@ -13887,7 +13851,7 @@ /** * Files files. - * @member {Array.} files + * @member {Array.} files * @memberof api.Files * @instance */ @@ -13902,7 +13866,7 @@ * @returns {api.Files} Files instance */ Files.create = function create(properties) { - return new Files(properties); + return Files.fromObject(properties); }; /** @@ -13910,7 +13874,7 @@ * @function encode * @memberof api.Files * @static - * @param {api.IFiles} message Files message or plain object to encode + * @param {api.Files} message Files message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13928,7 +13892,7 @@ * @function encodeDelimited * @memberof api.Files * @static - * @param {api.IFiles} message Files message or plain object to encode + * @param {api.Files} message Files message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14083,7 +14047,6 @@ * Constructs a new File. * @memberof api * @classdesc Represents a File. - * @implements IFile * @constructor * @param {api.IFile=} [properties] Properties to set */ @@ -14127,7 +14090,7 @@ * @returns {api.File} File instance */ File.create = function create(properties) { - return new File(properties); + return File.fromObject(properties); }; /** @@ -14135,18 +14098,18 @@ * @function encode * @memberof api.File * @static - * @param {api.IFile} message File message or plain object to encode + * @param {api.File} message File message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ File.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && message.hasOwnProperty("path")) + if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.content != null && message.hasOwnProperty("content")) + if (message.content != null && Object.hasOwnProperty.call(message, "content")) writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); return writer; }; @@ -14156,7 +14119,7 @@ * @function encodeDelimited * @memberof api.File * @static - * @param {api.IFile} message File message or plain object to encode + * @param {api.File} message File message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14322,7 +14285,7 @@ /** * Type enum. * @name api.File.Type - * @enum {string} + * @enum {number} * @property {number} REGULAR=0 REGULAR value * @property {number} DIRECTORY=1 DIRECTORY value */ @@ -14348,7 +14311,6 @@ * Constructs a new Clear. * @memberof api * @classdesc Represents a Clear. - * @implements IClear * @constructor * @param {api.IClear=} [properties] Properties to set */ @@ -14368,7 +14330,7 @@ * @returns {api.Clear} Clear instance */ Clear.create = function create(properties) { - return new Clear(properties); + return Clear.fromObject(properties); }; /** @@ -14376,7 +14338,7 @@ * @function encode * @memberof api.Clear * @static - * @param {api.IClear} message Clear message or plain object to encode + * @param {api.Clear} message Clear message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14391,7 +14353,7 @@ * @function encodeDelimited * @memberof api.Clear * @static - * @param {api.IClear} message Clear message or plain object to encode + * @param {api.Clear} message Clear message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14509,7 +14471,6 @@ * Constructs a new Toast. * @memberof api * @classdesc Represents a Toast. - * @implements IToast * @constructor * @param {api.IToast=} [properties] Properties to set */ @@ -14537,7 +14498,7 @@ * @returns {api.Toast} Toast instance */ Toast.create = function create(properties) { - return new Toast(properties); + return Toast.fromObject(properties); }; /** @@ -14545,14 +14506,14 @@ * @function encode * @memberof api.Toast * @static - * @param {api.IToast} message Toast message or plain object to encode + * @param {api.Toast} message Toast message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Toast.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.hasOwnProperty("text")) + if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); return writer; }; @@ -14562,7 +14523,7 @@ * @function encodeDelimited * @memberof api.Toast * @static - * @param {api.IToast} message Toast message or plain object to encode + * @param {api.Toast} message Toast message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14696,7 +14657,6 @@ * Constructs a new Redirect. * @memberof api * @classdesc Represents a Redirect. - * @implements IRedirect * @constructor * @param {api.IRedirect=} [properties] Properties to set */ @@ -14724,7 +14684,7 @@ * @returns {api.Redirect} Redirect instance */ Redirect.create = function create(properties) { - return new Redirect(properties); + return Redirect.fromObject(properties); }; /** @@ -14732,14 +14692,14 @@ * @function encode * @memberof api.Redirect * @static - * @param {api.IRedirect} message Redirect message or plain object to encode + * @param {api.Redirect} message Redirect message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Redirect.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.url != null && message.hasOwnProperty("url")) + if (message.url != null && Object.hasOwnProperty.call(message, "url")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); return writer; }; @@ -14749,7 +14709,7 @@ * @function encodeDelimited * @memberof api.Redirect * @static - * @param {api.IRedirect} message Redirect message or plain object to encode + * @param {api.Redirect} message Redirect message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14882,7 +14842,6 @@ * Constructs a new RunMain. * @memberof api * @classdesc Represents a RunMain. - * @implements IRunMain * @constructor * @param {api.IRunMain=} [properties] Properties to set */ @@ -14902,7 +14861,7 @@ * @returns {api.RunMain} RunMain instance */ RunMain.create = function create(properties) { - return new RunMain(properties); + return RunMain.fromObject(properties); }; /** @@ -14910,7 +14869,7 @@ * @function encode * @memberof api.RunMain * @static - * @param {api.IRunMain} message RunMain message or plain object to encode + * @param {api.RunMain} message RunMain message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14925,7 +14884,7 @@ * @function encodeDelimited * @memberof api.RunMain * @static - * @param {api.IRunMain} message RunMain message or plain object to encode + * @param {api.RunMain} message RunMain message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15046,7 +15005,6 @@ * Constructs a new OpenChannel. * @memberof api * @classdesc Represents an OpenChannel. - * @implements IOpenChannel * @constructor * @param {api.IOpenChannel=} [properties] Properties to set */ @@ -15098,7 +15056,7 @@ * @returns {api.OpenChannel} OpenChannel instance */ OpenChannel.create = function create(properties) { - return new OpenChannel(properties); + return OpenChannel.fromObject(properties); }; /** @@ -15106,20 +15064,20 @@ * @function encode * @memberof api.OpenChannel * @static - * @param {api.IOpenChannel} message OpenChannel message or plain object to encode + * @param {api.OpenChannel} message OpenChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ OpenChannel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.service != null && message.hasOwnProperty("service")) + if (message.service != null && Object.hasOwnProperty.call(message, "service")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.action != null && message.hasOwnProperty("action")) + if (message.action != null && Object.hasOwnProperty.call(message, "action")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.action); - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.id); return writer; }; @@ -15129,7 +15087,7 @@ * @function encodeDelimited * @memberof api.OpenChannel * @static - * @param {api.IOpenChannel} message OpenChannel message or plain object to encode + * @param {api.OpenChannel} message OpenChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15302,7 +15260,7 @@ /** * Action enum. * @name api.OpenChannel.Action - * @enum {string} + * @enum {number} * @property {number} CREATE=0 CREATE value * @property {number} ATTACH=1 ATTACH value * @property {number} ATTACH_OR_CREATE=2 ATTACH_OR_CREATE value @@ -15333,7 +15291,6 @@ * Constructs a new OpenChannelRes. * @memberof api * @classdesc Represents an OpenChannelRes. - * @implements IOpenChannelRes * @constructor * @param {api.IOpenChannelRes=} [properties] Properties to set */ @@ -15377,7 +15334,7 @@ * @returns {api.OpenChannelRes} OpenChannelRes instance */ OpenChannelRes.create = function create(properties) { - return new OpenChannelRes(properties); + return OpenChannelRes.fromObject(properties); }; /** @@ -15385,18 +15342,18 @@ * @function encode * @memberof api.OpenChannelRes * @static - * @param {api.IOpenChannelRes} message OpenChannelRes message or plain object to encode + * @param {api.OpenChannelRes} message OpenChannelRes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ OpenChannelRes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.state != null && message.hasOwnProperty("state")) + if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.error); return writer; }; @@ -15406,7 +15363,7 @@ * @function encodeDelimited * @memberof api.OpenChannelRes * @static - * @param {api.IOpenChannelRes} message OpenChannelRes message or plain object to encode + * @param {api.OpenChannelRes} message OpenChannelRes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15568,7 +15525,7 @@ /** * State enum. * @name api.OpenChannelRes.State - * @enum {string} + * @enum {number} * @property {number} CREATED=0 CREATED value * @property {number} ATTACHED=1 ATTACHED value * @property {number} ERROR=2 ERROR value @@ -15598,7 +15555,6 @@ * Constructs a new CloseChannel. * @memberof api * @classdesc Represents a CloseChannel. - * @implements ICloseChannel * @constructor * @param {api.ICloseChannel=} [properties] Properties to set */ @@ -15634,7 +15590,7 @@ * @returns {api.CloseChannel} CloseChannel instance */ CloseChannel.create = function create(properties) { - return new CloseChannel(properties); + return CloseChannel.fromObject(properties); }; /** @@ -15642,16 +15598,16 @@ * @function encode * @memberof api.CloseChannel * @static - * @param {api.ICloseChannel} message CloseChannel message or plain object to encode + * @param {api.CloseChannel} message CloseChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ CloseChannel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.action != null && message.hasOwnProperty("action")) + if (message.action != null && Object.hasOwnProperty.call(message, "action")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); return writer; }; @@ -15661,7 +15617,7 @@ * @function encodeDelimited * @memberof api.CloseChannel * @static - * @param {api.ICloseChannel} message CloseChannel message or plain object to encode + * @param {api.CloseChannel} message CloseChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15812,7 +15768,7 @@ /** * Action enum. * @name api.CloseChannel.Action - * @enum {string} + * @enum {number} * @property {number} DISCONNECT=0 DISCONNECT value * @property {number} TRY_CLOSE=1 TRY_CLOSE value * @property {number} CLOSE=2 CLOSE value @@ -15842,7 +15798,6 @@ * Constructs a new CloseChannelRes. * @memberof api * @classdesc Represents a CloseChannelRes. - * @implements ICloseChannelRes * @constructor * @param {api.ICloseChannelRes=} [properties] Properties to set */ @@ -15878,7 +15833,7 @@ * @returns {api.CloseChannelRes} CloseChannelRes instance */ CloseChannelRes.create = function create(properties) { - return new CloseChannelRes(properties); + return CloseChannelRes.fromObject(properties); }; /** @@ -15886,16 +15841,16 @@ * @function encode * @memberof api.CloseChannelRes * @static - * @param {api.ICloseChannelRes} message CloseChannelRes message or plain object to encode + * @param {api.CloseChannelRes} message CloseChannelRes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ CloseChannelRes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); return writer; }; @@ -15905,7 +15860,7 @@ * @function encodeDelimited * @memberof api.CloseChannelRes * @static - * @param {api.ICloseChannelRes} message CloseChannelRes message or plain object to encode + * @param {api.CloseChannelRes} message CloseChannelRes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16056,7 +16011,7 @@ /** * Status enum. * @name api.CloseChannelRes.Status - * @enum {string} + * @enum {number} * @property {number} DISCONNECT=0 DISCONNECT value * @property {number} CLOSE=1 CLOSE value * @property {number} NOTHING=2 NOTHING value @@ -16085,7 +16040,6 @@ * Constructs a new ContainerState. * @memberof api * @classdesc Represents a ContainerState. - * @implements IContainerState * @constructor * @param {api.IContainerState=} [properties] Properties to set */ @@ -16113,7 +16067,7 @@ * @returns {api.ContainerState} ContainerState instance */ ContainerState.create = function create(properties) { - return new ContainerState(properties); + return ContainerState.fromObject(properties); }; /** @@ -16121,14 +16075,14 @@ * @function encode * @memberof api.ContainerState * @static - * @param {api.IContainerState} message ContainerState message or plain object to encode + * @param {api.ContainerState} message ContainerState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ ContainerState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) + if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); return writer; }; @@ -16138,7 +16092,7 @@ * @function encodeDelimited * @memberof api.ContainerState * @static - * @param {api.IContainerState} message ContainerState message or plain object to encode + * @param {api.ContainerState} message ContainerState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16272,7 +16226,7 @@ /** * State enum. * @name api.ContainerState.State - * @enum {string} + * @enum {number} * @property {number} SLEEP=0 SLEEP value * @property {number} READY=1 READY value */ @@ -16301,7 +16255,6 @@ * Constructs a new PortOpen. * @memberof api * @classdesc Represents a PortOpen. - * @implements IPortOpen * @constructor * @param {api.IPortOpen=} [properties] Properties to set */ @@ -16345,7 +16298,7 @@ * @returns {api.PortOpen} PortOpen instance */ PortOpen.create = function create(properties) { - return new PortOpen(properties); + return PortOpen.fromObject(properties); }; /** @@ -16353,18 +16306,18 @@ * @function encode * @memberof api.PortOpen * @static - * @param {api.IPortOpen} message PortOpen message or plain object to encode + * @param {api.PortOpen} message PortOpen message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PortOpen.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.forwarded != null && message.hasOwnProperty("forwarded")) + if (message.forwarded != null && Object.hasOwnProperty.call(message, "forwarded")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.forwarded); - if (message.port != null && message.hasOwnProperty("port")) + if (message.port != null && Object.hasOwnProperty.call(message, "port")) writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.port); - if (message.address != null && message.hasOwnProperty("address")) + if (message.address != null && Object.hasOwnProperty.call(message, "address")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.address); return writer; }; @@ -16374,7 +16327,7 @@ * @function encodeDelimited * @memberof api.PortOpen * @static - * @param {api.IPortOpen} message PortOpen message or plain object to encode + * @param {api.PortOpen} message PortOpen message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16532,7 +16485,6 @@ * Constructs a new OTFetchRequest. * @memberof api * @classdesc Represents a OTFetchRequest. - * @implements IOTFetchRequest * @constructor * @param {api.IOTFetchRequest=} [properties] Properties to set */ @@ -16568,7 +16520,7 @@ * @returns {api.OTFetchRequest} OTFetchRequest instance */ OTFetchRequest.create = function create(properties) { - return new OTFetchRequest(properties); + return OTFetchRequest.fromObject(properties); }; /** @@ -16576,16 +16528,16 @@ * @function encode * @memberof api.OTFetchRequest * @static - * @param {api.IOTFetchRequest} message OTFetchRequest message or plain object to encode + * @param {api.OTFetchRequest} message OTFetchRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ OTFetchRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versionFrom != null && message.hasOwnProperty("versionFrom")) + if (message.versionFrom != null && Object.hasOwnProperty.call(message, "versionFrom")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.versionFrom); - if (message.versionTo != null && message.hasOwnProperty("versionTo")) + if (message.versionTo != null && Object.hasOwnProperty.call(message, "versionTo")) writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.versionTo); return writer; }; @@ -16595,7 +16547,7 @@ * @function encodeDelimited * @memberof api.OTFetchRequest * @static - * @param {api.IOTFetchRequest} message OTFetchRequest message or plain object to encode + * @param {api.OTFetchRequest} message OTFetchRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16734,14 +16686,13 @@ * Properties of a OTFetchResponse. * @memberof api * @interface IOTFetchResponse - * @property {Array.|null} [packets] OTFetchResponse packets + * @property {Array.|null} [packets] OTFetchResponse packets */ /** * Constructs a new OTFetchResponse. * @memberof api * @classdesc Represents a OTFetchResponse. - * @implements IOTFetchResponse * @constructor * @param {api.IOTFetchResponse=} [properties] Properties to set */ @@ -16755,7 +16706,7 @@ /** * OTFetchResponse packets. - * @member {Array.} packets + * @member {Array.} packets * @memberof api.OTFetchResponse * @instance */ @@ -16770,7 +16721,7 @@ * @returns {api.OTFetchResponse} OTFetchResponse instance */ OTFetchResponse.create = function create(properties) { - return new OTFetchResponse(properties); + return OTFetchResponse.fromObject(properties); }; /** @@ -16778,7 +16729,7 @@ * @function encode * @memberof api.OTFetchResponse * @static - * @param {api.IOTFetchResponse} message OTFetchResponse message or plain object to encode + * @param {api.OTFetchResponse} message OTFetchResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16796,7 +16747,7 @@ * @function encodeDelimited * @memberof api.OTFetchResponse * @static - * @param {api.IOTFetchResponse} message OTFetchResponse message or plain object to encode + * @param {api.OTFetchResponse} message OTFetchResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16944,9 +16895,9 @@ * @interface IOTPacket * @property {number|null} [spookyVersion] OTPacket spookyVersion * @property {number|null} [version] OTPacket version - * @property {Array.|null} [ops] OTPacket ops + * @property {Array.|null} [ops] OTPacket ops * @property {number|null} [crc32] OTPacket crc32 - * @property {google.protobuf.ITimestamp|null} [committed] OTPacket committed + * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [committed] OTPacket committed * @property {number|null} [nonce] OTPacket nonce */ @@ -16954,7 +16905,6 @@ * Constructs a new OTPacket. * @memberof api * @classdesc Represents a OTPacket. - * @implements IOTPacket * @constructor * @param {api.IOTPacket=} [properties] Properties to set */ @@ -16984,7 +16934,7 @@ /** * OTPacket ops. - * @member {Array.} ops + * @member {Array.} ops * @memberof api.OTPacket * @instance */ @@ -17000,7 +16950,7 @@ /** * OTPacket committed. - * @member {google.protobuf.ITimestamp|null|undefined} committed + * @member {google.protobuf.Timestamp|null|undefined} committed * @memberof api.OTPacket * @instance */ @@ -17023,7 +16973,7 @@ * @returns {api.OTPacket} OTPacket instance */ OTPacket.create = function create(properties) { - return new OTPacket(properties); + return OTPacket.fromObject(properties); }; /** @@ -17031,25 +16981,25 @@ * @function encode * @memberof api.OTPacket * @static - * @param {api.IOTPacket} message OTPacket message or plain object to encode + * @param {api.OTPacket} message OTPacket message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ OTPacket.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.spookyVersion != null && message.hasOwnProperty("spookyVersion")) + if (message.spookyVersion != null && Object.hasOwnProperty.call(message, "spookyVersion")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.spookyVersion); if (message.ops != null && message.ops.length) for (var i = 0; i < message.ops.length; ++i) $root.api.OTRuneTransformOp.encode(message.ops[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.crc32 != null && message.hasOwnProperty("crc32")) + if (message.crc32 != null && Object.hasOwnProperty.call(message, "crc32")) writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.crc32); - if (message.committed != null && message.hasOwnProperty("committed")) + if (message.committed != null && Object.hasOwnProperty.call(message, "committed")) $root.google.protobuf.Timestamp.encode(message.committed, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.version); - if (message.nonce != null && message.hasOwnProperty("nonce")) + if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce")) writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.nonce); return writer; }; @@ -17059,7 +17009,7 @@ * @function encodeDelimited * @memberof api.OTPacket * @static - * @param {api.IOTPacket} message OTPacket message or plain object to encode + * @param {api.OTPacket} message OTPacket message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17276,7 +17226,6 @@ * Constructs a new OTRuneTransformOp. * @memberof api * @classdesc Represents a OTRuneTransformOp. - * @implements IOTRuneTransformOp * @constructor * @param {api.IOTRuneTransformOp=} [properties] Properties to set */ @@ -17334,7 +17283,7 @@ * @returns {api.OTRuneTransformOp} OTRuneTransformOp instance */ OTRuneTransformOp.create = function create(properties) { - return new OTRuneTransformOp(properties); + return OTRuneTransformOp.fromObject(properties); }; /** @@ -17342,18 +17291,18 @@ * @function encode * @memberof api.OTRuneTransformOp * @static - * @param {api.IOTRuneTransformOp} message OTRuneTransformOp message or plain object to encode + * @param {api.OTRuneTransformOp} message OTRuneTransformOp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ OTRuneTransformOp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.skip != null && message.hasOwnProperty("skip")) + if (message.skip != null && Object.hasOwnProperty.call(message, "skip")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.skip); - if (message["delete"] != null && message.hasOwnProperty("delete")) + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) writer.uint32(/* id 2, wireType 0 =*/16).uint32(message["delete"]); - if (message.insert != null && message.hasOwnProperty("insert")) + if (message.insert != null && Object.hasOwnProperty.call(message, "insert")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.insert); return writer; }; @@ -17363,7 +17312,7 @@ * @function encodeDelimited * @memberof api.OTRuneTransformOp * @static - * @param {api.IOTRuneTransformOp} message OTRuneTransformOp message or plain object to encode + * @param {api.OTRuneTransformOp} message OTRuneTransformOp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17530,15 +17479,14 @@ * @interface IOTStatus * @property {string|null} [contents] OTStatus contents * @property {number|null} [version] OTStatus version - * @property {api.IFile|null} [linkedFile] OTStatus linkedFile - * @property {Array.|null} [cursors] OTStatus cursors + * @property {api.File|api.IFile|null} [linkedFile] OTStatus linkedFile + * @property {Array.|null} [cursors] OTStatus cursors */ /** * Constructs a new OTStatus. * @memberof api * @classdesc Represents a OTStatus. - * @implements IOTStatus * @constructor * @param {api.IOTStatus=} [properties] Properties to set */ @@ -17568,7 +17516,7 @@ /** * OTStatus linkedFile. - * @member {api.IFile|null|undefined} linkedFile + * @member {api.File|null|undefined} linkedFile * @memberof api.OTStatus * @instance */ @@ -17576,7 +17524,7 @@ /** * OTStatus cursors. - * @member {Array.} cursors + * @member {Array.} cursors * @memberof api.OTStatus * @instance */ @@ -17591,7 +17539,7 @@ * @returns {api.OTStatus} OTStatus instance */ OTStatus.create = function create(properties) { - return new OTStatus(properties); + return OTStatus.fromObject(properties); }; /** @@ -17599,18 +17547,18 @@ * @function encode * @memberof api.OTStatus * @static - * @param {api.IOTStatus} message OTStatus message or plain object to encode + * @param {api.OTStatus} message OTStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ OTStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contents != null && message.hasOwnProperty("contents")) + if (message.contents != null && Object.hasOwnProperty.call(message, "contents")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.contents); - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.version); - if (message.linkedFile != null && message.hasOwnProperty("linkedFile")) + if (message.linkedFile != null && Object.hasOwnProperty.call(message, "linkedFile")) $root.api.File.encode(message.linkedFile, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.cursors != null && message.cursors.length) for (var i = 0; i < message.cursors.length; ++i) @@ -17623,7 +17571,7 @@ * @function encodeDelimited * @memberof api.OTStatus * @static - * @param {api.IOTStatus} message OTStatus message or plain object to encode + * @param {api.OTStatus} message OTStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17812,7 +17760,7 @@ * @property {number|null} [position] OTCursor position * @property {number|null} [selectionStart] OTCursor selectionStart * @property {number|null} [selectionEnd] OTCursor selectionEnd - * @property {api.IUser|null} [user] OTCursor user + * @property {api.User|api.IUser|null} [user] OTCursor user * @property {string|null} [id] OTCursor id */ @@ -17820,7 +17768,6 @@ * Constructs a new OTCursor. * @memberof api * @classdesc Represents a OTCursor. - * @implements IOTCursor * @constructor * @param {api.IOTCursor=} [properties] Properties to set */ @@ -17857,7 +17804,7 @@ /** * OTCursor user. - * @member {api.IUser|null|undefined} user + * @member {api.User|null|undefined} user * @memberof api.OTCursor * @instance */ @@ -17880,7 +17827,7 @@ * @returns {api.OTCursor} OTCursor instance */ OTCursor.create = function create(properties) { - return new OTCursor(properties); + return OTCursor.fromObject(properties); }; /** @@ -17888,22 +17835,22 @@ * @function encode * @memberof api.OTCursor * @static - * @param {api.IOTCursor} message OTCursor message or plain object to encode + * @param {api.OTCursor} message OTCursor message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ OTCursor.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.position != null && message.hasOwnProperty("position")) + if (message.position != null && Object.hasOwnProperty.call(message, "position")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.position); - if (message.selectionStart != null && message.hasOwnProperty("selectionStart")) + if (message.selectionStart != null && Object.hasOwnProperty.call(message, "selectionStart")) writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.selectionStart); - if (message.selectionEnd != null && message.hasOwnProperty("selectionEnd")) + if (message.selectionEnd != null && Object.hasOwnProperty.call(message, "selectionEnd")) writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.selectionEnd); - if (message.user != null && message.hasOwnProperty("user")) + if (message.user != null && Object.hasOwnProperty.call(message, "user")) $root.api.User.encode(message.user, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.id); return writer; }; @@ -17913,7 +17860,7 @@ * @function encodeDelimited * @memberof api.OTCursor * @static - * @param {api.IOTCursor} message OTCursor message or plain object to encode + * @param {api.OTCursor} message OTCursor message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -18098,7 +18045,6 @@ * Constructs a new ChatMessage. * @memberof api * @classdesc Represents a ChatMessage. - * @implements IChatMessage * @constructor * @param {api.IChatMessage=} [properties] Properties to set */ @@ -18134,7 +18080,7 @@ * @returns {api.ChatMessage} ChatMessage instance */ ChatMessage.create = function create(properties) { - return new ChatMessage(properties); + return ChatMessage.fromObject(properties); }; /** @@ -18142,16 +18088,16 @@ * @function encode * @memberof api.ChatMessage * @static - * @param {api.IChatMessage} message ChatMessage message or plain object to encode + * @param {api.ChatMessage} message ChatMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ ChatMessage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.text != null && message.hasOwnProperty("text")) + if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.text); return writer; }; @@ -18161,7 +18107,7 @@ * @function encodeDelimited * @memberof api.ChatMessage * @static - * @param {api.IChatMessage} message ChatMessage message or plain object to encode + * @param {api.ChatMessage} message ChatMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -18308,7 +18254,6 @@ * Constructs a new ChatTyping. * @memberof api * @classdesc Represents a ChatTyping. - * @implements IChatTyping * @constructor * @param {api.IChatTyping=} [properties] Properties to set */ @@ -18344,7 +18289,7 @@ * @returns {api.ChatTyping} ChatTyping instance */ ChatTyping.create = function create(properties) { - return new ChatTyping(properties); + return ChatTyping.fromObject(properties); }; /** @@ -18352,16 +18297,16 @@ * @function encode * @memberof api.ChatTyping * @static - * @param {api.IChatTyping} message ChatTyping message or plain object to encode + * @param {api.ChatTyping} message ChatTyping message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ ChatTyping.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.typing != null && message.hasOwnProperty("typing")) + if (message.typing != null && Object.hasOwnProperty.call(message, "typing")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.typing); return writer; }; @@ -18371,7 +18316,7 @@ * @function encodeDelimited * @memberof api.ChatTyping * @static - * @param {api.IChatTyping} message ChatTyping message or plain object to encode + * @param {api.ChatTyping} message ChatTyping message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -18520,7 +18465,6 @@ * Constructs a new User. * @memberof api * @classdesc Represents a User. - * @implements IUser * @constructor * @param {api.IUser=} [properties] Properties to set */ @@ -18573,7 +18517,7 @@ * @returns {api.User} User instance */ User.create = function create(properties) { - return new User(properties); + return User.fromObject(properties); }; /** @@ -18581,21 +18525,21 @@ * @function encode * @memberof api.User * @static - * @param {api.IUser} message User message or plain object to encode + * @param {api.User} message User message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ User.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); if (message.roles != null && message.roles.length) for (var i = 0; i < message.roles.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.roles[i]); - if (message.session != null && message.hasOwnProperty("session")) + if (message.session != null && Object.hasOwnProperty.call(message, "session")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.session); return writer; }; @@ -18605,7 +18549,7 @@ * @function encodeDelimited * @memberof api.User * @static - * @param {api.IUser} message User message or plain object to encode + * @param {api.User} message User message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -18781,14 +18725,13 @@ * Properties of a Roster. * @memberof api * @interface IRoster - * @property {Array.|null} [user] Roster user + * @property {Array.|null} [user] Roster user */ /** * Constructs a new Roster. * @memberof api * @classdesc Represents a Roster. - * @implements IRoster * @constructor * @param {api.IRoster=} [properties] Properties to set */ @@ -18802,7 +18745,7 @@ /** * Roster user. - * @member {Array.} user + * @member {Array.} user * @memberof api.Roster * @instance */ @@ -18817,7 +18760,7 @@ * @returns {api.Roster} Roster instance */ Roster.create = function create(properties) { - return new Roster(properties); + return Roster.fromObject(properties); }; /** @@ -18825,7 +18768,7 @@ * @function encode * @memberof api.Roster * @static - * @param {api.IRoster} message Roster message or plain object to encode + * @param {api.Roster} message Roster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -18843,7 +18786,7 @@ * @function encodeDelimited * @memberof api.Roster * @static - * @param {api.IRoster} message Roster message or plain object to encode + * @param {api.Roster} message Roster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -18998,7 +18941,6 @@ * Constructs a new Exec. * @memberof api * @classdesc Represents an Exec. - * @implements IExec * @constructor * @param {api.IExec=} [properties] Properties to set */ @@ -19044,7 +18986,7 @@ * @returns {api.Exec} Exec instance */ Exec.create = function create(properties) { - return new Exec(properties); + return Exec.fromObject(properties); }; /** @@ -19052,7 +18994,7 @@ * @function encode * @memberof api.Exec * @static - * @param {api.IExec} message Exec message or plain object to encode + * @param {api.Exec} message Exec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -19062,10 +19004,10 @@ if (message.args != null && message.args.length) for (var i = 0; i < message.args.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); - if (message.env != null && message.hasOwnProperty("env")) + if (message.env != null && Object.hasOwnProperty.call(message, "env")) for (var keys = Object.keys(message.env), i = 0; i < keys.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.env[keys[i]]).ldelim(); - if (message.blocking != null && message.hasOwnProperty("blocking")) + if (message.blocking != null && Object.hasOwnProperty.call(message, "blocking")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.blocking); return writer; }; @@ -19075,7 +19017,7 @@ * @function encodeDelimited * @memberof api.Exec * @static - * @param {api.IExec} message Exec message or plain object to encode + * @param {api.Exec} message Exec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -19097,7 +19039,7 @@ Exec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.Exec(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.Exec(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19107,12 +19049,26 @@ message.args.push(reader.string()); break; case 2: - reader.skip().pos++; if (message.env === $util.emptyObject) message.env = {}; - key = reader.string(); - reader.pos++; - message.env[key] = reader.string(); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.env[key] = value; break; case 3: message.blocking = reader.bool(); @@ -19269,14 +19225,13 @@ * @property {string|null} [bugTrackerURL] Package bugTrackerURL * @property {string|null} [author] Package author * @property {string|null} [license] Package license - * @property {Array.|null} [dependencies] Package dependencies + * @property {Array.|null} [dependencies] Package dependencies */ /** * Constructs a new Package. * @memberof api * @classdesc Represents a Package. - * @implements IPackage * @constructor * @param {api.IPackage=} [properties] Properties to set */ @@ -19370,7 +19325,7 @@ /** * Package dependencies. - * @member {Array.} dependencies + * @member {Array.} dependencies * @memberof api.Package * @instance */ @@ -19385,7 +19340,7 @@ * @returns {api.Package} Package instance */ Package.create = function create(properties) { - return new Package(properties); + return Package.fromObject(properties); }; /** @@ -19393,32 +19348,32 @@ * @function encode * @memberof api.Package * @static - * @param {api.IPackage} message Package message or plain object to encode + * @param {api.Package} message Package message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Package.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.spec != null && message.hasOwnProperty("spec")) + if (message.spec != null && Object.hasOwnProperty.call(message, "spec")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.spec); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.description); - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.version); - if (message.homepageURL != null && message.hasOwnProperty("homepageURL")) + if (message.homepageURL != null && Object.hasOwnProperty.call(message, "homepageURL")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.homepageURL); - if (message.documentationURL != null && message.hasOwnProperty("documentationURL")) + if (message.documentationURL != null && Object.hasOwnProperty.call(message, "documentationURL")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.documentationURL); - if (message.sourceCodeURL != null && message.hasOwnProperty("sourceCodeURL")) + if (message.sourceCodeURL != null && Object.hasOwnProperty.call(message, "sourceCodeURL")) writer.uint32(/* id 14, wireType 2 =*/114).string(message.sourceCodeURL); - if (message.bugTrackerURL != null && message.hasOwnProperty("bugTrackerURL")) + if (message.bugTrackerURL != null && Object.hasOwnProperty.call(message, "bugTrackerURL")) writer.uint32(/* id 15, wireType 2 =*/122).string(message.bugTrackerURL); - if (message.author != null && message.hasOwnProperty("author")) + if (message.author != null && Object.hasOwnProperty.call(message, "author")) writer.uint32(/* id 16, wireType 2 =*/130).string(message.author); - if (message.license != null && message.hasOwnProperty("license")) + if (message.license != null && Object.hasOwnProperty.call(message, "license")) writer.uint32(/* id 17, wireType 2 =*/138).string(message.license); if (message.dependencies != null && message.dependencies.length) for (var i = 0; i < message.dependencies.length; ++i) @@ -19431,7 +19386,7 @@ * @function encodeDelimited * @memberof api.Package * @static - * @param {api.IPackage} message Package message or plain object to encode + * @param {api.Package} message Package message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -19696,7 +19651,6 @@ * Constructs a new PackageSearch. * @memberof api * @classdesc Represents a PackageSearch. - * @implements IPackageSearch * @constructor * @param {api.IPackageSearch=} [properties] Properties to set */ @@ -19724,7 +19678,7 @@ * @returns {api.PackageSearch} PackageSearch instance */ PackageSearch.create = function create(properties) { - return new PackageSearch(properties); + return PackageSearch.fromObject(properties); }; /** @@ -19732,14 +19686,14 @@ * @function encode * @memberof api.PackageSearch * @static - * @param {api.IPackageSearch} message PackageSearch message or plain object to encode + * @param {api.PackageSearch} message PackageSearch message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PackageSearch.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query != null && message.hasOwnProperty("query")) + if (message.query != null && Object.hasOwnProperty.call(message, "query")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.query); return writer; }; @@ -19749,7 +19703,7 @@ * @function encodeDelimited * @memberof api.PackageSearch * @static - * @param {api.IPackageSearch} message PackageSearch message or plain object to encode + * @param {api.PackageSearch} message PackageSearch message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -19876,14 +19830,13 @@ * Properties of a PackageSearchResp. * @memberof api * @interface IPackageSearchResp - * @property {Array.|null} [results] PackageSearchResp results + * @property {Array.|null} [results] PackageSearchResp results */ /** * Constructs a new PackageSearchResp. * @memberof api * @classdesc Represents a PackageSearchResp. - * @implements IPackageSearchResp * @constructor * @param {api.IPackageSearchResp=} [properties] Properties to set */ @@ -19897,7 +19850,7 @@ /** * PackageSearchResp results. - * @member {Array.} results + * @member {Array.} results * @memberof api.PackageSearchResp * @instance */ @@ -19912,7 +19865,7 @@ * @returns {api.PackageSearchResp} PackageSearchResp instance */ PackageSearchResp.create = function create(properties) { - return new PackageSearchResp(properties); + return PackageSearchResp.fromObject(properties); }; /** @@ -19920,7 +19873,7 @@ * @function encode * @memberof api.PackageSearchResp * @static - * @param {api.IPackageSearchResp} message PackageSearchResp message or plain object to encode + * @param {api.PackageSearchResp} message PackageSearchResp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -19938,7 +19891,7 @@ * @function encodeDelimited * @memberof api.PackageSearchResp * @static - * @param {api.IPackageSearchResp} message PackageSearchResp message or plain object to encode + * @param {api.PackageSearchResp} message PackageSearchResp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -20084,14 +20037,13 @@ * Properties of a PackageInfo. * @memberof api * @interface IPackageInfo - * @property {api.IPackage|null} [pkg] PackageInfo pkg + * @property {api.Package|api.IPackage|null} [pkg] PackageInfo pkg */ /** * Constructs a new PackageInfo. * @memberof api * @classdesc Represents a PackageInfo. - * @implements IPackageInfo * @constructor * @param {api.IPackageInfo=} [properties] Properties to set */ @@ -20104,7 +20056,7 @@ /** * PackageInfo pkg. - * @member {api.IPackage|null|undefined} pkg + * @member {api.Package|null|undefined} pkg * @memberof api.PackageInfo * @instance */ @@ -20119,7 +20071,7 @@ * @returns {api.PackageInfo} PackageInfo instance */ PackageInfo.create = function create(properties) { - return new PackageInfo(properties); + return PackageInfo.fromObject(properties); }; /** @@ -20127,14 +20079,14 @@ * @function encode * @memberof api.PackageInfo * @static - * @param {api.IPackageInfo} message PackageInfo message or plain object to encode + * @param {api.PackageInfo} message PackageInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PackageInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pkg != null && message.hasOwnProperty("pkg")) + if (message.pkg != null && Object.hasOwnProperty.call(message, "pkg")) $root.api.Package.encode(message.pkg, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -20144,7 +20096,7 @@ * @function encodeDelimited * @memberof api.PackageInfo * @static - * @param {api.IPackageInfo} message PackageInfo message or plain object to encode + * @param {api.PackageInfo} message PackageInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -20276,14 +20228,13 @@ * Properties of a PackageInfoResp. * @memberof api * @interface IPackageInfoResp - * @property {api.IPackage|null} [pkg] PackageInfoResp pkg + * @property {api.Package|api.IPackage|null} [pkg] PackageInfoResp pkg */ /** * Constructs a new PackageInfoResp. * @memberof api * @classdesc Represents a PackageInfoResp. - * @implements IPackageInfoResp * @constructor * @param {api.IPackageInfoResp=} [properties] Properties to set */ @@ -20296,7 +20247,7 @@ /** * PackageInfoResp pkg. - * @member {api.IPackage|null|undefined} pkg + * @member {api.Package|null|undefined} pkg * @memberof api.PackageInfoResp * @instance */ @@ -20311,7 +20262,7 @@ * @returns {api.PackageInfoResp} PackageInfoResp instance */ PackageInfoResp.create = function create(properties) { - return new PackageInfoResp(properties); + return PackageInfoResp.fromObject(properties); }; /** @@ -20319,14 +20270,14 @@ * @function encode * @memberof api.PackageInfoResp * @static - * @param {api.IPackageInfoResp} message PackageInfoResp message or plain object to encode + * @param {api.PackageInfoResp} message PackageInfoResp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PackageInfoResp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pkg != null && message.hasOwnProperty("pkg")) + if (message.pkg != null && Object.hasOwnProperty.call(message, "pkg")) $root.api.Package.encode(message.pkg, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -20336,7 +20287,7 @@ * @function encodeDelimited * @memberof api.PackageInfoResp * @static - * @param {api.IPackageInfoResp} message PackageInfoResp message or plain object to encode + * @param {api.PackageInfoResp} message PackageInfoResp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -20468,14 +20419,13 @@ * Properties of a PackageAdd. * @memberof api * @interface IPackageAdd - * @property {Array.|null} [pkgs] PackageAdd pkgs + * @property {Array.|null} [pkgs] PackageAdd pkgs */ /** * Constructs a new PackageAdd. * @memberof api * @classdesc Represents a PackageAdd. - * @implements IPackageAdd * @constructor * @param {api.IPackageAdd=} [properties] Properties to set */ @@ -20489,7 +20439,7 @@ /** * PackageAdd pkgs. - * @member {Array.} pkgs + * @member {Array.} pkgs * @memberof api.PackageAdd * @instance */ @@ -20504,7 +20454,7 @@ * @returns {api.PackageAdd} PackageAdd instance */ PackageAdd.create = function create(properties) { - return new PackageAdd(properties); + return PackageAdd.fromObject(properties); }; /** @@ -20512,7 +20462,7 @@ * @function encode * @memberof api.PackageAdd * @static - * @param {api.IPackageAdd} message PackageAdd message or plain object to encode + * @param {api.PackageAdd} message PackageAdd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -20530,7 +20480,7 @@ * @function encodeDelimited * @memberof api.PackageAdd * @static - * @param {api.IPackageAdd} message PackageAdd message or plain object to encode + * @param {api.PackageAdd} message PackageAdd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -20676,14 +20626,13 @@ * Properties of a PackageRemove. * @memberof api * @interface IPackageRemove - * @property {Array.|null} [pkgs] PackageRemove pkgs + * @property {Array.|null} [pkgs] PackageRemove pkgs */ /** * Constructs a new PackageRemove. * @memberof api * @classdesc Represents a PackageRemove. - * @implements IPackageRemove * @constructor * @param {api.IPackageRemove=} [properties] Properties to set */ @@ -20697,7 +20646,7 @@ /** * PackageRemove pkgs. - * @member {Array.} pkgs + * @member {Array.} pkgs * @memberof api.PackageRemove * @instance */ @@ -20712,7 +20661,7 @@ * @returns {api.PackageRemove} PackageRemove instance */ PackageRemove.create = function create(properties) { - return new PackageRemove(properties); + return PackageRemove.fromObject(properties); }; /** @@ -20720,7 +20669,7 @@ * @function encode * @memberof api.PackageRemove * @static - * @param {api.IPackageRemove} message PackageRemove message or plain object to encode + * @param {api.PackageRemove} message PackageRemove message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -20738,7 +20687,7 @@ * @function encodeDelimited * @memberof api.PackageRemove * @static - * @param {api.IPackageRemove} message PackageRemove message or plain object to encode + * @param {api.PackageRemove} message PackageRemove message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -20890,7 +20839,6 @@ * Constructs a new PackageInstall. * @memberof api * @classdesc Represents a PackageInstall. - * @implements IPackageInstall * @constructor * @param {api.IPackageInstall=} [properties] Properties to set */ @@ -20910,7 +20858,7 @@ * @returns {api.PackageInstall} PackageInstall instance */ PackageInstall.create = function create(properties) { - return new PackageInstall(properties); + return PackageInstall.fromObject(properties); }; /** @@ -20918,7 +20866,7 @@ * @function encode * @memberof api.PackageInstall * @static - * @param {api.IPackageInstall} message PackageInstall message or plain object to encode + * @param {api.PackageInstall} message PackageInstall message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -20933,7 +20881,7 @@ * @function encodeDelimited * @memberof api.PackageInstall * @static - * @param {api.IPackageInstall} message PackageInstall message or plain object to encode + * @param {api.PackageInstall} message PackageInstall message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21050,7 +20998,6 @@ * Constructs a new PackageListSpecfile. * @memberof api * @classdesc Represents a PackageListSpecfile. - * @implements IPackageListSpecfile * @constructor * @param {api.IPackageListSpecfile=} [properties] Properties to set */ @@ -21070,7 +21017,7 @@ * @returns {api.PackageListSpecfile} PackageListSpecfile instance */ PackageListSpecfile.create = function create(properties) { - return new PackageListSpecfile(properties); + return PackageListSpecfile.fromObject(properties); }; /** @@ -21078,7 +21025,7 @@ * @function encode * @memberof api.PackageListSpecfile * @static - * @param {api.IPackageListSpecfile} message PackageListSpecfile message or plain object to encode + * @param {api.PackageListSpecfile} message PackageListSpecfile message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21093,7 +21040,7 @@ * @function encodeDelimited * @memberof api.PackageListSpecfile * @static - * @param {api.IPackageListSpecfile} message PackageListSpecfile message or plain object to encode + * @param {api.PackageListSpecfile} message PackageListSpecfile message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21204,14 +21151,13 @@ * Properties of a PackageListSpecfileResp. * @memberof api * @interface IPackageListSpecfileResp - * @property {Array.|null} [pkgs] PackageListSpecfileResp pkgs + * @property {Array.|null} [pkgs] PackageListSpecfileResp pkgs */ /** * Constructs a new PackageListSpecfileResp. * @memberof api * @classdesc Represents a PackageListSpecfileResp. - * @implements IPackageListSpecfileResp * @constructor * @param {api.IPackageListSpecfileResp=} [properties] Properties to set */ @@ -21225,7 +21171,7 @@ /** * PackageListSpecfileResp pkgs. - * @member {Array.} pkgs + * @member {Array.} pkgs * @memberof api.PackageListSpecfileResp * @instance */ @@ -21240,7 +21186,7 @@ * @returns {api.PackageListSpecfileResp} PackageListSpecfileResp instance */ PackageListSpecfileResp.create = function create(properties) { - return new PackageListSpecfileResp(properties); + return PackageListSpecfileResp.fromObject(properties); }; /** @@ -21248,7 +21194,7 @@ * @function encode * @memberof api.PackageListSpecfileResp * @static - * @param {api.IPackageListSpecfileResp} message PackageListSpecfileResp message or plain object to encode + * @param {api.PackageListSpecfileResp} message PackageListSpecfileResp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21266,7 +21212,7 @@ * @function encodeDelimited * @memberof api.PackageListSpecfileResp * @static - * @param {api.IPackageListSpecfileResp} message PackageListSpecfileResp message or plain object to encode + * @param {api.PackageListSpecfileResp} message PackageListSpecfileResp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21418,7 +21364,6 @@ * Constructs a new PackageCacheSave. * @memberof api * @classdesc Represents a PackageCacheSave. - * @implements IPackageCacheSave * @constructor * @param {api.IPackageCacheSave=} [properties] Properties to set */ @@ -21438,7 +21383,7 @@ * @returns {api.PackageCacheSave} PackageCacheSave instance */ PackageCacheSave.create = function create(properties) { - return new PackageCacheSave(properties); + return PackageCacheSave.fromObject(properties); }; /** @@ -21446,7 +21391,7 @@ * @function encode * @memberof api.PackageCacheSave * @static - * @param {api.IPackageCacheSave} message PackageCacheSave message or plain object to encode + * @param {api.PackageCacheSave} message PackageCacheSave message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21461,7 +21406,7 @@ * @function encodeDelimited * @memberof api.PackageCacheSave * @static - * @param {api.IPackageCacheSave} message PackageCacheSave message or plain object to encode + * @param {api.PackageCacheSave} message PackageCacheSave message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21572,14 +21517,13 @@ * Properties of a ChatScrollback. * @memberof api * @interface IChatScrollback - * @property {Array.|null} [scrollback] ChatScrollback scrollback + * @property {Array.|null} [scrollback] ChatScrollback scrollback */ /** * Constructs a new ChatScrollback. * @memberof api * @classdesc Represents a ChatScrollback. - * @implements IChatScrollback * @constructor * @param {api.IChatScrollback=} [properties] Properties to set */ @@ -21593,7 +21537,7 @@ /** * ChatScrollback scrollback. - * @member {Array.} scrollback + * @member {Array.} scrollback * @memberof api.ChatScrollback * @instance */ @@ -21608,7 +21552,7 @@ * @returns {api.ChatScrollback} ChatScrollback instance */ ChatScrollback.create = function create(properties) { - return new ChatScrollback(properties); + return ChatScrollback.fromObject(properties); }; /** @@ -21616,7 +21560,7 @@ * @function encode * @memberof api.ChatScrollback * @static - * @param {api.IChatScrollback} message ChatScrollback message or plain object to encode + * @param {api.ChatScrollback} message ChatScrollback message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21634,7 +21578,7 @@ * @function encodeDelimited * @memberof api.ChatScrollback * @static - * @param {api.IChatScrollback} message ChatScrollback message or plain object to encode + * @param {api.ChatScrollback} message ChatScrollback message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21787,7 +21731,6 @@ * Constructs a new Metrics. * @memberof api * @classdesc Represents a Metrics. - * @implements IMetrics * @constructor * @param {api.IMetrics=} [properties] Properties to set */ @@ -21816,7 +21759,7 @@ * @returns {api.Metrics} Metrics instance */ Metrics.create = function create(properties) { - return new Metrics(properties); + return Metrics.fromObject(properties); }; /** @@ -21824,7 +21767,7 @@ * @function encode * @memberof api.Metrics * @static - * @param {api.IMetrics} message Metrics message or plain object to encode + * @param {api.Metrics} message Metrics message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21842,7 +21785,7 @@ * @function encodeDelimited * @memberof api.Metrics * @static - * @param {api.IMetrics} message Metrics message or plain object to encode + * @param {api.Metrics} message Metrics message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21987,18 +21930,17 @@ * @memberof api * @interface IPprofRequest * @property {string|null} [id] PprofRequest id - * @property {api.IPprofCpuProfileRequest|null} [pprofCpuProfileRequest] PprofRequest pprofCpuProfileRequest - * @property {api.IPprofHeapProfileRequest|null} [pprofHeapProfileRequest] PprofRequest pprofHeapProfileRequest - * @property {api.IPprofAllocsProfileRequest|null} [pprofAllocsProfileRequest] PprofRequest pprofAllocsProfileRequest - * @property {api.IPprofBlockProfileRequest|null} [pprofBlockProfileRequest] PprofRequest pprofBlockProfileRequest - * @property {api.IPprofMutexProfileRequest|null} [pprofMutexProfileRequest] PprofRequest pprofMutexProfileRequest + * @property {api.PprofCpuProfileRequest|api.IPprofCpuProfileRequest|null} [pprofCpuProfileRequest] PprofRequest pprofCpuProfileRequest + * @property {api.PprofHeapProfileRequest|api.IPprofHeapProfileRequest|null} [pprofHeapProfileRequest] PprofRequest pprofHeapProfileRequest + * @property {api.PprofAllocsProfileRequest|api.IPprofAllocsProfileRequest|null} [pprofAllocsProfileRequest] PprofRequest pprofAllocsProfileRequest + * @property {api.PprofBlockProfileRequest|api.IPprofBlockProfileRequest|null} [pprofBlockProfileRequest] PprofRequest pprofBlockProfileRequest + * @property {api.PprofMutexProfileRequest|api.IPprofMutexProfileRequest|null} [pprofMutexProfileRequest] PprofRequest pprofMutexProfileRequest */ /** * Constructs a new PprofRequest. * @memberof api * @classdesc Represents a PprofRequest. - * @implements IPprofRequest * @constructor * @param {api.IPprofRequest=} [properties] Properties to set */ @@ -22019,7 +21961,7 @@ /** * PprofRequest pprofCpuProfileRequest. - * @member {api.IPprofCpuProfileRequest|null|undefined} pprofCpuProfileRequest + * @member {api.PprofCpuProfileRequest|null|undefined} pprofCpuProfileRequest * @memberof api.PprofRequest * @instance */ @@ -22027,7 +21969,7 @@ /** * PprofRequest pprofHeapProfileRequest. - * @member {api.IPprofHeapProfileRequest|null|undefined} pprofHeapProfileRequest + * @member {api.PprofHeapProfileRequest|null|undefined} pprofHeapProfileRequest * @memberof api.PprofRequest * @instance */ @@ -22035,7 +21977,7 @@ /** * PprofRequest pprofAllocsProfileRequest. - * @member {api.IPprofAllocsProfileRequest|null|undefined} pprofAllocsProfileRequest + * @member {api.PprofAllocsProfileRequest|null|undefined} pprofAllocsProfileRequest * @memberof api.PprofRequest * @instance */ @@ -22043,7 +21985,7 @@ /** * PprofRequest pprofBlockProfileRequest. - * @member {api.IPprofBlockProfileRequest|null|undefined} pprofBlockProfileRequest + * @member {api.PprofBlockProfileRequest|null|undefined} pprofBlockProfileRequest * @memberof api.PprofRequest * @instance */ @@ -22051,7 +21993,7 @@ /** * PprofRequest pprofMutexProfileRequest. - * @member {api.IPprofMutexProfileRequest|null|undefined} pprofMutexProfileRequest + * @member {api.PprofMutexProfileRequest|null|undefined} pprofMutexProfileRequest * @memberof api.PprofRequest * @instance */ @@ -22080,7 +22022,7 @@ * @returns {api.PprofRequest} PprofRequest instance */ PprofRequest.create = function create(properties) { - return new PprofRequest(properties); + return PprofRequest.fromObject(properties); }; /** @@ -22088,24 +22030,24 @@ * @function encode * @memberof api.PprofRequest * @static - * @param {api.IPprofRequest} message PprofRequest message or plain object to encode + * @param {api.PprofRequest} message PprofRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PprofRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.pprofCpuProfileRequest != null && message.hasOwnProperty("pprofCpuProfileRequest")) + if (message.pprofCpuProfileRequest != null && Object.hasOwnProperty.call(message, "pprofCpuProfileRequest")) $root.api.PprofCpuProfileRequest.encode(message.pprofCpuProfileRequest, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pprofHeapProfileRequest != null && message.hasOwnProperty("pprofHeapProfileRequest")) + if (message.pprofHeapProfileRequest != null && Object.hasOwnProperty.call(message, "pprofHeapProfileRequest")) $root.api.PprofHeapProfileRequest.encode(message.pprofHeapProfileRequest, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.pprofAllocsProfileRequest != null && message.hasOwnProperty("pprofAllocsProfileRequest")) + if (message.pprofAllocsProfileRequest != null && Object.hasOwnProperty.call(message, "pprofAllocsProfileRequest")) $root.api.PprofAllocsProfileRequest.encode(message.pprofAllocsProfileRequest, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.pprofBlockProfileRequest != null && message.hasOwnProperty("pprofBlockProfileRequest")) + if (message.pprofBlockProfileRequest != null && Object.hasOwnProperty.call(message, "pprofBlockProfileRequest")) $root.api.PprofBlockProfileRequest.encode(message.pprofBlockProfileRequest, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pprofMutexProfileRequest != null && message.hasOwnProperty("pprofMutexProfileRequest")) + if (message.pprofMutexProfileRequest != null && Object.hasOwnProperty.call(message, "pprofMutexProfileRequest")) $root.api.PprofMutexProfileRequest.encode(message.pprofMutexProfileRequest, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -22115,7 +22057,7 @@ * @function encodeDelimited * @memberof api.PprofRequest * @static - * @param {api.IPprofRequest} message PprofRequest message or plain object to encode + * @param {api.PprofRequest} message PprofRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22363,7 +22305,6 @@ * Constructs a new PprofAllocsProfileRequest. * @memberof api * @classdesc Represents a PprofAllocsProfileRequest. - * @implements IPprofAllocsProfileRequest * @constructor * @param {api.IPprofAllocsProfileRequest=} [properties] Properties to set */ @@ -22391,7 +22332,7 @@ * @returns {api.PprofAllocsProfileRequest} PprofAllocsProfileRequest instance */ PprofAllocsProfileRequest.create = function create(properties) { - return new PprofAllocsProfileRequest(properties); + return PprofAllocsProfileRequest.fromObject(properties); }; /** @@ -22399,14 +22340,14 @@ * @function encode * @memberof api.PprofAllocsProfileRequest * @static - * @param {api.IPprofAllocsProfileRequest} message PprofAllocsProfileRequest message or plain object to encode + * @param {api.PprofAllocsProfileRequest} message PprofAllocsProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PprofAllocsProfileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.debug != null && message.hasOwnProperty("debug")) + if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.debug); return writer; }; @@ -22416,7 +22357,7 @@ * @function encodeDelimited * @memberof api.PprofAllocsProfileRequest * @static - * @param {api.IPprofAllocsProfileRequest} message PprofAllocsProfileRequest message or plain object to encode + * @param {api.PprofAllocsProfileRequest} message PprofAllocsProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22550,7 +22491,6 @@ * Constructs a new PprofBlockProfileRequest. * @memberof api * @classdesc Represents a PprofBlockProfileRequest. - * @implements IPprofBlockProfileRequest * @constructor * @param {api.IPprofBlockProfileRequest=} [properties] Properties to set */ @@ -22578,7 +22518,7 @@ * @returns {api.PprofBlockProfileRequest} PprofBlockProfileRequest instance */ PprofBlockProfileRequest.create = function create(properties) { - return new PprofBlockProfileRequest(properties); + return PprofBlockProfileRequest.fromObject(properties); }; /** @@ -22586,14 +22526,14 @@ * @function encode * @memberof api.PprofBlockProfileRequest * @static - * @param {api.IPprofBlockProfileRequest} message PprofBlockProfileRequest message or plain object to encode + * @param {api.PprofBlockProfileRequest} message PprofBlockProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PprofBlockProfileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.debug != null && message.hasOwnProperty("debug")) + if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.debug); return writer; }; @@ -22603,7 +22543,7 @@ * @function encodeDelimited * @memberof api.PprofBlockProfileRequest * @static - * @param {api.IPprofBlockProfileRequest} message PprofBlockProfileRequest message or plain object to encode + * @param {api.PprofBlockProfileRequest} message PprofBlockProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22730,14 +22670,13 @@ * Properties of a PprofCpuProfileRequest. * @memberof api * @interface IPprofCpuProfileRequest - * @property {number|Long|null} [seconds] PprofCpuProfileRequest seconds + * @property {number|null} [seconds] PprofCpuProfileRequest seconds */ /** * Constructs a new PprofCpuProfileRequest. * @memberof api * @classdesc Represents a PprofCpuProfileRequest. - * @implements IPprofCpuProfileRequest * @constructor * @param {api.IPprofCpuProfileRequest=} [properties] Properties to set */ @@ -22750,7 +22689,7 @@ /** * PprofCpuProfileRequest seconds. - * @member {number|Long} seconds + * @member {number} seconds * @memberof api.PprofCpuProfileRequest * @instance */ @@ -22765,7 +22704,7 @@ * @returns {api.PprofCpuProfileRequest} PprofCpuProfileRequest instance */ PprofCpuProfileRequest.create = function create(properties) { - return new PprofCpuProfileRequest(properties); + return PprofCpuProfileRequest.fromObject(properties); }; /** @@ -22773,14 +22712,14 @@ * @function encode * @memberof api.PprofCpuProfileRequest * @static - * @param {api.IPprofCpuProfileRequest} message PprofCpuProfileRequest message or plain object to encode + * @param {api.PprofCpuProfileRequest} message PprofCpuProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PprofCpuProfileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); return writer; }; @@ -22790,7 +22729,7 @@ * @function encodeDelimited * @memberof api.PprofCpuProfileRequest * @static - * @param {api.IPprofCpuProfileRequest} message PprofCpuProfileRequest message or plain object to encode + * @param {api.PprofCpuProfileRequest} message PprofCpuProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22939,7 +22878,6 @@ * Constructs a new PprofHeapProfileRequest. * @memberof api * @classdesc Represents a PprofHeapProfileRequest. - * @implements IPprofHeapProfileRequest * @constructor * @param {api.IPprofHeapProfileRequest=} [properties] Properties to set */ @@ -22975,7 +22913,7 @@ * @returns {api.PprofHeapProfileRequest} PprofHeapProfileRequest instance */ PprofHeapProfileRequest.create = function create(properties) { - return new PprofHeapProfileRequest(properties); + return PprofHeapProfileRequest.fromObject(properties); }; /** @@ -22983,16 +22921,16 @@ * @function encode * @memberof api.PprofHeapProfileRequest * @static - * @param {api.IPprofHeapProfileRequest} message PprofHeapProfileRequest message or plain object to encode + * @param {api.PprofHeapProfileRequest} message PprofHeapProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PprofHeapProfileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.gc != null && message.hasOwnProperty("gc")) + if (message.gc != null && Object.hasOwnProperty.call(message, "gc")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.gc); - if (message.debug != null && message.hasOwnProperty("debug")) + if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.debug); return writer; }; @@ -23002,7 +22940,7 @@ * @function encodeDelimited * @memberof api.PprofHeapProfileRequest * @static - * @param {api.IPprofHeapProfileRequest} message PprofHeapProfileRequest message or plain object to encode + * @param {api.PprofHeapProfileRequest} message PprofHeapProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23148,7 +23086,6 @@ * Constructs a new PprofMutexProfileRequest. * @memberof api * @classdesc Represents a PprofMutexProfileRequest. - * @implements IPprofMutexProfileRequest * @constructor * @param {api.IPprofMutexProfileRequest=} [properties] Properties to set */ @@ -23176,7 +23113,7 @@ * @returns {api.PprofMutexProfileRequest} PprofMutexProfileRequest instance */ PprofMutexProfileRequest.create = function create(properties) { - return new PprofMutexProfileRequest(properties); + return PprofMutexProfileRequest.fromObject(properties); }; /** @@ -23184,14 +23121,14 @@ * @function encode * @memberof api.PprofMutexProfileRequest * @static - * @param {api.IPprofMutexProfileRequest} message PprofMutexProfileRequest message or plain object to encode + * @param {api.PprofMutexProfileRequest} message PprofMutexProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PprofMutexProfileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.debug != null && message.hasOwnProperty("debug")) + if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.debug); return writer; }; @@ -23201,7 +23138,7 @@ * @function encodeDelimited * @memberof api.PprofMutexProfileRequest * @static - * @param {api.IPprofMutexProfileRequest} message PprofMutexProfileRequest message or plain object to encode + * @param {api.PprofMutexProfileRequest} message PprofMutexProfileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23336,7 +23273,6 @@ * Constructs a new PprofResponse. * @memberof api * @classdesc Represents a PprofResponse. - * @implements IPprofResponse * @constructor * @param {api.IPprofResponse=} [properties] Properties to set */ @@ -23372,7 +23308,7 @@ * @returns {api.PprofResponse} PprofResponse instance */ PprofResponse.create = function create(properties) { - return new PprofResponse(properties); + return PprofResponse.fromObject(properties); }; /** @@ -23380,16 +23316,16 @@ * @function encode * @memberof api.PprofResponse * @static - * @param {api.IPprofResponse} message PprofResponse message or plain object to encode + * @param {api.PprofResponse} message PprofResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PprofResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) + if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.profile != null && message.hasOwnProperty("profile")) + if (message.profile != null && Object.hasOwnProperty.call(message, "profile")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.profile); return writer; }; @@ -23399,7 +23335,7 @@ * @function encodeDelimited * @memberof api.PprofResponse * @static - * @param {api.IPprofResponse} message PprofResponse message or plain object to encode + * @param {api.PprofResponse} message PprofResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23554,7 +23490,6 @@ * Constructs a new PTYConfig. * @memberof api * @classdesc Represents a PTYConfig. - * @implements IPTYConfig * @constructor * @param {api.IPTYConfig=} [properties] Properties to set */ @@ -23582,7 +23517,7 @@ * @returns {api.PTYConfig} PTYConfig instance */ PTYConfig.create = function create(properties) { - return new PTYConfig(properties); + return PTYConfig.fromObject(properties); }; /** @@ -23590,14 +23525,14 @@ * @function encode * @memberof api.PTYConfig * @static - * @param {api.IPTYConfig} message PTYConfig message or plain object to encode + * @param {api.PTYConfig} message PTYConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ PTYConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipeMode != null && message.hasOwnProperty("pipeMode")) + if (message.pipeMode != null && Object.hasOwnProperty.call(message, "pipeMode")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.pipeMode); return writer; }; @@ -23607,7 +23542,7 @@ * @function encodeDelimited * @memberof api.PTYConfig * @static - * @param {api.IPTYConfig} message PTYConfig message or plain object to encode + * @param {api.PTYConfig} message PTYConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23755,7 +23690,7 @@ * Properties of a Timestamp. * @memberof google.protobuf * @interface ITimestamp - * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [seconds] Timestamp seconds * @property {number|null} [nanos] Timestamp nanos */ @@ -23763,7 +23698,6 @@ * Constructs a new Timestamp. * @memberof google.protobuf * @classdesc Represents a Timestamp. - * @implements ITimestamp * @constructor * @param {google.protobuf.ITimestamp=} [properties] Properties to set */ @@ -23776,7 +23710,7 @@ /** * Timestamp seconds. - * @member {number|Long} seconds + * @member {number} seconds * @memberof google.protobuf.Timestamp * @instance */ @@ -23799,7 +23733,7 @@ * @returns {google.protobuf.Timestamp} Timestamp instance */ Timestamp.create = function create(properties) { - return new Timestamp(properties); + return Timestamp.fromObject(properties); }; /** @@ -23807,16 +23741,16 @@ * @function encode * @memberof google.protobuf.Timestamp * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.Timestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; @@ -23826,7 +23760,7 @@ * @function encodeDelimited * @memberof google.protobuf.Timestamp * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.Timestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ diff --git a/js/package-lock.json b/js/package-lock.json index 915aa9d..ccbf8d4 100644 --- a/js/package-lock.json +++ b/js/package-lock.json @@ -4,6 +4,32 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", + "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", + "dev": true, + "requires": { + "@babel/highlight": "^7.10.4" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", + "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", + "dev": true + }, + "@babel/highlight": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", + "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.10.4", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, "@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -59,24 +85,229 @@ "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" }, "@types/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", - "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", + "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" }, "@types/node": { - "version": "10.14.22", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.22.tgz", - "integrity": "sha512-9taxKC944BqoTVjE+UT3pQH0nHZlTvITwfsOZqyc+R3sfJuxaTtxWjfn1K2UlxyPcKHf0rnaXcVFrS9F9vf0bw==" + "version": "13.13.35", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.35.tgz", + "integrity": "sha512-q9aeOGwv+RRou/ca4aJVUM/jD5u7LBexu+rq9PkA/NhHNn8JifcMo94soKm0b6JGSfw/PSNdqtc428OscMvEYA==" + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz", + "integrity": "sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "flowgen": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/flowgen/-/flowgen-1.12.1.tgz", + "integrity": "sha512-anmyB6TIo7Y6gpYpQw41g3N1VQ+VECKFcgOlgiUb4727AQfiD/6G73CzCSZlYyjSqLEah7b8baXECSiAuebwBg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/highlight": "^7.10.4", + "commander": "^6.1.0", + "lodash": "^4.17.20", + "prettier": "^2.1.1", + "shelljs": "^0.8.4", + "typescript": "^4.0.2", + "typescript-compiler": "^1.4.1-2" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true + }, + "is-core-module": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz", + "integrity": "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true }, "long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "prettier": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", + "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "dev": true + }, "protobufjs": { - "version": "6.8.8", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", - "integrity": "sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==", + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.10.2.tgz", + "integrity": "sha512-27yj+04uF6ya9l+qfpH187aqEzfCF4+Uit0I9ZBQVqK09hk/SQzKa2MUqUpXaVa7LOFRg1TSSr3lVxGOk6c0SQ==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -88,10 +319,67 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.0", - "@types/node": "^10.1.0", + "@types/long": "^4.0.1", + "@types/node": "^13.7.0", "long": "^4.0.0" } + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "dev": true, + "requires": { + "resolve": "^1.1.6" + } + }, + "resolve": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", + "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", + "dev": true, + "requires": { + "is-core-module": "^2.1.0", + "path-parse": "^1.0.6" + } + }, + "shelljs": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.4.tgz", + "integrity": "sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ==", + "dev": true, + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "typescript": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.2.tgz", + "integrity": "sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==", + "dev": true + }, + "typescript-compiler": { + "version": "1.4.1-2", + "resolved": "https://registry.npmjs.org/typescript-compiler/-/typescript-compiler-1.4.1-2.tgz", + "integrity": "sha1-uk99si2RU0oZKdkACdzhYety/T8=", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/js/package.json b/js/package.json index cd5234d..0cd4d53 100644 --- a/js/package.json +++ b/js/package.json @@ -7,9 +7,12 @@ "author": "faris@repl.it", "license": "MIT", "scripts": { - "prepublishOnly": "pbjs -t static-module -w default -o index.js ../api.proto && pbts -o index.d.ts index.js" + "prepublishOnly": "pbjs --force-number --force-message -t static-module -w default -o index.js ../api.proto && ./tools/jsdoc.js < index.js > .index.js && mv .index.js index.js && pbts -o index.d.ts index.js && sed -i 's/constructor(/private constructor(/' index.d.ts && flowgen --interface-records --no-inexact --add-flow-header index.d.ts && ./tools/flow.js < export.flow.js > .export.flow.js && mv .export.flow.js export.flow.js" }, "dependencies": { - "protobufjs": "^6.8.8" + "protobufjs": "^6.10.2" + }, + "devDependencies": { + "flowgen": "^1.12.1" } } diff --git a/js/tools/flow.js b/js/tools/flow.js new file mode 100755 index 0000000..ba3e81e --- /dev/null +++ b/js/tools/flow.js @@ -0,0 +1,33 @@ +#!/usr/bin/env node +/** + * @file A tool that fixes the flowgen-generated Flow type annotations so that + * all the interfaces are exact types. + * @flow + */ +'use strict'; + +const fs = require('fs'); + +// Declaration regex. +const multiLineDeclarationRegex = new RegExp( + '^declare type (\\S+) = \\{$(.*?)^\\}', + 'smg', +); +const singleLineDeclarationRegex = new RegExp( + '^declare type (\\S+) = \\{\\s*\\}', + 'mg', +); + +exports.main = function (args /*: string[] */) { + const stdinBuffer = fs + .readFileSync(0, 'utf-8') + .replace(multiLineDeclarationRegex, (match, name, contents) => { + return `declare type ${name} = {|${contents}|}`; + }) + .replace(singleLineDeclarationRegex, (match, name) => { + return `declare type ${name} = {||}`; + }); + fs.writeSync(1, stdinBuffer); +}; + +exports.main(process.argv); diff --git a/js/tools/jsdoc.js b/js/tools/jsdoc.js new file mode 100755 index 0000000..3a8bb9c --- /dev/null +++ b/js/tools/jsdoc.js @@ -0,0 +1,163 @@ +#!/usr/bin/env node +/** + * @file A tool that fixes the pbjs-generated JSDoc annotations so that it can + * produce sound TypeScript and Flow type declarations. + * @flow + */ +'use strict'; + +const fs = require('fs'); + +// The regex that matches a JSDoc comment. +const commentRegex = new RegExp('/\\*\\*([^*]|\\*[^/])*\\*/', 'smg'); + +// The regex that matches an `@interface` JSDoc line. +const interfaceRegex = new RegExp('@interface\\s+(\\S+)\\s*'); + +// The regex that matches an `@implements` JSDoc line. +const implementsRegex = new RegExp('.*@implements\\b.+\n'); + +// The regex that matches a `@memberof` JSDoc line. +const memberofRegex = new RegExp('@memberof\\s+(.*)\\s*'); + +// The regex that matches a `@property` JSDoc line. +const propertyRegex = new RegExp('@property\\s+\\{([^}]+)\\}', 'g'); + +// The regex that matches a proto repeated field type. +const arrayTypeRegex = new RegExp('^Array\\.<(.+)>$'); + +// The regex that matches a proto map field type. +const mapTypeRegex = new RegExp('^Object\\.$'); + +/** + * Fixes a property type in an interface declaration. + * + * This does one of the following transformations: + * + * - For primitive types (number, boolean, etc.), it leaves the type as-is. + * - For repeated types, it recursively fixes the type of the elements of the + * array. + * - For map types, it recursively fixes the type of the values of the map. + * - For message types, it allows both the concrete message (with all the + * fields filled in) as well as the abstract interface (that allows for all + * fields to be optional, in accordance with proto3 semantics). + * + * @param {string} typeName the name of the property. + * @param {Set} interfaces the declared interfaces in this file + * @returns {string} the fixed property type. + */ +function fixPropertyType(typeName, interfaces) { + switch (typeName) { + case 'number': + case 'boolean': + case 'string': + case 'Uint8Array': + case 'null': + return typeName; + } + + // proto repeated fields. + let match = arrayTypeRegex.exec(typeName); + if (match !== null) { + return `Array.<${fixPropertyType(match[1], interfaces)}>`; + } + + // proto map fields. + match = mapTypeRegex.exec(typeName); + if (match !== null) { + return `Object.`; + } + + // This is now a dot-separated fully qualified type name. + const tokens = typeName.split('.'); + tokens[tokens.length - 1] = 'I' + tokens[tokens.length - 1]; + const interfaceName = tokens.join('.'); + if (!interfaces.has(interfaceName)) { + return typeName; + } + return `${typeName}|${tokens.join('.')}`; +} + +/** + * Fixes JSDoc declarations. For concrete message declarations, it removes + * @implements annotations that break the soundness of the type system, and for + * interface message declarations, it allows for all message types to be either + * the concrete message type or the abstract interface one. + * + * @param {string} jsDoc the contents of a JSDoc + * @param {Set} interfaces the declared interfaces in this file + * @returns {string} the fixed JSDoc. + */ +function fixJsDoc(jsDoc, interfaces) { + if (jsDoc.indexOf('@interface') !== -1) { + // This is an interface declaration. + jsDoc = jsDoc.replace(propertyRegex, (match, property) => { + const options = property + .split('|') + .map((property) => fixPropertyType(property, interfaces)) + .join('|'); + return `@property {${options}}`; + }); + } else { + // This is a class declaration. + + // Remove any @implements annotations. + jsDoc = jsDoc.replace(implementsRegex, ''); + } + return jsDoc; +} + +exports.main = function (args /*: string[] */) { + const stdinBuffer = fs.readFileSync(0, 'utf-8'); + + const interfaces /*: Set */ = new Set(); + while (true) { + const match = commentRegex.exec(stdinBuffer); + if (match === null) { + break; + } + const jsDoc = match[0]; + const memberofMatch = memberofRegex.exec(jsDoc); + const interfaceMatch = interfaceRegex.exec(jsDoc); + if (memberofMatch === null || interfaceMatch === null) { + continue; + } + interfaces.add(`${memberofMatch[1]}.${interfaceMatch[1]}`); + } + + const chunks = []; + let lastIndex = 0; + while (true) { + const match = commentRegex.exec(stdinBuffer); + if (match === null) { + break; + } + chunks.push(stdinBuffer.slice(lastIndex, match.index)); + chunks.push(fixJsDoc(match[0], interfaces)); + lastIndex = match.index + match[0].length; + } + chunks.push(stdinBuffer.slice(lastIndex)); + + // Finally, replace all `.create()` `new` invocations with a `.fromObject()`. + // This is needed because protobufjs does not validate properties or create + // instance objects when creating message types through `new`, but does so + // through `.fromObject()`. Now, the downside of requiring people calling + // `.fromObject()` is that it imposes no requirements on the type of its + // argument (just that it's an object!), whereas `.create()` does require + // that the argument is an interface. + // + // So this brings us the best of both worlds: `.create()` still has the right + // types and creates fully reified objects, with the correct types all across + // the board. + const finalSource = chunks + .join('') + .replace( + /(function create\(properties\)\s+{\n\s*)return new (\S+)(\(.*;\n\s*};)/gm, + (match, prelude, className, postlude) => + `${prelude}return ${className}.fromObject${postlude}`, + ); + + fs.writeSync(1, finalSource); +}; + +exports.main(process.argv);